Lines 1-11
Link Here
|
1 |
[% USE AuthorisedValues %] |
1 |
[% USE AuthorisedValues %] |
|
|
2 |
[% USE To %] |
2 |
[% INCLUDE 'doc-head-open.inc' %] |
3 |
[% INCLUDE 'doc-head-open.inc' %] |
3 |
<title>Koha › Serials › Serial edition [% bibliotitle %]</title> |
4 |
<title>Koha › Serials › Serial edition [% bibliotitle %]</title> |
4 |
[% INCLUDE 'doc-head-close.inc' %] |
5 |
[% INCLUDE 'doc-head-close.inc' %] |
5 |
<script type="text/javascript" src="[% interface %]/[% theme %]/js/cataloging.js"></script> |
6 |
<script type="text/javascript" src="[% interface %]/[% theme %]/js/cataloging.js"></script> |
6 |
<script type="text/javascript" src="[% interface %]/[% theme %]/js/prevent_submit.js"></script> |
7 |
<script type="text/javascript" src="[% interface %]/[% theme %]/js/prevent_submit.js"></script> |
7 |
[% INCLUDE 'calendar.inc' %] |
8 |
[% INCLUDE 'calendar.inc' %] |
8 |
<script language="JavaScript" type="text/javascript"> |
9 |
<script type="text/javascript"> |
9 |
//<![CDATA[ |
10 |
//<![CDATA[ |
10 |
function generateReceive() { |
11 |
function generateReceive() { |
11 |
var subscriptionid = document.getElementsByName("subscriptionid")[0].value; |
12 |
var subscriptionid = document.getElementsByName("subscriptionid")[0].value; |
Lines 62-67
$(document).ready(function() {
Link Here
|
62 |
}); |
63 |
}); |
63 |
|
64 |
|
64 |
$(".datepicker").datepicker(); |
65 |
$(".datepicker").datepicker(); |
|
|
66 |
$(".serialsadditems_status").on("change",function(){ |
67 |
var serialdata = $(this).data("serialdata"); |
68 |
if ( this.value == 2 ){ |
69 |
unHideItems('items'+ serialdata.subscriptionid + serialdata.serialid,'label'+ serialdata.subscriptionid + serialdata.serialid, serialdata.serialid); |
70 |
changeDate(this, serialdata.arriveddate); |
71 |
} else if ( this.value == 7 ){ |
72 |
changeDate(this, serialdata.arriveddate); |
73 |
} else { |
74 |
HideItems('items'+ serialdata.subscriptionid + serialdata.serialid,'label' + serialdata.subscriptionid + serialdata.serialid); |
75 |
changeDate(this, serialdata.planneddate); |
76 |
} |
77 |
}); |
78 |
$(".noserialsadditems_status").on("change",function(){ |
79 |
var serialdata = $(this).data("serialdata"); |
80 |
if ( this.value == 2 || this.value == 7 ){ |
81 |
changeDate(this, serialdata.arriveddate); |
82 |
} else { |
83 |
changeDate(this, serialdata.planneddate); |
84 |
} |
85 |
}); |
86 |
$(".add_serial_item").on("click",function(e){ |
87 |
e.preventDefault(); |
88 |
var serialid = $(this).data("serialid"); |
89 |
var serialdata = $("#status" + serialid).data("serialdata"); |
90 |
unHideItems('items'+ serialdata.subscriptionid + serialdata.serialid,'label' + serialdata.subscriptionid + serialdata.serialid, serialdata.serialid); |
91 |
setStatus( serialdata.serialid ); |
92 |
}); |
93 |
$(".new_serial_item").on("click",function(e){ |
94 |
e.preventDefault(); |
95 |
var newserialloo = $(this).data("serialdata"); |
96 |
unHideItems('items'+ newserialloo.subscriptionid + newserialloo.serialid,'label' + newserialloo.subscriptionid + newserialloo.serialid, newserialloo.serialid); |
97 |
}); |
98 |
$(".hide_item_form").on("click",function(e){ |
99 |
e.preventDefault(); |
100 |
var serialid = $(this).data("serialid"); |
101 |
var serialdata = $("#status" + serialid).data("serialdata"); |
102 |
HideItems('items' + serialdata.subscriptionid + serialdata.serialid,'label' + serialdata.subscriptionid + serialdata.serialid); |
103 |
}); |
104 |
|
105 |
$(".clone_subfield").on("click",function(e){ |
106 |
e.preventDefault(); |
107 |
CloneItemSubfield( this.parentNode ); |
108 |
}); |
109 |
$(".multi_receiving").on("click",function(e){ |
110 |
e.preventDefault(); |
111 |
generateReceive(); |
112 |
}); |
113 |
$(".newserialitem_status").on("click",function(){ |
114 |
var newserialloo = $(this).data("serialdata"); |
115 |
if ( this.value == 2){ |
116 |
unHideItems('items' + newserialloo.subscriptionid + newserialloo.serialid,'label' + newserialloo.subscriptionid + newserialloo.serialid, newserialloo.serialid); |
117 |
changeDate(this, newserialloo.arriveddate); |
118 |
} else if ( this.value == 7 ){ |
119 |
changeDate(this, newserialloo.arriveddate); |
120 |
} else { |
121 |
HideItems('items' + newserialloo.subscriptionid + newserialloo.serialid, 'label' + newserialloo.subscriptionid + newserialloo.serialid); |
122 |
changeDate(this, newserialloo.planneddate); |
123 |
} |
124 |
}); |
65 |
}); |
125 |
}); |
66 |
//]]> |
126 |
//]]> |
67 |
</script> |
127 |
</script> |
Lines 137-149
$(document).ready(function() {
Link Here
|
137 |
<td> |
197 |
<td> |
138 |
[% IF ( serialslis.editdisable ) %] |
198 |
[% IF ( serialslis.editdisable ) %] |
139 |
<input type="hidden" name="status" id="status[% serialslis.serialid %]" value="[% serialslis.serstatus %]"> |
199 |
<input type="hidden" name="status" id="status[% serialslis.serialid %]" value="[% serialslis.serstatus %]"> |
140 |
<select name="status" size="1" disabled="disabled"> |
200 |
<select name="status" size="1" disabled="disabled"> |
141 |
[% ELSE %] |
201 |
[% ELSE %] |
142 |
[% IF ( serialslis.serialsadditems ) %] |
202 |
[% IF ( serialslis.serialsadditems ) %] |
143 |
<select name="status" size="1" id="status[% serialslis.serialid %]" onchange="if (this.value==2){unHideItems('items'+[% serialslis.subscriptionid %][% serialslis.serialid %],'label[% serialslis.subscriptionid %][% serialslis.serialid %]','[% serialslis.serialid %]'); changeDate(this, '[% serialslis.arriveddate %]')} else if (this.value==7){changeDate(this, '[% serialslis.arriveddate %]')} else { HideItems('items'+[% serialslis.subscriptionid %]+[% serialslis.serialid %],'label[% serialslis.subscriptionid %][% serialslis.serialid %]'); changeDate(this, '[% serialslis.planneddate %]')}" > |
203 |
<select name="status" data-serialdata="[% To.json(serialslis) | html %]" class="serialsadditems_status" id="status[% serialslis.serialid %]"> |
144 |
[% ELSE %] |
204 |
[% ELSE %] |
145 |
<select name="status" size="1" id="status[% serialslis.serialid %]" onchange="if (this.value==2 || this.value==7){changeDate(this, '[% serialslis.arriveddate %]')} else {changeDate(this, '[% serialslis.planneddate %]')}" > |
205 |
<select name="status" data-serialdata="[% To.json(serialslis) | html %]" class="noserialsadditems_status" id="status[% serialslis.serialid %]"> |
146 |
[% END %] |
206 |
[% END %] |
147 |
[% END %] |
207 |
[% END %] |
148 |
[% IF ( serialslis.status1 ) %] |
208 |
[% IF ( serialslis.status1 ) %] |
149 |
<option value="1" selected="selected">Expected</option> |
209 |
<option value="1" selected="selected">Expected</option> |
Lines 214-223
$(document).ready(function() {
Link Here
|
214 |
[% IF ( serialslis.serialsadditems ) %] |
274 |
[% IF ( serialslis.serialsadditems ) %] |
215 |
<tr> |
275 |
<tr> |
216 |
<td colspan="6"> |
276 |
<td colspan="6"> |
217 |
<a id="label[% serialslis.subscriptionid %][% serialslis.serialid %]" style="color: grey; font-size: 80%; cursor: pointer;" onclick="unHideItems('items[% serialslis.subscriptionid %][% serialslis.serialid %]','label[% serialslis.subscriptionid %][% serialslis.serialid %]', '[% serialslis.serialid %]');setStatus([% serialslis.serialid %]);"> |
277 |
<a id="label[% serialslis.subscriptionid %][% serialslis.serialid %]" class="add_serial_item" data-serialid="[% serialslis.serialid %]" href="#"><i class="fa fa-plus"></i> Add item</a> |
218 |
Click to add item</a> |
|
|
219 |
<fieldset class="rows" style="display:none;" id="items[% serialslis.subscriptionid %][% serialslis.serialid %]"> |
278 |
<fieldset class="rows" style="display:none;" id="items[% serialslis.subscriptionid %][% serialslis.serialid %]"> |
220 |
<legend><a style="cursor: pointer;" onclick="HideItems('items[% serialslis.subscriptionid %][% serialslis.serialid %]','label[% serialslis.subscriptionid %][% serialslis.serialid %]')"> |
279 |
<legend><a href="#" data-serialid="[% serialslis.serialid %]" class="hide_item_form"> |
221 |
Item</a> |
280 |
Item</a> |
222 |
</legend> |
281 |
</legend> |
223 |
<div class="cataloguing_additem_itemlist"> |
282 |
<div class="cataloguing_additem_itemlist"> |
Lines 249-255
$(document).ready(function() {
Link Here
|
249 |
<input type="hidden" name="subfield" value="[% iteminformatio.subfield %]" /> |
308 |
<input type="hidden" name="subfield" value="[% iteminformatio.subfield %]" /> |
250 |
<input type="hidden" name="mandatory" value="[% iteminformatio.mandatory %]" /> |
309 |
<input type="hidden" name="mandatory" value="[% iteminformatio.mandatory %]" /> |
251 |
[% IF ( iteminformatio.repeatable ) %] |
310 |
[% IF ( iteminformatio.repeatable ) %] |
252 |
<a href="#" class="buttonPlus" onclick="CloneItemSubfield(this.parentNode); return false;"> |
311 |
<a href="#" class="clone_subfield"> |
253 |
<img src="[% interface %]/[% theme %]/img/clone-subfield.png" alt="Clone" title="Clone this subfield" /> |
312 |
<img src="[% interface %]/[% theme %]/img/clone-subfield.png" alt="Clone" title="Clone this subfield" /> |
254 |
</a> |
313 |
</a> |
255 |
[% END %] |
314 |
[% END %] |
Lines 292-298
$(document).ready(function() {
Link Here
|
292 |
<input type="text" name="planneddate" value="[% newserialloo.planneddate %]" size="10" maxlength="15" class="datepicker" /> |
351 |
<input type="text" name="planneddate" value="[% newserialloo.planneddate %]" size="10" maxlength="15" class="datepicker" /> |
293 |
</td> |
352 |
</td> |
294 |
<td> |
353 |
<td> |
295 |
<select name="status" size="1" id="addstatus[% newserialloo.serialid %]" onchange="if (this.value==2){unHideItems('items'+'[% newserialloo.subscriptionid %][% newserialloo.serialid %]','label[% newserialloo.subscriptionid %][% newserialloo.serialid %]','[% newserialloo.serialid %]'); changeDate(this, '[% newserialloo.arriveddate %]')} else if (this.value==7){changeDate(this, '[% newserialloo.arriveddate %]')} else { HideItems('items'+'[% newserialloo.subscriptionid %]'+[% newserialloo.serialid %],'label[% serialslis.subscriptionid %][% serialslis.serialid %]'); changeDate(this, '[% serialslis.planneddate %]')}" > |
354 |
<select name="status" size="1" id="addstatus[% newserialloo.serialid %]" data-serialdata="[% To.json(newserialloo) | html %]" class="newserialitem_status"> |
296 |
|
355 |
|
297 |
<option value="">----</option> |
356 |
<option value="">----</option> |
298 |
[% IF ( newserialloo.status1 ) %] |
357 |
[% IF ( newserialloo.status1 ) %] |
Lines 361-368
$(document).ready(function() {
Link Here
|
361 |
[% IF ( newserialloo.serialsadditems ) %] |
420 |
[% IF ( newserialloo.serialsadditems ) %] |
362 |
<tr> |
421 |
<tr> |
363 |
<td colspan="6"> |
422 |
<td colspan="6"> |
364 |
<a id="label[% newserialloo.subscriptionid %][% newserialloo.serialid %]" style="color: grey; font-size: 80%; cursor: pointer;" onclick="unHideItems('items[% newserialloo.subscriptionid %][% newserialloo.serialid %]','label[% newserialloo.subscriptionid %][% newserialloo.serialid %]', '[% newserialloo.serialid %]')"> |
423 |
<a id="label[% newserialloo.subscriptionid %][% newserialloo.serialid %]" href="#" class="new_serial_item" data-serialdata="[% To.json(newserialloo) | html %]"> |
365 |
Click to add item</a> |
424 |
<i class="fa fa-plus"></i> Add item</a> |
366 |
<fieldset class="rows" style="display:none;" id="items[% newserialloo.subscriptionid %][% newserialloo.serialid %]"> |
425 |
<fieldset class="rows" style="display:none;" id="items[% newserialloo.subscriptionid %][% newserialloo.serialid %]"> |
367 |
<legend><a style="cursor: pointer;" onclick="HideItems('items[% newserialloo.subscriptionid %][% newserialloo.serialid %]','label[% newserialloo.subscriptionid %][% newserialloo.serialid %]')"> |
426 |
<legend><a style="cursor: pointer;" onclick="HideItems('items[% newserialloo.subscriptionid %][% newserialloo.serialid %]','label[% newserialloo.subscriptionid %][% newserialloo.serialid %]')"> |
368 |
Item</a> |
427 |
Item</a> |
Lines 395-401
$(document).ready(function() {
Link Here
|
395 |
<input type="hidden" name="subfield" value="[% iteminformatio.subfield %]" /> |
454 |
<input type="hidden" name="subfield" value="[% iteminformatio.subfield %]" /> |
396 |
<input type="hidden" name="mandatory" value="[% iteminformatio.mandatory %]" /> |
455 |
<input type="hidden" name="mandatory" value="[% iteminformatio.mandatory %]" /> |
397 |
[% IF ( iteminformatio.repeatable ) %] |
456 |
[% IF ( iteminformatio.repeatable ) %] |
398 |
<a href="#" class="buttonPlus" onclick="CloneItemSubfield(this.parentNode); return false;"> |
457 |
<a href="#" class="clone_subfield"> |
399 |
<img src="[% interface %]/[% theme %]/img/clone-subfield.png" alt="Clone" title="Clone this subfield" /> |
458 |
<img src="[% interface %]/[% theme %]/img/clone-subfield.png" alt="Clone" title="Clone this subfield" /> |
400 |
</a> |
459 |
</a> |
401 |
[% END %] |
460 |
[% END %] |
Lines 422-428
$(document).ready(function() {
Link Here
|
422 |
</table> |
481 |
</table> |
423 |
<fieldset class="action"> |
482 |
<fieldset class="action"> |
424 |
<input type="submit" value="Save" class="button" accesskey="w" /> |
483 |
<input type="submit" value="Save" class="button" accesskey="w" /> |
425 |
[% UNLESS ( serialsadditems ) %] <input type="button" onclick="javascript:generateReceive()" value="Multi receiving">[% END %] |
484 |
[% UNLESS ( serialsadditems ) %] <input type="button" class="multi_receiving" value="Multi receiving">[% END %] |
426 |
</fieldset> |
485 |
</fieldset> |
427 |
</form> |
486 |
</form> |
428 |
|
487 |
|
429 |
- |
|
|