Wainui Witika-Park
8cc05042e2
Swapped the order of the page titles to have the unique information first, i.e. the name of the specific page displays first, and the name of the website (e.g. Koha) displays at the end. To test: 1) Apply patch 2) Ensure each of the files in the reserve, reviews and rotating_collections folders are swapped around to display the most unique information first, and the website name is at the end 3) Ensure the pages displayed on the Staff Client that correspond to these files also display the changes Sponsored-by: Catalyst IT Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> Signed-off-by: Henry Bolshaw <bolshawh@parliament.uk> Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
155 lines
6.4 KiB
Text
155 lines
6.4 KiB
Text
[% USE raw %]
|
|
[% USE Asset %]
|
|
[% SET footerjs = 1 %]
|
|
[% INCLUDE 'doc-head-open.inc' %]
|
|
<title>Add or remove items › Collection [% colTitle | html %] › Rotating collections › Tools › Koha</title>
|
|
[% INCLUDE 'doc-head-close.inc' %]
|
|
</head>
|
|
|
|
<body id="rcoll_addItems" class="tools rcoll">
|
|
[% INCLUDE 'header.inc' %]
|
|
[% INCLUDE 'cat-search.inc' %]
|
|
|
|
<nav id="breadcrumbs" aria-label="Breadcrumb" class="breadcrumb">
|
|
<ol>
|
|
<li>
|
|
<a href="/cgi-bin/koha/mainpage.pl">Home</a>
|
|
</li>
|
|
<li>
|
|
<a href="/cgi-bin/koha/tools/tools-home.pl">Tools</a>
|
|
</li>
|
|
<li>
|
|
<a href="/cgi-bin/koha/rotating_collections/rotatingCollections.pl">Rotating collections</a>
|
|
</li>
|
|
<li>
|
|
<a href="/cgi-bin/koha/rotating_collections/addItems.pl?colId=[% colId | uri %]">Collection <em>[% colTitle | html %]</em></a>
|
|
</li>
|
|
<li>
|
|
<a href="#" aria-current="page">
|
|
Add or remove items
|
|
</a>
|
|
</li>
|
|
</ol>
|
|
</nav>
|
|
|
|
<div class="main container-fluid">
|
|
<div class="row">
|
|
<div class="col-sm-10 col-sm-push-2">
|
|
<main>
|
|
|
|
[% IF ( ! colId ) %]
|
|
<div class="dialog message">
|
|
<p>Invalid collection id</p>
|
|
<p><a href="/cgi-bin/koha/rotating_collections/rotatingCollections.pl">Return to rotating collections home</a></p>
|
|
</div>
|
|
[% ELSE %]
|
|
[% INCLUDE 'rotating-collections-toolbar.inc' %]
|
|
<h1>Collection <em>[% colTitle | html %]</em></h1>
|
|
|
|
[% IF ( previousActionAdd ) %]
|
|
[% IF ( addSuccess ) %]
|
|
<div class="dialog message">Item with barcode '[% barcode | html %]' added successfully</div>
|
|
[% ELSE %]
|
|
<div class="dialog alert">
|
|
<p>Failed to add item with barcode <em>[% barcode | html %]</em>:
|
|
<p>
|
|
[% IF failureMessage == "NO_ITEM" %]
|
|
No item with matching barcode found
|
|
[% ELSIF failureMessage == "IN_COLLECTION_OTHER" %]
|
|
Item is already in a different rotating collection
|
|
[% ELSIF failureMessage == "IN_COLLECTION" %]
|
|
Item is already in this collection
|
|
[% ELSE %]
|
|
[% failureMessage | html %]
|
|
[% END %]
|
|
</p>
|
|
</div>
|
|
[% END %]
|
|
[% END %]
|
|
|
|
[% IF ( previousActionRemove ) %]
|
|
[% IF ( removeSuccess ) %]
|
|
<div class="dialog message">Item with barcode <em>[% barcode | html %]</em> removed successfully</div>
|
|
[% ELSE %]
|
|
<div class="dialog alert">
|
|
Failed to remove item with barcode <em>[% barcode | html %]</em>:
|
|
<p>
|
|
[% IF failureMessage == "NO_ITEM" %]
|
|
No item with matching barcode found
|
|
[% ELSIF failureMessage == "NOT_IN_COLLECTION" %]
|
|
Item is not in this collection
|
|
[% ELSE %]
|
|
[% failureMessage | html %]
|
|
[% END %]
|
|
</p>
|
|
</div>
|
|
[% END %]
|
|
[% END %]
|
|
|
|
<div>
|
|
<form action="addItems.pl" method="post">
|
|
<fieldset class="brief">
|
|
<legend>Add or remove items</legend>
|
|
<ol>
|
|
<li>
|
|
<label for="barcode">Barcode: </label>
|
|
<input type="text" id="barcode" name="barcode" />
|
|
[% IF ( removeChecked ) %]
|
|
<label class="inline"><input type="checkbox" name="removeItem" checked="checked" /> Remove item from collection</label>
|
|
[% ELSE %]
|
|
<label class="inline"><input type="checkbox" name="removeItem" /> Remove item from collection</label>
|
|
[% END %]
|
|
</li>
|
|
</ol>
|
|
<p>
|
|
<input type="hidden" id="colId" name="colId" value="[% colId | html %]" />
|
|
<input type="hidden" name="action" value="addItem" />
|
|
<input type="submit" value="Submit" />
|
|
</p>
|
|
</fieldset>
|
|
|
|
</form>
|
|
</div>
|
|
|
|
<div>
|
|
<h2>Items in <em>[% colTitle | html %]</em></h2>
|
|
[% IF ( collectionItemsLoop ) %]
|
|
<h3>Total items: [% collectionItemsLoop.size | html%]</h3>
|
|
<table>
|
|
<tr>
|
|
<th>Title</th>
|
|
<th>Call number</th>
|
|
<th>Barcode</th>
|
|
<th> </th>
|
|
</tr>
|
|
[% FOREACH collectionItemsLoo IN collectionItemsLoop %]
|
|
<tr>
|
|
<td>[% INCLUDE 'biblio-title.inc' biblio=collectionItemsLoo link = 1 %]</td>
|
|
<td>[% collectionItemsLoo.itemcallnumber | html %]</td>
|
|
<td>[% collectionItemsLoo.barcode | html %]</td>
|
|
<td><a href="/cgi-bin/koha/rotating_collections/addItems.pl?colId=[% colId | uri %]&barcode=[% collectionItemsLoo.barcode | uri %]&removeItem=1&action=addItem">Remove</a></td>
|
|
</tr>
|
|
[% END %]
|
|
</table>
|
|
[% ELSE %]
|
|
<div class="dialog message">There are no items in this collection.</div>
|
|
[% END %]
|
|
</div>
|
|
[% END %]
|
|
|
|
</main>
|
|
</div> <!-- /.col-sm-10.col-sm-push-2 -->
|
|
|
|
<div class="col-sm-2 col-sm-pull-10">
|
|
<aside>
|
|
[% INCLUDE 'tools-menu.inc' %]
|
|
</aside>
|
|
</div> <!-- /.col-sm-2.col-sm-pull-10 -->
|
|
</div> <!-- /.row -->
|
|
|
|
[% MACRO jsinclude BLOCK %]
|
|
[% Asset.js("js/tools-menu.js") | $raw %]
|
|
[% Asset.js("js/rotating-collections.js") | $raw %]
|
|
[% END %]
|
|
|
|
[% INCLUDE 'intranet-bottom.inc' %]
|