Lines 304-310
Link Here
|
304 |
[% IF CAN_user_tools_items_batchmod %] |
304 |
[% IF CAN_user_tools_items_batchmod %] |
305 |
<a class="itemselection_action_modify"><i class="fa fa-pencil"></i> Modify selected items</a> |
305 |
<a class="itemselection_action_modify"><i class="fa fa-pencil"></i> Modify selected items</a> |
306 |
[% END %] |
306 |
[% END %] |
307 |
[% IF biblio.volumes.count %] |
307 |
[% IF CAN_user_editcatalogue_manage_volumes && biblio.volumes.count %] |
308 |
<a class="itemselection_action_volume_set" href="#"><i class="fa fa-book"></i> Add/move to volume</a> |
308 |
<a class="itemselection_action_volume_set" href="#"><i class="fa fa-book"></i> Add/move to volume</a> |
309 |
<a class="itemselection_action_volume_unset" href="#"><i class="fa fa-unlink"></i> Remove from volume</a> |
309 |
<a class="itemselection_action_volume_unset" href="#"><i class="fa fa-unlink"></i> Remove from volume</a> |
310 |
[% END %] |
310 |
[% END %] |
Lines 601-609
Note that permanent location is a code, and location may be an authval.
Link Here
|
601 |
|
601 |
|
602 |
[% IF Koha.Preference('EnableVolumes') %] |
602 |
[% IF Koha.Preference('EnableVolumes') %] |
603 |
<div id="volumes"> |
603 |
<div id="volumes"> |
604 |
<div class="volumes_table_table_controls"> |
604 |
[% IF CAN_user_editcatalogue_manage_volumes %] |
605 |
<a href="#" class="volume-create btn btn-default btn-xs"><i class="fa fa-plus"></i> Create new</a> |
605 |
<div class="volumes_table_table_controls"> |
606 |
</div> |
606 |
<a href="#" class="volume-create btn btn-default btn-xs"><i class="fa fa-plus"></i> Create new</a> |
|
|
607 |
</div> |
608 |
[% END %] |
607 |
<table class="volumes-table" id="volumes-table"> |
609 |
<table class="volumes-table" id="volumes-table"> |
608 |
<thead> |
610 |
<thead> |
609 |
<tr> |
611 |
<tr> |
Lines 1509-1521
Note that permanent location is a code, and location may be an authval.
Link Here
|
1509 |
}, |
1511 |
}, |
1510 |
{ |
1512 |
{ |
1511 |
"mDataProp": function( oObj ) { |
1513 |
"mDataProp": function( oObj ) { |
1512 |
return `<button class='volume-edit btn btn-default btn-xs' data-volume-id='${oObj.volume_id}'> |
1514 |
[% IF CAN_user_editcatalogue_manage_volumes %] |
1513 |
<i class='fa fa-edit'></i> ${_('Edit')} |
1515 |
return `<button class='volume-edit btn btn-default btn-xs' data-volume-id='${oObj.volume_id}'> |
1514 |
</button>` |
1516 |
<i class='fa fa-edit'></i> ${_('Edit')} |
1515 |
+ ' ' |
1517 |
</button>` |
1516 |
+ `<button class='volume-delete btn btn-default btn-xs' data-volume-id='${oObj.volume_id}'> |
1518 |
+ ' ' |
1517 |
<i class='fa fa-trash'></i> ${('Delete')} |
1519 |
+ `<button class='volume-delete btn btn-default btn-xs' data-volume-id='${oObj.volume_id}'> |
1518 |
</button>`; |
1520 |
<i class='fa fa-trash'></i> ${('Delete')} |
|
|
1521 |
</button>`; |
1522 |
[% ELSE %] |
1523 |
return ""; |
1524 |
[% END %] |
1519 |
}, |
1525 |
}, |
1520 |
}, |
1526 |
}, |
1521 |
], |
1527 |
], |