[GIT] Evergreen ILS branch rel_3_14 updated. 3068d0a797665cc0d672f0372d8be26ad3f04a46

This is an automated email from the git hooks/post-receive script. It was generated because a ref change was pushed to the repository containing the project "Evergreen ILS". The branch, rel_3_14 has been updated via 3068d0a797665cc0d672f0372d8be26ad3f04a46 (commit) via dee5c0d621c0ca046b71aef3a6588a03f3baed0d (commit) via 7343969e946e2add45a613ac18ebe56eebaa4202 (commit) from b67a62f24c669e9f740cfae3bed344bcf3fa5e0b (commit) Those revisions listed above that are new to this repository have not appeared on any other notification email; so we list those revisions in full, below. - Log ----------------------------------------------------------------- commit 3068d0a797665cc0d672f0372d8be26ad3f04a46 Author: Michele Morgan <mmorgan@noblenet.org> Date: Mon Jul 14 14:54:22 2025 -0400 LP1721131 Stamp upgrade script Signed-off-by: Michele Morgan <mmorgan@noblenet.org> diff --git a/Open-ILS/src/sql/Pg/002.schema.config.sql b/Open-ILS/src/sql/Pg/002.schema.config.sql index f183c41c1c..6a17674deb 100644 --- a/Open-ILS/src/sql/Pg/002.schema.config.sql +++ b/Open-ILS/src/sql/Pg/002.schema.config.sql @@ -92,7 +92,7 @@ CREATE TRIGGER no_overlapping_deps BEFORE INSERT OR UPDATE ON config.db_patch_dependencies FOR EACH ROW EXECUTE PROCEDURE evergreen.array_overlap_check ('deprecates'); -INSERT INTO config.upgrade_log (version, applied_to) VALUES ('1475', :eg_version); -- dguarracino/sandbergja +INSERT INTO config.upgrade_log (version, applied_to) VALUES ('1476', :eg_version); -- stompro/ianskelsky/mmorgan/smorrison CREATE TABLE config.bib_source ( id SERIAL PRIMARY KEY, diff --git a/Open-ILS/src/sql/Pg/upgrade/XXXX.data.ws_setting_eg_circ_patron_search_ou.sql b/Open-ILS/src/sql/Pg/upgrade/1476.data.ws_setting_eg_circ_patron_search_ou.sql similarity index 88% rename from Open-ILS/src/sql/Pg/upgrade/XXXX.data.ws_setting_eg_circ_patron_search_ou.sql rename to Open-ILS/src/sql/Pg/upgrade/1476.data.ws_setting_eg_circ_patron_search_ou.sql index 0365472c81..4a2d85b2fa 100644 --- a/Open-ILS/src/sql/Pg/upgrade/XXXX.data.ws_setting_eg_circ_patron_search_ou.sql +++ b/Open-ILS/src/sql/Pg/upgrade/1476.data.ws_setting_eg_circ_patron_search_ou.sql @@ -1,6 +1,6 @@ BEGIN; --- SELECT evergreen.upgrade_deps_block_check('XXXX', :eg_version); +SELECT evergreen.upgrade_deps_block_check('1476', :eg_version); INSERT INTO config.workstation_setting_type (name, grp, label, description, datatype, fm_class) VALUES ( commit dee5c0d621c0ca046b71aef3a6588a03f3baed0d Author: Michele Morgan <mmorgan@noblenet.org> Date: Mon Jun 30 11:32:58 2025 -0400 LP#1721131: Add upgrade script and seed data for workstation setting Signed-off-by: Michele Morgan <mmorgan@noblenet.org> Signed-off-by: Susan Morrison <smorrison@georgialibraries.org> diff --git a/Open-ILS/src/sql/Pg/950.data.seed-values.sql b/Open-ILS/src/sql/Pg/950.data.seed-values.sql index 462196fbe3..3ef4525d52 100644 --- a/Open-ILS/src/sql/Pg/950.data.seed-values.sql +++ b/Open-ILS/src/sql/Pg/950.data.seed-values.sql @@ -24862,3 +24862,18 @@ VALUES ( 'object' ); +INSERT INTO config.workstation_setting_type (name, grp, label, description, datatype, fm_class) +VALUES ( + 'eg.circ.patron.search.ou', + 'circ', + oils_i18n_gettext( + 'eg.circ.patron.search.ou', + 'Staff Client patron search: home organization unit', + 'cwst', 'label'), + oils_i18n_gettext( + 'eg.circ.patron.search.ou', + 'Specifies the home organization unit for patron search', + 'cwst', 'description'), + 'link', + 'aou' +); diff --git a/Open-ILS/src/sql/Pg/upgrade/XXXX.data.ws_setting_eg_circ_patron_search_ou.sql b/Open-ILS/src/sql/Pg/upgrade/XXXX.data.ws_setting_eg_circ_patron_search_ou.sql new file mode 100644 index 0000000000..0365472c81 --- /dev/null +++ b/Open-ILS/src/sql/Pg/upgrade/XXXX.data.ws_setting_eg_circ_patron_search_ou.sql @@ -0,0 +1,21 @@ +BEGIN; + +-- SELECT evergreen.upgrade_deps_block_check('XXXX', :eg_version); + +INSERT INTO config.workstation_setting_type (name, grp, label, description, datatype, fm_class) +VALUES ( + 'eg.circ.patron.search.ou', + 'circ', + oils_i18n_gettext( + 'eg.circ.patron.search.ou', + 'Staff Client patron search: home organization unit', + 'cwst', 'label'), + oils_i18n_gettext( + 'eg.circ.patron.search.ou', + 'Specifies the home organization unit for patron search', + 'cwst', 'description'), + 'link', + 'aou' + ); + +COMMIT; commit 7343969e946e2add45a613ac18ebe56eebaa4202 Author: Ian Skelskey <ianskelskey@gmail.com> Date: Mon Jan 27 11:49:00 2025 -0500 LP#1721131: Update Clear Form behavior in patron search Revises the behavior of the Clear Form button in the patron search interface: - \"Home Library\" will reset to the highest org level (CONS) upon form clearing. - \"Include Inactive\" will retain its sticky setting, whether checked or unchecked. - Addresses issues where settings were not persisting across sessions. Release-Note: Clear Form now resets \"Home Library\" to consortium and retains the sticky setting for \"Include Inactive.\" Testing Plan: 1. Open the Patron Search page and set \"Home Library\" to an org other than CONS. 2. Click \"Clear Form\" and ensure \"Home Library\" resets to CONS. 3. Verify \"Include Inactive\" retains its previous setting. 4. Refresh the page and confirm settings persist appropriately. Co-authored-by: Josh Stompro <stompro@stompro.org> Signed-off-by: Ian Skelskey <ianskelskey@gmail.com> Signed-off-by: Michele Morgan <mmorgan@noblenet.org> diff --git a/Open-ILS/src/templates/staff/share/t_patron_search_form.tt2 b/Open-ILS/src/templates/staff/share/t_patron_search_form.tt2 index bec2aa6f0a..8f5fd86d68 100644 --- a/Open-ILS/src/templates/staff/share/t_patron_search_form.tt2 +++ b/Open-ILS/src/templates/staff/share/t_patron_search_form.tt2 @@ -91,8 +91,8 @@ </ul> </div> - <eg-org-selector ng-show="showExtras" label="[% l('Home Library') %]" org-aria="[% l('Home Library') %]" - selected="searchArgs.home_ou" sticky-setting="eg.circ.patron.search.ou"> + <eg-org-selector ng-show="showExtras" label="[% l('Home Library') %]" org-aria="[% l('Home Library') %]" + selected="searchArgs.home_ou" sticky-setting="eg.circ.patron.search.ou"> </eg-org-selector> <input ng-show="showExtras" type="text" class="form-control" aria-label="[% l('Parent/Guardian') %]" @@ -121,7 +121,7 @@ </div> <div ng-show="showExtras" class="actions-reset" ng-show="showExtras" ng-mouseover="setLastFormElement()"> - <input type="reset" class="btn btn-outline-primary" ng-click="clearForm()" + <input type="button" class="btn btn-outline-primary" ng-click="clearForm()" aria-label="[% l('Clear Form') %]" value="[% l('Clear Form') %]"/> </div> <div class="actions-search" ng-mouseover="setLastFormElement()"> diff --git a/Open-ILS/web/js/ui/default/staff/services/patron_search.js b/Open-ILS/web/js/ui/default/staff/services/patron_search.js index 798bd9db12..b31fbc4374 100644 --- a/Open-ILS/web/js/ui/default/staff/services/patron_search.js +++ b/Open-ILS/web/js/ui/default/staff/services/patron_search.js @@ -745,7 +745,13 @@ function($scope, $q, $routeParams, $timeout, $window, $location, egCore, } $scope.clearForm = function () { - $scope.searchArgs={}; + var inactive = $scope.searchArgs.inactive; + var home_ou = egCore.org.tree(); + $scope.searchArgs = { + home_ou: home_ou, + inactive: inactive + }; + egCore.hatch.setItem('eg.circ.patron.search.ou', home_ou); if (lastFormElement) lastFormElement.focus(); } @@ -770,10 +776,28 @@ function($scope, $q, $routeParams, $timeout, $window, $location, egCore, if (searchInactive) $scope.searchArgs.inactive = searchInactive; }); + egCore.hatch.getItem('eg.circ.patron.search.ou').then(function(cachedHomeOu) { + $scope.searchArgs.home_ou = cachedHomeOu || egCore.org.tree(); + // Once done, mark ourselves as ready + $scope.initialized = true; + }); + $scope.onSearchInactiveChanged = function() { egCore.hatch.setItem('eg.circ.patron.search.include_inactive', $scope.searchArgs.inactive); } + // Then watch the home_ou for actual user changes + $scope.$watch('searchArgs.home_ou', function(newVal, oldVal) { + // If not initialized, ignore. The first assignment is from the cached value. + if (!$scope.initialized) return; + if (newVal !== oldVal) { + egCore.hatch.setItem( + 'eg.circ.patron.search.ou', + $scope.searchArgs.home_ou + ); + } + }); + // map form arguments into search params function compileSearch(args) { var search = {}; @@ -782,7 +806,7 @@ function($scope, $q, $routeParams, $timeout, $window, $location, egCore, if (key == 'profile' && args.profile) { search.profile = {value : args.profile.id(), group : 5}; } else if (key == 'home_ou' && args.home_ou) { - search.home_ou = args.home_ou.id(); // passed separately + search.home_ou = args.home_ou.id(); } else if (key == 'inactive') { search.inactive = val; } else if (key == 'name') { // name keywords search @@ -812,7 +836,7 @@ function($scope, $q, $routeParams, $timeout, $window, $location, egCore, } } }); - + return search; } ----------------------------------------------------------------------- Summary of changes: Open-ILS/src/sql/Pg/002.schema.config.sql | 2 +- Open-ILS/src/sql/Pg/950.data.seed-values.sql | 15 +++++++++++ ...76.data.ws_setting_eg_circ_patron_search_ou.sql | 21 +++++++++++++++ .../templates/staff/share/t_patron_search_form.tt2 | 6 ++--- .../js/ui/default/staff/services/patron_search.js | 30 +++++++++++++++++++--- 5 files changed, 67 insertions(+), 7 deletions(-) create mode 100644 Open-ILS/src/sql/Pg/upgrade/1476.data.ws_setting_eg_circ_patron_search_ou.sql hooks/post-receive -- Evergreen ILS
participants (1)
-
Git User