From ce29cd6774684c75899794ec039abf1e972e581f Mon Sep 17 00:00:00 2001 From: dbs Date: Tue, 18 Jan 2011 21:44:24 +0000 Subject: [PATCH] Hide opac-visible copies from the OPAC A bit of a hack for copy locations because we don't have an opac visibility attribute on copy locations in the returned XML. git-svn-id: svn://svn.open-ils.org/ILS-Contrib/conifer/branches/rel_1_6_1@1202 6d9bc8c9-1ec2-4278-b937-99fde70a366f --- web/opac/skin/uwin/xml/result/result_table.xml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/web/opac/skin/uwin/xml/result/result_table.xml b/web/opac/skin/uwin/xml/result/result_table.xml index b64003aeba..8fe1e1c4a7 100644 --- a/web/opac/skin/uwin/xml/result/result_table.xml +++ b/web/opac/skin/uwin/xml/result/result_table.xml @@ -180,11 +180,14 @@ if (cp.getAttribute('deleted') == 't') { return; } + if (cp.getAttribute('opac_visible') == 'f') { + return; + } var loc_id; var vol_appended = false; dojo.query('location', cp).forEach(function (location) { loc_id = parseInt(location.getAttribute('ident')); - if (loc_id != 8 && loc_id != 20) { + if (loc_id != 8 && loc_id != 20 && loc_id != 804) { if (!vol_appended) { dojo.create('span',{ className: 'live_location_cell', innerHTML: vol.getAttribute('label')}, @@ -199,7 +202,7 @@ output); } }); - if (loc_id == 8 || loc_id == 20) { + if (loc_id == 8 || loc_id == 20 || loc_id == 80) { return; } dojo.query('status', cp).forEach(function (status) { -- 2.11.0