Skip to content
Snippets Groups Projects
Commit f4f3fdbe authored by Ere Maijala's avatar Ere Maijala Committed by Demian Katz
Browse files

Voyager: allow call slip filtering by status.

parent 1045f95e
Branches
Tags
No related merge requests found
...@@ -42,6 +42,15 @@ login_field = LAST_NAME ...@@ -42,6 +42,15 @@ login_field = LAST_NAME
; fund tree to filter out unwanted values. Leave it commented out to get all funds. ; fund tree to filter out unwanted values. Leave it commented out to get all funds.
;parent_fund = 0 ;parent_fund = 0
; This section controls call slip behavior (storage retrieval requests in VuFind).
[StorageRetrievalRequests]
; Colon-separated list of call slip statuses (see CALL_SLIP_STATUS_TYPE table in
; Voyager's database) that control whether a call slip is displayed. Only slips
; matching statuses in this list will be displayed. Current Voyager versions (as of
; May 2016) don't immediately delete a call slip from the database when it has been
; processed and converted to a hold, which may confuse users.
;display_statuses = 1:2:3:5:8:9
; Settings for controlling how holdings are displayed ; Settings for controlling how holdings are displayed
[Holdings] [Holdings]
; How purchase history is displayed. Supported values are: ; How purchase history is displayed. Supported values are:
......
...@@ -218,6 +218,15 @@ disableAvailabilityCheckForRequestGroups = "15:19:21:32" ...@@ -218,6 +218,15 @@ disableAvailabilityCheckForRequestGroups = "15:19:21:32"
;helpText = "Help text for all languages." ;helpText = "Help text for all languages."
;helpText[en-gb] = "Help text for English language." ;helpText[en-gb] = "Help text for English language."
; This section controls call slip behavior (storage retrieval requests in VuFind).
[StorageRetrievalRequests]
; Colon-separated list of call slip statuses (see CALL_SLIP_STATUS_TYPE table in
; Voyager's database) that control whether a call slip is displayed. Only slips
; matching statuses in this list will be displayed. Current Voyager versions (as of
; May 2016) don't immediately delete a call slip from the database when it has been
; processed and converted to a hold, which may confuse users.
;display_statuses = 1:2:3:5:8:9
; This section controls UB (Universal Borrowing, ILL in VuFind) behavior. To enable, ; This section controls UB (Universal Borrowing, ILL in VuFind) behavior. To enable,
; uncomment (at minimum) the HMACKeys and extraFields settings below. See also ; uncomment (at minimum) the HMACKeys and extraFields settings below. See also
; section ILLRequestSources for mapping between patron ID's and UB libraries. ; section ILLRequestSources for mapping between patron ID's and UB libraries.
......
...@@ -1794,6 +1794,18 @@ class Voyager extends AbstractBase ...@@ -1794,6 +1794,18 @@ class Voyager extends AbstractBase
'BIB_TEXT.BIB_ID = CALL_SLIP.BIB_ID' 'BIB_TEXT.BIB_ID = CALL_SLIP.BIB_ID'
]; ];
if (!empty($this->config['StorageRetrievalRequests']['display_statuses'])) {
$statuses = preg_replace(
'/[^:\d]*/',
'',
$this->config['StorageRetrievalRequests']['display_statuses']
);
if ($statuses) {
$sqlWhere[] = 'CALL_SLIP.STATUS IN ('
. str_replace(':', ',', $statuses) . ')';
}
}
// Order by // Order by
$sqlOrderBy = [ $sqlOrderBy = [
"to_char(CALL_SLIP.DATE_REQUESTED, 'YYYY-MM-DD HH24:MI:SS')" "to_char(CALL_SLIP.DATE_REQUESTED, 'YYYY-MM-DD HH24:MI:SS')"
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment