|
Lines 128-159
Link Here
|
| 128 |
|
128 |
|
| 129 |
[% IF CAN_user_editcatalogue_edit_catalogue or ( frameworkcode == 'FA' and CAN_user_editcatalogue_fast_cataloging ) %] |
129 |
[% IF CAN_user_editcatalogue_edit_catalogue or ( frameworkcode == 'FA' and CAN_user_editcatalogue_fast_cataloging ) %] |
| 130 |
[% IF ( count ) %] |
130 |
[% IF ( count ) %] |
| 131 |
<li |
131 |
[% IF CAN_user_editcatalogue_delete_any_record %] |
| 132 |
data-bs-toggle="tooltip" |
132 |
<li |
| 133 |
data-bs-placement="left" |
133 |
data-bs-toggle="tooltip" |
| 134 |
title="[%- I18N.tnx('There is an item attached to this record. You must delete all items before deleting this record', 'There are {count} items attached to this record. You must delete all items before deleting this record', count, { count => count }) -%]" |
134 |
data-bs-placement="left" |
| 135 |
> |
135 |
title="[%- I18N.tnx('There is an item attached to this record. You must delete all items before deleting this record', 'There are {count} items attached to this record. You must delete all items before deleting this record', count, { count => count }) -%]" |
| 136 |
<a class="dropdown-item disabled" aria-disabled="true" id="deletebiblio" href="#">Delete record</a> |
136 |
> |
| 137 |
</li> |
137 |
<a class="dropdown-item disabled" aria-disabled="true" id="deletebiblio" href="#">Delete record</a> |
|
|
138 |
</li> |
| 139 |
[% END %] |
| 138 |
[% ELSIF ( biblio.subscriptions.count ) %] |
140 |
[% ELSIF ( biblio.subscriptions.count ) %] |
| 139 |
[%- SET subscriptions_count = biblio.subscriptions.count -%] |
141 |
[% IF CAN_user_editcatalogue_delete_any_record %] |
| 140 |
<li |
142 |
[%- SET subscriptions_count = biblio.subscriptions.count -%] |
| 141 |
data-bs-toggle="tooltip" |
143 |
<li |
| 142 |
data-bs-placement="left" |
144 |
data-bs-toggle="tooltip" |
| 143 |
title="[%- I18N.tnx('There is a subscription attached to this record. You must delete all subscriptions before deleting this record', 'There are {subscriptions_count} subscriptions attached to this record. You must delete all subscriptions before deleting this record', subscriptions_count, { subscriptions_count => subscriptions_count }) -%]" |
145 |
data-bs-placement="left" |
| 144 |
> |
146 |
title="[%- I18N.tnx('There is a subscription attached to this record. You must delete all subscriptions before deleting this record', 'There are {subscriptions_count} subscriptions attached to this record. You must delete all subscriptions before deleting this record', subscriptions_count, { subscriptions_count => subscriptions_count }) -%]" |
| 145 |
<a class="dropdown-item disabled" aria-disabled="true" id="deletebiblio" href="#">Delete record</a> |
147 |
> |
| 146 |
</li> |
148 |
<a class="dropdown-item disabled" aria-disabled="true" id="deletebiblio" href="#">Delete record</a> |
|
|
149 |
</li> |
| 150 |
[% END %] |
| 147 |
[% ELSE %] |
151 |
[% ELSE %] |
| 148 |
<li> |
152 |
[% IF CAN_user_editcatalogue_delete_any_record %] |
| 149 |
<form action="/cgi-bin/koha/cataloguing/addbiblio.pl" method="post"> |
153 |
<li> |
| 150 |
[% INCLUDE 'csrf-token.inc' %] |
154 |
<form action="/cgi-bin/koha/cataloguing/addbiblio.pl" method="post"> |
| 151 |
<input type="hidden" name="op" value="cud-delete" /> |
155 |
[% INCLUDE 'csrf-token.inc' %] |
| 152 |
<input type="hidden" name="biblionumber" value="[% biblionumber | html %]" /> |
156 |
<input type="hidden" name="op" value="cud-delete" /> |
| 153 |
<input type="hidden" name="searchid" value="[% searchid | html %]" /> |
157 |
<input type="hidden" name="biblionumber" value="[% biblionumber | html %]" /> |
| 154 |
</form> |
158 |
<input type="hidden" name="searchid" value="[% searchid | html %]" /> |
| 155 |
<a class="dropdown-item" id="deletebiblio" data-order-manage="[% CAN_user_acquisition_order_manage | html %]" href="#">Delete record</a> |
159 |
</form> |
| 156 |
</li> |
160 |
<a class="dropdown-item" id="deletebiblio" data-order-manage="[% CAN_user_acquisition_order_manage | html %]" href="#">Delete record</a> |
|
|
161 |
</li> |
| 162 |
[% END %] |
| 157 |
[% END %] |
163 |
[% END %] |
| 158 |
[% END %] |
164 |
[% END %] |
| 159 |
|
165 |
|