1 [% INCLUDE 'doc-head-open.inc' %]
2 <title>Add to list › Koha</title>
3 [% INCLUDE 'doc-head-close.inc' %]
6 <body id="lists_addbybiblionumber" class="lists">
7 <div class="container-fluid">
9 [% UNLESS (authorized) %]
10 <h1>Error adding to list</h1>
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>
19 <h1>Add [% total | html %] items to [% IF ( singleshelf ) %]<em>[% shelfname | html %]</em>: [% ELSE %]a list:[% END %]</h1>
21 <h1>Add to [% IF ( singleshelf ) %]<em>[% shelfname | html %]</em>[% ELSE %]a list:[% END %]</h1>
24 [% FOREACH biblio IN biblios %]
25 <li> <span class="title">[% biblio.title | html %]</span>
26 [% IF ( biblio.author ) %]<span class="author"> [% biblio.author | html %] </span>[% END %]
31 <form name="f1" action="/cgi-bin/koha/virtualshelves/addbybiblionumber.pl" method="post">
32 [% FOREACH biblio IN biblios %] <input type="hidden" name="biblionumber" value="[% biblio.biblionumber | html %]" />[% END %]
33 <input type="hidden" name="confirmed" value="1" />
34 [% IF ( shelfnumber ) %]<input type="hidden" name="shelfnumber" value="[% shelfnumber | html %]" />[% END %]
36 [% UNLESS ( shelfnumber ) %]
38 [% UNLESS ( newshelf ) %]
39 [% IF private_shelves.count OR public_shelves.count OR private_shelves_shared_with_me.count %]
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 | html %]">[% 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 | html %]">[% 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 | html %]">[% public_shelf.shelfname | html %]</option>
70 [% FOREACH biblio IN biblios %]<input type="hidden" name="biblionumber" value="[% biblio.biblionumber | html %]" />[% END %]
71 [% UNLESS ( biblionumbers ) %]
72 <input type="hidden" name="biblionumber" value="[% biblionumber | html %]" />
74 <input type="hidden" name="biblionumbers" value="[% biblionumbers | html %]" />
82 <fieldset class="rows"><legend>Add to a new list:</legend>
84 <label for="newvirtualshelf">
87 [% FOREACH biblio IN biblios %]<input type="hidden" name="biblionumber" value="[% biblio.biblionumber | html %]" />[% END %]
88 [% UNLESS ( biblionumbers ) %]
89 <input type="hidden" name="biblionumber" id="biblionumber" value="[% biblionumber | html %]" />
91 <input type="hidden" name="biblionumbers" id="biblionumbers" value="[% biblionumbers | html %]" />
93 <input type="text" name="newvirtualshelf" id="newvirtualshelf" size="40" />
94 <input type="hidden" name="confirmed" value="1" />
97 <label for="category">Category:</label>
98 <select name="public" id="public">
99 <option value="0">Private</option>
100 <option value="1">Public</option>
110 <fieldset class="action">
111 <input type="hidden" name="sortfield" value="title" />
112 <input type="submit" value="Save" class="submit" /> <a class="close cancel" href="#">Cancel</a>
119 [% SET popup_window = 1 %]
120 [% INCLUDE 'intranet-bottom.inc' %]