Lines 278-284
Link Here
|
278 |
[% IF CAN_user_tools_items_batchmod %] |
278 |
[% IF CAN_user_tools_items_batchmod %] |
279 |
<a class="itemselection_action_modify"><i class="fa fa-pencil"></i> Modify selected items</a> |
279 |
<a class="itemselection_action_modify"><i class="fa fa-pencil"></i> Modify selected items</a> |
280 |
[% END %] |
280 |
[% END %] |
281 |
[% IF biblio.volumes.count %] |
281 |
[% IF CAN_user_editcatalogue_manage_volumes && biblio.volumes.count %] |
282 |
<a class="itemselection_action_volume_set" href="#"><i class="fa fa-book"></i> Add/move to volume</a> |
282 |
<a class="itemselection_action_volume_set" href="#"><i class="fa fa-book"></i> Add/move to volume</a> |
283 |
<a class="itemselection_action_volume_unset" href="#"><i class="fa fa-unlink"></i> Remove from volume</a> |
283 |
<a class="itemselection_action_volume_unset" href="#"><i class="fa fa-unlink"></i> Remove from volume</a> |
284 |
[% END %] |
284 |
[% END %] |
Lines 580-588
Note that permanent location is a code, and location may be an authval.
Link Here
|
580 |
|
580 |
|
581 |
[% IF Koha.Preference('EnableVolumes') %] |
581 |
[% IF Koha.Preference('EnableVolumes') %] |
582 |
<div id="volumes"> |
582 |
<div id="volumes"> |
583 |
<div class="volumes_table_table_controls"> |
583 |
[% IF CAN_user_editcatalogue_manage_volumes %] |
584 |
<a href="#" class="volume-create btn btn-default btn-xs"><i class="fa fa-plus"></i> Create new</a> |
584 |
<div class="volumes_table_table_controls"> |
585 |
</div> |
585 |
<a href="#" class="volume-create btn btn-default btn-xs"><i class="fa fa-plus"></i> Create new</a> |
|
|
586 |
</div> |
587 |
[% END %] |
586 |
<table class="volumes-table" id="volumes-table"> |
588 |
<table class="volumes-table" id="volumes-table"> |
587 |
<thead> |
589 |
<thead> |
588 |
<tr> |
590 |
<tr> |
Lines 1481-1493
Note that permanent location is a code, and location may be an authval.
Link Here
|
1481 |
}, |
1483 |
}, |
1482 |
{ |
1484 |
{ |
1483 |
"mDataProp": function( oObj ) { |
1485 |
"mDataProp": function( oObj ) { |
1484 |
return `<button class='volume-edit btn btn-default btn-xs' data-volume-id='${oObj.volume_id}'> |
1486 |
[% IF CAN_user_editcatalogue_manage_volumes %] |
1485 |
<i class='fa fa-edit'></i> ${_('Edit')} |
1487 |
return `<button class='volume-edit btn btn-default btn-xs' data-volume-id='${oObj.volume_id}'> |
1486 |
</button>` |
1488 |
<i class='fa fa-edit'></i> ${_('Edit')} |
1487 |
+ ' ' |
1489 |
</button>` |
1488 |
+ `<button class='volume-delete btn btn-default btn-xs' data-volume-id='${oObj.volume_id}'> |
1490 |
+ ' ' |
1489 |
<i class='fa fa-trash'></i> ${('Delete')} |
1491 |
+ `<button class='volume-delete btn btn-default btn-xs' data-volume-id='${oObj.volume_id}'> |
1490 |
</button>`; |
1492 |
<i class='fa fa-trash'></i> ${('Delete')} |
|
|
1493 |
</button>`; |
1494 |
[% ELSE %] |
1495 |
return ""; |
1496 |
[% END %] |
1491 |
}, |
1497 |
}, |
1492 |
}, |
1498 |
}, |
1493 |
], |
1499 |
], |