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