Lines 220-226
Link Here
|
220 |
[% IF CAN_user_tools_items_batchmod %] |
220 |
[% IF CAN_user_tools_items_batchmod %] |
221 |
<a class="itemselection_action_modify"><i class="fa fa-pencil"></i> Modify selected items</a> |
221 |
<a class="itemselection_action_modify"><i class="fa fa-pencil"></i> Modify selected items</a> |
222 |
[% END %] |
222 |
[% END %] |
223 |
[% IF biblio.volumes.count %] |
223 |
[% IF CAN_user_editcatalogue_manage_volumes && biblio.volumes.count %] |
224 |
<a class="itemselection_action_volume_set" href="#"><i class="fa fa-book"></i> Add/move to volume</a> |
224 |
<a class="itemselection_action_volume_set" href="#"><i class="fa fa-book"></i> Add/move to volume</a> |
225 |
<a class="itemselection_action_volume_unset" href="#"><i class="fa fa-unlink"></i> Remove from volume</a> |
225 |
<a class="itemselection_action_volume_unset" href="#"><i class="fa fa-unlink"></i> Remove from volume</a> |
226 |
[% END %] |
226 |
[% END %] |
Lines 490-498
Note that permanent location is a code, and location may be an authval.
Link Here
|
490 |
|
490 |
|
491 |
[% IF Koha.Preference('EnableVolumes') %] |
491 |
[% IF Koha.Preference('EnableVolumes') %] |
492 |
<div id="volumes"> |
492 |
<div id="volumes"> |
493 |
<div class="volumes_table_table_controls"> |
493 |
[% IF CAN_user_editcatalogue_manage_volumes %] |
494 |
<a href="#" class="volume-create btn btn-default btn-xs"><i class="fa fa-plus"></i> Create new</a> |
494 |
<div class="volumes_table_table_controls"> |
495 |
</div> |
495 |
<a href="#" class="volume-create btn btn-default btn-xs"><i class="fa fa-plus"></i> Create new</a> |
|
|
496 |
</div> |
497 |
[% END %] |
496 |
<table class="volumes-table" id="volumes-table"> |
498 |
<table class="volumes-table" id="volumes-table"> |
497 |
<thead> |
499 |
<thead> |
498 |
<tr> |
500 |
<tr> |
Lines 1328-1340
Note that permanent location is a code, and location may be an authval.
Link Here
|
1328 |
}, |
1330 |
}, |
1329 |
{ |
1331 |
{ |
1330 |
"mDataProp": function( oObj ) { |
1332 |
"mDataProp": function( oObj ) { |
1331 |
return `<button class='volume-edit btn btn-default btn-xs' data-volume-id='${oObj.volume_id}'> |
1333 |
[% IF CAN_user_editcatalogue_manage_volumes %] |
1332 |
<i class='fa fa-edit'></i> ${_('Edit')} |
1334 |
return `<button class='volume-edit btn btn-default btn-xs' data-volume-id='${oObj.volume_id}'> |
1333 |
</button>` |
1335 |
<i class='fa fa-edit'></i> ${_('Edit')} |
1334 |
+ ' ' |
1336 |
</button>` |
1335 |
+ `<button class='volume-delete btn btn-default btn-xs' data-volume-id='${oObj.volume_id}'> |
1337 |
+ ' ' |
1336 |
<i class='fa fa-trash'></i> ${('Delete')} |
1338 |
+ `<button class='volume-delete btn btn-default btn-xs' data-volume-id='${oObj.volume_id}'> |
1337 |
</button>`; |
1339 |
<i class='fa fa-trash'></i> ${('Delete')} |
|
|
1340 |
</button>`; |
1341 |
[% ELSE %] |
1342 |
return ""; |
1343 |
[% END %] |
1338 |
}, |
1344 |
}, |
1339 |
}, |
1345 |
}, |
1340 |
], |
1346 |
], |