Skip to content

Commit

Permalink
Merge branch 'Aspen-Discovery:24.11.00' into 24.11.00
Browse files Browse the repository at this point in the history
  • Loading branch information
Abhyastamita authored Oct 16, 2024
2 parents 7ba4855 + 93125ac commit 433960f
Show file tree
Hide file tree
Showing 5 changed files with 29 additions and 14 deletions.
10 changes: 7 additions & 3 deletions code/web/cron/createDefaultDatabaseScript.php
Original file line number Diff line number Diff line change
Expand Up @@ -94,9 +94,13 @@
(18, 'Unavailable', 0, 1, 'This e-mail is to let you know the status of your recent request for an item that you did not find in our catalog. The item you requested cannot be purchased at this time from any of our regular suppliers and is not available from any of our lending libraries.', 0, 0, -1, 0, 0, 0, 0),
(19, 'Cancelled by Patron', 0, 0, '', 0, 1, -1, 0, 0, 0, 0),
(20, 'Cancelled - Duplicate Request', 0, 0, '', 0, 0, -1, 0, 0, 0, 0),
(21, 'Hold Placed', 0, 1, '0', 0, 0, -1, 0, 1, 0, 0),
(22, 'Hold Failed', 0, 1, '0', 0, 0, -1, 0, 0, 1, 0),
(23, 'Hold Not Needed', 0, 1, '0', 0, 0, -1, 0, 0, 0, 1);\n");
(21, 'Hold Placed', 0, 1, '{title} has been received by the library and you have been added to the hold queue.
Thank you for your purchase suggestion!', 0, 0, -1, 0, 1, 0, 0),
(22, 'Hold Failed', 0, 1, '{title} has been received by the library, however we were not able to add you to the hold queue. Please ensure that your account is in good standing and then visit our catalog to place your hold.
Thanks', 0, 0, -1, 0, 0, 1, 0),
(23, 'Hold Not Needed', 0, 0, '', 0, 0, -1, 0, 0, 0, 1);\n");
/** @noinspection SqlWithoutWhere */
fwrite($fhnd, "UPDATE modules set enabled=0;UPDATE modules set enabled=1 where name in ('Side Loads', 'User Lists');\n");
fwrite($fhnd, "INSERT INTO system_variables (currencyCode, storeRecordDetailsInSolr, storeRecordDetailsInDatabase, indexVersion, searchVersion, appScheme, trackIpAddresses) VALUES ('USD', 0, 1, 2, 2, 'aspen-lida', 0); \n");
Expand Down
7 changes: 7 additions & 0 deletions code/web/release_notes/24.10.01.MD
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
## Aspen Discovery Updates
### Other updates
- Correct creating default materials request statuses. (*MDN*)

## This release includes code contributions from
- Grove For Libraries
- Mark Noble (MDN)
12 changes: 6 additions & 6 deletions code/web/sys/DBMaintenance/version_updates/24.10.00.php
Original file line number Diff line number Diff line change
Expand Up @@ -111,13 +111,13 @@ function getUpdates24_10_00(): array {
'sql' => [
"UPDATE materials_request_status SET isOpen = 1, checkForHolds = 1 where description='Item purchased' and libraryId = -1",
"INSERT INTO materials_request_status (description, sendEmailToPatron, emailTemplate, isOpen, isPatronCancel, holdPlacedSuccessfully, libraryId)
VALUES ('Hold Placed', 1, 0, '{title} has been received by the library and you have been added to the hold queue.
VALUES ('Hold Placed', 1, '{title} has been received by the library and you have been added to the hold queue.
Thank you for your purchase suggestion!', 0, 1, -1)",
Thank you for your purchase suggestion!', 0, 0, 1, -1)",
"INSERT INTO materials_request_status (description, sendEmailToPatron, emailTemplate, isOpen, isPatronCancel, holdFailed, libraryId)
VALUES ('Hold Failed', 1, 0, '{title} has been received by the library, however we were not able to add you to the hold queue. Please ensure that your account is in good standing and then visit our catalog to place your hold.
VALUES ('Hold Failed', 1, '{title} has been received by the library, however we were not able to add you to the hold queue. Please ensure that your account is in good standing and then visit our catalog to place your hold.
Thanks', 0, 1, -1)",
Thanks', 0, 0, 1, -1)",
]
], //update_default_request_statuses
'update_default_request_statuses_2' => [
Expand All @@ -126,7 +126,7 @@ function getUpdates24_10_00(): array {
'continueOnError' => false,
'sql' => [
"INSERT INTO materials_request_status (description, sendEmailToPatron, emailTemplate, isOpen, isPatronCancel, holdNotNeeded, libraryId)
VALUES ('Hold Not Needed', 1, 0, '', 0, 1, -1)",
VALUES ('Hold Not Needed', 0, '', 0, 0, 1, -1)",
]
], //update_default_request_statuses_2
'materials_request_hold_candidate_generation_log' => [
Expand Down Expand Up @@ -288,4 +288,4 @@ function getUpdates24_10_00(): array {
//other

];
}
}
4 changes: 2 additions & 2 deletions code/web/sys/SearchObject/EbscoEdsSearcher.php
Original file line number Diff line number Diff line change
Expand Up @@ -558,7 +558,7 @@ public function processSearch($returnIndexErrors = false, $recommendations = fal
if (empty($isAuthenticated)) {
return null;
}
if (get_class($isAuthenticated) == 'AspenError') {
if (is_object($isAuthenticated) && get_class($isAuthenticated) == 'AspenError') {
return $isAuthenticated;
}

Expand Down Expand Up @@ -907,4 +907,4 @@ public function getResearchStarters($searchTerm = null) {

return $researchStarters;
}
}
}
10 changes: 7 additions & 3 deletions install/aspen.sql
Original file line number Diff line number Diff line change
Expand Up @@ -6848,9 +6848,13 @@ INSERT INTO `materials_request_status` (`id`, `description`, `isDefault`, `sendE
(18, 'Unavailable', 0, 1, 'This e-mail is to let you know the status of your recent request for an item that you did not find in our catalog. The item you requested cannot be purchased at this time from any of our regular suppliers and is not available from any of our lending libraries.', 0, 0, -1, 0, 0, 0, 0),
(19, 'Cancelled by Patron', 0, 0, '', 0, 1, -1, 0, 0, 0, 0),
(20, 'Cancelled - Duplicate Request', 0, 0, '', 0, 0, -1, 0, 0, 0, 0),
(21, 'Hold Placed', 0, 1, '0', 0, 0, -1, 0, 1, 0, 0),
(22, 'Hold Failed', 0, 1, '0', 0, 0, -1, 0, 0, 1, 0),
(23, 'Hold Not Needed', 0, 1, '0', 0, 0, -1, 0, 0, 0, 1);
(21, 'Hold Placed', 0, 1, '{title} has been received by the library and you have been added to the hold queue.
Thank you for your purchase suggestion!', 0, 0, -1, 0, 1, 0, 0),
(22, 'Hold Failed', 0, 1, '{title} has been received by the library, however we were not able to add you to the hold queue. Please ensure that your account is in good standing and then visit our catalog to place your hold.
Thanks', 0, 0, -1, 0, 0, 1, 0),
(23, 'Hold Not Needed', 0, 0, '', 0, 0, -1, 0, 0, 0, 1);
UPDATE modules set enabled=0;UPDATE modules set enabled=1 where name in ('Side Loads', 'User Lists');
INSERT INTO system_variables (currencyCode, storeRecordDetailsInSolr, storeRecordDetailsInDatabase, indexVersion, searchVersion, appScheme, trackIpAddresses) VALUES ('USD', 0, 1, 2, 2, 'aspen-lida', 0);
INSERT INTO themes
Expand Down

0 comments on commit 433960f

Please sign in to comment.