Lines 1-6
Link Here
|
1 |
[% INCLUDE 'doc-head-open.inc' %] |
1 |
[% INCLUDE 'doc-head-open.inc' %] |
2 |
<title>Koha › Cataloging › [% title |html %] [% IF ( author ) %] by [% author %][% END %] (Record #[% biblionumber %]) › Items</title> |
2 |
<title>Koha › Cataloging › [% title |html %] [% IF ( author ) %] by [% author %][% END %] (Record #[% biblionumber %]) › Items</title> |
|
|
3 |
<link rel="stylesheet" type="text/css" href="[% themelang %]/css/datatables.css" /> |
3 |
[% INCLUDE 'doc-head-close.inc' %] |
4 |
[% INCLUDE 'doc-head-close.inc' %] |
|
|
5 |
[% INCLUDE 'datatables.inc' %] |
4 |
<script type="text/javascript" src="[% themelang %]/js/cataloging.js"></script> |
6 |
<script type="text/javascript" src="[% themelang %]/js/cataloging.js"></script> |
5 |
[% INCLUDE 'browser-strings.inc' %] |
7 |
[% INCLUDE 'browser-strings.inc' %] |
6 |
<!--[if lt IE 9]> |
8 |
<!--[if lt IE 9]> |
Lines 30-35
$(document).ready(function(){
Link Here
|
30 |
$(this).append("<span class=\"linktools\"><a href=\"/cgi-bin/koha/cataloguing/additem.pl?op=edititem&frameworkcode=[% frameworkcode %]&biblionumber=[% biblionumber %]&itemnumber="+num_rowid+"#edititem\">" + _("Edit item") + "</a> <a href=\"/cgi-bin/koha/cataloguing/additem.pl?op=delitem&frameworkcode=[% frameworkcode %]&biblionumber=[% biblionumber %]&itemnumber="+num_rowid+"\" onclick=\"confirm_deletion([% biblionumber %],"+num_rowid+"); return false;\">" + _("Delete item") + "</a></span>"); |
32 |
$(this).append("<span class=\"linktools\"><a href=\"/cgi-bin/koha/cataloguing/additem.pl?op=edititem&frameworkcode=[% frameworkcode %]&biblionumber=[% biblionumber %]&itemnumber="+num_rowid+"#edititem\">" + _("Edit item") + "</a> <a href=\"/cgi-bin/koha/cataloguing/additem.pl?op=delitem&frameworkcode=[% frameworkcode %]&biblionumber=[% biblionumber %]&itemnumber="+num_rowid+"\" onclick=\"confirm_deletion([% biblionumber %],"+num_rowid+"); return false;\">" + _("Delete item") + "</a></span>"); |
31 |
} |
33 |
} |
32 |
}); |
34 |
}); |
|
|
35 |
|
36 |
var itemst = $("#itemst").dataTable($.extend(true, {}, dataTablesDefaults, { |
37 |
"aoColumnDefs": [ |
38 |
{ "aTargets": [ 0, 1 ], "bSortable": false, "bSearchable": false }, |
39 |
], |
40 |
'bPaginate': false, |
41 |
'bInfo': false, |
42 |
"bAutoWidth": false |
43 |
} ) ); |
44 |
|
33 |
}); |
45 |
}); |
34 |
function active(numlayer) |
46 |
function active(numlayer) |
35 |
{ |
47 |
{ |
Lines 122-136
$(document).ready(function() {
Link Here
|
122 |
<div id="cataloguing_additem_itemlist"> |
134 |
<div id="cataloguing_additem_itemlist"> |
123 |
[% IF ( item_loop ) %] |
135 |
[% IF ( item_loop ) %] |
124 |
<div> |
136 |
<div> |
125 |
<table> |
137 |
<table id="itemst"> |
|
|
138 |
<thead> |
126 |
<tr> |
139 |
<tr> |
127 |
<th colspan="2"> </th> |
140 |
<th> </th> |
128 |
[% FOREACH item_header_loo IN item_header_loop %] |
141 |
[% FOREACH item_header_loo IN item_header_loop %] |
129 |
<th> |
142 |
<th> |
130 |
[% item_header_loo.header_value %] |
143 |
[% item_header_loo.header_value %] |
131 |
</th> |
144 |
</th> |
132 |
[% END %] |
145 |
[% END %] |
133 |
</tr> |
146 |
</tr> |
|
|
147 |
</thead> |
148 |
<tbody> |
134 |
[% FOREACH item_loo IN item_loop %] |
149 |
[% FOREACH item_loo IN item_loop %] |
135 |
[% IF ( item_loo.itemnumber == itemnumber) %] |
150 |
[% IF ( item_loo.itemnumber == itemnumber) %] |
136 |
[% IF item_loo.nomod %] |
151 |
[% IF item_loo.nomod %] |
Lines 145-159
$(document).ready(function() {
Link Here
|
145 |
<tr id="row[% item_loo.itemnumber %]" class="editable"> |
160 |
<tr id="row[% item_loo.itemnumber %]" class="editable"> |
146 |
[% END %] |
161 |
[% END %] |
147 |
[% END %] |
162 |
[% END %] |
148 |
[% IF ( item_loo.nomod ) %] <td colspan="2"> </td>[% ELSE %][% IF ( item_loo.hostitemflag ) %]<td><a href="additem.pl?op=edititem&biblionumber=[% item_loo.hostbiblionumber %]&itemnumber=[% item_loo.itemnumber %]#edititem">Edit in host</a></td> |
163 |
[% IF ( item_loo.nomod ) %] |
149 |
<td><a class="delete" href="/cgi-bin/koha/cataloguing/additem.pl?op=delinkitem&biblionumber=[% biblionumber %]&hostitemnumber=[% item_loo.itemnumber %]">Delink</a></td> |
164 |
<td> </td> |
150 |
[% ELSE %]<td><a href="additem.pl?op=edititem&biblionumber=[% biblionumber %]&itemnumber=[% item_loo.itemnumber %]#edititem">Edit</a></td> |
165 |
[% ELSE %] |
151 |
<td>[% IF ( item_loo.countanalytics ) %]<a href="/cgi-bin/koha/catalogue/search.pl?idx=hi&q=% item_loo.itemnumber %]">View analytics</a>[% ELSE %]<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>[% END %]</td>[% END %][% END %] |
166 |
<td> |
|
|
167 |
[% IF ( item_loo.hostitemflag ) %] |
168 |
<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> |
169 |
[% ELSE %] |
170 |
<a href="additem.pl?op=edititem&biblionumber=[% biblionumber %]&itemnumber=[% item_loo.itemnumber %]#edititem">Edit</a> |
171 |
[% IF ( item_loo.countanalytics ) %] |
172 |
<a href="/cgi-bin/koha/catalogue/search.pl?idx=hi&q=% item_loo.itemnumber %]">View analytics</a> |
173 |
[% ELSE %] |
174 |
<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> |
175 |
[% END %] |
176 |
[% END %] |
177 |
</td> |
178 |
[% END %] |
152 |
[% FOREACH item_valu IN item_loo.item_value %] |
179 |
[% FOREACH item_valu IN item_loo.item_value %] |
153 |
<td>[% item_valu.field |html %]</td> |
180 |
<td>[% item_valu.field |html %]</td> |
154 |
[% END %] |
181 |
[% END %] |
155 |
</tr> |
182 |
</tr> |
156 |
[% END %] |
183 |
[% END %] |
|
|
184 |
</tbody> |
157 |
</table> |
185 |
</table> |
158 |
</div> |
186 |
</div> |
159 |
[% END %] |
187 |
[% END %] |
160 |
- |
|
|