-[% INCLUDE 'doc-head-open.inc' %][% IF ( LibraryNameTitle ) %][% LibraryNameTitle %][% ELSE %]Koha Online[% END %] Catalog › Download list[% INCLUDE 'doc-head-close.inc' %]
+[% USE Koha %]
+[% INCLUDE 'doc-head-open.inc' %][% IF ( LibraryNameTitle ) %][% LibraryNameTitle %][% ELSE %]Koha online[% END %] catalog › Download list[% INCLUDE 'doc-head-close.inc' %]
<script type="text/javascript">//<![CDATA[
$(document).ready(function(){
- $(".close").html("Close this window");
+ $(".close").html(_("Close this window"));
});
//]]>
</script>
</head>
-<body id="opac-downloadlist" style="padding:1em;">
-<div id="userdownloadshelf" class="container">[% 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 %]
+<body id="opac-downloadlist" class="popup">
+<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="ris">RIS (Zotero, EndNote, others)</option>
+ <option value="bibtex">BibTeX</option>
+ <option value="iso2709">MARC</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 %]" />
- <input type="submit" name="save" value="Go" /></fieldset>
- </form>
+ </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>
+ <p><a class="button close" href="/cgi-bin/koha/opac-shelves.pl">Back to lists</a></p>
-[% END %]</div>
+ [% 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>