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