9971756a24
Adding code to refresh "Lists" button lists display in OPAC masthead.inc Adding javascript to force refresh of parent window to update "Lists" button menu Adding query limits and ability to specify row count and offset in queries related to Virtualshelves. Also added the ability to return total record counts for specified virtualshelves. Adding C4::VirtualShelves::GetRecentShelves which returns a list of the most recently modified shelves for a given set of parameters. This allows the user to be offered active private and open lists to add books to in drop down menus while also allowing drop down menus to be limited to a reasonable length. This also limits the shelves stored in the user's session to a fixed number. A further enhancement might be to add a syspref to enable a staff member to define the limit. Currently it is hardcoded at 10 per list type (private/public-open). Adding pagination to list/shelf related screens Moving refresh shelves code into C4::VirtualShelves::RefreshShelvesSummary and tidying up a bit Correcting several inconsistancies in the shelves templates as well as handling shelf management on the intranet side correctly. Correcting "Add To:" drop-down list to show only lists the patron has permission to add to Correcting a few C4::VirtualShelves::GetShelvesSummary API calls Modifications for template consistancy Breaking up a 1367 char line of javascript in opac-results.tmpl Signed-off-by: Galen Charlton <galen.charlton@liblime.com> Signed-off-by: Joshua Ferraro <jmf@liblime.com>
73 lines
3.6 KiB
Cheetah
73 lines
3.6 KiB
Cheetah
<!-- TMPL_INCLUDE NAME="doc-head-open.inc" -->
|
|
<!-- TMPL_IF NAME="LibraryNameTitle" --><!-- TMPL_VAR NAME="LibraryNameTitle" --><!-- TMPL_ELSE -->Koha Online<!-- /TMPL_IF --> Catalog › 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 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"--></span>
|
|
<!-- TMPL_IF NAME="author"--><span class="author"> <!-- TMPL_VAR NAME="author"--> </span><!-- /TMPL_IF -->
|
|
</li>
|
|
<!-- /TMPL_LOOP -->
|
|
</ul>
|
|
<!-- TMPL_IF NAME="CGIvirtualshelves"-->
|
|
<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> <!-- TMPL_VAR NAME="CGIvirtualshelves" --></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>
|