2 [% PROCESS 'i18n.inc' %]
3 [% INCLUDE 'doc-head-open.inc' %]
4 <title>[% FILTER collapse %]
5 [% t("Add to list") | html %] ›
6 [% t("Lists") | html %] ›
9 [% INCLUDE 'doc-head-close.inc' %]
12 <body id="lists_addbybiblionumber" class="lists">
13 <div class="container-fluid">
15 [% UNLESS (authorized) %]
16 <div class="dialog alert">
17 <h1>Error adding to list</h1>
18 [% IF (errcode==1) %]<p>Could not create a new list. Please check the name.</p>[% END %]
19 [% IF (errcode==2) %]<p>Sorry, you do not have permission to add items to this list.</p>[% END %]
20 <button class="btn btn-default close_window focus">Close window</button>
25 <h1>Add [% total | html %] items to [% IF ( singleshelf ) %]<em>[% shelfname | html %]</em>: [% ELSE %]a list:[% END %]</h1>
27 <h1>Add to [% IF ( singleshelf ) %]<em>[% shelfname | html %]</em>[% ELSE %]a list:[% END %]</h1>
30 [% FOREACH biblio IN biblios %]
31 <li> <span class="title">[% biblio.title | html %]</span>
32 [% IF ( biblio.author ) %]<span class="author"> [% biblio.author | html %] </span>[% END %]
37 <form name="f1" action="/cgi-bin/koha/virtualshelves/addbybiblionumber.pl" method="post">
38 [% FOREACH biblio IN biblios %] <input type="hidden" name="biblionumber" value="[% biblio.biblionumber | html %]" />[% END %]
39 <input type="hidden" name="confirmed" value="1" />
40 [% IF ( shelfnumber ) %]<input type="hidden" name="shelfnumber" value="[% shelfnumber | html %]" />[% END %]
42 [% UNLESS ( shelfnumber ) %]
44 [% UNLESS ( newshelf ) %]
45 [% IF private_shelves.count OR public_shelves.count OR private_shelves_shared_with_me.count %]
46 <fieldset class="rows">
47 <legend>Select an existing list</legend>
50 <label>Choose list</label>
51 <select name="shelfnumber" id="shelfnumber">
52 [% IF private_shelves.count %]
53 <optgroup label="Private lists">
54 [% FOREACH private_shelf IN private_shelves %]
55 <option value="[% private_shelf.shelfnumber | html %]">[% private_shelf.shelfname | html %]</option>
59 [% IF private_shelves_shared_with_me.count %]
60 <optgroup label="Private lists shared with me">
61 [% FOREACH private_shelf IN private_shelves_shared_with_me %]
62 <option value="[% private_shelf.shelfnumber | html %]">[% private_shelf.shelfname | html %]</option>
66 [% IF public_shelves.count %]
67 <optgroup label="Public lists">
68 [% FOREACH public_shelf IN public_shelves %]
69 <option value="[% public_shelf.shelfnumber | html %]">[% public_shelf.shelfname | html %]</option>
76 [% FOREACH biblio IN biblios %]<input type="hidden" name="biblionumber" value="[% biblio.biblionumber | html %]" />[% END %]
77 [% UNLESS ( biblionumbers ) %]
78 <input type="hidden" name="biblionumber" value="[% biblionumber | html %]" />
80 <input type="hidden" name="biblionumbers" value="[% biblionumbers | html %]" />
88 <fieldset class="rows"><legend>Add to a new list:</legend>
90 <label for="newvirtualshelf">
93 [% FOREACH biblio IN biblios %]<input type="hidden" name="biblionumber" value="[% biblio.biblionumber | html %]" />[% END %]
94 [% UNLESS ( biblionumbers ) %]
95 <input type="hidden" name="biblionumber" id="biblionumber" value="[% biblionumber | html %]" />
97 <input type="hidden" name="biblionumbers" id="biblionumbers" value="[% biblionumbers | html %]" />
99 <input type="text" name="newvirtualshelf" id="newvirtualshelf" size="40" />
100 <input type="hidden" name="confirmed" value="1" />
103 <label for="category">Category:</label>
104 <select name="public" id="public">
105 <option value="0">Private</option>
106 <option value="1">Public</option>
114 <input type="hidden" name="sortfield" value="title" />
115 <nav class="navbar navbar-default navbar-fixed-bottom">
116 <div class="container-fluid">
117 <fieldset class="action">
118 <input type="submit" class="btn btn-primary" value="Save" />
119 <button class="btn btn-default close_window">Cancel</button>
126 [% SET popup_window = 1 %]
127 [% INCLUDE 'intranet-bottom.inc' %]