diff --git a/code/web/interface/themes/responsive/RecordDrivers/GroupedWork/browse_result.tpl b/code/web/interface/themes/responsive/RecordDrivers/GroupedWork/browse_result.tpl index b8684bb509..3e99009020 100644 --- a/code/web/interface/themes/responsive/RecordDrivers/GroupedWork/browse_result.tpl +++ b/code/web/interface/themes/responsive/RecordDrivers/GroupedWork/browse_result.tpl @@ -4,7 +4,7 @@ {assign var="vSummAuthor" value="by $summAuthor"} {/if} - {if $accessibleBrowseCategories == '1' && $action != 'Results'} + {if $accessibleBrowseCategories == '1' && $action != 'Results' && !$isForSearchResults}
{$summTitle|escape} @@ -12,43 +12,43 @@
{else} - {if $browseMode == '1'} -
- - {$summTitle|escape} {$vSummAuthor|escape} -
{if !empty($isNew)}{translate text="New!" isPublicFacing=true}
{/if}{$summTitle|truncate:40}{$vSummAuthor|truncate:40}
-
-
+ {if $browseMode == '1'} +
+ + {$summTitle|escape} {$vSummAuthor|escape} +
{if !empty($isNew)}{translate text="New!" isPublicFacing=true}
{/if}{$summTitle|truncate:40}{$vSummAuthor|truncate:40}
+
+
- {else}{*Default Browse Mode (covers) *} -
- - {if !empty($isNew)}{translate text="New!" isPublicFacing=true} {/if} -
- {$summTitle|escape} {$vSummAuthor|escape} -
-
- {if !empty($showRatings) && $browseCategoryRatingsMode != 0} -
+ + {if !empty($isNew)}{translate text="New!" isPublicFacing=true} {/if} +
+ {$summTitle|escape} {$vSummAuthor|escape} +
+
+ {if !empty($showRatings) && $browseCategoryRatingsMode != 0} +
+ + {* Don't show a user's ratings in browse results because the results get cached so shouldn't be particular to a single user.*} + {* {if !empty($ratingData.user)} + + {else}*} + + {*{/if}*} + +
{/if} - > - -{* Don't show a user's ratings in browse results because the results get cached so shouldn't be particular to a single user.*} -{* {if !empty($ratingData.user)} - - {else}*} - - {*{/if}*} - -
- {/if} -
- {/if} + + {/if} {/if} {/strip} \ No newline at end of file diff --git a/code/web/interface/themes/responsive/RecordDrivers/Index/browse_result.tpl b/code/web/interface/themes/responsive/RecordDrivers/Index/browse_result.tpl index 3950aa8a88..a07afd986c 100644 --- a/code/web/interface/themes/responsive/RecordDrivers/Index/browse_result.tpl +++ b/code/web/interface/themes/responsive/RecordDrivers/Index/browse_result.tpl @@ -1,5 +1,5 @@ {strip} - {if $accessibleBrowseCategories == '1' && $action != 'Results'} + {if $accessibleBrowseCategories == '1' && $action != 'Results' && !$isForSearchResults}
{$summTitle} diff --git a/code/web/interface/themes/responsive/RecordDrivers/List/cover_result.tpl b/code/web/interface/themes/responsive/RecordDrivers/List/cover_result.tpl index 069955d5e3..1c375258ff 100644 --- a/code/web/interface/themes/responsive/RecordDrivers/List/cover_result.tpl +++ b/code/web/interface/themes/responsive/RecordDrivers/List/cover_result.tpl @@ -1,5 +1,5 @@ {strip} - {if $accessibleBrowseCategories == '1' && $action != 'Results'} + {if $accessibleBrowseCategories == '1' && $action != 'Results' && !$isForSearchResults}
{$summTitle|escape} diff --git a/code/web/interface/themes/responsive/js/aspen.js b/code/web/interface/themes/responsive/js/aspen.js index 8d3a2d4d76..1395f8ce7f 100644 --- a/code/web/interface/themes/responsive/js/aspen.js +++ b/code/web/interface/themes/responsive/js/aspen.js @@ -14812,7 +14812,6 @@ AspenDiscovery.Searches = (function(){ } } }(AspenDiscovery.Searches || {})); - AspenDiscovery.SideLoads = (function(){ return { deleteMarc: function (sideLoadId, fileName, fileIndex) { diff --git a/code/web/interface/themes/responsive/js/aspen/searches.js b/code/web/interface/themes/responsive/js/aspen/searches.js index d9918dd888..aa8bec8f12 100644 --- a/code/web/interface/themes/responsive/js/aspen/searches.js +++ b/code/web/interface/themes/responsive/js/aspen/searches.js @@ -348,4 +348,4 @@ AspenDiscovery.Searches = (function(){ }); } } -}(AspenDiscovery.Searches || {})); +}(AspenDiscovery.Searches || {})); \ No newline at end of file diff --git a/code/web/services/Search/AJAX.php b/code/web/services/Search/AJAX.php index 35eae3f67a..8ad28e44b9 100644 --- a/code/web/services/Search/AJAX.php +++ b/code/web/services/Search/AJAX.php @@ -357,6 +357,8 @@ function getMoreSearchResults($displayMode = 'covers') { } $searchObject->close(); + global $interface; + $interface->assign('isForSearchResults', true); // Process for Display // $recordSet = $searchObject->getResultRecordHTML(); $displayTemplate = 'Search/covers-list.tpl'; // structure for bookcover tiles @@ -377,7 +379,6 @@ function getMoreSearchResults($displayMode = 'covers') { $recordSet[] = ''; } - global $interface; $interface->assign('recordSet', $recordSet); $records = $interface->fetch($displayTemplate); $result = [ @@ -784,4 +785,4 @@ function searchFacetTerms() : array { function getBreadcrumbs(): array { return []; } -} +} \ No newline at end of file diff --git a/code/web/sys/Interface.php b/code/web/sys/Interface.php index 4af661079e..0477235b5a 100644 --- a/code/web/sys/Interface.php +++ b/code/web/sys/Interface.php @@ -167,6 +167,8 @@ function __construct() { $this->assign('debugCss', true); } + $this->assign('isForSearchResults', false); + // Detect Internet Explorer 8 to include respond.js for responsive css support if (isset($_SERVER['HTTP_USER_AGENT'])) { $ie8 = stristr($_SERVER['HTTP_USER_AGENT'], 'msie 8') || stristr($_SERVER['HTTP_USER_AGENT'], 'trident/5'); //trident/5 should catch ie9 compatibility modes