Lines 314-320
Link Here
|
314 |
[% IF CAN_user_tools_items_batchmod %] |
314 |
[% IF CAN_user_tools_items_batchmod %] |
315 |
<a class="itemselection_action_modify"><i class="fa fa-pencil"></i> Modify selected items</a> |
315 |
<a class="itemselection_action_modify"><i class="fa fa-pencil"></i> Modify selected items</a> |
316 |
[% END %] |
316 |
[% END %] |
317 |
[% IF biblio.volumes.count %] |
317 |
[% IF CAN_user_editcatalogue_manage_volumes && biblio.volumes.count %] |
318 |
<a class="itemselection_action_volume_set" href="#"><i class="fa fa-book"></i> Add/move to volume</a> |
318 |
<a class="itemselection_action_volume_set" href="#"><i class="fa fa-book"></i> Add/move to volume</a> |
319 |
<a class="itemselection_action_volume_unset" href="#"><i class="fa fa-unlink"></i> Remove from volume</a> |
319 |
<a class="itemselection_action_volume_unset" href="#"><i class="fa fa-unlink"></i> Remove from volume</a> |
320 |
[% END %] |
320 |
[% END %] |
Lines 615-623
Note that permanent location is a code, and location may be an authval.
Link Here
|
615 |
|
615 |
|
616 |
[% IF Koha.Preference('EnableVolumes') %] |
616 |
[% IF Koha.Preference('EnableVolumes') %] |
617 |
<div id="volumes"> |
617 |
<div id="volumes"> |
618 |
<div class="volumes_table_table_controls"> |
618 |
[% IF CAN_user_editcatalogue_manage_volumes %] |
619 |
<a href="#" class="volume-create btn btn-default btn-xs"><i class="fa fa-plus"></i> Create new</a> |
619 |
<div class="volumes_table_table_controls"> |
620 |
</div> |
620 |
<a href="#" class="volume-create btn btn-default btn-xs"><i class="fa fa-plus"></i> Create new</a> |
|
|
621 |
</div> |
622 |
[% END %] |
621 |
<table class="volumes-table" id="volumes-table"> |
623 |
<table class="volumes-table" id="volumes-table"> |
622 |
<thead> |
624 |
<thead> |
623 |
<tr> |
625 |
<tr> |
Lines 1545-1557
Note that permanent location is a code, and location may be an authval.
Link Here
|
1545 |
}, |
1547 |
}, |
1546 |
{ |
1548 |
{ |
1547 |
"mDataProp": function( oObj ) { |
1549 |
"mDataProp": function( oObj ) { |
1548 |
return `<button class='volume-edit btn btn-default btn-xs' data-volume-id='${oObj.volume_id}'> |
1550 |
[% IF CAN_user_editcatalogue_manage_volumes %] |
1549 |
<i class='fa fa-edit'></i> ${_('Edit')} |
1551 |
return `<button class='volume-edit btn btn-default btn-xs' data-volume-id='${oObj.volume_id}'> |
1550 |
</button>` |
1552 |
<i class='fa fa-edit'></i> ${_('Edit')} |
1551 |
+ ' ' |
1553 |
</button>` |
1552 |
+ `<button class='volume-delete btn btn-default btn-xs' data-volume-id='${oObj.volume_id}'> |
1554 |
+ ' ' |
1553 |
<i class='fa fa-trash'></i> ${('Delete')} |
1555 |
+ `<button class='volume-delete btn btn-default btn-xs' data-volume-id='${oObj.volume_id}'> |
1554 |
</button>`; |
1556 |
<i class='fa fa-trash'></i> ${('Delete')} |
|
|
1557 |
</button>`; |
1558 |
[% ELSE %] |
1559 |
return ""; |
1560 |
[% END %] |
1555 |
}, |
1561 |
}, |
1556 |
}, |
1562 |
}, |
1557 |
], |
1563 |
], |