[% INCLUDE 'doc-head-open.inc' %]
-<title>Koha › Add to List</title>
+<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>
+<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 ) %]
[% UNLESS ( shelfnumber ) %]
-[% IF ( CGIvirtualshelves ) %] [% UNLESS ( newshelf ) %]
+[% UNLESS ( newshelf ) %]
<fieldset class="rows">
<legend>Select an existing list</legend>
<ol>
- <li><label>Choose list</label>[% CGIvirtualshelves %]</li>
+ <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 ) %]
[% END %]
</fieldset>
- <p>... or...</p> [% END %]
-
- [% END %]
+ <p>... or...</p>
+[% END %]
<fieldset class="rows"><legend>Add to a new list:</legend>
<ol><li>
<select name="category" id="category">
<option value="1">Private</option>
<option value="2">Public</option>
- <option value="3">Open</option>
</select>
</li></ol>
</fieldset>
</div>
[% INCLUDE 'intranet-bottom.inc' %]
+[% END %]