// essential info for performing a transaction
var ebook_action = {};
[%- IF CGI.param("action").defined %]
-ebook_action.type = '[% CGI.param("action") %]';
+ebook_action.type = '[% CGI.param("action") | html %]';
[%- END -%]
[%- IF CGI.param("title").defined %]
-ebook_action.title_id = '[% CGI.param("title") %]';
+ebook_action.title_id = '[% CGI.param("title") | html %]';
[%- END -%]
[%- IF CGI.param("vendor").defined %]
-ebook_action.vendor = '[% CGI.param("vendor") %]';
+ebook_action.vendor = '[% CGI.param("vendor") | html %]';
[%- END -%]
[% IF ctx.user %]
# parts/searchbar.tt2, and results.tt2.
show_detail_view = 0;
IF CGI.param("detail_record_view").defined;
- show_detail_view = CGI.param("detail_record_view");
+ show_detail_view = CGI.param("detail_record_view") | html;
ELSIF show_more_details.default == "true" OR
show_more_details.default == "hide";
show_detail_view = 1;
[% l('Advanced Hold Options') %]</a>
[% END %]
[% IF CGI.param('hold_type') == 'M' AND CGI.param('bre_id') %]
- <input type="hidden" name="bre_id" value="[% CGI.param('bre_id') %]" />
+ <input type="hidden" name="bre_id" value="[% CGI.param('bre_id') | html %]" />
<a id='basic_hold_link'
href="[% mkurl('', {hold_target => CGI.param('bre_id'), hold_type => 'T'}) %]">
[% l('Basic Hold Options') %]</a>
[% END %]
<span>
[% IF any_failures OR ctx.general_hold_error %]
- <a href="[% CGI.param('redirect_to') || CGI.referer | html %]">[% l('Cancel') %]</a>
+ <a href="[% CGI.param('redirect_to') | html || CGI.referer | html %]">[% l('Cancel') %]</a>
[% ELSE %]
<div class='hold_success_links'>
- <span><a href="[% CGI.param('redirect_to') || CGI.referer | html %]">[% l('Continue') %]</a></span>
+ <span><a href="[% CGI.param('redirect_to') | html || CGI.referer | html %]">[% l('Continue') %]</a></span>
[% IF ctx.is_staff %]
[% IF CGI.param('hold_type') == 'C';
hold_type_label = l('copy');
[%- END; # IF locations -%]
[%- IF pubdate_filters.grep('^' _ filter.name _ '$').size;
- date1 = CGI.param('date1');
- date2 = CGI.param('date2');
+ date1 = CGI.param('date1') | html;
+ date2 = CGI.param('date2') | html;
-%]
<div class="adv_filter_results_group_wrapper">
<div class="adv_filter_results_group">