From ca9a3c86c7d392c5dfdcf61de5c77f4d908035ee Mon Sep 17 00:00:00 2001 From: Kirstien Kroeger Date: Thu, 18 Apr 2024 15:44:04 -0500 Subject: [PATCH 1/4] hide top button on tablet/phone --- code/web/interface/themes/responsive/js/aspen.js | 4 ++-- code/web/interface/themes/responsive/js/aspen/base.js | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/code/web/interface/themes/responsive/js/aspen.js b/code/web/interface/themes/responsive/js/aspen.js index 606241739e..65c2ac49ad 100644 --- a/code/web/interface/themes/responsive/js/aspen.js +++ b/code/web/interface/themes/responsive/js/aspen.js @@ -5241,7 +5241,7 @@ var AspenDiscovery = (function(){ // If the scroll value is greater than the window height, let's add a class to the scroll-to-top button to show it! if (y > 0) { - scrollToTopButton.className = "top-link show"; + scrollToTopButton.className = "top-link show hidden-xs hidden-sm"; } else { scrollToTopButton.className = "top-link hide"; } @@ -15275,7 +15275,7 @@ AspenDiscovery.IndexingClass = (function () { var ilsOptions = { //Common for all classes commonFields: ['propertyRowid', 'propertyRowname', 'propertyRowmarcPath', 'propertyRowfilenamesToInclude', - 'propertyRowmarcEncoding', 'propertyRowindividualMarcPath', 'propertyRownumCharsToCreateFolderFrom', + 'propertyRowmarcEncoding', 'propertyRowcreateFolderFromLeadingCharacters', 'propertyRowgroupingClass', 'propertyRowrecordDriver', 'propertyRowcatalogDriver', 'propertyRowrecordUrlComponent', 'propertyRowprocessRecordLinking', 'propertyRowrecordNumberTag', 'propertyRowrecordNumberSubfield', 'propertyRowrecordNumberPrefix', diff --git a/code/web/interface/themes/responsive/js/aspen/base.js b/code/web/interface/themes/responsive/js/aspen/base.js index f84aeaf8b1..bb50599951 100644 --- a/code/web/interface/themes/responsive/js/aspen/base.js +++ b/code/web/interface/themes/responsive/js/aspen/base.js @@ -723,7 +723,7 @@ var AspenDiscovery = (function(){ // If the scroll value is greater than the window height, let's add a class to the scroll-to-top button to show it! if (y > 0) { - scrollToTopButton.className = "top-link show"; + scrollToTopButton.className = "top-link show hidden-xs hidden-sm"; } else { scrollToTopButton.className = "top-link hide"; } From 99bc6e08c2528d476ed780cd7faae1bf9f62cc58 Mon Sep 17 00:00:00 2001 From: Kirstien Kroeger Date: Thu, 18 Apr 2024 15:44:45 -0500 Subject: [PATCH 2/4] accessibility updates --- .../responsive/MyAccount/myPreferences.tpl | 18 ++++++++++++--- .../Search/Recommend/SideFacets.tpl | 22 +++++++++++++++++-- 2 files changed, 35 insertions(+), 5 deletions(-) diff --git a/code/web/interface/themes/responsive/MyAccount/myPreferences.tpl b/code/web/interface/themes/responsive/MyAccount/myPreferences.tpl index 6e0d83ced4..109691abac 100644 --- a/code/web/interface/themes/responsive/MyAccount/myPreferences.tpl +++ b/code/web/interface/themes/responsive/MyAccount/myPreferences.tpl @@ -35,9 +35,9 @@
- {translate text="What is this?" isPublicFacing=true} +
{/if} @@ -232,6 +232,18 @@ {* Initiate any checkbox with a data attribute set to data-switch="" as a bootstrap switch *} {literal} $(function(){ $('input[type="checkbox"][data-switch]').bootstrapSwitch()}); + $("#usernameHelpButton").click(function() { + var helpButton = $(this); + if (helpButton.attr("aria-expanded") === "true") { + $("#usernameHelp").css('display', 'none'); + $("#usernameHelpButton").attr("aria-expanded","false"); + } + else if (helpButton.attr("aria-expanded") === "false") { + $("#usernameHelp").css('display', 'block'); + $("#usernameHelpButton").attr("aria-expanded","true"); + } + return false; + }) {/literal} {/if} @@ -241,4 +253,4 @@ {/if} -{/strip} +{/strip} \ No newline at end of file diff --git a/code/web/interface/themes/responsive/Search/Recommend/SideFacets.tpl b/code/web/interface/themes/responsive/Search/Recommend/SideFacets.tpl index eda8fc2ad5..d570fa1599 100644 --- a/code/web/interface/themes/responsive/Search/Recommend/SideFacets.tpl +++ b/code/web/interface/themes/responsive/Search/Recommend/SideFacets.tpl @@ -21,7 +21,7 @@ {foreach from=$sideFacetSet item=cluster key=title name=facetSet} {if count($cluster.list) > 0}
-
+
{translate text=$cluster.label isPublicFacing=true} {if !empty($cluster.canLock)} @@ -32,7 +32,7 @@ {/if}
-
+
{if $title == 'publishDate' || $title == 'birthYear' || $title == 'deathYear' || $title == 'publishDateSort'} {include file="Search/Recommend/yearFacetFilter.tpl" cluster=$cluster title=$title} @@ -51,6 +51,24 @@ {/if}
+ {/if} {/foreach}
From b13eb00c6ad76d744e7334eb617f01a6d1ccde10 Mon Sep 17 00:00:00 2001 From: Kirstien Kroeger Date: Thu, 18 Apr 2024 17:11:31 -0500 Subject: [PATCH 3/4] Update 24.05.00.MD --- code/web/release_notes/24.05.00.MD | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/code/web/release_notes/24.05.00.MD b/code/web/release_notes/24.05.00.MD index e2119ac671..5f2fc0c683 100644 --- a/code/web/release_notes/24.05.00.MD +++ b/code/web/release_notes/24.05.00.MD @@ -1,5 +1,6 @@ ## Aspen LiDA Updates -- +- If a format is not found in ILS Indexing Format Mapping table, Aspen LiDA will now assume the hold type is bib, instead of item, matching functionality to Aspen Discovery. (Ticket 125902) (*KK*) +- Fixed a bug where tapping on some browse category headings would cause the app to crash when loading results. (Ticket 130596) (*KK*) ## Aspen Discovery Updates //mark @@ -33,8 +34,15 @@ - Remove unused/unmaintained Horizon Export. (*MDN*) //kirstien -### Other +### API Updates +- In the Item API, getRecords will now return the hold type for the format and variation IDs. (*KK*) +- In the Item API, the default hold type is now 'bib' for getRecords and getVariations to match functionality of Aspen Discovery when formats are not found in the ILS Indexing Format Mapping table. (*KK*) + +### Accessibility Updates - In the search sidebar the Applied Filters and Narrow Your Results headings have been updated to H3 elements for better structure and accessibility. (*KK*) +- Added aria-expanded attributes to filter headings in the search sidebar for better accessibility. (*KK*) +- The "Go to Top" button will no longer display on tablets and phone devices due to the size causing issues for using Aspen Discovery. (*KK*) +- Added the aria-expanded attribute to the "What's this?" link on My Preferences page for better accessibility. (*KK*) //kodi ### Events From d12f2c2e7142a9a75691bcebef7c783703fb8a39 Mon Sep 17 00:00:00 2001 From: Kirstien Kroeger Date: Fri, 19 Apr 2024 11:32:51 -0500 Subject: [PATCH 4/4] fix save for color schemes on web builder --- code/web/release_notes/24.05.00.MD | 3 +++ code/web/sys/WebBuilder/PortalCell.php | 4 +++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/code/web/release_notes/24.05.00.MD b/code/web/release_notes/24.05.00.MD index 5f2fc0c683..6a0b3a8891 100644 --- a/code/web/release_notes/24.05.00.MD +++ b/code/web/release_notes/24.05.00.MD @@ -44,6 +44,9 @@ - The "Go to Top" button will no longer display on tablets and phone devices due to the size causing issues for using Aspen Discovery. (*KK*) - Added the aria-expanded attribute to the "What's this?" link on My Preferences page for better accessibility. (*KK*) +### Other Updates +- Web Builder page cells will now again save the custom color scheme. (Tickets 129813, 130819) (*KK*) + //kodi ### Events - Added new events integration with Assabet Interactive (*KL*) diff --git a/code/web/sys/WebBuilder/PortalCell.php b/code/web/sys/WebBuilder/PortalCell.php index 49e18d8d89..b41cffbbd3 100644 --- a/code/web/sys/WebBuilder/PortalCell.php +++ b/code/web/sys/WebBuilder/PortalCell.php @@ -34,6 +34,8 @@ class PortalCell extends DataObject { public $pdfView; public $imgAction; public $imgAlt; + public $colorScheme; + public $invertColor; public function getUniquenessFields(): array { return [ @@ -43,7 +45,7 @@ public function getUniquenessFields(): array { } public function getNumericColumnNames(): array { - return ['frameHeight']; + return ['frameHeight', 'invertColor']; } static function getObjectStructure($context = ''): array {