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