Koha/koha-tmpl/opac-tmpl/prog/en/modules/opac-downloadshelf.tt
Chris Cormack 126d6247b2 Bug 6518 : Fixing XSS issues on opac
Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz>
2011-06-19 22:07:30 +12:00

44 lines
1.6 KiB
Text

[% INCLUDE 'doc-head-open.inc' %][% IF ( LibraryNameTitle ) %][% LibraryNameTitle %][% ELSE %]Koha Online[% END %] Catalog &rsaquo; Download list[% INCLUDE 'doc-head-close.inc' %]
<script type="text/javascript">//<![CDATA[
$(document).ready(function(){
$(".close").html("Close this window");
});
//]]>
</script>
</head>
<body id="opac-downloadlist" style="padding:1em;">
<div id="userdownloadshelf" class="container">
[% UNLESS ( invalidlist ) %]
[% IF ( format ) %]
<p>Your download should begin automatically.</p>
[% ELSE %]
<form method="post" action="/cgi-bin/koha/opac-downloadshelf.pl">
<fieldset class="rows">
<ol><li><label for="format">Download list:</label>
<select name="format" id="format">
<option value="">-- Choose Format --</option>
<option value="iso2709">iso2709</option>
<option value="ris">RIS</option>
<option value="bibtex">BibTex</option>
[% FOREACH csv_profile IN csv_profiles %]
<option value="[% csv_profile.export_format_id %]">CSV - [% csv_profile.profile %]</option>
[% END %]
</select></li></ol>
</fieldset>
<fieldset class="action"> <input type="hidden" name="shelfid" value="[% shelfid | html %]" />
<input type="submit" name="save" value="Go" /></fieldset>
</form>
<p><a class="button close" href="/cgi-bin/koha/opac-shelves.pl">Back to lists</a></p>
[% END %]
[% ELSE %]
<div class="dialog alert">
<p>You do not have permission to download this list.</p>
</div>
<p><a class="button close" href="/cgi-bin/koha/opac-shelves.pl">Back to lists</a></p>
[% END %]
</div>
</body>
</html>