[open-ils-commits] r1202 - conifer/branches/rel_1_6_1/web/opac/skin/uwin/xml/result (dbs)

svn at svn.open-ils.org svn at svn.open-ils.org
Tue Jan 18 16:44:30 EST 2011


Author: dbs
Date: 2011-01-18 16:44:24 -0500 (Tue, 18 Jan 2011)
New Revision: 1202

Modified:
   conifer/branches/rel_1_6_1/web/opac/skin/uwin/xml/result/result_table.xml
Log:
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.


Modified: conifer/branches/rel_1_6_1/web/opac/skin/uwin/xml/result/result_table.xml
===================================================================
--- conifer/branches/rel_1_6_1/web/opac/skin/uwin/xml/result/result_table.xml	2011-01-18 02:25:43 UTC (rev 1201)
+++ conifer/branches/rel_1_6_1/web/opac/skin/uwin/xml/result/result_table.xml	2011-01-18 21:44:24 UTC (rev 1202)
@@ -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) {



More information about the open-ils-commits mailing list