Bug 27742: Page titles have unique info first
[koha.git] / koha-tmpl / opac-tmpl / bootstrap / en / modules / opac-addbybiblionumber.tt
1 [% INCLUDE 'doc-head-open.inc' %]
2 <title>Add to your list &rsaquo; [% IF ( LibraryNameTitle ) %][% LibraryNameTitle | html %][% ELSE %]Koha online[% END %] catalog</title>
3 [% INCLUDE 'doc-head-close.inc' %]
4 [% BLOCK cssinclude %][% END %]
5 </head>
6 [% INCLUDE 'bodytag.inc' bodyid='addtolist' bodyclass='popup' %]
7     <div class="main">
8         <div class="container-fluid">
9             <div class="row">
10                 <div class="col order-first order-md-first order-lg-2">
11                     <div id="useraddbybiblionumber" class="maincontent">
12                         [% IF ( authorized ) %]
13                             [% UNLESS ( newshelf ) %]
14                                 [% IF ( multiple ) %]
15                                     <h1>Add [% total | html %] items to [% IF ( singleshelf ) %]<em>[% shelfname | html %]</em>: [% ELSE %]a list:[% END %]</h1>
16                                 [% ELSE %]
17                                     <h1>Add to [% IF ( singleshelf ) %]<em>[% shelfname | html %]</em>[% ELSE %]a list:[% END %]</h1>
18                                 [% END %]
19                                 <ul>
20                                     [% FOREACH biblio IN biblios %]
21                                         <li> <span class="title">[% INCLUDE 'biblio-title.inc' %]</span>
22                                             [% IF ( biblio.author ) %]<span class="author"> [% biblio.author | html %] </span>[% END %]
23                                         </li>
24                                     [% END %]
25                                 </ul>
26                                 [% IF private_shelves.count or public_shelves.count or private_shelves_shared_with_me.count %]
27                                     <form name="f1" action="/cgi-bin/koha/opac-addbybiblionumber.pl" method="post">
28                                         <fieldset>
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 | html %]">[% private_shelf.shelfname | html %]</option>
34                                                     [% END %]
35                                                 </optgroup>[% END %]
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 | html %]">[% private_shelf.shelfname | html %]</option>
39                                                     [% END %]
40                                                 </optgroup>[% END %]
41                                                 [% IF public_shelves.count %]<optgroup label="Public lists">
42                                                     [% FOREACH public_shelf IN public_shelves %]
43                                                     <option value="[% public_shelf.shelfnumber | html %]">[% public_shelf.shelfname | html %]</option>
44                                                     [% END %]
45                                                 </optgroup>[% END %]
46                                             </select>
47                                             [% FOREACH biblio IN biblios %]
48                                                 <input type="hidden" name="biblionumber" value="[% biblio.biblionumber | html %]" />
49                                             [% END %]
50                                             <input type="hidden" name="modifyshelfcontents" value="1" />
51                                         </fieldset>
52                                         <fieldset class="action">
53                                             <input type="submit" value="Save" class="btn btn-primary" />
54                                             <a class="close cancel" href="#">Cancel</a>
55                                         </fieldset>
56                                     </form>
57                                     <p>...or...</p>
58                                 [% ELSE %]
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 | html %]">
63                                             [% END %]
64                                             <input type="hidden" name="shelfnumber" value="[% shelfnumber | html %]" />
65                                             <input type="hidden" name="modifyshelfcontents" value="1" /></fieldset>
66                                             <fieldset class="action">
67                                                 <input type="submit" value="Save" class="btn btn-primary" />
68                                                 <a class="close cancel" href="#">Cancel</a>
69                                             </fieldset>
70                                         </form>
71                                     [% END %]
72                                 [% END # IF / existingshelves %]
73                             [% END # / UNLESS newshelf %]
74
75                             [% UNLESS ( singleshelf ) %]
76                                 <form name="f2" method="post" action="/cgi-bin/koha/opac-addbybiblionumber.pl">
77                                     <fieldset>
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>
86                                                 [% END %]
87                                             </select>
88                                     </fieldset>
89                                     [% FOREACH biblio IN biblios %]
90                                         <input type="hidden" name="biblionumber" value="[% biblio.biblionumber | html %]" />
91                                     [% END %]
92                                     <fieldset class="action">
93                                         <input type="hidden" name="sortfield" value="title" />
94                                         <input type="submit" value="Save" class="btn btn-primary" />
95                                         <a class="close cancel" href="#">Cancel</a>
96                                     </fieldset>
97                                 </form>
98                             [% END # / UNLESS singleshelf %]
99                         [% ELSE %]
100                             <p>
101                                 [% IF (errcode==1) %]
102                                     Could not create new list. Please check if the name is unique.
103                                 [% ELSE %]
104                                     Sorry, you cannot add items to this list.
105                                 [% END %]
106                             </p>
107                         [% END # IF authorized %]
108                         <p><a href="#" class="close">Close this window.</a></p>
109                     </div> <!-- / #useraddbybiblionumber -->
110                 </div> <!-- / .span12 -->
111             </div> <!-- / .row -->
112         </div> <!-- / .container-fluid -->
113     </div> <!-- / .main -->
114
115 [% INCLUDE 'opac-bottom.inc' is_popup=1 %]
116 [% BLOCK jsinclude %][% END %]