|
Lines 88-94
Link Here
|
| 88 |
} |
88 |
} |
| 89 |
return GB_showCenter(_("Export patron cards"), "/cgi-bin/koha/patroncards/print.pl?" + getstr, 400, 800); |
89 |
return GB_showCenter(_("Export patron cards"), "/cgi-bin/koha/patroncards/print.pl?" + getstr, 400, 800); |
| 90 |
}; |
90 |
}; |
| 91 |
function selected_layouts(op) { |
91 |
|
|
|
92 |
function XportPatronlist() { |
| 93 |
if ( patron_list_id.value.length < 1 ) { |
| 94 |
alert(_("Please select a patron list.")); |
| 95 |
return; // no patron list selected |
| 96 |
} |
| 97 |
getstr = 'patronlist_id='+patron_list_id.value; |
| 98 |
return GB_showCenter(_("Export patron cards from list"), "/cgi-bin/koha/patroncards/print.pl?" + getstr, 700, 800); |
| 99 |
}; |
| 100 |
|
| 101 |
function selected_layout(op) { |
| 92 |
if (document.layouts.action.length) { |
102 |
if (document.layouts.action.length) { |
| 93 |
var selected = new Array(); |
103 |
var selected = new Array(); |
| 94 |
for (i=0;i<document.layouts.action.length;i++){ |
104 |
for (i=0;i<document.layouts.action.length;i++){ |
|
Lines 143-148
Link Here
|
| 143 |
Xport(); |
153 |
Xport(); |
| 144 |
return false; |
154 |
return false; |
| 145 |
}); |
155 |
}); |
|
|
156 |
$("#printlist").click(function(){ |
| 157 |
XportPatronlist(); |
| 158 |
return false; |
| 159 |
}); |
| 146 |
}); |
160 |
}); |
| 147 |
//]]> |
161 |
//]]> |
| 148 |
</script> |
162 |
</script> |
|
Lines 204-210
Link Here
|
| 204 |
<fieldset class="action"> |
218 |
<fieldset class="action"> |
| 205 |
[% IF ( print ) %]<input class="btn btn-sm" type="button" id="print" value="Export selected batches" />[% END %] |
219 |
[% IF ( print ) %]<input class="btn btn-sm" type="button" id="print" value="Export selected batches" />[% END %] |
| 206 |
</fieldset> |
220 |
</fieldset> |
|
|
221 |
[% IF patron_lists %] |
| 222 |
<fieldset class="rows"> |
| 223 |
<legend>Or use a patron list</legend> |
| 224 |
<ol> |
| 225 |
<li> |
| 226 |
<label for="patron_list_id">Patron list: </label> |
| 227 |
<select id="patron_list_id" name="patron_list_id"> |
| 228 |
<option value=""></option> |
| 229 |
[% FOREACH pl IN patron_lists %] |
| 230 |
<option value="[% pl.patron_list_id %]">[% pl.name %]</option> |
| 231 |
[% END %] |
| 232 |
</select> |
| 233 |
</li> |
| 234 |
</ol> |
| 235 |
</fieldset> |
| 236 |
<fieldset class="action"> |
| 237 |
<input type="button" id="printlist" value="Export from patron list" /> |
| 238 |
</fieldset> |
| 239 |
[% END %] |
| 207 |
</form> |
240 |
</form> |
|
|
241 |
|
| 208 |
[% ELSE %] |
242 |
[% ELSE %] |
| 209 |
<div class="dialog message"> |
243 |
<div class="dialog message"> |
| 210 |
<h4>There are no [% PROCESS translate_card_element element=card_element_title %] currently available.</h4> |
244 |
<h4>There are no [% PROCESS translate_card_element element=card_element_title %] currently available.</h4> |