Lines 279-285
Link Here
|
279 |
[% IF CAN_user_tools_items_batchmod %] |
279 |
[% IF CAN_user_tools_items_batchmod %] |
280 |
<a class="itemselection_action_modify"><i class="fa fa-pencil"></i> Modify selected items</a> |
280 |
<a class="itemselection_action_modify"><i class="fa fa-pencil"></i> Modify selected items</a> |
281 |
[% END %] |
281 |
[% END %] |
282 |
[% IF biblio.volumes.count %] |
282 |
[% IF CAN_user_editcatalogue_manage_volumes && biblio.volumes.count %] |
283 |
<a class="itemselection_action_volume_set" href="#"><i class="fa fa-book"></i> Add/move to volume</a> |
283 |
<a class="itemselection_action_volume_set" href="#"><i class="fa fa-book"></i> Add/move to volume</a> |
284 |
<a class="itemselection_action_volume_unset" href="#"><i class="fa fa-unlink"></i> Remove from volume</a> |
284 |
<a class="itemselection_action_volume_unset" href="#"><i class="fa fa-unlink"></i> Remove from volume</a> |
285 |
[% END %] |
285 |
[% END %] |
Lines 552-560
Note that permanent location is a code, and location may be an authval.
Link Here
|
552 |
|
552 |
|
553 |
[% IF Koha.Preference('EnableVolumes') %] |
553 |
[% IF Koha.Preference('EnableVolumes') %] |
554 |
<div id="volumes"> |
554 |
<div id="volumes"> |
555 |
<div class="volumes_table_table_controls"> |
555 |
[% IF CAN_user_editcatalogue_manage_volumes %] |
556 |
<a href="#" class="volume-create btn btn-default btn-xs"><i class="fa fa-plus"></i> Create new</a> |
556 |
<div class="volumes_table_table_controls"> |
557 |
</div> |
557 |
<a href="#" class="volume-create btn btn-default btn-xs"><i class="fa fa-plus"></i> Create new</a> |
|
|
558 |
</div> |
559 |
[% END %] |
558 |
<table class="volumes-table" id="volumes-table"> |
560 |
<table class="volumes-table" id="volumes-table"> |
559 |
<thead> |
561 |
<thead> |
560 |
<tr> |
562 |
<tr> |
Lines 1443-1455
Note that permanent location is a code, and location may be an authval.
Link Here
|
1443 |
}, |
1445 |
}, |
1444 |
{ |
1446 |
{ |
1445 |
"mDataProp": function( oObj ) { |
1447 |
"mDataProp": function( oObj ) { |
1446 |
return `<button class='volume-edit btn btn-default btn-xs' data-volume-id='${oObj.volume_id}'> |
1448 |
[% IF CAN_user_editcatalogue_manage_volumes %] |
1447 |
<i class='fa fa-edit'></i> ${_('Edit')} |
1449 |
return `<button class='volume-edit btn btn-default btn-xs' data-volume-id='${oObj.volume_id}'> |
1448 |
</button>` |
1450 |
<i class='fa fa-edit'></i> ${_('Edit')} |
1449 |
+ ' ' |
1451 |
</button>` |
1450 |
+ `<button class='volume-delete btn btn-default btn-xs' data-volume-id='${oObj.volume_id}'> |
1452 |
+ ' ' |
1451 |
<i class='fa fa-trash'></i> ${('Delete')} |
1453 |
+ `<button class='volume-delete btn btn-default btn-xs' data-volume-id='${oObj.volume_id}'> |
1452 |
</button>`; |
1454 |
<i class='fa fa-trash'></i> ${('Delete')} |
|
|
1455 |
</button>`; |
1456 |
[% ELSE %] |
1457 |
return ""; |
1458 |
[% END %] |
1453 |
}, |
1459 |
}, |
1454 |
}, |
1460 |
}, |
1455 |
], |
1461 |
], |