1 [% INCLUDE 'doc-head-open.inc' %]
2 <title>Koha › Add to list</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 %] 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 %] </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 %]" />[% END %]
32 <input type="hidden" name="confirmed" value="1" />
33 [% IF ( shelfnumber ) %]<input type="hidden" name="shelfnumber" value="[% shelfnumber %]" />[% END %]
35 [% UNLESS ( shelfnumber ) %]
37 [% UNLESS ( newshelf ) %]
38 <fieldset class="rows">
39 <legend>Select an existing list</legend>
42 <label>Choose list</label>
43 <select name="shelfnumber" id="shelfnumber">
44 [% IF private_shelves.count %]
45 <optgroup label="Private lists">
46 [% FOREACH private_shelf IN private_shelves %]
47 <option value="[% private_shelf.shelfnumber %]">[% private_shelf.shelfname | html%]</option>
51 [% IF private_shelves_shared_with_me.count %]
52 <optgroup label="Private lists shared with me">
53 [% FOREACH private_shelf IN private_shelves_shared_with_me %]
54 <option value="[% private_shelf.shelfnumber %]">[% private_shelf.shelfname | html%]</option>
58 [% IF public_shelves.count %]
59 <optgroup label="Public lists">
60 [% FOREACH public_shelf IN public_shelves %]
61 <option value="[% public_shelf.shelfnumber %]">[% public_shelf.shelfname | html%]</option>
68 [% FOREACH biblio IN biblios %]<input type="hidden" name="biblionumber" value="[% biblio.biblionumber %]" />[% END %]
69 [% UNLESS ( biblionumbers ) %]
70 <input type="hidden" name="biblionumber" value="[% biblionumber %]" />
72 <input type="hidden" name="biblionumbers" value="[% biblionumbers %]" />
79 <fieldset class="rows"><legend>Add to a new list:</legend>
81 <label for="newvirtualshelf">
84 [% FOREACH biblio IN biblios %]<input type="hidden" name="biblionumber" value="[% biblio.biblionumber %]" />[% END %]
85 [% UNLESS ( biblionumbers ) %]
86 <input type="hidden" name="biblionumber" id="biblionumber" value="[% biblionumber %]" />
88 <input type="hidden" name="biblionumbers" id="biblionumbers" value="[% biblionumbers %]" />
90 <input type="text" name="newvirtualshelf" id="newvirtualshelf" size="40" />
91 <input type="hidden" name="confirmed" value="1" />
94 <label for="category">Category:</label>
95 <select name="category" id="category">
96 <option value="1">Private</option>
97 <option value="2">Public</option>
107 <fieldset class="action">
108 <input type="hidden" name="sortfield" value="title" />
109 <input type="submit" value="Save" class="submit" /> <a class="close cancel" href="#">Cancel</a>
114 [% SET popup_window = 1 %]
115 [% INCLUDE 'intranet-bottom.inc' %]