1 [% INCLUDE 'doc-head-open.inc' %]
2 <title>Koha › Add to list</title>
3 [% INCLUDE 'doc-head-close.inc' %]
4 <style type="text/css">
5 #custom-doc { width:34.62em;*width:33.78em;min-width:450px; margin:auto; margin-top: .4em;text-align:left; }
8 <body id="lists_addbybiblionumber" class="lists">
10 [% UNLESS (authorized) %]
12 [% IF (errcode==1) %]Could not create a new list. Please check the name.<br/>[% END %]
13 [% IF (errcode==2) %]Sorry, you do not have permission to add items to this list.<br/>[% END %]
14 <a href="javascript:self.close();">Close this window.</a>
17 <div id="custom-doc" class="yui-t7">
20 <h1>Add [% total %] items to [% IF ( singleshelf ) %]<em>[% shelfname | html%]</em>: [% ELSE %]a list:[% END %]</h1>
22 <h1>Add to [% IF ( singleshelf ) %]<em>[% shelfname | html %]</em>[% ELSE %]a list:[% END %]</h1>
25 [% FOREACH biblio IN biblios %]
26 <li> <span class="title">[% biblio.title |html %]</span>
27 [% IF ( biblio.author ) %]<span class="author"> [% biblio.author %] </span>[% END %]
32 <form name="f1" action="/cgi-bin/koha/virtualshelves/addbybiblionumber.pl" method="post">
33 [% FOREACH biblio IN biblios %] <input type="hidden" name="biblionumber" value="[% biblio.biblionumber %]" />[% END %]
34 <input type="hidden" name="confirmed" value="1" />
35 [% IF ( shelfnumber ) %]<input type="hidden" name="shelfnumber" value="[% shelfnumber %]" />[% END %]
37 [% UNLESS ( shelfnumber ) %]
39 [% UNLESS ( newshelf ) %]
40 <fieldset class="rows">
41 <legend>Select an existing list</legend>
44 <label>Choose list</label>
45 <select name="shelfnumber" id="shelfnumber">
46 [% IF private_shelves.count %]
47 <optgroup label="Private lists">
48 [% FOREACH private_shelf IN private_shelves %]
49 <option value="[% private_shelf.shelfnumber %]">[% private_shelf.shelfname | html%]</option>
53 [% IF private_shelves_shared_with_me.count %]
54 <optgroup label="Private lists shared with me">
55 [% FOREACH private_shelf IN private_shelves_shared_with_me %]
56 <option value="[% private_shelf.shelfnumber %]">[% private_shelf.shelfname | html%]</option>
60 [% IF public_shelves.count %]
61 <optgroup label="Public lists">
62 [% FOREACH public_shelf IN public_shelves %]
63 <option value="[% public_shelf.shelfnumber %]">[% public_shelf.shelfname | html%]</option>
70 [% FOREACH biblio IN biblios %]<input type="hidden" name="biblionumber" value="[% biblio.biblionumber %]" />[% END %]
71 [% UNLESS ( biblionumbers ) %]
72 <input type="hidden" name="biblionumber" value="[% biblionumber %]" />
74 <input type="hidden" name="biblionumbers" value="[% biblionumbers %]" />
81 <fieldset class="rows"><legend>Add to a new list:</legend>
83 <label for="newvirtualshelf">
86 [% FOREACH biblio IN biblios %]<input type="hidden" name="biblionumber" value="[% biblio.biblionumber %]" />[% END %]
87 [% UNLESS ( biblionumbers ) %]
88 <input type="hidden" name="biblionumber" id="biblionumber" value="[% biblionumber %]" />
90 <input type="hidden" name="biblionumbers" id="biblionumbers" value="[% biblionumbers %]" />
92 <input type="text" name="newvirtualshelf" id="newvirtualshelf" size="40" />
93 <input type="hidden" name="confirmed" value="1" />
96 <label for="category">Category:</label>
97 <select name="category" id="category">
98 <option value="1">Private</option>
99 <option value="2">Public</option>
109 <fieldset class="action">
110 <input type="hidden" name="sortfield" value="title" />
111 <input type="submit" value="Save" class="submit" /> <a class="close cancel" href="#">Cancel</a>
117 [% SET popup_window = 1 %]
118 [% INCLUDE 'intranet-bottom.inc' %]