Lines 267-273
Link Here
|
267 |
[% IF CAN_user_tools_items_batchmod %] |
267 |
[% IF CAN_user_tools_items_batchmod %] |
268 |
<a class="itemselection_action_modify"><i class="fa fa-pencil"></i> Modify selected items</a> |
268 |
<a class="itemselection_action_modify"><i class="fa fa-pencil"></i> Modify selected items</a> |
269 |
[% END %] |
269 |
[% END %] |
270 |
[% IF biblio.volumes.count %] |
270 |
[% IF CAN_user_editcatalogue_manage_volumes && biblio.volumes.count %] |
271 |
<a class="itemselection_action_volume_set" href="#"><i class="fa fa-book"></i> Add/move to volume</a> |
271 |
<a class="itemselection_action_volume_set" href="#"><i class="fa fa-book"></i> Add/move to volume</a> |
272 |
<a class="itemselection_action_volume_unset" href="#"><i class="fa fa-unlink"></i> Remove from volume</a> |
272 |
<a class="itemselection_action_volume_unset" href="#"><i class="fa fa-unlink"></i> Remove from volume</a> |
273 |
[% END %] |
273 |
[% END %] |
Lines 540-548
Note that permanent location is a code, and location may be an authval.
Link Here
|
540 |
|
540 |
|
541 |
[% IF Koha.Preference('EnableVolumes') %] |
541 |
[% IF Koha.Preference('EnableVolumes') %] |
542 |
<div id="volumes"> |
542 |
<div id="volumes"> |
543 |
<div class="volumes_table_table_controls"> |
543 |
[% IF CAN_user_editcatalogue_manage_volumes %] |
544 |
<a href="#" class="volume-create btn btn-default btn-xs"><i class="fa fa-plus"></i> Create new</a> |
544 |
<div class="volumes_table_table_controls"> |
545 |
</div> |
545 |
<a href="#" class="volume-create btn btn-default btn-xs"><i class="fa fa-plus"></i> Create new</a> |
|
|
546 |
</div> |
547 |
[% END %] |
546 |
<table class="volumes-table" id="volumes-table"> |
548 |
<table class="volumes-table" id="volumes-table"> |
547 |
<thead> |
549 |
<thead> |
548 |
<tr> |
550 |
<tr> |
Lines 1432-1444
Note that permanent location is a code, and location may be an authval.
Link Here
|
1432 |
}, |
1434 |
}, |
1433 |
{ |
1435 |
{ |
1434 |
"mDataProp": function( oObj ) { |
1436 |
"mDataProp": function( oObj ) { |
1435 |
return `<button class='volume-edit btn btn-default btn-xs' data-volume-id='${oObj.volume_id}'> |
1437 |
[% IF CAN_user_editcatalogue_manage_volumes %] |
1436 |
<i class='fa fa-edit'></i> ${_('Edit')} |
1438 |
return `<button class='volume-edit btn btn-default btn-xs' data-volume-id='${oObj.volume_id}'> |
1437 |
</button>` |
1439 |
<i class='fa fa-edit'></i> ${_('Edit')} |
1438 |
+ ' ' |
1440 |
</button>` |
1439 |
+ `<button class='volume-delete btn btn-default btn-xs' data-volume-id='${oObj.volume_id}'> |
1441 |
+ ' ' |
1440 |
<i class='fa fa-trash'></i> ${('Delete')} |
1442 |
+ `<button class='volume-delete btn btn-default btn-xs' data-volume-id='${oObj.volume_id}'> |
1441 |
</button>`; |
1443 |
<i class='fa fa-trash'></i> ${('Delete')} |
|
|
1444 |
</button>`; |
1445 |
[% ELSE %] |
1446 |
return ""; |
1447 |
[% END %] |
1442 |
}, |
1448 |
}, |
1443 |
}, |
1449 |
}, |
1444 |
], |
1450 |
], |