Koha/koha-tmpl/intranet-tmpl/prog/en/modules/rotating_collections/addItems.tt
Owen Leonard 19f9bc0528 Bug 25762: Typo in linkitem.tt
This patch corrects the same typo in two different templates:

’ -> ›

If you want to test beyond examining the patch, apply the patch
and go to Tools -> Rotating collections.

- Add an item to a rotating collection.
- In the browser's title bar (or the tab title if the title bar isn't
  shown) the separator between the rotating collection name and "Add or
  remove items" should be ">" instead of "`"
- Enable the EasyAnalyticalRecords system preference.
- View the detail page for a bibliographic record.
- From the "Edit" menu, choose "Link to host record"
- Check the title bar as you did previously.

Signed-off-by: Sally <sally.healey@cheshiresharedservices.gov.uk>

Signed-off-by: Nick Clemens <nick@bywatersolutions.com>

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
2020-08-03 11:47:39 +02:00

135 lines
6.2 KiB
Text

[% USE raw %]
[% USE Asset %]
[% SET footerjs = 1 %]
[% INCLUDE 'doc-head-open.inc' %]
<title>Koha &rsaquo; Tools &rsaquo; Rotating collections &rsaquo; Collection [% colTitle | html %] &rsaquo; Add or remove items</title>
[% INCLUDE 'doc-head-close.inc' %]
</head>
<body id="rcoll_addItems" class="tools rcoll">
[% INCLUDE 'header.inc' %]
[% INCLUDE 'cat-search.inc' %]
<div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> &rsaquo; <a href="/cgi-bin/koha/tools/tools-home.pl">Tools</a> &rsaquo; <a href="/cgi-bin/koha/rotating_collections/rotatingCollections.pl">Rotating collections</a> &rsaquo; <a href="/cgi-bin/koha/rotating_collections/addItems.pl?colId=[% colId | html %]">Collection <i>[% colTitle | html %]</i></a> &rsaquo; Add or remove items</div>
<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 <i>[% colTitle | html %]</i></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 <i>[% barcode | html %]</i>:
<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 <i>[% barcode | html %]</i> removed successfully</div>
[% ELSE %]
<div class="dialog alert">
Failed to remove item with barcode <i>[% barcode | html %]</i>:
<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 <i>[% colTitle | html %]</i></h2>
[% IF ( collectionItemsLoop ) %]
<h3>Total items: [% collectionItemsLoop.size | html%]</h3>
<table>
<tr>
<th>Title</th>
<th>Call number</th>
<th>Barcode</th>
<th>&nbsp;</th>
</tr>
[% FOREACH collectionItemsLoo IN collectionItemsLoop %]
<tr>
<td>[% INCLUDE 'biblio-default-view.inc' biblionumber = collectionItemsLoo.biblionumber %][% collectionItemsLoo.title | html %]</a></td>
<td>[% collectionItemsLoo.itemcallnumber | html %]</td>
<td>[% collectionItemsLoo.barcode | html %]</td>
<td><a href="/cgi-bin/koha/rotating_collections/addItems.pl?colId=[% colId | uri %]&amp;barcode=[% collectionItemsLoo.barcode | uri %]&amp;removeItem=1&amp;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' %]