Lines 1-12
Link Here
|
1 |
[% INCLUDE 'doc-head-open.inc' %][% IF ( LibraryNameTitle ) %][% LibraryNameTitle %][% ELSE %]Koha online[% END %] catalog › Download list[% INCLUDE 'doc-head-close.inc' %] |
1 |
[% USE Koha %] |
2 |
[% BLOCK cssinclude %][% END %] |
2 |
[% IF ( fullpage ) %] |
3 |
</head> |
3 |
[% INCLUDE 'doc-head-open.inc' %][% IF ( LibraryNameTitle ) %][% LibraryNameTitle %][% ELSE %]Koha online[% END %] catalog › Download list [% shelfname %][% INCLUDE 'doc-head-close.inc' %] |
4 |
<body id="opac-downloadlist" class="popup"> |
4 |
[% BLOCK cssinclude %][% END %] |
5 |
<div class="main"> |
5 |
</head> |
6 |
<div class="container-fluid"> |
6 |
<body id="opac-downloadlist"> |
7 |
<div class="row-fluid"> |
7 |
[% INCLUDE 'masthead.inc' %] |
8 |
<div class="span12"> |
8 |
<div class="main"> |
9 |
<div id="userdownloadshelf"> |
9 |
<ul class="breadcrumb"> |
|
|
10 |
<li><a href="/cgi-bin/koha/opac-main.pl">Home</a> <span class="divider">›</span></li> |
11 |
[% IF ( loggedinusername ) %] |
12 |
<li><a href="/cgi-bin/koha/opac-user.pl">[% FOREACH USER_INF IN USER_INFO %][% USER_INF.title %] [% USER_INF.firstname %] [% USER_INF.surname %][% END %]</a> <span class="divider">›</span></li> |
13 |
[% END %] |
14 |
<li> |
15 |
[% IF ( showprivateshelves ) %] |
16 |
<a href="/cgi-bin/koha/opac-shelves.pl">Your lists</a> |
17 |
[% ELSE %] |
18 |
<a href="/cgi-bin/koha/opac-shelves.pl?display=publicshelves">Public lists</a> |
19 |
[% END %] |
20 |
<span class="divider">›</span> |
21 |
</li> |
22 |
<li>Download list <i>[% shelfname %]</i></li> |
23 |
</ul> |
24 |
<div class="container-fluid"> |
25 |
<div class="row-fluid"> |
26 |
[% IF ( OpacNav||loggedinusername ) %] |
27 |
<div class="span2"> |
28 |
<div id="navigation"> |
29 |
[% INCLUDE 'navigation.inc' IsPatronPage=1 %] |
30 |
</div> |
31 |
</div> |
32 |
[% END %] |
33 |
|
34 |
[% IF ( OpacNav||loggedinusername ) %] |
35 |
<div class="span10"> |
36 |
[% ELSE %] |
37 |
<div class="span12"> |
38 |
[% END %] |
39 |
[% END # / IF fullpage %] |
40 |
|
41 |
<div id="userdownloadshelf" class="maincontent"> |
10 |
[% UNLESS ( invalidlist ) %] |
42 |
[% UNLESS ( invalidlist ) %] |
11 |
|
43 |
|
12 |
[% IF ( format ) %] |
44 |
[% IF ( format ) %] |
Lines 14-23
Link Here
|
14 |
<p>Your download should begin automatically.</p> |
46 |
<p>Your download should begin automatically.</p> |
15 |
</div> |
47 |
</div> |
16 |
[% ELSE %] |
48 |
[% ELSE %] |
17 |
<h1>Download list</h1> |
49 |
<h1>Download list <i>[% shelfname %]</i></h1> |
18 |
<form method="post" action="/cgi-bin/koha/opac-downloadshelf.pl"> |
50 |
<form method="post" action="/cgi-bin/koha/opac-downloadshelf.pl"> |
19 |
<fieldset> |
51 |
<fieldset> |
20 |
<select name="format" id="format"> |
52 |
<select name="format" id="dlformat" required="required"> |
21 |
<option value="">-- Choose format --</option> |
53 |
<option value="">-- Choose format --</option> |
22 |
<option value="ris">RIS (Zotero, EndNote, others)</option> |
54 |
<option value="ris">RIS (Zotero, EndNote, others)</option> |
23 |
<option value="bibtex">BibTeX</option> |
55 |
<option value="bibtex">BibTeX</option> |
Lines 26-40
Link Here
|
26 |
<option value="[% csv_profile.export_format_id %]">CSV - [% csv_profile.profile %]</option> |
58 |
<option value="[% csv_profile.export_format_id %]">CSV - [% csv_profile.profile %]</option> |
27 |
[% END %] |
59 |
[% END %] |
28 |
</select> |
60 |
</select> |
|
|
61 |
<span class="required">Required</span> |
29 |
</fieldset> |
62 |
</fieldset> |
30 |
|
63 |
|
31 |
<fieldset class="action"> |
64 |
<fieldset class="action"> |
32 |
<input type="hidden" name="shelfid" value="[% shelfid | html %]" /> |
65 |
<input type="hidden" name="shelfid" value="[% shelfid | html %]" /> |
33 |
<input type="submit" name="save" class="btn" value="Go" /> |
66 |
<input type="submit" name="save" class="btn" value="Go" /> |
34 |
<a href="/cgi-bin/koha/opac-shelves.pl?viewshelf=[% shelfid %]" class="cancel close">Cancel</a> |
67 |
<a href="/cgi-bin/koha/opac-shelves.pl?viewshelf=[% shelfid %]" class="cancel close" data-dismiss="modal">Cancel</a> |
35 |
</fieldset> |
68 |
</fieldset> |
36 |
</form> |
69 |
</form> |
37 |
|
70 |
[% IF ( modal ) %] |
|
|
71 |
<script type="text/javascript"> |
72 |
//<![CDATA[ |
73 |
$(document).ready(function(){ |
74 |
$("#userdownloadshelf form").on("submit",function(e){ |
75 |
if( $("#dlformat").val() == "" ){ |
76 |
e.preventDefault(); |
77 |
alert(_("Please choose a download format")); |
78 |
} else { |
79 |
$("#modalWin").modal("hide"); |
80 |
} |
81 |
}); |
82 |
}); |
83 |
//]]> |
84 |
</script> |
85 |
[% END %] |
38 |
[% END # / IF format %] |
86 |
[% END # / IF format %] |
39 |
|
87 |
|
40 |
[% ELSE %] |
88 |
[% ELSE %] |
Lines 46-54
Link Here
|
46 |
[% END # / invalidlist %] |
94 |
[% END # / invalidlist %] |
47 |
|
95 |
|
48 |
</div> <!-- / #userdownloadshelf --> |
96 |
</div> <!-- / #userdownloadshelf --> |
49 |
</div> <!-- / .span10 --> |
97 |
|
50 |
</div> <!-- / .row-fluid --> |
98 |
[% IF ( fullpage ) %] |
51 |
</div> <!-- / .container-fluid --> |
99 |
</div> <!-- / .span10 --> |
52 |
</div> <!-- / .main --> |
100 |
</div> <!-- / .row-fluid --> |
53 |
[% INCLUDE 'opac-bottom.inc' is_popup=1 %] |
101 |
</div> <!-- / .container-fluid --> |
54 |
[% BLOCK jsinclude %][% END %] |
102 |
</div> <!-- / .main --> |
|
|
103 |
[% INCLUDE 'opac-bottom.inc' %] |
104 |
[% BLOCK jsinclude %] |
105 |
<script type="text/javascript"> |
106 |
//<![CDATA[ |
107 |
$(document).ready(function(){ |
108 |
$("#userdownloadshelf form").on("submit",function(e){ |
109 |
if( $("#dlformat").val() == "" ){ |
110 |
e.preventDefault(); |
111 |
alert(_("Please choose a download format")); |
112 |
} |
113 |
}); |
114 |
}); |
115 |
//]]> |
116 |
</script> |
117 |
[% END %] |
118 |
[% END # / IF fullpage %] |