From 5209eefc81eac41bde0649285baa15c3b63ced8d Mon Sep 17 00:00:00 2001 From: dbs Date: Fri, 21 Jan 2011 20:20:42 +0000 Subject: [PATCH] Avoid hard-coded location IDs for displaying library / call number / copy location /copy status Also use marcxml-full to get the copy location opac visibility attribute, and remove the "hide_me" attribute to make the results visible by default. git-svn-id: svn://svn.open-ils.org/ILS/branches/rel_2_0@19249 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- Open-ILS/web/opac/skin/default/xml/result/result_table.xml | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/Open-ILS/web/opac/skin/default/xml/result/result_table.xml b/Open-ILS/web/opac/skin/default/xml/result/result_table.xml index 2b283f32fd..f3a10fb86e 100644 --- a/Open-ILS/web/opac/skin/default/xml/result/result_table.xml +++ b/Open-ILS/web/opac/skin/default/xml/result/result_table.xml @@ -136,16 +136,15 @@ - + - + = max_items) { return output.innerHTML; @@ -158,11 +157,11 @@ return; } var cp_entry = dojo.create('div'); - var loc_id; + var loc_visible; var vol_appended = false; dojo.query('location', cp).forEach(function (location) { - loc_id = parseInt(location.getAttribute('ident')); - if (loc_id != 8 && loc_id != 20 && loc_id != 185 && loc_id != 156) { + loc_visible = location.getAttribute('opac_visible'); + if (loc_visible == 't') { if (!vol_appended) { var cn = dojo.create('span', { style: "font-weight: bold;" }, cp_entry); var cn_txt = dojo.doc.createTextNode(vol.getAttribute('label')); @@ -174,7 +173,7 @@ loc.appendChild(loc_txt); } }); - if (loc_id == 8 || loc_id == 20 || loc_id == 185 || loc_id == 156) { + if (loc_visible != 't') { return; } dojo.query('circ_lib', cp).forEach(function (circ_lib) { -- 2.11.0