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..7c2903d2fc --- /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 + '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 self_registration_form_sierra ADD COLUMN selfRegStaffMessage VARCHAR(250) NOT NULL DEFAULT ''" + ] + ], //sierra_self_reg_staff_message + + //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',