From c310a519cbf07f33b18c209c8858b020c6f9987c Mon Sep 17 00:00:00 2001 From: Kodi Date: Thu, 8 Oct 2026 15:23:09 -0700 Subject: [PATCH 1/2] DIS-3035: Sierra Self-Reg Message Field Add Staff Message configuration in self registration form settings for Sierra self reg forms Use data in this field to populate fieldTag: m in API call to Sierra Update release notes Tested Aspen facing functionality on my local instance but did not send API request, will need confirmation that message gets populated --- code/web/Drivers/Sierra.php | 6 ++ code/web/release_notes/26.11.00/DIS-3035.yaml | 13 +++++ .../version_updates/26.11.00.php | 55 +++++++++++++++++++ .../SierraSelfRegistrationForm.php | 8 +++ 4 files changed, 82 insertions(+) create mode 100644 code/web/release_notes/26.11.00/DIS-3035.yaml create mode 100644 code/web/sys/DBMaintenance/version_updates/26.11.00.php diff --git a/code/web/Drivers/Sierra.php b/code/web/Drivers/Sierra.php index f93d4a6a2e..6422e7cb36 100644 --- a/code/web/Drivers/Sierra.php +++ b/code/web/Drivers/Sierra.php @@ -2418,6 +2418,12 @@ public function selfRegister(): array { ]), ]; } + if (!empty($selfRegistrationForm->selfRegStaffMessage)) { + $params['varFields'][] = [ + 'fieldTag' => 'm', + 'content' => $selfRegistrationForm->selfRegStaffMessage, + ]; + } // Override with any municipality-specific settings if (!empty($municipalities)) { diff --git a/code/web/release_notes/26.11.00/DIS-3035.yaml b/code/web/release_notes/26.11.00/DIS-3035.yaml new file mode 100644 index 0000000000..22c1a1f23a --- /dev/null +++ b/code/web/release_notes/26.11.00/DIS-3035.yaml @@ -0,0 +1,13 @@ +Jira: DIS-3035 +Type: Enhancement +Developer: Kodi Lein (KL) +Contributing Org: Grove For Libraries +Sponsor: MCFLS +GroveRelease: 26.11.00 +CommunityRelease: 26.12.00 +Component: Sierra ILS +Description: + - Add self registration form configuration option for staff message that will display to staff when viewing self registered patrons. +New Settings: + - ILS Integration > Self Registration Forms > Staff Message +New Permissions: \ No newline at end of file diff --git a/code/web/sys/DBMaintenance/version_updates/26.11.00.php b/code/web/sys/DBMaintenance/version_updates/26.11.00.php new file mode 100644 index 0000000000..daa1b3ffc0 --- /dev/null +++ b/code/web/sys/DBMaintenance/version_updates/26.11.00.php @@ -0,0 +1,55 @@ + [ + 'title' => '', + 'description' => '', + 'continueOnError' => false, + 'sql' => [ + '' + ] + ], //name*/ + + //mark n + + //kirstien + + //kodi + 'disallow_reading_history_return_date_edits' => [ + 'title' => 'Disallow reading history return date edits', + 'description' => 'Add setting to library table for disallowing editing of return dates in reading history.', + 'continueOnError' => false, + 'sql' => [ + "ALTER TABLE library ADD COLUMN disallowReturnDateEdits TINYINT(1) NOT NULL DEFAULT 0" + ] + ], //disallow_reading_history_return_date_edits + + //yanjun + + //imani + + //galen + + //chloe + + //pedro + + //mark j + + //lucas + + //tomas + + // stephen + + //jacob - OpenFifth + + //kyle - ByWater + + ]; +} diff --git a/code/web/sys/SelfRegistrationForms/SierraSelfRegistrationForm.php b/code/web/sys/SelfRegistrationForms/SierraSelfRegistrationForm.php index b8bd907f62..df85002afa 100644 --- a/code/web/sys/SelfRegistrationForms/SierraSelfRegistrationForm.php +++ b/code/web/sys/SelfRegistrationForms/SierraSelfRegistrationForm.php @@ -20,6 +20,7 @@ class SierraSelfRegistrationForm extends DataObject { public $selfRegPcode3; public $selfRegPcode4; public $selfRegPatronMessage; + public $selfRegStaffMessage; public $selfRegNoticePref; public $selfRegAgency; public $selfRegGuardianField; @@ -185,6 +186,13 @@ static function getObjectStructure(string $context = ''): array { 'description' => 'Patron message to display to self registered patrons', 'maxLength' => 35, ], + 'selfRegStaffMessage' => [ + 'property' => 'selfRegStaffMessage', + 'type' => 'text', + 'label' => 'Staff Message', + 'description' => 'Message to display to staff ', + 'maxLength' => 250, + ], 'selfRegNoticePref' => [ 'property' => 'selfRegNoticePref', 'type' => 'enum', From f99653db99d49dad1880b82d5830c8951495a674 Mon Sep 17 00:00:00 2001 From: Kodi Date: Thu, 8 Oct 2026 15:25:05 -0700 Subject: [PATCH 2/2] Update 26.11.00.php --- .../web/sys/DBMaintenance/version_updates/26.11.00.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/code/web/sys/DBMaintenance/version_updates/26.11.00.php b/code/web/sys/DBMaintenance/version_updates/26.11.00.php index daa1b3ffc0..7c2903d2fc 100644 --- a/code/web/sys/DBMaintenance/version_updates/26.11.00.php +++ b/code/web/sys/DBMaintenance/version_updates/26.11.00.php @@ -20,14 +20,14 @@ function getUpdates26_11_00(): array { //kirstien //kodi - 'disallow_reading_history_return_date_edits' => [ - 'title' => 'Disallow reading history return date edits', - 'description' => 'Add setting to library table for disallowing editing of return dates in reading history.', + 'sierra_self_reg_staff_message' => [ + 'title' => 'Self Registration Staff Message', + 'description' => 'Message to display to staff in Sierra ILS for self-registered patrons.', 'continueOnError' => false, 'sql' => [ - "ALTER TABLE library ADD COLUMN disallowReturnDateEdits TINYINT(1) NOT NULL DEFAULT 0" + "ALTER TABLE self_registration_form_sierra ADD COLUMN selfRegStaffMessage VARCHAR(250) NOT NULL DEFAULT ''" ] - ], //disallow_reading_history_return_date_edits + ], //sierra_self_reg_staff_message //yanjun