Lines 2-7
Link Here
|
2 |
<title>Koha › Acquisitions › Receipt summary for : [% name %] [% IF ( invoice ) %]invoice, [% invoice %][% END %]</title> |
2 |
<title>Koha › Acquisitions › Receipt summary for : [% name %] [% IF ( invoice ) %]invoice, [% invoice %][% END %]</title> |
3 |
[% INCLUDE 'doc-head-close.inc' %] |
3 |
[% INCLUDE 'doc-head-close.inc' %] |
4 |
<script type="text/javascript" src="[% themelang %]/js/additem.js"> </script> |
4 |
<script type="text/javascript" src="[% themelang %]/js/additem.js"> </script> |
|
|
5 |
<script type="text/javascript"> |
6 |
//<![CDATA[ |
7 |
[% IF (AcqCreateItem == 'ordering') %] |
8 |
function PopupEditPage(biblionumber, itemnumber) { |
9 |
var url = "/cgi-bin/koha/cataloguing/additem.pl?op=edititem&biblionumber=" |
10 |
+ biblionumber + "&itemnumber=" + itemnumber + "&popup=1#edititem"; |
11 |
window.open(url); |
12 |
} |
13 |
|
14 |
function CalcQtyToReceive() { |
15 |
var qty = $("input[name='items_to_receive']:checked").length; |
16 |
$("#quantity").val(qty); |
17 |
} |
18 |
[% END %] |
19 |
|
20 |
$(document).ready(function() { |
21 |
[% IF (AcqCreateItem == 'ordering') %] |
22 |
$("input[name='items_to_receive']").change(function() { |
23 |
CalcQtyToReceive(); |
24 |
}); |
25 |
CalcQtyToReceive(); |
26 |
[% END %] |
27 |
}); |
28 |
//]]> |
29 |
</script> |
5 |
</head> |
30 |
</head> |
6 |
<body> |
31 |
<body> |
7 |
[% INCLUDE 'header.inc' %] |
32 |
[% INCLUDE 'header.inc' %] |
Lines 35-51
Link Here
|
35 |
[% seriestitle %]</li> |
60 |
[% seriestitle %]</li> |
36 |
</ol> |
61 |
</ol> |
37 |
</fieldset> |
62 |
</fieldset> |
38 |
[% IF ( items ) %] |
63 |
[% IF (AcqCreateItem == 'ordering') %] |
|
|
64 |
[% IF (items.size) %] |
65 |
<fieldset class="rows"> |
66 |
<legend>Items</legend> |
67 |
<table> |
68 |
<thead> |
69 |
<tr> |
70 |
<th>Receive?</th> |
71 |
<th>Barcode</th> |
72 |
<th>Home branch</th> |
73 |
<th>Location</th> |
74 |
<th>Call number</th> |
75 |
<th> </th> |
76 |
</tr> |
77 |
</thead> |
78 |
<tbody> |
79 |
[% FOREACH item IN items %] |
80 |
<tr> |
81 |
<td style="text-align:center"><input type="checkbox" name="items_to_receive" value="[% item.itemnumber %]" /></td> |
82 |
<td>[% item.barcode %]</td> |
83 |
<td>[% item.homebranch %]</td> |
84 |
<td>[% item.location %]</td> |
85 |
<td>[% item.itemcallnumber %]</td> |
86 |
<td><a style="cursor:pointer" onclick="PopupEditPage([% item.biblionumber %],[% item.itemnumber %]);">Edit</a></td> |
87 |
</tr> |
88 |
[% END %] |
89 |
</tbody> |
90 |
</table> |
91 |
</fieldset> |
92 |
[% END %] |
93 |
[% ELSIF (AcqCreateItem == 'receiving') %] |
39 |
<fieldset class="rows"> |
94 |
<fieldset class="rows"> |
40 |
<legend>Item</legend> |
95 |
<legend>Item</legend> |
41 |
[% IF ( NoACQframework ) %] |
96 |
[% IF ( NoACQframework ) %] |
42 |
<p class="required">No ACQ framework, using default. You should create a framework with code ACQ, the items framework would be used</p> |
97 |
<p class="required">No ACQ framework, using default. You should create a framework with code ACQ, the items framework would be used</p> |
43 |
[% END %] |
98 |
[% END %] |
44 |
|
99 |
|
45 |
[% FOREACH item IN items %] |
|
|
46 |
<div id="outeritemblock"> |
100 |
<div id="outeritemblock"> |
47 |
<div id="itemblock"> |
101 |
<div id="itemblock"> |
48 |
<ol>[% FOREACH iteminformatio IN item.iteminformation %]<li style="[% iteminformatio.hidden %];"> |
102 |
<ol>[% FOREACH iteminformatio IN itemform.iteminformation %]<li style="[% iteminformatio.hidden %];"> |
49 |
<div class="subfield_line" id="subfield[% iteminformatio.serialid %][% iteminformatio.countitems %][% iteminformatio.subfield %][% iteminformatio.random %]"> |
103 |
<div class="subfield_line" id="subfield[% iteminformatio.serialid %][% iteminformatio.countitems %][% iteminformatio.subfield %][% iteminformatio.random %]"> |
50 |
|
104 |
|
51 |
<label>[% iteminformatio.subfield %] - [% IF ( iteminformatio.mandatory ) %]<b>[% END %][% iteminformatio.marc_lib %][% IF ( iteminformatio.mandatory ) %] *</b>[% END %]</label> |
105 |
<label>[% iteminformatio.subfield %] - [% IF ( iteminformatio.mandatory ) %]<b>[% END %][% iteminformatio.marc_lib %][% IF ( iteminformatio.mandatory ) %] *</b>[% END %]</label> |
Lines 62-82
Link Here
|
62 |
</div></li> |
116 |
</div></li> |
63 |
[% END %] |
117 |
[% END %] |
64 |
</ol> |
118 |
</ol> |
65 |
<a class="addItem" onclick="cloneItemBlock('itemblock[% item.itemBlockIndex %]')">Add</a> |
119 |
<a class="addItem" onclick="cloneItemBlock('itemblock[% itemform.itemBlockIndex %]')">Add</a> |
66 |
<a class="delItem" style="display:none;" onclick="deleteItemBlock('itemblock[% item.itemBlockIndex %]')">Delete</a> |
120 |
<a class="delItem" style="display:none;" onclick="deleteItemBlock('itemblock[% itemform.itemBlockIndex %]')">Delete</a> |
67 |
</div><!-- /iteminformation --> |
121 |
</div><!-- /iteminformation --> |
68 |
</div> |
122 |
</div> |
69 |
|
123 |
|
70 |
<input type="hidden" name="moditem" value="" /> |
124 |
<input type="hidden" name="moditem" value="" /> |
71 |
<input type="hidden" name="tag" value="[% item.itemtagfield %]" /> |
125 |
<input type="hidden" name="tag" value="[% itemform.itemtagfield %]" /> |
72 |
<input type="hidden" name="subfield" value="[% item.itemtagsubfield %]" /> |
126 |
<input type="hidden" name="subfield" value="[% itemform.itemtagsubfield %]" /> |
73 |
<input type="hidden" name="serial" value="[% item.serialid %]" /> |
127 |
<input type="hidden" name="serial" value="[% itemform.serialid %]" /> |
74 |
<input type="hidden" name="bibnum" value="[% item.biblionumber %]" /> |
128 |
<input type="hidden" name="bibnum" value="[% itemform.biblionumber %]" /> |
75 |
<input type="hidden" name="itemid" value="1" /> |
129 |
<input type="hidden" name="itemid" value="1" /> |
76 |
<input type="hidden" name="field_value" value="[% item.itemnumber %]" /> |
130 |
<input type="hidden" name="field_value" value="[% itemform.itemnumber %]" /> |
77 |
[% END %] <!-- /items --> |
131 |
[% END %] <!-- /items --> |
78 |
</fieldset> |
132 |
</fieldset> |
79 |
[% END %] <!-- items --> |
|
|
80 |
<input type="hidden" name="biblionumber" value="[% biblionumber %]" /> |
133 |
<input type="hidden" name="biblionumber" value="[% biblionumber %]" /> |
81 |
<input type="hidden" name="ordernumber" value="[% ordernumber %]" /> |
134 |
<input type="hidden" name="ordernumber" value="[% ordernumber %]" /> |
82 |
<input type="hidden" name="biblioitemnumber" value="[% biblioitemnumber %]" /> |
135 |
<input type="hidden" name="biblioitemnumber" value="[% biblioitemnumber %]" /> |