From 585a939202602dd39e493bb012cc160acaba6d45 Mon Sep 17 00:00:00 2001 From: erickson Date: Thu, 26 Oct 2006 17:34:27 +0000 Subject: [PATCH] now all STATELIB items are holdable regardless of type git-svn-id: svn://svn.open-ils.org/ILS/trunk@6520 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- .../backend/circ/circ_permit_hold.js | 20 +++---------------- 1 file changed, 3 insertions(+), 17 deletions(-) diff --git a/Open-ILS/src/javascript/backend/circ/circ_permit_hold.js b/Open-ILS/src/javascript/backend/circ/circ_permit_hold.js index 8aa54bc23f..8d9cdc33d0 100644 --- a/Open-ILS/src/javascript/backend/circ/circ_permit_hold.js +++ b/Open-ILS/src/javascript/backend/circ/circ_permit_hold.js @@ -12,9 +12,8 @@ if( isTrue(copy.ref) ) if( !isTrue(copy.circulate) ) result.events.push('ITEM_NOT_HOLDABLE'); -/* projected medium - this needs to be expanded to check circ_modifiers as well -*/ +/* all STATELIB items are holdable regardless of type */ +if( isOrgDescendent('STATELIB', copy.circ_lib.id) ) return; var mod = (copy.circ_modifier) ? copy.circ_modifier.toLowerCase() : ""; @@ -24,21 +23,8 @@ if( mod == 'bestsellernh' ) result.events.push('ITEM_NOT_HOLDABLE'); var marcItemType = getMARCItemType(); - - -/* some STATELIB items can have holds placed on them from anywhere */ -if( isOrgDescendent('STATELIB', copy.circ_lib.id) ) { - if( mod == 'dvd-long' || - mod == 'video-long' || - mod == 'audiobook' || - mod == 'microform' ) { - log_info("STATELIB 'AV' item is holdable"); - return; - } -} - - var isAnc; + if( ( marcItemType == 'g' || marcItemType == 'i' || marcItemType == 'j' || -- 2.43.2