2 [% USE AdditionalContents %]
3 [% SET OpacNav = AdditionalContents.get( location => "OpacNav", lang => lang, library => logged_in_user.branchcode || default_branch, blocktitle => 0 ) %]
4 [% SET OpacNavBottom = AdditionalContents.get( location => "OpacNavBottom", lang => lang, library => logged_in_user.branchcode || default_branch, blocktitle => 0 ) %]
6 [% INCLUDE 'doc-head-open.inc' %]
7 <title>Download list [% shelf.shelfname | html %] › [% IF ( LibraryNameTitle ) %][% LibraryNameTitle | html %][% ELSE %]Koha online[% END %] catalog</title>[% INCLUDE 'doc-head-close.inc' %]
8 [% BLOCK cssinclude %][% END %]
10 [% INCLUDE 'bodytag.inc' bodyid='opac-downloadlist' %]
11 [% INCLUDE 'masthead.inc' %]
13 <nav id="breadcrumbs" aria-label="Breadcrumb" class="breadcrumbs">
14 <ol class="breadcrumb">
15 <li class="breadcrumb-item">
16 <a href="/cgi-bin/koha/opac-main.pl">Home</a>
18 [% IF ( logged_in_user ) %]
19 <li class="breadcrumb-item"><a href="/cgi-bin/koha/opac-user.pl">[% INCLUDE 'patron-title.inc' patron = logged_in_user %]</a></li>
21 <li class="breadcrumb-item">
23 <a href="/cgi-bin/koha/opac-shelves.pl?op=list&public=1">Public lists</a>
25 <a href="/cgi-bin/koha/opac-shelves.pl?op=list&public=0">Your lists</a>
28 <li class="breadcrumb-item active">
29 <a href="#" aria-current="page">Download list <em>[% shelf.shelfname | html %]</em></a>
32 </nav> <!-- /#breadcrumbs -->
34 <div class="container-fluid">
36 [% IF ( OpacNav||loggedinusername ) %]
37 <div class="col-lg-2">
39 [% INCLUDE 'navigation.inc' IsPatronPage=1 %]
44 [% IF ( OpacNav||loggedinusername ) %]
45 <div class="col-10 order-first order-md-first order-lg-2">
47 <div class="col order-first order-md-first order-lg-2">
49 [% END # / IF fullpage %]
51 <div id="userdownloadshelf" class="maincontent">
53 [% UNLESS ( invalidlist ) %]
55 <h1>Download list <em>[% shelf.shelfname | html %]</em></h1>
57 <div class="alert alert-info">
58 <p>Your download should begin automatically.</p>
61 <form method="post" action="/cgi-bin/koha/opac-downloadshelf.pl">
63 <select name="format" id="dlformat" required="required">
64 <legend>Choose format</legend>
65 <option value="">-- Choose format --</option>
66 <option value="ris">RIS (Zotero, EndNote, others)</option>
67 <option value="bibtex">BibTeX</option>
68 <option value="isbd">ISBD</option>
69 <option value="iso2709">MARC</option>
70 [% FOREACH csv_profile IN csv_profiles %]
71 <option value="[% csv_profile.export_format_id | html %]">CSV - [% csv_profile.profile | html %]</option>
74 <span class="required">Required</span>
77 <fieldset class="action">
78 <legend class="sr-only">Choose action</legend>
79 <input type="hidden" name="shelfnumber" value="[% shelf.shelfnumber | html %]" />
80 <input type="submit" name="save" class="btn btn-primary" value="Go" />
81 <a href="/cgi-bin/koha/opac-shelves.pl?op=view&shelfnumber=[% shelf.shelfnumber | uri %]" class="cancel close" data-dismiss="modal">Cancel</a>
86 $(document).ready(function(){
87 $("#userdownloadshelf form").on("submit",function(e){
88 if( $("#dlformat").val() == "" ){
90 alert(_("Please choose a download format"));
92 $("#modalWin").modal("hide");
98 [% END # / IF format %]
101 <h1>Download list unsuccessful</h1>
102 <div class="alert alert-warning">
103 <p>You do not have permission to download this list.</p>
106 [% END # / invalidlist %]
108 </div> <!-- / #userdownloadshelf -->
110 [% IF ( fullpage ) %]
111 </div> <!-- / .col-10 -->
112 </div> <!-- / .row -->
113 </div> <!-- / .container-fluid -->
114 </div> <!-- / .main -->
115 [% INCLUDE 'opac-bottom.inc' %]
116 [% BLOCK jsinclude %]
118 $(document).ready(function(){
119 $("#userdownloadshelf form").on("submit",function(e){
120 if( $("#dlformat").val() == "" ){
122 alert(_("Please choose a download format"));
128 [% END # / IF fullpage %]