Lines 32-37
Link Here
|
32 |
[% IF ( callnumber ) %]callnumber: [% callnumber | html %][% END %]</h1> |
32 |
[% IF ( callnumber ) %]callnumber: [% callnumber | html %][% END %]</h1> |
33 |
[% END %] |
33 |
[% END %] |
34 |
|
34 |
|
|
|
35 |
[% IF ( delete ) %] |
36 |
<div class="dialog alert"> |
37 |
<h3>You are about to delete [% serialnumber %] serial(s). Do you want to continue?</h3> |
38 |
<form action="/cgi-bin/koha/serials/serials-collection.pl/#"> |
39 |
[% IF countitems > 0 %] |
40 |
<h5>Number of items available: [% countitems %]</h5> |
41 |
<p> |
42 |
<label>Delete associated items? <input type="checkbox" name="delitems" value="Yes" />Yes</label> |
43 |
</p> |
44 |
[% END %] |
45 |
<input type="hidden" name="op" value="delete_confirmed" /> |
46 |
<input type="hidden" name="subscriptionid" value="[% subscriptionid %]" /> |
47 |
[% FOREACH serialid IN serialsid %] |
48 |
<input type="hidden" name="serialid" value="[% serialid %]" /> |
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 %]" /> |
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 |
|
35 |
[% IF ( subscriptions ) %] |
59 |
[% IF ( subscriptions ) %] |
36 |
<table> |
60 |
<table> |
37 |
[% IF ( subscriptions.size == 1 ) %] |
61 |
[% IF ( subscriptions.size == 1 ) %] |
Lines 121-126
Link Here
|
121 |
<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> |
122 |
[% END %] |
146 |
[% END %] |
123 |
[% END %] |
147 |
[% END %] |
|
|
148 |
<input type="button" value="Delete selected issues" class="delete-issues btn btn-default btn-sm" data-subscriptionids="[% subscriptionidlist %]" /> |
124 |
</p> |
149 |
</p> |
125 |
[% END %] |
150 |
[% END %] |
126 |
<span class="checkall"> |
151 |
<span class="checkall"> |
Lines 164-171
Link Here
|
164 |
[% IF ( serial.subscriptionexpired ) %] |
189 |
[% IF ( serial.subscriptionexpired ) %] |
165 |
<input type="checkbox" name="serialid" value="[% serial.serialid | html %]" disabled="disabled" /> |
190 |
<input type="checkbox" name="serialid" value="[% serial.serialid | html %]" disabled="disabled" /> |
166 |
[% ELSE %] |
191 |
[% ELSE %] |
167 |
[% IF ( serial.checked ) %] |
192 |
[% IF ( delete ) %] |
168 |
<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 %] |
169 |
[% ELSE %] |
198 |
[% ELSE %] |
170 |
<input type="checkbox" class="checkboxed" name="serialid" value="[% serial.serialid | html %]" /> |
199 |
<input type="checkbox" class="checkboxed" name="serialid" value="[% serial.serialid | html %]" /> |
171 |
[% END %] |
200 |
[% END %] |
Lines 280-285
Link Here
|
280 |
|
309 |
|
281 |
<script type="text/javascript"> |
310 |
<script type="text/javascript"> |
282 |
|
311 |
|
|
|
312 |
function deleteIssues(subscriptionid) { |
313 |
var serialschecked = $("form[name='edition'] input[name='serialid']:checked"); |
314 |
if (serialschecked.length > 0) { |
315 |
var location = 'serials-collection.pl?subscriptionid='+subscriptionid+'&op=delete_confirm'; |
316 |
for (i=0; i < serialschecked.length; i++) { |
317 |
location += '&serialid=' + serialschecked[i].value; |
318 |
} |
319 |
document.location = location; |
320 |
} else { |
321 |
alert("No serials selected"); |
322 |
} |
323 |
} |
324 |
|
283 |
function print_slip(subscriptionid,issue){ |
325 |
function print_slip(subscriptionid,issue){ |
284 |
var myurl = 'routing-preview.pl?ok=1&subscriptionid='+subscriptionid+'&issue='+issue; |
326 |
var myurl = 'routing-preview.pl?ok=1&subscriptionid='+subscriptionid+'&issue='+issue; |
285 |
window.open(myurl,'PrintSlip','width=500,height=500,toolbar=no,scrollbars=yes'); |
327 |
window.open(myurl,'PrintSlip','width=500,height=500,toolbar=no,scrollbars=yes'); |
Lines 330-335
Link Here
|
330 |
} |
372 |
} |
331 |
return 1; |
373 |
return 1; |
332 |
}); |
374 |
}); |
|
|
375 |
|
376 |
$(".delete-issues").on("click", function(e){ |
377 |
e.preventDefault(); |
378 |
deleteIssues("[% subscriptionidlist %]"); |
379 |
}); |
333 |
}); |
380 |
}); |
334 |
|
381 |
|
335 |
</script> |
382 |
</script> |