Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions code/web/Drivers/Sierra.php
Original file line number Diff line number Diff line change
Expand Up @@ -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)) {
Expand Down
13 changes: 13 additions & 0 deletions code/web/release_notes/26.11.00/DIS-3035.yaml
Original file line number Diff line number Diff line change
@@ -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:
55 changes: 55 additions & 0 deletions code/web/sys/DBMaintenance/version_updates/26.11.00.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
<?php
/** @noinspection SqlDialectInspection */

/** @noinspection PhpUnused */
function getUpdates26_11_00(): array {
$now = time();

return [
/*'name' => [
'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

];
}
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ class SierraSelfRegistrationForm extends DataObject {
public $selfRegPcode3;
public $selfRegPcode4;
public $selfRegPatronMessage;
public $selfRegStaffMessage;
public $selfRegNoticePref;
public $selfRegAgency;
public $selfRegGuardianField;
Expand Down Expand Up @@ -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',
Expand Down
Loading