Lines 134-142
$(document).ready(function() {
Link Here
|
134 |
|
134 |
|
135 |
<div id="bd"> |
135 |
<div id="bd"> |
136 |
<div id="yui-main"> |
136 |
<div id="yui-main"> |
137 |
|
137 |
<h1>Add items to [% title |html %] [% IF ( author ) %] by [% author %][% END %] (Record #[% biblionumber %])</h1> |
138 |
<h1>Items for [% title |html %] [% IF ( author ) %] by [% author %][% END %] (Record #[% biblionumber %])</h1> |
|
|
139 |
|
140 |
[% IF ( barcode_not_unique ) %]<div class="dialog alert"><strong>Error saving item</strong>: Barcode must be unique.</div>[% END %] |
138 |
[% IF ( barcode_not_unique ) %]<div class="dialog alert"><strong>Error saving item</strong>: Barcode must be unique.</div>[% END %] |
141 |
[% IF ( no_next_barcode ) %]<div class="dialog alert"><strong>Error saving items</strong>: Unable to automatically determine values for barcodes. No item has been inserted.</div>[% END %] |
139 |
[% IF ( no_next_barcode ) %]<div class="dialog alert"><strong>Error saving items</strong>: Unable to automatically determine values for barcodes. No item has been inserted.</div>[% END %] |
142 |
[% IF ( book_on_loan ) %]<div class="dialog alert"><strong>Cannot delete</strong>: item is checked out.</div>[% END %] |
140 |
[% IF ( book_on_loan ) %]<div class="dialog alert"><strong>Cannot delete</strong>: item is checked out.</div>[% END %] |
Lines 144-204
$(document).ready(function() {
Link Here
|
144 |
[% IF ( not_same_branch ) %]<div class="dialog alert"><strong>Cannot delete</strong>: The items do not belong to your library.</div>[% END %] |
142 |
[% IF ( not_same_branch ) %]<div class="dialog alert"><strong>Cannot delete</strong>: The items do not belong to your library.</div>[% END %] |
145 |
[% IF ( linked_analytics ) %]<div class="dialog alert"><strong>Cannot delete</strong>: item has linked <a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% biblionumber %]&analyze=1">analytics.</a>.</div>[% END %] |
143 |
[% IF ( linked_analytics ) %]<div class="dialog alert"><strong>Cannot delete</strong>: item has linked <a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% biblionumber %]&analyze=1">analytics.</a>.</div>[% END %] |
146 |
|
144 |
|
147 |
<div id="cataloguing_additem_itemlist"> |
145 |
|
148 |
[% IF ( item_loop ) %] |
|
|
149 |
<div> |
150 |
<table id="itemst"> |
151 |
<thead> |
152 |
<tr> |
153 |
<th> </th> |
154 |
[% FOREACH item_header_loo IN item_header_loop %] |
155 |
<th> |
156 |
[% item_header_loo.header_value %] |
157 |
</th> |
158 |
[% END %] |
159 |
</tr> |
160 |
</thead> |
161 |
<tbody> |
162 |
[% FOREACH item_loo IN item_loop %] |
163 |
[% IF ( item_loo.itemnumber == itemnumber) %] |
164 |
[% IF item_loo.nomod %] |
165 |
<tr id="row[% item_loo.itemnumber %]" class="active"> |
166 |
[% ELSE %] |
167 |
<tr id="row[% item_loo.itemnumber %]" class="active editable"> |
168 |
[% END %] |
169 |
[% ELSE %] |
170 |
[% IF item_loo.nomod %] |
171 |
<tr id="row[% item_loo.itemnumber %]"> |
172 |
[% ELSE %] |
173 |
<tr id="row[% item_loo.itemnumber %]" class="editable"> |
174 |
[% END %] |
175 |
[% END %] |
176 |
[% IF ( item_loo.nomod ) %] |
177 |
<td> </td> |
178 |
[% ELSE %] |
179 |
<td> |
180 |
[% IF ( item_loo.hostitemflag ) %] |
181 |
<a href="additem.pl?op=edititem&biblionumber=[% item_loo.hostbiblionumber %]&itemnumber=[% item_loo.itemnumber %]#edititem">Edit in host</a> <a class="delete" href="/cgi-bin/koha/cataloguing/additem.pl?op=delinkitem&biblionumber=[% biblionumber %]&hostitemnumber=[% item_loo.itemnumber %]">Delink</a> |
182 |
[% ELSE %] |
183 |
<a href="additem.pl?op=edititem&biblionumber=[% biblionumber %]&itemnumber=[% item_loo.itemnumber %]#edititem">Edit</a> |
184 |
[% IF ( item_loo.countanalytics ) %] |
185 |
<a href="/cgi-bin/koha/catalogue/search.pl?idx=hi&q=% item_loo.itemnumber %]">View analytics</a> |
186 |
[% ELSE %] |
187 |
<a class="delete" href="/cgi-bin/koha/cataloguing/additem.pl?op=delitem&biblionumber=[% biblionumber %]&itemnumber=[% item_loo.itemnumber %]" onclick="confirm_deletion([% biblionumber %],[% item_loo.itemnumber %]); return false;">Delete</a> |
188 |
[% END %] |
189 |
[% END %] |
190 |
</td> |
191 |
[% END %] |
192 |
[% FOREACH item_valu IN item_loo.item_value %] |
193 |
<td>[% item_valu.field |html %]</td> |
194 |
[% END %] |
195 |
</tr> |
196 |
[% END %] |
197 |
</tbody> |
198 |
</table> |
199 |
</div> |
200 |
[% END %] |
201 |
</div> |
202 |
<div class="yui-gf"> |
146 |
<div class="yui-gf"> |
203 |
<div class="yui-u first"> |
147 |
<div class="yui-u first"> |
204 |
[% INCLUDE 'biblio-view-menu.inc' %] |
148 |
[% INCLUDE 'biblio-view-menu.inc' %] |
Lines 278-283
$(document).ready(function() {
Link Here
|
278 |
</div><!-- /yui-u --> |
222 |
</div><!-- /yui-u --> |
279 |
</div><!-- /yui-gf --> |
223 |
</div><!-- /yui-gf --> |
280 |
|
224 |
|
|
|
225 |
<h1>Existing items for [% title |html %] [% IF ( author ) %] by [% author %][% END %] (Record #[% biblionumber %])</h1> |
226 |
<div id="cataloguing_additem_itemlist"> |
227 |
[% IF ( item_loop ) %] |
228 |
<div> |
229 |
<table id="itemst"> |
230 |
<thead> |
231 |
<tr> |
232 |
<th> </th> |
233 |
[% FOREACH item_header_loo IN item_header_loop %] |
234 |
<th> |
235 |
[% item_header_loo.header_value %] |
236 |
</th> |
237 |
[% END %] |
238 |
</tr> |
239 |
</thead> |
240 |
<tbody> |
241 |
[% FOREACH item_loo IN item_loop %] |
242 |
[% IF ( item_loo.itemnumber == itemnumber) %] |
243 |
[% IF item_loo.nomod %] |
244 |
<tr id="row[% item_loo.itemnumber %]" class="active"> |
245 |
[% ELSE %] |
246 |
<tr id="row[% item_loo.itemnumber %]" class="active editable"> |
247 |
[% END %] |
248 |
[% ELSE %] |
249 |
[% IF item_loo.nomod %] |
250 |
<tr id="row[% item_loo.itemnumber %]"> |
251 |
[% ELSE %] |
252 |
<tr id="row[% item_loo.itemnumber %]" class="editable"> |
253 |
[% END %] |
254 |
[% END %] |
255 |
[% IF ( item_loo.nomod ) %] |
256 |
<td> </td> |
257 |
[% ELSE %] |
258 |
<td> |
259 |
[% IF ( item_loo.hostitemflag ) %] |
260 |
<a href="additem.pl?op=edititem&biblionumber=[% item_loo.hostbiblionumber %]&itemnumber=[% item_loo.itemnumber %]#edititem">Edit in host</a> <a class="delete" href="/cgi-bin/koha/cataloguing/additem.pl?op=delinkitem&biblionumber=[% biblionumber %]&hostitemnumber=[% item_loo.itemnumber %]">Delink</a> |
261 |
[% ELSE %] |
262 |
<a href="additem.pl?op=edititem&biblionumber=[% biblionumber %]&itemnumber=[% item_loo.itemnumber %]#edititem">Edit</a> |
263 |
[% IF ( item_loo.countanalytics ) %] |
264 |
<a href="/cgi-bin/koha/catalogue/search.pl?idx=hi&q=% item_loo.itemnumber %]">View analytics</a> |
265 |
[% ELSE %] |
266 |
<a class="delete" href="/cgi-bin/koha/cataloguing/additem.pl?op=delitem&biblionumber=[% biblionumber %]&itemnumber=[% item_loo.itemnumber %]" onclick="confirm_deletion([% biblionumber %],[% item_loo.itemnumber %]); return false;">Delete</a> |
267 |
[% END %] |
268 |
[% END %] |
269 |
</td> |
270 |
[% END %] |
271 |
[% FOREACH item_valu IN item_loo.item_value %] |
272 |
<td>[% item_valu.field |html %]</td> |
273 |
[% END %] |
274 |
</tr> |
275 |
[% END %] |
276 |
</tbody> |
277 |
</table> |
278 |
</div> |
279 |
[% END %] |
280 |
</div> |
281 |
|
281 |
</div> |
282 |
</div> |
282 |
</div> |
283 |
</div> |
283 |
[% INCLUDE 'intranet-bottom.inc' %] |
284 |
[% INCLUDE 'intranet-bottom.inc' %] |
284 |
- |
|
|