Lines 15-20
Link Here
|
15 |
|
15 |
|
16 |
<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> |
16 |
<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> |
17 |
|
17 |
|
|
|
18 |
[% IF ( delete ) %] |
19 |
<div class="yui-g"> |
20 |
<div id="circ_needsconfirmation" class="dialog alert"> |
21 |
<h3>Are you sure delete <b> [% serialnumber %] </b> selected serials</h3> |
22 |
<form action="/cgi-bin/koha/serials/serials-collection.pl/#"> |
23 |
<h5>Delete associated items <input type="radio" name="delitems" value="Yes">Yes |
24 |
<input type="radio" name="delitems" value="No" checked>No</h5> |
25 |
<h5>Number of items available <b>: [% countitems %] </b> </h5> |
26 |
<input type="hidden" name="subscriptionid" value="[% subscriptionid %]" /> |
27 |
<input type="hidden" name="serialsid" value="[% serialsid %]" /> |
28 |
<input type="hidden" name="confdelete" value="1" /> |
29 |
<input type="submit" class="approve" value="Yes, delete"/> |
30 |
</form> |
31 |
<form action=""/cgi-bin/koha/serials/serials-collection.pl/#"> |
32 |
<input type="hidden" name="subscriptionid" value="[% subscriptionid %]" /> |
33 |
<input type="submit" class="deny" value="No, don't delete"/> |
34 |
</form> |
35 |
</div> |
36 |
</div> |
37 |
[% END %] |
18 |
<div id="doc3" class="yui-t2"> |
38 |
<div id="doc3" class="yui-t2"> |
19 |
|
39 |
|
20 |
<div id="bd"> |
40 |
<div id="bd"> |
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> |
140 |
<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 %] |
141 |
[% END %] |
122 |
[% END %] |
142 |
[% END %] |
|
|
143 |
<input type="button" value="Delete selected issues" onclick="javascript:deleteIssues([% subscriptionidlist %])"/> |
123 |
</p> |
144 |
</p> |
124 |
[% END %] |
145 |
[% END %] |
125 |
<span class="checkall"> |
146 |
<span class="checkall"> |
Lines 161-172
Link Here
|
161 |
disabled |
182 |
disabled |
162 |
[% ELSE %] |
183 |
[% ELSE %] |
163 |
[% IF ( serial.subscriptionexpired ) %] |
184 |
[% IF ( serial.subscriptionexpired ) %] |
164 |
<input type="checkbox" name="serialid" value="[% serial.serialid %]" disabled="disabled" /> |
185 |
<input type="checkbox" name="serialid" value="[% serial.serialid %]" disabled="disabled" /> |
165 |
[% ELSE %] |
186 |
[% ELSE %] |
166 |
[% IF ( serial.checked ) %] |
187 |
[% IF ( serial.checked ) %] |
167 |
<input type="checkbox" class="checkboxed" name="serialid" checked="checked" value="[% serial.serialid %]" /> |
188 |
[% IF ( delete ) %] |
|
|
189 |
<input type="checkbox" class="checkboxed" name="serialid" value="[% serial.serialid %]" [% IF ( delete ) %] readonly [% END %] [% IF serialsid.grep("${serial.serialid}").size %] checked [% END %] /> |
190 |
[% ELSE %] |
191 |
<input type="checkbox" class="checkboxed" name="serialid" checked="checked" value="[% serial.serialid %]" /> |
192 |
[% END %] |
168 |
[% ELSE %] |
193 |
[% ELSE %] |
169 |
<input type="checkbox" class="checkboxed" name="serialid" value="[% serial.serialid %]" /> |
194 |
[% IF ( delete ) %] |
|
|
195 |
<input type="checkbox" class="checkboxed" name="serialid" value="[% serial.serialid %]" [% IF ( delete ) %] readonly [% END %] [% IF serialsid.grep("${serial.serialid}").size %] checked [% END %] /> |
196 |
[% ELSE %] |
197 |
<input type="checkbox" class="checkboxed" name="serialid" value="[% serial.serialid %]" /> |
198 |
[% END %] |
170 |
[% END %] |
199 |
[% END %] |
171 |
[% END %] |
200 |
[% END %] |
172 |
[% END %] |
201 |
[% END %] |
Lines 278-283
Link Here
|
278 |
[% Asset.js("lib/jquery/plugins/jquery.checkboxes.min.js") %] |
307 |
[% Asset.js("lib/jquery/plugins/jquery.checkboxes.min.js") %] |
279 |
|
308 |
|
280 |
<script type="text/javascript"> |
309 |
<script type="text/javascript"> |
|
|
310 |
function generateReceive(subscriptionid) { |
311 |
if(nbissues=prompt(_("How many issues do you want to receive ?"))){ |
312 |
document.location = 'serials-collection.pl?op=gennext&subscriptionid='+subscriptionid+'&nbissues='+nbissues; |
313 |
} |
314 |
} |
315 |
|
316 |
function deleteIssues(subscriptionid) { |
317 |
var serialnumber=0; |
318 |
var serials=""; |
319 |
var serialids = document.edition.serialid; |
320 |
for(i=0;i<serialids.length;i++){ |
321 |
if (serialids[i].checked==true){ |
322 |
if (serials.length==0){ |
323 |
serials+=serialids[i].value; |
324 |
}else{ |
325 |
serials+="!"+serialids[i].value; |
326 |
} |
327 |
serialnumber ++; |
328 |
} |
329 |
} |
330 |
if(serialnumber==0){ |
331 |
alert("No serials selected"); |
332 |
}else{ |
333 |
document.location = 'serials-collection.pl?subscriptionid='+subscriptionid+'&op=delete&serialsid='+serials+'&serialnumber='+serialnumber; |
334 |
} |
335 |
} |
336 |
|
337 |
function addsubscriptionid() { |
338 |
var tab=new Array(); |
339 |
var serialids = document.edition.serialid; |
340 |
for (i=0; i<serialids.length; i++){ |
341 |
if (serialids[i].checked == true){ |
342 |
var found=false; |
343 |
for (var val in tab){ |
344 |
if (tab[val] == document.getElementsByName("subs")[i].getAttribute('val')){found = true;} |
345 |
} |
346 |
if (found == false){ |
347 |
tab=tab.concat((document.getElementsByName("subs")[i].getAttribute('val'))); |
348 |
} |
349 |
} |
350 |
} |
351 |
var string=""; |
352 |
for (var val in tab){ |
353 |
string = string + tab[val] + ","; |
354 |
} |
355 |
string=string.substring(0,string.length -1); |
356 |
document.edition.subscriptionid.value=string; |
357 |
} |
281 |
|
358 |
|
282 |
function print_slip(subscriptionid,issue){ |
359 |
function print_slip(subscriptionid,issue){ |
283 |
var myurl = 'routing-preview.pl?ok=1&subscriptionid='+subscriptionid+'&issue='+issue; |
360 |
var myurl = 'routing-preview.pl?ok=1&subscriptionid='+subscriptionid+'&issue='+issue; |