From: pines Date: Sat, 30 Sep 2006 21:04:50 +0000 (+0000) Subject: show Age Protection in classic style hold pull list X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=2f1ec36a316d83bc2a5b3c0cf574a6f575ef9406;p=Evergreen.git show Age Protection in classic style hold pull list git-svn-id: svn://svn.open-ils.org/ILS/trunk@6300 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- diff --git a/Open-ILS/xul/staff_client/server/admin/hold_pull_list_classic.js b/Open-ILS/xul/staff_client/server/admin/hold_pull_list_classic.js index 47daabe737..e7407c1944 100644 --- a/Open-ILS/xul/staff_client/server/admin/hold_pull_list_classic.js +++ b/Open-ILS/xul/staff_client/server/admin/hold_pull_list_classic.js @@ -12,6 +12,12 @@ var numHolds = 0; var listOffset = 0; function pullListInit() { + netscape.security.PrivilegeManager.enablePrivilege("UniversalXPConnect"); + if (typeof JSAN == 'undefined') { throw( "The JSAN library object is missing."); } + JSAN.errorLevel = "die"; // none, warn, or die + JSAN.addRepository('/xul/server/'); + JSAN.use('OpenILS.data'); g.data = new OpenILS.data(); g.data.stash_retrieve(); + fetchUser(); $('pl_user').appendChild(text(USER.usrname())); $('pl_org').appendChild(text(findOrgUnit(USER.ws_ou()).name())); @@ -92,6 +98,12 @@ function pullListDrawCopy( tbody, row, hold, idx, copy ) { $n(row, 'barcode').appendChild(text(copy.barcode())); $n(row, 'copy_location').appendChild(text(copy.location().name())); $n(row, 'copy_number').appendChild(text(copy.copy_number())); + try { + if (copy.age_protect()) { + $n(row, 'age_protect').appendChild(text( (copy.age_protect() == null ? '' : ( typeof copy.age_protect() == 'object' ? copy.age_protect().name() : g.data.hash.crahp[ copy.age_protect() ].name() )) )); + unHideMe($n(row, 'age_protect_span')); + } + } catch(E) { alert(E); } var vreq = new Request(FETCH_VOLUME, copy.call_number()); vreq.callback( diff --git a/Open-ILS/xul/staff_client/server/admin/hold_pull_list_classic.xhtml b/Open-ILS/xul/staff_client/server/admin/hold_pull_list_classic.xhtml index ba433a805d..cd30256ab0 100644 --- a/Open-ILS/xul/staff_client/server/admin/hold_pull_list_classic.xhtml +++ b/Open-ILS/xul/staff_client/server/admin/hold_pull_list_classic.xhtml @@ -29,6 +29,8 @@ --> + + @@ -56,6 +58,7 @@ Copy: Location: Item ID: Item Type: Book Large Print Book Audiobook Video Recording Music Electronic Resource Patron ID: Requested: Hold Type: Copy HoldVolume HoldTitle HoldMetarecord Hold +Hold Protection: