1 [% INCLUDE 'doc-head-open.inc' %]
2 <title>[% IF ( LibraryNameTitle ) %][% LibraryNameTitle %][% ELSE %]Koha online[% END %] catalog › Add to your list</title>
3 [% INCLUDE 'doc-head-close.inc' %]
4 [% BLOCK cssinclude %][% END %]
6 [% INCLUDE 'bodytag.inc' bodyid='addtolist' bodyclass='popup' %]
8 <div class="container-fluid">
9 <div class="row-fluid">
11 <div id="useraddbybiblionumber">
12 [% IF ( authorized ) %]
13 [% UNLESS ( newshelf ) %]
15 <h1>Add [% total %] items to [% IF ( singleshelf ) %]<em>[% shelfname | html %]</em>: [% ELSE %]a list:[% END %]</h1>
17 <h1>Add to [% IF ( singleshelf ) %]<em>[% shelfname | html %]</em>[% ELSE %]a list:[% END %]</h1>
20 [% FOREACH biblio IN biblios %]
21 <li> <span class="title">[% biblio.title |html %]</span>
22 [% IF ( biblio.author ) %]<span class="author"> [% biblio.author %] </span>[% END %]
26 [% IF private_shelves.count or public_shelves.count or private_shelves_shared_with_me %]
27 <form name="f1" action="/cgi-bin/koha/opac-addbybiblionumber.pl" method="post">
29 <legend>Select a list</legend>
30 <label for="shelfnumber">Add to list:</label> <select name="shelfnumber" id="shelfnumber">
31 [% IF private_shelves.count %]<optgroup label="Private lists">
32 [% FOREACH private_shelf IN private_shelves %]
33 <option value="[% private_shelf.shelfnumber %]">[% private_shelf.shelfname | html%]</option>
36 [% IF private_shelves_shared_with_me.count %]<optgroup label="Private lists shared with me">
37 [% FOREACH private_shelf IN private_shelves_shared_with_me %]
38 <option value="[% private_shelf.shelfnumber %]">[% private_shelf.shelfname | html%]</option>
41 [% IF public_shelves.count %]<optgroup label="Public lists">
42 [% FOREACH public_shelf IN public_shelves %]
43 <option value="[% public_shelf.shelfnumber %]">[% public_shelf.shelfname |html%]</option>
47 [% FOREACH biblio IN biblios %]
48 <input type="hidden" name="biblionumber" value="[% biblio.biblionumber %]" />
50 <input type="hidden" name="modifyshelfcontents" value="1" />
52 <fieldset class="action">
53 <input type="submit" value="Save" class="btn" />
54 <a class="close cancel" href="#">Cancel</a>
59 [% IF ( singleshelf ) %]
60 <form name="f1" action="/cgi-bin/koha/opac-addbybiblionumber.pl" method="post">
61 [% FOREACH biblio IN biblios %]
62 <input type="hidden" name="biblionumber" value="[% biblio.biblionumber %]">
64 <input type="hidden" name="shelfnumber" value="[% shelfnumber %]" />
65 <input type="hidden" name="modifyshelfcontents" value="1" /></fieldset>
66 <fieldset class="action">
67 <input type="submit" value="Save" class="btn" />
68 <a class="close cancel" href="#">Cancel</a>
72 [% END # IF / existingshelves %]
73 [% END # / UNLESS newshelf %]
75 [% UNLESS ( singleshelf ) %]
76 <form name="f2" method="post" action="/cgi-bin/koha/opac-addbybiblionumber.pl">
78 <legend>Add to a new list:</legend>
79 <label for="newvirtualshelf">List name:</label>
80 <input type="text" name="newvirtualshelf" id="newvirtualshelf" size="40" />
81 <label for="category">Category:</label>
82 <select name="category" id="category">
83 <option value="1">Private</option>
84 [% IF (OpacAllowPublicListCreation) %]
85 <option value="2">Public</option>
89 [% FOREACH biblio IN biblios %]
90 <input type="hidden" name="biblionumber" value="[% biblio.biblionumber | html%]" />
92 <fieldset class="action">
93 <input type="hidden" name="sortfield" value="title" />
94 <input type="submit" value="Save" class="btn" />
95 <a class="close cancel" href="#">Cancel</a>
98 [% END # / UNLESS singleshelf %]
101 [% IF (errcode==1) %]
102 Could not create new list. Please check if the name is unique.
104 Sorry, you cannot add items to this list.
107 [% END # IF authorized %]
108 <p><a href="#" class="close">Close this window.</a></p>
109 </div> <!-- / #useraddbybiblionumber -->
110 </div> <!-- / .span12 -->
111 </div> <!-- / .row-fluid -->
112 </div> <!-- / .container-fluid -->
113 </div> <!-- / .main -->
115 [% INCLUDE 'opac-bottom.inc' is_popup=1 %]
116 [% BLOCK jsinclude %][% END %]