Bug 6739: (follow-up) fix various issues
[koha_fer] / koha-tmpl / opac-tmpl / prog / en / modules / opac-downloadshelf.tt
1 [% USE Koha %]
2 [% INCLUDE 'doc-head-open.inc' %][% IF ( LibraryNameTitle ) %][% LibraryNameTitle %][% ELSE %]Koha online[% END %] catalog › Download list[% INCLUDE 'doc-head-close.inc' %]
3 <script type="text/javascript">//<![CDATA[
4         $(document).ready(function(){
5                 $(".close").html(_("Close this window"));
6         });
7 //]]>
8 </script>
9 </head>
10 <body id="opac-downloadlist" class="popup">
11 <div id="userdownloadshelf" class="container">
12 [% UNLESS ( invalidlist ) %]
13         [% IF ( format ) %]
14             <p>Your download should begin automatically.</p>
15         [% ELSE %]
16         <form method="post" action="/cgi-bin/koha/opac-downloadshelf.pl">
17         <fieldset class="rows">
18                 <ol><li><label for="format">Download list:</label>
19                 <select name="format" id="format">
20             <option value="">-- Choose format --</option>
21             <option value="ris">RIS (Zotero, EndNote, others)</option>
22             <option value="bibtex">BibTeX</option>
23             <option value="iso2709">MARC</option>
24                     [% FOREACH csv_profile IN csv_profiles %]
25                     <option value="[% csv_profile.export_format_id %]">CSV - [% csv_profile.profile %]</option>
26                     [% END %]
27
28                 </select></li></ol>
29         </fieldset>
30         <fieldset class="action">       <input type="hidden" name="shelfid" value="[% shelfid | html %]" />
31                 <input type="submit" name="save" value="Go" /></fieldset>
32             </form>
33
34             <p><a class="button close" href="/cgi-bin/koha/opac-shelves.pl">Back to lists</a></p>
35
36         [% END %]
37 [% ELSE %]
38         <div class="dialog alert">
39                 <p>You do not have permission to download this list.</p>
40         </div>
41         <p><a class="button close" href="/cgi-bin/koha/opac-shelves.pl">Back to lists</a></p>
42 [% END %]
43 </div>
44 </body>
45 </html>