Skip to content

Commit

Permalink
Merge pull request Aspen-Discovery#1812 from catsoup11789/24.06.00
Browse files Browse the repository at this point in the history
fix for sys rec accessible browse category
  • Loading branch information
mdnoble73 authored May 21, 2024
2 parents 491b561 + 2120262 commit 063e933
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ export const MyHold = (props) => {
startCheckingOut(false);
});
}}
startIcon={<Icon as={MaterialIcons} name="cart" color="trueGray.400" mr="1" size="6" />}>
startIcon={<Icon as={MaterialIcons} name="book" color="trueGray.400" mr="1" size="6" />}>
{getTermFromDictionary(language, 'checkout_title')}
</Actionsheet.Item>
);
Expand Down
8 changes: 7 additions & 1 deletion code/web/services/Browse/AJAX.php
Original file line number Diff line number Diff line change
Expand Up @@ -466,6 +466,7 @@ private function getSuggestionsBrowseCategoryResults($pageToLoad = 1) {
$browseMode = $this->setBrowseMode();

global $interface;
$accessibleBrowseCategories = $interface->getVariable('accessibleBrowseCategories');
$interface->assign('browseCategoryId', $this->textId);
$result['success'] = true;
$result['textId'] = $this->textId;
Expand Down Expand Up @@ -497,7 +498,12 @@ private function getSuggestionsBrowseCategoryResults($pageToLoad = 1) {
$records[] = $interface->fetch('Browse/noResults.tpl');
}

$result['records'] = implode('', $records);
if($accessibleBrowseCategories == '1' || $accessibleBrowseCategories == 1) {
$result['records'] = $records;
} else {
$result['records'] = implode('', $records);
}

$result['numRecords'] = count($records);

return $result;
Expand Down

0 comments on commit 063e933

Please sign in to comment.