Koha/koha-tmpl/opac-tmpl/prog/en/modules/opac-addbybiblionumber.tmpl
Owen Leonard 731b933d51 Fix for Bug 3523 - Menu of existing lists limited to 10
- adding "more" option to the search results dropdown
- offering a scrolling list on the add-to-list popup
- lists add popup shows the full list of all
  the patron's lists, divided into groups of private and
  public lists.

Can be improved by a fix for Bug 5529

Signed-off-by: Julian Maurice <julian.maurice@biblibre.com>
Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz>
2011-03-31 21:08:40 +13:00

84 lines
4.2 KiB
Cheetah

<!-- TMPL_INCLUDE NAME="doc-head-open.inc" -->
<!-- TMPL_IF NAME="LibraryNameTitle" --><!-- TMPL_VAR NAME="LibraryNameTitle" --><!-- TMPL_ELSE -->Koha Online<!-- /TMPL_IF --> Catalog &rsaquo; Add to Your List
<!-- TMPL_INCLUDE NAME="doc-head-close.inc" -->
<style type="text/css">
#custom-doc { width:34.62em;*width:33.78em;min-width:450px; margin:auto; margin-top: .4em;text-align:left; }
</style>
</head>
<body id="addtolist">
<div id="custom-doc" class="yui-t7">
<div id="useraddbybiblionumber" class="container">
<!-- TMPL_IF NAME="authorized" -->
<!-- TMPL_UNLESS NAME="newshelf" -->
<!-- TMPL_IF NAME="multiple"-->
<h1>Add <!-- TMPL_VAR NAME="total"--> items to <!-- TMPL_IF NAME="singleshelf" --><em><!-- TMPL_VAR NAME="shelfname" --></em>: <!-- TMPL_ELSE -->a list:<!-- /TMPL_IF --></h1>
<!-- TMPL_ELSE -->
<h1>Add to <!-- TMPL_IF NAME="singleshelf" --><em><!-- TMPL_VAR NAME="shelfname" --></em><!-- TMPL_ELSE -->a list:<!-- /TMPL_IF --></h1>
<!-- /TMPL_IF -->
<ul>
<!-- TMPL_LOOP NAME="biblios"-->
<li> <span class="title"><!-- TMPL_VAR NAME="title" ESCAPE="html"--></span>
<!-- TMPL_IF NAME="author"--><span class="author"> <!-- TMPL_VAR NAME="author"--> </span><!-- /TMPL_IF -->
</li>
<!-- /TMPL_LOOP -->
</ul>
<!-- TMPL_IF NAME="existingshelves" -->
<form name="f1" action="/cgi-bin/koha/opac-addbybiblionumber.pl" method="post">
<fieldset class="rows"><legend>Select a List</legend>
<ol><li> <label for="shelfnumber">Add to list:</label> <select name="shelfnumber" id="shelfnumber">
<!-- TMPL_IF NAME="privatevirtualshelves" --><optgroup label="Private Lists">
<!-- TMPL_LOOP NAME="privatevirtualshelves" -->
<option value="<!-- TMPL_VAR NAME="shelfnumber" -->"><!-- TMPL_VAR NAME="shelfname" --></option>
<!-- /TMPL_LOOP -->
</optgroup><!-- /TMPL_IF -->
<!-- TMPL_IF NAME="publicvirtualshelves" --><optgroup label="Public Lists">
<!-- TMPL_LOOP NAME="publicvirtualshelves" -->
<option value="<!-- TMPL_VAR NAME="shelfnumber" -->"><!-- TMPL_VAR NAME="shelfname" --></option>
<!-- /TMPL_LOOP -->
</optgroup><!-- /TMPL_IF -->
</select></li></ol>
<!-- TMPL_LOOP NAME="biblios" --> <input type="hidden" name="biblionumber" value="<!-- TMPL_VAR NAME="biblionumber" -->" /><!-- /TMPL_LOOP -->
<input type="hidden" name="modifyshelfcontents" value="1" /></fieldset>
<fieldset class="action"><input type="submit" value="Save" class="submit" /> <a class="close cancel" href="#">Cancel</a></fieldset>
</form>
<p>...or...</p>
<!-- TMPL_ELSE -->
<!-- TMPL_IF NAME="singleshelf" -->
<form name="f1" action="/cgi-bin/koha/opac-addbybiblionumber.pl" method="post">
<!-- TMPL_LOOP NAME="biblios" --> <input type="hidden" name="biblionumber" value="<!-- TMPL_VAR NAME="biblionumber" -->"><!-- /TMPL_LOOP -->
<input type="hidden" name="shelfnumber" value="<!-- TMPL_VAR NAME="shelfnumber" -->" />
<input type="hidden" name="modifyshelfcontents" value="1" /></fieldset>
<fieldset class="action"><input type="submit" value="Save" class="submit" /> <a class="close cancel" href="#">Cancel</a></fieldset>
</form>
<!-- /TMPL_IF -->
<!-- /TMPL_IF -->
<!-- /TMPL_UNLESS -->
<!-- TMPL_UNLESS NAME="singleshelf" --><form name="f2" method="post" action="/cgi-bin/koha/opac-addbybiblionumber.pl">
<fieldset class="rows"> <legend>Add to a New List:</legend>
<ol><li>
<label for="newvirtualshelf">
List Name:
</label>
<input type="text" name="newvirtualshelf" id="newvirtualshelf" size="40" />
</li>
<li><label for="category">Category:</label>
<select name="category" id="category">
<option value="1">Private</option>
<option value="2">Public</option>
</select></li></ol></fieldset>
<!-- TMPL_LOOP NAME="biblios" --> <input type="hidden" name="biblionumber" value="<!-- TMPL_VAR NAME="biblionumber" -->" /><!-- /TMPL_LOOP -->
<fieldset class="action"><input type="submit" value="Save" class="submit" /> <a class="close cancel" href="#">Cancel</a></fieldset>
</form>
<!-- /TMPL_UNLESS -->
<!-- TMPL_ELSE -->
<p align="center">
This is not an open list.
Items cannot be added to it.
</p>
<!-- /TMPL_IF -->
<p align="center">
<a href="#" class="close">Close this window.</a>
</p>
</div></div>
</body>
</html>