db4af00ce1
Signed-off-by: Paul Poulain <paul.poulain@biblibre.com> This patch also fixes some vocabulary replacing "shelf" by "list"
111 lines
3.9 KiB
Text
111 lines
3.9 KiB
Text
[% INCLUDE 'doc-head-open.inc' %]
|
|
<title>Koha › Add to list</title>
|
|
[% INCLUDE '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="lists_addbybiblionumber" class="lists">
|
|
|
|
[% UNLESS (authorized) %]
|
|
<p align="center">
|
|
[% IF (errcode==1) %]Could not create a new list. Please check the name.<br/>[% END %]
|
|
[% IF (errcode==2) %]Sorry, you do not have permission to add items to this list.<br/>[% END %]
|
|
<a href="javascript:self.close();">Close this window.</a>
|
|
</p>
|
|
[% ELSE %]
|
|
<div id="custom-doc" class="yui-t7">
|
|
<div id="bd">
|
|
[% IF ( multiple ) %]
|
|
<h1>Add [% total %] items to [% IF ( singleshelf ) %]<em>[% shelfname %]</em>: [% ELSE %]a list:[% END %]</h1>
|
|
[% ELSE %]
|
|
<h1>Add to [% IF ( singleshelf ) %]<em>[% shelfname %]</em>[% ELSE %]a list:[% END %]</h1>
|
|
[% END %]
|
|
<ul>
|
|
[% FOREACH biblio IN biblios %]
|
|
<li> <span class="title">[% biblio.title |html %]</span>
|
|
[% IF ( biblio.author ) %]<span class="author"> [% biblio.author %] </span>[% END %]
|
|
</li>
|
|
[% END %]
|
|
</ul>
|
|
|
|
<form name="f1" action="/cgi-bin/koha/virtualshelves/addbybiblionumber.pl" method="post">
|
|
[% FOREACH biblio IN biblios %] <input type="hidden" name="biblionumber" value="[% biblio.biblionumber %]" />[% END %]
|
|
<input type="hidden" name="confirmed" value="1" />
|
|
[% IF ( shelfnumber ) %]<input type="hidden" name="shelfnumber" value="[% shelfnumber %]" />[% END %]
|
|
|
|
[% UNLESS ( shelfnumber ) %]
|
|
|
|
[% UNLESS ( newshelf ) %]
|
|
<fieldset class="rows">
|
|
<legend>Select an existing list</legend>
|
|
<ol>
|
|
<li>
|
|
<label>Choose list</label>
|
|
<select name="shelfnumber" id="shelfnumber">
|
|
[% IF ( privatevirtualshelves ) %]
|
|
<optgroup label="Private lists">
|
|
[% FOREACH privatevirtualshelve IN privatevirtualshelves %]
|
|
<option value="[% privatevirtualshelve.shelfnumber %]">[% privatevirtualshelve.shelfname %]</option>
|
|
[% END %]
|
|
</optgroup>
|
|
[% END %]
|
|
[% IF ( publicvirtualshelves ) %]
|
|
<optgroup label="Public lists">
|
|
[% FOREACH publicvirtualshelve IN publicvirtualshelves %]
|
|
<option value="[% publicvirtualshelve.shelfnumber %]">[% publicvirtualshelve.shelfname %]</option>
|
|
[% END %]
|
|
</optgroup>
|
|
[% END %]
|
|
</select>
|
|
</li>
|
|
</ol>
|
|
[% FOREACH biblio IN biblios %]<input type="hidden" name="biblionumber" value="[% biblio.biblionumber %]" />[% END %]
|
|
[% UNLESS ( biblionumbers ) %]
|
|
<input type="hidden" name="biblionumber" value="[% biblionumber %]" />
|
|
[% ELSE %]
|
|
<input type="hidden" name="biblionumbers" value="[% biblionumbers %]" />
|
|
[% END %]
|
|
</fieldset>
|
|
|
|
<p>... or...</p>
|
|
[% END %]
|
|
|
|
<fieldset class="rows"><legend>Add to a new list:</legend>
|
|
<ol><li>
|
|
<label for="newvirtualshelf">
|
|
List name:
|
|
</label>
|
|
[% FOREACH biblio IN biblios %]<input type="hidden" name="biblionumber" value="[% biblio.biblionumber %]" />[% END %]
|
|
[% UNLESS ( biblionumbers ) %]
|
|
<input type="hidden" name="biblionumber" id="biblionumber" value="[% biblionumber %]" />
|
|
[% ELSE %]
|
|
<input type="hidden" name="biblionumbers" id="biblionumbers" value="[% biblionumbers %]" />
|
|
[% END %]
|
|
<input type="text" name="newvirtualshelf" id="newvirtualshelf" size="40" />
|
|
<input type="hidden" name="confirmed" value="1" />
|
|
</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>
|
|
|
|
|
|
[% END %]
|
|
|
|
|
|
<!-- SAVE -->
|
|
<fieldset class="action">
|
|
<input type="submit" value="Save" class="submit" /> <a class="close cancel" href="#">Cancel</a>
|
|
</fieldset>
|
|
</form>
|
|
<!-- /SAVE -->
|
|
|
|
</div>
|
|
|
|
[% INCLUDE 'intranet-bottom.inc' %]
|
|
[% END %]
|