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) %]
11 [% IF (errcode==1) %]Could not create a new list. Please check the name.<br/>[% END %]
12 [% IF (errcode==2) %]Sorry, you do not have permission to add items to this list.<br/>[% END %]
13 <a href="javascript:self.close();">Close this window.</a>
18 <h1>Add [% total | html %] items to [% IF ( singleshelf ) %]<em>[% shelfname | html %]</em>: [% ELSE %]a list:[% END %]</h1>
20 <h1>Add to [% IF ( singleshelf ) %]<em>[% shelfname | html %]</em>[% ELSE %]a list:[% END %]</h1>
23 [% FOREACH biblio IN biblios %]
24 <li> <span class="title">[% biblio.title | html %]</span>
25 [% IF ( biblio.author ) %]<span class="author"> [% biblio.author | html %] </span>[% END %]
30 <form name="f1" action="/cgi-bin/koha/virtualshelves/addbybiblionumber.pl" method="post">
31 [% FOREACH biblio IN biblios %] <input type="hidden" name="biblionumber" value="[% biblio.biblionumber | html %]" />[% END %]
32 <input type="hidden" name="confirmed" value="1" />
33 [% IF ( shelfnumber ) %]<input type="hidden" name="shelfnumber" value="[% shelfnumber | html %]" />[% END %]
35 [% UNLESS ( shelfnumber ) %]
37 [% UNLESS ( newshelf ) %]
38 [% IF private_shelves.count OR public_shelves.count OR private_shelves_shared_with_me.count %]
39 <fieldset class="rows">
40 <legend>Select an existing list</legend>
43 <label>Choose list</label>
44 <select name="shelfnumber" id="shelfnumber">
45 [% IF private_shelves.count %]
46 <optgroup label="Private lists">
47 [% FOREACH private_shelf IN private_shelves %]
48 <option value="[% private_shelf.shelfnumber | html %]">[% private_shelf.shelfname | html %]</option>
52 [% IF private_shelves_shared_with_me.count %]
53 <optgroup label="Private lists shared with me">
54 [% FOREACH private_shelf IN private_shelves_shared_with_me %]
55 <option value="[% private_shelf.shelfnumber | html %]">[% private_shelf.shelfname | html %]</option>
59 [% IF public_shelves.count %]
60 <optgroup label="Public lists">
61 [% FOREACH public_shelf IN public_shelves %]
62 <option value="[% public_shelf.shelfnumber | html %]">[% public_shelf.shelfname | html %]</option>
69 [% FOREACH biblio IN biblios %]<input type="hidden" name="biblionumber" value="[% biblio.biblionumber | html %]" />[% END %]
70 [% UNLESS ( biblionumbers ) %]
71 <input type="hidden" name="biblionumber" value="[% biblionumber | html %]" />
73 <input type="hidden" name="biblionumbers" value="[% biblionumbers | html %]" />
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 | html %]" />[% END %]
87 [% UNLESS ( biblionumbers ) %]
88 <input type="hidden" name="biblionumber" id="biblionumber" value="[% biblionumber | html %]" />
90 <input type="hidden" name="biblionumbers" id="biblionumbers" value="[% biblionumbers | html %]" />
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>
118 [% SET popup_window = 1 %]
119 [% INCLUDE 'intranet-bottom.inc' %]