Lines 64-69
Link Here
|
64 |
} |
64 |
} |
65 |
return GB_showCenter(_("Export patron cards"), "/cgi-bin/koha/patroncards/print.pl?" + getstr, 700, 800); |
65 |
return GB_showCenter(_("Export patron cards"), "/cgi-bin/koha/patroncards/print.pl?" + getstr, 700, 800); |
66 |
}; |
66 |
}; |
|
|
67 |
|
68 |
function XportPatronlist() { |
69 |
if ( patron_list_id.value.length < 1 ) { |
70 |
alert(_("Please select a patron list.")); |
71 |
return; // no patron list selected |
72 |
} |
73 |
getstr = 'patronlist_id='+patron_list_id.value; |
74 |
return GB_showCenter(_("Export patron cards from list"), "/cgi-bin/koha/patroncards/print.pl?" + getstr, 700, 800); |
75 |
}; |
76 |
|
67 |
function selected_layout(op) { |
77 |
function selected_layout(op) { |
68 |
var selected = new Array; |
78 |
var selected = new Array; |
69 |
if (document.layouts.action.length) { |
79 |
if (document.layouts.action.length) { |
Lines 102-107
Link Here
|
102 |
Xport(); |
112 |
Xport(); |
103 |
return false; |
113 |
return false; |
104 |
}); |
114 |
}); |
|
|
115 |
$("#printlist").click(function(){ |
116 |
XportPatronlist(); |
117 |
return false; |
118 |
}); |
105 |
}); |
119 |
}); |
106 |
//]]> |
120 |
//]]> |
107 |
</script> |
121 |
</script> |
Lines 153-161
Link Here
|
153 |
<fieldset class="action"> |
167 |
<fieldset class="action"> |
154 |
<input type="button" id="edit" value="Edit" /> |
168 |
<input type="button" id="edit" value="Edit" /> |
155 |
<input type="button" id="delete" value="Delete" /> |
169 |
<input type="button" id="delete" value="Delete" /> |
156 |
[% IF ( print ) %]<input type="button" id="print" value="Export" />[% END %] |
170 |
[% IF ( print ) %]<input type="button" id="print" value="Export from batch(es)" />[% END %] |
157 |
</fieldset> |
171 |
</fieldset> |
|
|
172 |
[% IF patron_lists %] |
173 |
<fieldset class="rows"> |
174 |
<legend>Or use a patron list</legend> |
175 |
<ol> |
176 |
<li> |
177 |
<label for="patron_list_id">Patron list: </label> |
178 |
<select id="patron_list_id" name="patron_list_id"> |
179 |
<option value=""></option> |
180 |
[% FOREACH pl IN patron_lists %] |
181 |
<option value="[% pl.patron_list_id %]">[% pl.name %]</option> |
182 |
[% END %] |
183 |
</select> |
184 |
</li> |
185 |
</ol> |
186 |
</fieldset> |
187 |
<fieldset class="action"> |
188 |
<input type="button" id="printlist" value="Export from patron list" /> |
189 |
</fieldset> |
190 |
[% END %] |
158 |
</form> |
191 |
</form> |
|
|
192 |
|
159 |
[% ELSE %] |
193 |
[% ELSE %] |
160 |
<div class="dialog message"> |
194 |
<div class="dialog message"> |
161 |
<h4>There are no [% PROCESS translate_card_element element=card_element_title %] currently available.</h4> |
195 |
<h4>There are no [% PROCESS translate_card_element element=card_element_title %] currently available.</h4> |