From 6db2f588280e5181b274cb914050f26f5f265348 Mon Sep 17 00:00:00 2001
From: Bill Erickson
Date: Wed, 17 Aug 2011 15:45:44 -0400
Subject: [PATCH] Tpac: more html output scrubbing
Signed-off-by: Bill Erickson
---
.../default/opac/parts/result/lowhits.tt2 | 2 +-
.../templates/default/opac/parts/result/table.tt2 | 40 +++++++++++-----------
2 files changed, 21 insertions(+), 21 deletions(-)
diff --git a/Open-ILS/src/templates/default/opac/parts/result/lowhits.tt2 b/Open-ILS/src/templates/default/opac/parts/result/lowhits.tt2
index 78679fc7e1..4d29419403 100644
--- a/Open-ILS/src/templates/default/opac/parts/result/lowhits.tt2
+++ b/Open-ILS/src/templates/default/opac/parts/result/lowhits.tt2
@@ -6,7 +6,7 @@
[% CGI.param('query') | html %]
[% END %]
- Did you mean
+ [% l('Did you mean') %]
?
diff --git a/Open-ILS/src/templates/default/opac/parts/result/table.tt2 b/Open-ILS/src/templates/default/opac/parts/result/table.tt2
index 07fe359f10..a22308d7cc 100644
--- a/Open-ILS/src/templates/default/opac/parts/result/table.tt2
+++ b/Open-ILS/src/templates/default/opac/parts/result/table.tt2
@@ -45,16 +45,16 @@
[% ident = attrs.isbn_clean || attrs.upc; IF ident; %]
+ src='[% ctx.media_prefix %]/opac/extras/ac/jacket/small/[% ident | uri %]' />
[% END %]
@@ -63,9 +63,9 @@
href="[%-
authorquery = attrs.author | replace('[,\.:;]', '');
mkurl(ctx.opac_root _ '/results', {qtype => 'author', query => authorquery})
- -%]">[% attrs.author | html_entity %]
+ -%]">[% attrs.author | html %]
- [% attrs.pubdate %]
+ [% attrs.pubdate | html %]
@@ -74,7 +74,7 @@
[% l('Call number:') %]
|
- [% args.holdings.0.label %] |
+ [% args.holdings.0.label | html %] |
[% END %]
@@ -86,7 +86,7 @@
[% l('Publisher:') %]
|
- [% attrs.publisher; %] |
+ [% attrs.publisher | html %] |
[% END %]
[% IF attrs.isbns.size > 0 %]
@@ -94,7 +94,7 @@
[% l('ISBN:') %]
|
- [% attrs.isbns.0 %] |
+ [% attrs.isbns.0 | html %] |
[% END %]
[% IF openurl.enabled == 'true';
@@ -105,9 +105,9 @@
- [% res.public_name %]
+ [% res.public_name | html %]
|
- [% res.target_coverage %] |
+ [% res.target_coverage | html %] |
[% END %]
[% END %]
@@ -118,7 +118,7 @@
[% l('Edition:') %]
|
- [% attrs.edition %] |
+ [% attrs.edition | html %] |
[% END %]
[% IF attrs.phys_desc %]
@@ -127,7 +127,7 @@
[% l('Phys. Desc.:') %]
- [% args.phys_desc %]
+ [% args.phys_desc | html %]
|
[% END %]
@@ -136,7 +136,7 @@
[% l('Electronic resource') %]
|
- [% uri.link %][% ' - ' _ uri.note IF uri.note %] |
+ [% uri.link | html %][% ' - ' _ uri.note | html IF uri.note %] |
[% END %]
[% IF args.holdings.size > 0 %]
@@ -152,10 +152,10 @@
[% FOR copy IN args.holdings %]
- [% copy.library %] |
- [% copy.location %] |
- [% copy.label %] |
- [% copy.status %] |
+ [% copy.library | html %] |
+ [% copy.location | html %] |
+ [% copy.label | html %] |
+ [% copy.status | html %] |
[% END %]
@@ -188,7 +188,7 @@
[% IF attrs.format_icon %]
-
+
[% END %]
@@ -228,13 +228,13 @@
|
|
-
+
|
|
-
+
|
|
--
2.11.0
|