Lines 66-71
Link Here
|
66 |
} |
66 |
} |
67 |
return GB_showCenter(_("Export patron cards"), "/cgi-bin/koha/patroncards/print.pl?" + getstr, 700, 800); |
67 |
return GB_showCenter(_("Export patron cards"), "/cgi-bin/koha/patroncards/print.pl?" + getstr, 700, 800); |
68 |
}; |
68 |
}; |
|
|
69 |
|
70 |
function XportPatronlist() { |
71 |
if ( patron_list_id.value.length < 1 ) { |
72 |
alert(_("Please select a patron list.")); |
73 |
return; // no patron list selected |
74 |
} |
75 |
getstr = 'patronlist_id='+patron_list_id.value; |
76 |
return GB_showCenter(_("Export patron cards from list"), "/cgi-bin/koha/patroncards/print.pl?" + getstr, 700, 800); |
77 |
}; |
78 |
|
69 |
function selected_layout(op) { |
79 |
function selected_layout(op) { |
70 |
var selected = new Array; |
80 |
var selected = new Array; |
71 |
if (document.layouts.action.length) { |
81 |
if (document.layouts.action.length) { |
Lines 104-109
Link Here
|
104 |
Xport(); |
114 |
Xport(); |
105 |
return false; |
115 |
return false; |
106 |
}); |
116 |
}); |
|
|
117 |
$("#printlist").click(function(){ |
118 |
XportPatronlist(); |
119 |
return false; |
120 |
}); |
107 |
}); |
121 |
}); |
108 |
//]]> |
122 |
//]]> |
109 |
</script> |
123 |
</script> |
Lines 165-171
Link Here
|
165 |
<fieldset class="action"> |
179 |
<fieldset class="action"> |
166 |
[% IF ( print ) %]<input class="btn btn-sm" type="button" id="print" value="Export selected batches" />[% END %] |
180 |
[% IF ( print ) %]<input class="btn btn-sm" type="button" id="print" value="Export selected batches" />[% END %] |
167 |
</fieldset> |
181 |
</fieldset> |
|
|
182 |
[% IF patron_lists %] |
183 |
<fieldset class="rows"> |
184 |
<legend>Or use a patron list</legend> |
185 |
<ol> |
186 |
<li> |
187 |
<label for="patron_list_id">Patron list: </label> |
188 |
<select id="patron_list_id" name="patron_list_id"> |
189 |
<option value=""></option> |
190 |
[% FOREACH pl IN patron_lists %] |
191 |
<option value="[% pl.patron_list_id %]">[% pl.name %]</option> |
192 |
[% END %] |
193 |
</select> |
194 |
</li> |
195 |
</ol> |
196 |
</fieldset> |
197 |
<fieldset class="action"> |
198 |
<input type="button" id="printlist" value="Export from patron list" /> |
199 |
</fieldset> |
200 |
[% END %] |
168 |
</form> |
201 |
</form> |
|
|
202 |
|
169 |
[% ELSE %] |
203 |
[% ELSE %] |
170 |
<div class="dialog message"> |
204 |
<div class="dialog message"> |
171 |
<h4>There are no [% PROCESS translate_card_element element=card_element_title %] currently available.</h4> |
205 |
<h4>There are no [% PROCESS translate_card_element element=card_element_title %] currently available.</h4> |