Owen Leonard
7dbf36e83f
This patch modifies the staff client lists page so that the barcode/biblionumber entry form from the left hand sidebar into a modal window, triggered by a button in the toolbar. To test, apply the patch and rebuild the staff client CSS (https://wiki.koha-community.org/wiki/Working_with_SCSS_in_the_OPAC_and_staff_client). - View the contents of a list in the staff client, logged in as a user who has permission to add items. - Click the "Add items" button. A modal window should appear with the barcode/biblionumber entry form. - Submit barcodes and/or biblionumbers and confirm that the correct titles are added to the list. - Log in again as a user who does not have permission to add to the list. Confirm that the button isn't present. Signed-off-by: Mackey Johnstone <mackeyfj@gmail.com> Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
39 lines
2.7 KiB
HTML
39 lines
2.7 KiB
HTML
[% INCLUDE 'blocking_errors.inc' %]
|
|
|
|
<div id="toolbar" class="btn-toolbar">
|
|
<div class="btn-group"><a id="newshelf" class="btn btn-default btn-sm" href="/cgi-bin/koha/virtualshelves/shelves.pl?op=add_form&referer=[% op | html %]"><i class="fa fa-plus"></i> New list</a></div>
|
|
|
|
[% IF ( can_add_biblios ) %]
|
|
<div class="btn-group">
|
|
<button type="button" class="btn btn-default btn-sm" data-toggle="modal" data-target="#addToList">
|
|
<i class="fa fa-plus"></i> Add items
|
|
</button>
|
|
</div>
|
|
[% END %]
|
|
|
|
[% IF shelf AND op == 'view' %]
|
|
[% IF can_manage_shelf %]
|
|
<div class="btn-group">
|
|
<button class="btn btn-default btn-sm dropdown-toggle" data-toggle="dropdown"><i class="fa fa-pencil"></i> Edit <span class="caret"></span></button>
|
|
<ul class="dropdown-menu">
|
|
<li><a href="/cgi-bin/koha/virtualshelves/shelves.pl?op=edit_form&shelfnumber=[% shelf.shelfnumber | uri %]&referer=[% op | uri %]">Edit list</a></li>
|
|
<li><a id="deleteshelf" href="/cgi-bin/koha/virtualshelves/shelves.pl?op=delete&shelfnumber=[% shelf.shelfnumber | html %]">Delete list</a></li>
|
|
</ul>
|
|
</div>
|
|
[% END %]
|
|
|
|
<div class="btn-group">
|
|
<button class="btn btn-default btn-sm dropdown-toggle" data-toggle="dropdown"><i class="fa fa-download"></i> Download list <span class="caret"></span></button>
|
|
<ul class="dropdown-menu">
|
|
<li><a href="/cgi-bin/koha/virtualshelves/downloadshelf.pl?format=iso2709&shelfid=[% shelf.shelfnumber | uri %]">iso2709</a></li>
|
|
<li><a href="/cgi-bin/koha/virtualshelves/downloadshelf.pl?format=ris&shelfid=[% shelf.shelfnumber | uri %]">RIS</a></li>
|
|
<li><a href="/cgi-bin/koha/virtualshelves/downloadshelf.pl?format=bibtex&shelfid=[% shelf.shelfnumber | uri %]">BibTex</a></li>
|
|
[% FOREACH csv_profile IN csv_profiles %]
|
|
<li><a href="/cgi-bin/koha/virtualshelves/downloadshelf.pl?format=[% csv_profile.export_format_id | uri %]&shelfid=[% shelf.shelfnumber | uri %]">CSV - [% csv_profile.profile | html %]</a></li>
|
|
[% END %]
|
|
</ul>
|
|
</div>
|
|
<div class="btn-group"><a class="btn btn-default btn-sm" href="#" id="sendlist"><i class="fa fa-envelope"></i> Send list</a></div>
|
|
<div class="btn-group"><a class="btn btn-default btn-sm" id="printlist" target="_blank" href="/cgi-bin/koha/virtualshelves/shelves.pl?op=view&shelfnumber=[% shelf.shelfnumber | html %]&print=1"><i class="fa fa-print"></i> Print list</a></div>
|
|
[% END %]
|
|
</div>
|