Lines 31-36
Link Here
|
31 |
[% IF ( callnumber ) %]callnumber: [% callnumber | html %][% END %]</h1> |
31 |
[% IF ( callnumber ) %]callnumber: [% callnumber | html %][% END %]</h1> |
32 |
[% END %] |
32 |
[% END %] |
33 |
|
33 |
|
|
|
34 |
[% IF ( delete ) %] |
35 |
<div class="dialog alert"> |
36 |
<h3>You are about to delete [% serialnumber | html %] serial(s). Do you want to continue?</h3> |
37 |
<form action="/cgi-bin/koha/serials/serials-collection.pl/#"> |
38 |
[% IF countitems > 0 %] |
39 |
<h5>Number of items available: [% countitems | html %]</h5> |
40 |
<p> |
41 |
<label>Delete associated items? <input type="checkbox" name="delitems" value="Yes" />Yes</label> |
42 |
</p> |
43 |
[% END %] |
44 |
<input type="hidden" name="op" value="delete_confirmed" /> |
45 |
<input type="hidden" name="biblionumber" value="[% biblionumber | html %]" /> |
46 |
<input type="hidden" name="subscriptionid" value="[% subscriptionid | html %]" /> |
47 |
[% FOREACH serialid IN serialsid %] |
48 |
<input type="hidden" name="serialid" value="[% serialid | html %]" /> |
49 |
[% END %] |
50 |
<button type="submit" class="approve"><i class="fa fa-fw fa-check"></i> Yes, delete</button> |
51 |
</form> |
52 |
<form action="/cgi-bin/koha/serials/serials-collection.pl/#"> |
53 |
<input type="hidden" name="subscriptionid" value="[% subscriptionid | html %]" /> |
54 |
<button type="submit" class="deny"><i class="fa fa-fw fa-remove"></i> No, do not delete</button> |
55 |
</form> |
56 |
</div> |
57 |
[% END %] |
58 |
|
34 |
[% IF ( subscriptions ) %] |
59 |
[% IF ( subscriptions ) %] |
35 |
<table> |
60 |
<table> |
36 |
[% IF ( subscriptions.size == 1 ) %] |
61 |
[% IF ( subscriptions.size == 1 ) %] |
Lines 120-125
Link Here
|
120 |
<div class="btn-group"><input type="button" value="Multi receiving" href="#multi_receiving" class="btn btn-default btn-sm" data-toggle="modal"></div> |
145 |
<div class="btn-group"><input type="button" value="Multi receiving" href="#multi_receiving" class="btn btn-default btn-sm" data-toggle="modal"></div> |
121 |
[% END %] |
146 |
[% END %] |
122 |
[% END %] |
147 |
[% END %] |
|
|
148 |
<input type="button" value="Delete selected issues" class="delete-issues btn btn-default btn-sm" data-subscriptionids="[% subscriptionidlist | html %]" /> |
123 |
</p> |
149 |
</p> |
124 |
[% END %] |
150 |
[% END %] |
125 |
<span class="checkall"> |
151 |
<span class="checkall"> |
Lines 163-170
Link Here
|
163 |
[% IF ( serial.subscriptionexpired ) %] |
189 |
[% IF ( serial.subscriptionexpired ) %] |
164 |
<input type="checkbox" name="serialid" value="[% serial.serialid | html %]" disabled="disabled" /> |
190 |
<input type="checkbox" name="serialid" value="[% serial.serialid | html %]" disabled="disabled" /> |
165 |
[% ELSE %] |
191 |
[% ELSE %] |
166 |
[% IF ( serial.checked ) %] |
192 |
[% IF ( delete ) %] |
167 |
<input type="checkbox" class="checkboxed" name="serialid" checked="checked" value="[% serial.serialid | html %]" /> |
193 |
[% IF serialsid.grep("${serial.serialid}").size %] |
|
|
194 |
<input type="checkbox" class="checkboxed" name="serialid" value="[% serial.serialid | html %]" disabled checked /> |
195 |
[% ELSE %] |
196 |
<input type="checkbox" class="checkboxed" name="serialid" value="[% serial.serialid | html %]" disabled /> |
197 |
[% END %] |
168 |
[% ELSE %] |
198 |
[% ELSE %] |
169 |
<input type="checkbox" class="checkboxed" name="serialid" value="[% serial.serialid | html %]" /> |
199 |
<input type="checkbox" class="checkboxed" name="serialid" value="[% serial.serialid | html %]" /> |
170 |
[% END %] |
200 |
[% END %] |
Lines 281-286
Link Here
|
281 |
|
311 |
|
282 |
<script> |
312 |
<script> |
283 |
|
313 |
|
|
|
314 |
function deleteIssues(subscriptionid) { |
315 |
var serialschecked = $("form[name='edition'] input[name='serialid']:checked"); |
316 |
if (serialschecked.length > 0) { |
317 |
var location = 'serials-collection.pl?subscriptionid='+subscriptionid+'&op=delete_confirm'; |
318 |
for (i=0; i < serialschecked.length; i++) { |
319 |
location += '&serialid=' + serialschecked[i].value; |
320 |
} |
321 |
document.location = location; |
322 |
} else { |
323 |
alert(_("No serials selected")); |
324 |
} |
325 |
} |
326 |
|
284 |
function print_slip(subscriptionid,issue){ |
327 |
function print_slip(subscriptionid,issue){ |
285 |
var myurl = 'routing-preview.pl?ok=1&subscriptionid='+subscriptionid+'&issue='+issue; |
328 |
var myurl = 'routing-preview.pl?ok=1&subscriptionid='+subscriptionid+'&issue='+issue; |
286 |
window.open(myurl,'PrintSlip','width=500,height=500,toolbar=no,scrollbars=yes'); |
329 |
window.open(myurl,'PrintSlip','width=500,height=500,toolbar=no,scrollbars=yes'); |
Lines 331-336
Link Here
|
331 |
} |
374 |
} |
332 |
return 1; |
375 |
return 1; |
333 |
}); |
376 |
}); |
|
|
377 |
|
378 |
$(".delete-issues").on("click", function(e){ |
379 |
e.preventDefault(); |
380 |
deleteIssues("[% subscriptionidlist | html %]"); |
381 |
}); |
334 |
}); |
382 |
}); |
335 |
|
383 |
|
336 |
</script> |
384 |
</script> |