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

Added support for specifying priorities for Voyager item statuses so that the...

Added support for specifying priorities for Voyager item statuses so that the most important status can be displayed in holdings.
parent 537b3afa
No related merge requests found
...@@ -16,9 +16,9 @@ connect_with_sid = false ...@@ -16,9 +16,9 @@ connect_with_sid = false
; recommended values are LAST_NAME or PATRON_PIN (LAST_NAME is default) ; recommended values are LAST_NAME or PATRON_PIN (LAST_NAME is default)
login_field = LAST_NAME login_field = LAST_NAME
; If using PATRON_PIN as login_field, allow fallback to another field if the ; If using PATRON_PIN as login_field, allow fallback to another field if the
; user has no PIN code. Disabled by default. ; user has no PIN code. Disabled by default.
;fallback_login_field = LAST_NAME ;fallback_login_field = LAST_NAME
; These settings affect the Fund list used as a limiter in the "new items" module: ; These settings affect the Fund list used as a limiter in the "new items" module:
[Funds] [Funds]
...@@ -38,7 +38,7 @@ login_field = LAST_NAME ...@@ -38,7 +38,7 @@ login_field = LAST_NAME
;blacklist[] = "Second Bad Value" ;blacklist[] = "Second Bad Value"
; This setting can be used to limit the fund list to those that are under a specific ; This setting can be used to limit the fund list to those that are under a specific
; fund. Set it to 0 for top-level funds only. Set it to a FUND_ID deeper in the ; fund. Set it to 0 for top-level funds only. Set it to a FUND_ID deeper in the
; 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
...@@ -47,8 +47,8 @@ login_field = LAST_NAME ...@@ -47,8 +47,8 @@ login_field = LAST_NAME
; How purchase history is displayed. Supported values are: ; How purchase history is displayed. Supported values are:
; 1) false - Purchase history is not displayed at all. ; 1) false - Purchase history is not displayed at all.
; 2) true - Purchase history is displayed below other holdings (default) ; 2) true - Purchase history is displayed below other holdings (default)
; 3) "split" - Purchase history is split to each corresponding holdings record and ; 3) "split" - Purchase history is split to each corresponding holdings record and
; displayed by location ; displayed by location
;purchase_history = true ;purchase_history = true
; Fields to include in notes. Default is "852z". ; Fields to include in notes. Default is "852z".
;notes = "845a:852az" ;notes = "845a:852az"
...@@ -62,7 +62,17 @@ login_field = LAST_NAME ...@@ -62,7 +62,17 @@ login_field = LAST_NAME
; line to disable sorting. ; line to disable sorting.
;use_sort_groups = false ;use_sort_groups = false
; Status rankings can be used to either promote or demote certain item statuses when
; determining the status to be displayed. The lower the rank, the higher the
; priority. The sample values below make "Missing" most important and drop request
; statuses below others so that e.g. "On Hold" is displayed instead of
; "Hold Request".
[StatusRankings]
;Missing = 0
;Recall Request = 99
;Hold Request = 99
; Settings for controlling how loans are displayed ; Settings for controlling how loans are displayed
[Loans] [Loans]
; Uncomment this line to display the location where each loan was made ; Uncomment this line to display the location where each loan was made
;display_borrowing_location = true ;display_borrowing_location = true
\ No newline at end of file
...@@ -16,9 +16,9 @@ connect_with_sid = false ...@@ -16,9 +16,9 @@ connect_with_sid = false
; recommended values are LAST_NAME or PATRON_PIN (LAST_NAME is default) ; recommended values are LAST_NAME or PATRON_PIN (LAST_NAME is default)
login_field = LAST_NAME login_field = LAST_NAME
; If using PATRON_PIN as login_field, allow fallback to another field if the ; If using PATRON_PIN as login_field, allow fallback to another field if the
; user has no PIN code. Disabled by default. ; user has no PIN code. Disabled by default.
;fallback_login_field = LAST_NAME ;fallback_login_field = LAST_NAME
; This is the timeout value for making HTTP requests to the Voyager API. ; This is the timeout value for making HTTP requests to the Voyager API.
http_timeout = 30 http_timeout = 30
...@@ -41,7 +41,7 @@ http_timeout = 30 ...@@ -41,7 +41,7 @@ http_timeout = 30
;blacklist[] = "Second Bad Value" ;blacklist[] = "Second Bad Value"
; This setting can be used to limit the fund list to those that are under a specific ; This setting can be used to limit the fund list to those that are under a specific
; fund. Set it to 0 for top-level funds only. Set it to a FUND_ID deeper in the ; fund. Set it to 0 for top-level funds only. Set it to a FUND_ID deeper in the
; 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
...@@ -96,19 +96,19 @@ HMACKeys = item_id:holdtype:level ...@@ -96,19 +96,19 @@ HMACKeys = item_id:holdtype:level
defaultRequiredDate = 0:1:0 defaultRequiredDate = 0:1:0
; extraHoldFields - A colon-separated list used to display extra visible fields in the ; extraHoldFields - A colon-separated list used to display extra visible fields in the
; place holds form. Supported values are "comments", "requiredByDate", ; place holds form. Supported values are "comments", "requiredByDate",
; "pickUpLocation" and "requestGroup" ; "pickUpLocation" and "requestGroup"
extraHoldFields = comments:requiredByDate:pickUpLocation extraHoldFields = comments:requiredByDate:pickUpLocation
; A Pick Up Location Code used to pre-select the pick up location drop down list and ; A Pick Up Location Code used to pre-select the pick up location drop down list and
; provide a default option if others are not available. Must be one of the following: ; provide a default option if others are not available. Must be one of the following:
; 1) empty string to indicate that the first location is default (default setting) ; 1) empty string to indicate that the first location is default (default setting)
; 2) "user-selected" to indicate that the user always has to choose the location ; 2) "user-selected" to indicate that the user always has to choose the location
; 3) a value within the Location IDs returned by getPickUpLocations() ; 3) a value within the Location IDs returned by getPickUpLocations()
defaultPickUpLocation = "" defaultPickUpLocation = ""
; The maximum number of holding items to generate request links for. The process of ; The maximum number of holding items to generate request links for. The process of
; checking the API for a valid hold is intensive. Any hold items above this this ; checking the API for a valid hold is intensive. Any hold items above this this
; limit will have their hold status checked via ajax or when a user clicks on the ; limit will have their hold status checked via ajax or when a user clicks on the
; link. Use "0" to check all items via ajax. Default is 15. ; link. Use "0" to check all items via ajax. Default is 15.
holdCheckLimit = 15 holdCheckLimit = 15
...@@ -129,7 +129,7 @@ holdCheckLimit = 15 ...@@ -129,7 +129,7 @@ holdCheckLimit = 15
;defaultRequestGroup = "" ;defaultRequestGroup = ""
; By default the request group list is sorted alphabetically. This setting can be ; By default the request group list is sorted alphabetically. This setting can be
; used to manually set the order by entering request group IDs as a colon-separated ; used to manually set the order by entering request group IDs as a colon-separated
; list. ; list.
; This setting is only effective if requestGroup is specified in extraHoldFields. ; This setting is only effective if requestGroup is specified in extraHoldFields.
;requestGroupOrder = 33 ;requestGroupOrder = 33
...@@ -141,11 +141,11 @@ holdCheckLimit = 15 ...@@ -141,11 +141,11 @@ holdCheckLimit = 15
;pickupLocationsInRequestGroup = true ;pickupLocationsInRequestGroup = true
; By default a title hold can be placed even when there are no items. Uncomment this ; By default a title hold can be placed even when there are no items. Uncomment this
; to prevent holds if no items exist. If request groups are enabled, item existence ; to prevent holds if no items exist. If request groups are enabled, item existence
; is checked only in the selected request group. ; is checked only in the selected request group.
;checkItemsExist = true ;checkItemsExist = true
; By default a title hold can be placed even when there are items available. ; By default a title hold can be placed even when there are items available.
; Uncomment this to prevent holds if items are available. If request groups are ; Uncomment this to prevent holds if items are available. If request groups are
; enabled, availability is checked only in the selected request group. ; enabled, availability is checked only in the selected request group.
;checkItemsNotAvailable = true ;checkItemsNotAvailable = true
...@@ -156,7 +156,7 @@ holdCheckLimit = 15 ...@@ -156,7 +156,7 @@ holdCheckLimit = 15
; This setting is only effective if requestGroup is specified in extraHoldFields. ; This setting is only effective if requestGroup is specified in extraHoldFields.
disableAvailabilityCheckForRequestGroups = "15:19:21:32" disableAvailabilityCheckForRequestGroups = "15:19:21:32"
; A colon-separated list of ids from the LOCATION table. If provided, items with a ; A colon-separated list of ids from the LOCATION table. If provided, items with a
; matching location are excluded from item availability. ; matching location are excluded from item availability.
;excludedItemLocations = "2:4:23:10" ;excludedItemLocations = "2:4:23:10"
...@@ -170,7 +170,7 @@ disableAvailabilityCheckForRequestGroups = "15:19:21:32" ...@@ -170,7 +170,7 @@ disableAvailabilityCheckForRequestGroups = "15:19:21:32"
;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). ; This section controls call slip behavior (storage retrieval requests in VuFind).
; To enable, uncomment (at minimum) the HMACKeys and extraFields settings below. ; To enable, uncomment (at minimum) the HMACKeys and extraFields settings below.
[StorageRetrievalRequests] [StorageRetrievalRequests]
; Colon-separated list of item types where call slip is allowed ; Colon-separated list of item types where call slip is allowed
...@@ -195,7 +195,7 @@ disableAvailabilityCheckForRequestGroups = "15:19:21:32" ...@@ -195,7 +195,7 @@ 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 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.
[ILLRequests] [ILLRequests]
...@@ -204,7 +204,7 @@ disableAvailabilityCheckForRequestGroups = "15:19:21:32" ...@@ -204,7 +204,7 @@ disableAvailabilityCheckForRequestGroups = "15:19:21:32"
;HMACKeys = item_id:holdings_id ;HMACKeys = item_id:holdings_id
; extraFields - A colon-separated list used to display extra visible fields in the ; extraFields - A colon-separated list used to display extra visible fields in the
; request form. Supported values are "pickUpLibrary", ; request form. Supported values are "pickUpLibrary",
; "pickUpLibraryLocation", "requiredByDate" and "comments" (although comments are ; "pickUpLibraryLocation", "requiredByDate" and "comments" (although comments are
; not properly stored for UB requests at least in version 8.1) ; not properly stored for UB requests at least in version 8.1)
;extraFields = pickUpLibrary:pickUpLibraryLocation:requiredByDate ;extraFields = pickUpLibrary:pickUpLibraryLocation:requiredByDate
...@@ -220,7 +220,7 @@ disableAvailabilityCheckForRequestGroups = "15:19:21:32" ...@@ -220,7 +220,7 @@ disableAvailabilityCheckForRequestGroups = "15:19:21:32"
; This section lists the valid patron id prefixes for UB (ILL in VuFind) requests, ; This section lists the valid patron id prefixes for UB (ILL in VuFind) requests,
; and maps them to the their Voyager UB library IDs. Any patron of another library ; and maps them to the their Voyager UB library IDs. Any patron of another library
; with a prefix listed here may attempt a UB request in this system. ; with a prefix listed here may attempt a UB request in this system.
[ILLRequestSources] [ILLRequestSources]
;devdb = "1@DEVDB20011102161616" ;devdb = "1@DEVDB20011102161616"
;otherdb = "1@OTHERDB20011030191919" ;otherdb = "1@OTHERDB20011030191919"
...@@ -230,8 +230,8 @@ disableAvailabilityCheckForRequestGroups = "15:19:21:32" ...@@ -230,8 +230,8 @@ disableAvailabilityCheckForRequestGroups = "15:19:21:32"
; How purchase history is displayed. Supported values are: ; How purchase history is displayed. Supported values are:
; 1) false - Purchase history is not displayed at all. ; 1) false - Purchase history is not displayed at all.
; 2) true - Purchase history is displayed below other holdings (default) ; 2) true - Purchase history is displayed below other holdings (default)
; 3) "split" - Purchase history is split to each corresponding holdings record and ; 3) "split" - Purchase history is split to each corresponding holdings record and
; displayed by location ; displayed by location
;purchase_history = true ;purchase_history = true
; Fields to include in notes. Default is "852z". ; Fields to include in notes. Default is "852z".
;notes = "845a:852az" ;notes = "845a:852az"
...@@ -245,12 +245,22 @@ disableAvailabilityCheckForRequestGroups = "15:19:21:32" ...@@ -245,12 +245,22 @@ disableAvailabilityCheckForRequestGroups = "15:19:21:32"
; line to disable sorting. ; line to disable sorting.
;use_sort_groups = false ;use_sort_groups = false
; Status rankings can be used to either promote or demote certain item statuses when
; determining the status to be displayed. The lower the rank, the higher the
; priority. The sample values below make "Missing" most important and drop request
; statuses below others so that e.g. "On Hold" is displayed instead of
; "Hold Request".
[StatusRankings]
;Missing = 0
;Recall Request = 99
;Hold Request = 99
; Settings for controlling how loans are displayed ; Settings for controlling how loans are displayed
[Loans] [Loans]
; Uncomment this line to display the location where each loan was made ; Uncomment this line to display the location where each loan was made
;display_borrowing_location = true ;display_borrowing_location = true
; Uncomment the following lines to enable password (PIN) change ; Uncomment the following lines to enable password (PIN) change
;[changePassword] ;[changePassword]
; PIN change parameters. The default limits are taken from the interface documentation. ; PIN change parameters. The default limits are taken from the interface documentation.
;minLength = 5 ;minLength = 5
......
...@@ -250,6 +250,12 @@ class Voyager extends AbstractBase ...@@ -250,6 +250,12 @@ class Voyager extends AbstractBase
$this->statusRankings[$row['ITEM_STATUS_DESC']] $this->statusRankings[$row['ITEM_STATUS_DESC']]
= $row['ITEM_STATUS_TYPE']; = $row['ITEM_STATUS_TYPE'];
} }
if (!empty($this->config['StatusRankings'])) {
$this->statusRankings = array_merge(
$this->statusRankings, $this->config['StatusRankings']
);
}
} }
// We may occasionally get a status message not found in the array (i.e. the // We may occasionally get a status message not found in the array (i.e. the
......
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