Lines 15-20
function generateReceive(subscriptionid) {
Link Here
|
15 |
document.location = 'serials-collection.pl?op=gennext&subscriptionid='+subscriptionid+'&nbissues='+nbissues; |
15 |
document.location = 'serials-collection.pl?op=gennext&subscriptionid='+subscriptionid+'&nbissues='+nbissues; |
16 |
} |
16 |
} |
17 |
} |
17 |
} |
|
|
18 |
|
19 |
function deleteIssues(subscriptionid){ |
20 |
var serialnumber=0; |
21 |
var serials=""; |
22 |
var serialids = document.edition.serialid; |
23 |
for(i=0;i<serialids.length;i++){ |
24 |
if (serialids[i].checked==true){ |
25 |
if (serials.length==0){ |
26 |
serials+=serialids[i].value; |
27 |
}else{ |
28 |
serials+="!"+serialids[i].value; |
29 |
} |
30 |
serialnumber ++; |
31 |
} |
32 |
} |
33 |
if(serialnumber==0){ |
34 |
alert("No serials selected"); |
35 |
}else{ |
36 |
document.location = 'serials-collection.pl?subscriptionid='+subscriptionid+ '&op=delete&serialsid='+serials+'&serialnumber='+serialnumber; |
37 |
} |
38 |
} |
39 |
|
18 |
function print_slip(subscriptionid,issue){ |
40 |
function print_slip(subscriptionid,issue){ |
19 |
var myurl = 'routing-preview.pl?ok=1&subscriptionid='+subscriptionid+'&issue='+issue; |
41 |
var myurl = 'routing-preview.pl?ok=1&subscriptionid='+subscriptionid+'&issue='+issue; |
20 |
window.open(myurl,'PrintSlip','width=500,height=500,toolbar=no,scrollbars=yes'); |
42 |
window.open(myurl,'PrintSlip','width=500,height=500,toolbar=no,scrollbars=yes'); |
Lines 84-89
$(document).ready(function() {
Link Here
|
84 |
|
106 |
|
85 |
<div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> › <a href="/cgi-bin/koha/serials/serials-home.pl">Serials</a> › Serial collection information for <i>[% bibliotitle %]</i></div> |
107 |
<div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> › <a href="/cgi-bin/koha/serials/serials-home.pl">Serials</a> › Serial collection information for <i>[% bibliotitle %]</i></div> |
86 |
|
108 |
|
|
|
109 |
[% IF ( delete ) %] |
110 |
<div class="yui-g"> |
111 |
<div id="circ_needsconfirmation" class="dialog alert"> |
112 |
<h3>Are you sure delete <b> [% serialnumber %] </b> selected serials</h3> |
113 |
<form action="/cgi-bin/koha/serials/serials-collection.pl/#"> |
114 |
<h5>Delete associated items <input type="radio" name="delitems" value="Yes">Yes |
115 |
<input type="radio" name="delitems" value="No" checked>No</h5> |
116 |
<h5>Number of items available <b>: [% countitems %] </b> </h5> |
117 |
<input type="hidden" name="subscriptionid" value="[% subscriptionid %]" /> |
118 |
<input type="hidden" name="serialsid" value="[% serialsid %]" /> |
119 |
<input type="hidden" name="confdelete" value="1" /> |
120 |
<input type="submit" class="approve" value="Yes, delete"/> |
121 |
</form> |
122 |
<form action=""/cgi-bin/koha/serials/serials-collection.pl/#"> |
123 |
<input type="hidden" name="subscriptionid" value="[% subscriptionid %]" /> |
124 |
<input type="submit" class="deny" value="No, don't delete"/> |
125 |
</form> |
126 |
</div> |
127 |
</div> |
128 |
[% END %] |
87 |
<div id="doc3" class="yui-t2"> |
129 |
<div id="doc3" class="yui-t2"> |
88 |
|
130 |
|
89 |
<div id="bd"> |
131 |
<div id="bd"> |
Lines 186-191
$(document).ready(function() {
Link Here
|
186 |
<input type="button" value="Generate next" onclick="javascript:generateNext([% subscriptionidlist %])" /> |
228 |
<input type="button" value="Generate next" onclick="javascript:generateNext([% subscriptionidlist %])" /> |
187 |
[% IF ( subscriptions.size == 1 and !serialsadditems ) %] <input type="button" value="Multi receiving" onclick="javascript:generateReceive([% subscriptionidlist %])" />[% END %] |
229 |
[% IF ( subscriptions.size == 1 and !serialsadditems ) %] <input type="button" value="Multi receiving" onclick="javascript:generateReceive([% subscriptionidlist %])" />[% END %] |
188 |
[% END %] |
230 |
[% END %] |
|
|
231 |
<input type="button" value="Delete selected issues" onclick="javascript:deleteIssues([% subscriptionidlist %])"/> |
189 |
</p> |
232 |
</p> |
190 |
[% END %] |
233 |
[% END %] |
191 |
<span class="checkall"> |
234 |
<span class="checkall"> |
Lines 227-238
$(document).ready(function() {
Link Here
|
227 |
disabled |
270 |
disabled |
228 |
[% ELSE %] |
271 |
[% ELSE %] |
229 |
[% IF ( serial.subscriptionexpired ) %] |
272 |
[% IF ( serial.subscriptionexpired ) %] |
230 |
<input type="checkbox" name="serialid" value="[% serial.serialid %]" disabled="disabled" /> |
273 |
<input type="checkbox" name="serialid" value="[% serial.serialid %]" disabled="disabled" /> |
231 |
[% ELSE %] |
274 |
[% ELSE %] |
232 |
[% IF ( serial.checked ) %] |
275 |
[% IF ( serial.checked ) %] |
233 |
<input type="checkbox" class="checkboxed" name="serialid" checked="checked" value="[% serial.serialid %]" /> |
276 |
[% IF ( delete ) %] |
|
|
277 |
<input type="checkbox" class="checkboxed" name="serialid" value="[% serial.serialid %]" [% IF ( delete ) %] readonly [% END %] [% IF serialsid.grep("${serial.serialid}").size %] checked [% END %] /> |
278 |
[% ELSE %] |
279 |
<input type="checkbox" class="checkboxed" name="serialid" checked="checked" value="[% serial.serialid %]" /> |
280 |
[% END %] |
234 |
[% ELSE %] |
281 |
[% ELSE %] |
235 |
<input type="checkbox" class="checkboxed" name="serialid" value="[% serial.serialid %]" /> |
282 |
[% IF ( delete ) %] |
|
|
283 |
<input type="checkbox" class="checkboxed" name="serialid" value="[% serial.serialid %]" [% IF ( delete ) %] readonly [% END %] [% IF serialsid.grep("${serial.serialid}").size %] checked [% END %] /> |
284 |
[% ELSE %] |
285 |
<input type="checkbox" class="checkboxed" name="serialid" value="[% serial.serialid %]" /> |
286 |
[% END %] |
236 |
[% END %] |
287 |
[% END %] |
237 |
[% END %] |
288 |
[% END %] |
238 |
[% END %] |
289 |
[% END %] |