Lines 158-165
var allcheckboxes = $(".checkboxed");
Link Here
|
158 |
$("input.radio").click(function(){ |
158 |
$("input.radio").click(function(){ |
159 |
radioCheckBox($(this)); |
159 |
radioCheckBox($(this)); |
160 |
}); |
160 |
}); |
161 |
$("#exportmenuc").empty(); |
|
|
162 |
initExportButton(); |
163 |
|
161 |
|
164 |
$("#newduedate").datetimepicker({ |
162 |
$("#newduedate").datetimepicker({ |
165 |
minDate: 1, // require that renewal date is after today |
163 |
minDate: 1, // require that renewal date is after today |
Lines 171-195
var allcheckboxes = $(".checkboxed");
Link Here
|
171 |
hour: 23, |
169 |
hour: 23, |
172 |
minute: 59 |
170 |
minute: 59 |
173 |
}); |
171 |
}); |
174 |
|
172 |
$("#export_submit").click(function(){ |
|
|
173 |
var export_format = $("#export_formats").val(); |
174 |
export_checkouts(export_format); |
175 |
return false; |
176 |
}) |
175 |
}); |
177 |
}); |
176 |
|
178 |
|
177 |
function initExportButton() { |
179 |
function export_checkouts(format) { |
178 |
var exportmenu = [ |
|
|
179 |
{ text: _("ISO2709 with items"), onclick: {fn: function(){export_submit("iso2709_995")}} }, |
180 |
{ text: _("ISO2709 without items"), onclick: {fn: function(){export_submit("iso2709")}} }, |
181 |
{ text: _("CSV"), onclick: {fn: function(){export_submit("csv")}} }, |
182 |
]; |
183 |
new YAHOO.widget.Button({ |
184 |
type: "menu", |
185 |
label: _("Export checkouts"), |
186 |
name: "exportmenubutton", |
187 |
menu: exportmenu, |
188 |
container: "exportmenuc" |
189 |
}); |
190 |
} |
191 |
|
192 |
function export_submit(format) { |
193 |
if ($("input:checkbox[name='biblionumbers'][checked]").length < 1){ |
180 |
if ($("input:checkbox[name='biblionumbers'][checked]").length < 1){ |
194 |
alert(_("You must select a checkout to export")); |
181 |
alert(_("You must select a checkout to export")); |
195 |
return; |
182 |
return; |
Lines 959-974
No patron matched <span class="ex">[% message %]</span>
Link Here
|
959 |
[% END %] |
946 |
[% END %] |
960 |
<input type="submit" name="renew_checked" value="Renew or Return checked items" /> |
947 |
<input type="submit" name="renew_checked" value="Renew or Return checked items" /> |
961 |
<input type="submit" id="renew_all" name="renew_all" value="Renew all" /> |
948 |
<input type="submit" id="renew_all" name="renew_all" value="Renew all" /> |
|
|
949 |
</fieldset> |
962 |
[% IF export_remove_fields OR export_with_csv_profile %] |
950 |
[% IF export_remove_fields OR export_with_csv_profile %] |
963 |
<br/><br/> |
951 |
<fieldset> |
964 |
Don't export fields : <input type="text" id="export_remove_fields" name="export_remove_fields" value="[% export_remove_fields %]" title="Use for iso2709 exports" /> |
952 |
<label for="export_formats"><b>Export checkouts using format:</b></label> |
965 |
<span id="exportmenuc">Export</span> |
953 |
<select name="export_formats" id="export_formats"> |
|
|
954 |
<option value="iso2709_995">ISO2709 with items</option> |
955 |
<option value="iso2709">ISO2709 without items</option> |
956 |
<option value="csv">CSV</option> |
957 |
</select> |
958 |
<label for="export_remove_fields">Don't export fields:</label> <input type="text" id="export_remove_fields" name="export_remove_fields" value="[% export_remove_fields %]" title="Use for iso2709 exports" /> |
966 |
<input type="hidden" name="op" value="export" /> |
959 |
<input type="hidden" name="op" value="export" /> |
967 |
<input type="hidden" id="export_format" name="format" value="iso2709" /> |
960 |
<input type="hidden" id="export_format" name="format" value="iso2709" /> |
968 |
<input type="hidden" id="dont_export_item" name="dont_export_item" value="0" /> |
961 |
<input type="hidden" id="dont_export_item" name="dont_export_item" value="0" /> |
969 |
<input type="hidden" id="record_type" name="record_type" value="bibs" /> |
962 |
<input type="hidden" id="record_type" name="record_type" value="bibs" /> |
|
|
963 |
<input type="button" id="export_submit" value="Export" /> |
964 |
</fieldset> |
970 |
[% END %] |
965 |
[% END %] |
971 |
</fieldset> |
|
|
972 |
[% END %] |
966 |
[% END %] |
973 |
</form> |
967 |
</form> |
974 |
[% ELSE %] |
968 |
[% ELSE %] |
975 |
- |
|
|