Lines 172-188
function confirm_deletion() {
Link Here
|
172 |
<td> </td> |
172 |
<td> </td> |
173 |
[% ELSE %] |
173 |
[% ELSE %] |
174 |
<td> |
174 |
<td> |
|
|
175 |
<div class="dropdown"> |
176 |
<a class="btn btn-mini dropdown-toggle" id="itemactions[% item_loo.itemnumber %]" role="button" data-toggle="dropdown" href="#"> |
177 |
Actions <b class="caret"></b> |
178 |
</a> |
179 |
<ul class="dropdown-menu" role="menu" aria-labelledby="itemactions[% item_loo.itemnumber %]"> |
180 |
|
175 |
[% IF ( item_loo.hostitemflag ) %] |
181 |
[% IF ( item_loo.hostitemflag ) %] |
176 |
<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 %]&searchid=[% searchid %]">Delink</a> |
182 |
<li><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 %]&searchid=[% searchid %]">Delink</a></li> |
177 |
[% ELSE %] |
183 |
[% ELSE %] |
178 |
<a href="additem.pl?op=edititem&biblionumber=[% biblionumber %]&itemnumber=[% item_loo.itemnumber %]&searchid=[% searchid %]#edititem">Edit</a> |
184 |
<li><a href="additem.pl?op=edititem&biblionumber=[% biblionumber %]&itemnumber=[% item_loo.itemnumber %]&searchid=[% searchid %]#edititem">Edit</a></li> |
179 |
<a href="additem.pl?op=dupeitem&biblionumber=[% biblionumber %]&itemnumber=[% item_loo.itemnumber %]&searchid=[% searchid %]#additema">Duplicate</a> |
185 |
<li><a href="additem.pl?op=dupeitem&biblionumber=[% biblionumber %]&itemnumber=[% item_loo.itemnumber %]&searchid=[% searchid %]#additema">Duplicate</a></li> |
180 |
[% IF ( item_loo.countanalytics ) %] |
186 |
[% IF ( item_loo.countanalytics ) %] |
181 |
<a href="/cgi-bin/koha/catalogue/search.pl?idx=hi&q=% item_loo.itemnumber %]">View analytics</a> |
187 |
<li><a href="/cgi-bin/koha/catalogue/search.pl?idx=hi&q=% item_loo.itemnumber %]">View analytics</a></li> |
182 |
[% ELSE %] |
188 |
[% ELSE %] |
183 |
<a class="delete" href="/cgi-bin/koha/cataloguing/additem.pl?op=delitem&biblionumber=[% biblionumber %]&itemnumber=[% item_loo.itemnumber %]&searchid=[% searchid %]" onclick="return confirm_deletion();">Delete</a> |
189 |
<li><a class="delete" href="/cgi-bin/koha/cataloguing/additem.pl?op=delitem&biblionumber=[% biblionumber %]&itemnumber=[% item_loo.itemnumber %]&searchid=[% searchid %]" onclick="confirm_deletion([% biblionumber %],[% item_loo.itemnumber %]); return false;">Delete</a></li> |
184 |
[% END %] |
190 |
[% END %] |
185 |
[% END %] |
191 |
[% END %] |
|
|
192 |
</ul> |
193 |
</div> |
186 |
</td> |
194 |
</td> |
187 |
[% END %] |
195 |
[% END %] |
188 |
[% FOREACH item_valu IN item_loo.item_value %] |
196 |
[% FOREACH item_valu IN item_loo.item_value %] |
189 |
- |
|
|