projects
/
contrib
/
Conifer.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
79a8b97
)
Hide fake barcode electronic resources in Laurentian locations
author
Dan Scott
<dscott@laurentian.ca>
Sun, 4 Jan 2015 21:11:37 +0000
(16:11 -0500)
committer
Dan Scott
<dscott@laurentian.ca>
Sun, 4 Jan 2015 21:12:47 +0000
(16:12 -0500)
Because we have asset.uri for a reason.
Signed-off-by: Dan Scott <dscott@laurentian.ca>
Open-ILS/src/templates/opac/parts/misc_util.tt2
patch
|
blob
|
history
diff --git
a/Open-ILS/src/templates/opac/parts/misc_util.tt2
b/Open-ILS/src/templates/opac/parts/misc_util.tt2
index
1d734b8
..
f0b3d12
100644
(file)
--- a/
Open-ILS/src/templates/opac/parts/misc_util.tt2
+++ b/
Open-ILS/src/templates/opac/parts/misc_util.tt2
@@
-502,6
+502,10
@@
loc = copy.findnodes('./*[local-name()="location"]');
NEXT IF loc.getAttribute('opac_visible') == 'false';
+ # Laurentian-specific hiding of electronic resources
+ NEXT IF loc.textContent == 'Internet';
+ NEXT IF loc.textContent == 'Electronic book';
+
circlib = copy.findnodes('./*[local-name()="circlib"]');
NEXT IF circlib.getAttribute('opac_visible') == 'false';