|
Lines 10-81
Link Here
|
| 10 |
> |
10 |
> |
| 11 |
[% INCLUDE 'doc-head-close.inc' %] |
11 |
[% INCLUDE 'doc-head-close.inc' %] |
| 12 |
[% BLOCK cssinclude %] |
12 |
[% BLOCK cssinclude %] |
|
|
13 |
<style> |
| 14 |
form { |
| 15 |
margin-left: 3rem; |
| 16 |
} |
| 17 |
.form-divider { |
| 18 |
background-color: #eee; |
| 19 |
border-bottom: 1px solid #d5d5d5; |
| 20 |
border-top: 1px solid #d5d5d5; |
| 21 |
margin: 0.5rem -1rem 0.5rem -1rem; |
| 22 |
padding: 0.5rem 2rem; |
| 23 |
} |
| 24 |
</style> |
| 13 |
[% END %] |
25 |
[% END %] |
| 14 |
</head> |
26 |
</head> |
| 15 |
[% INCLUDE 'bodytag.inc' bodyid='addtolist' bodyclass='popup' %] |
27 |
[% INCLUDE 'bodytag.inc' bodyid='addtolist' bodyclass='popup' %] |
|
|
28 |
<nav class="navbar fixed-top"> |
| 29 |
<div class="navbar-brand"> |
| 30 |
[% IF ( newshelf ) %] |
| 31 |
<h1>Add to a new list</h1> |
| 32 |
[% ELSE %] |
| 33 |
[% IF ( multiple ) %] |
| 34 |
<h1>Add [% total | html %] items to [% IF ( singleshelf ) %]<em>[% shelfname | html %]</em>:[% ELSE %]<span>a list</span>[% END %]</h1> |
| 35 |
[% ELSE %] |
| 36 |
<h1>Add to [% IF ( singleshelf ) %]<em>[% shelfname | html %]</em>[% ELSE %]<span>a list</span>[% END %]</h1> |
| 37 |
[% END %] |
| 38 |
[% END %] |
| 39 |
</div> |
| 40 |
<ul class="navbar-nav"> |
| 41 |
<li class="nav-item"> |
| 42 |
<button type="button" class="btn-close close" aria-label="Close"></button> |
| 43 |
</li> |
| 44 |
</ul> |
| 45 |
</nav> |
| 46 |
|
| 16 |
<main class="main"> |
47 |
<main class="main"> |
| 17 |
<div class="container-fluid"> |
48 |
<div class="container-fluid"> |
| 18 |
<div class="row"> |
49 |
<div class="row"> |
| 19 |
<div class="col order-first order-md-first order-lg-2"> |
50 |
<div class="col"> |
| 20 |
<div id="useraddbybiblionumber" class="maincontent"> |
51 |
<div id="add_to_list" class="maincontent"> |
| 21 |
[% IF ( authorized ) %] |
52 |
[% IF ( authorized ) %] |
| 22 |
[% UNLESS ( newshelf ) %] |
53 |
<ul> |
| 23 |
[% IF ( multiple ) %] |
54 |
[% FOREACH biblio IN biblios %] |
| 24 |
<h1>Add [% total | html %] items to [% IF ( singleshelf ) %]<em>[% shelfname | html %]</em>:[% ELSE %]<span>a list:</span>[% END %]</h1> |
55 |
<li |
| 25 |
[% ELSE %] |
56 |
>[% INCLUDE 'biblio-title.inc' %] |
| 26 |
<h1>Add to [% IF ( singleshelf ) %]<em>[% shelfname | html %]</em>[% ELSE %]<span>a list:</span>[% END %]</h1> |
57 |
[% IF ( biblio.author ) %]<span class="author"> [% biblio.author | html %]</span>[% END %] |
|
|
58 |
</li> |
| 27 |
[% END %] |
59 |
[% END %] |
| 28 |
<ul> |
60 |
</ul> |
| 29 |
[% FOREACH biblio IN biblios %] |
61 |
[% UNLESS ( newshelf ) %] |
| 30 |
<li |
|
|
| 31 |
>[% INCLUDE 'biblio-title.inc' %] |
| 32 |
[% IF ( biblio.author ) %]<span class="author"> [% biblio.author | html %]</span>[% END %] |
| 33 |
</li> |
| 34 |
[% END %] |
| 35 |
</ul> |
| 36 |
[% IF private_shelves.count or public_shelves.count or private_shelves_shared_with_me.count %] |
62 |
[% IF private_shelves.count or public_shelves.count or private_shelves_shared_with_me.count %] |
| 37 |
<form name="f1" action="/cgi-bin/koha/opac-addbybiblionumber.pl" method="post"> |
63 |
<form name="f1" action="/cgi-bin/koha/opac-addbybiblionumber.pl" method="post"> |
| 38 |
[% INCLUDE 'csrf-token.inc' %] |
64 |
[% INCLUDE 'csrf-token.inc' %] |
| 39 |
<fieldset> |
65 |
<fieldset> |
| 40 |
<legend>Select a list</legend> |
66 |
<legend>Select a list</legend> |
| 41 |
<label for="shelfnumber">Add to list:</label> |
67 |
<div> |
| 42 |
<select name="shelfnumber" id="shelfnumber"> |
68 |
<label class="form-label" for="shelfnumber">Add to list:</label> |
| 43 |
[% IF private_shelves.count %] |
69 |
<select name="shelfnumber" id="shelfnumber" class="form-select"> |
| 44 |
<optgroup label="Private lists"> |
70 |
[% IF private_shelves.count %] |
| 45 |
[% FOREACH private_shelf IN private_shelves %] |
71 |
<optgroup label="Private lists"> |
| 46 |
<option value="[% private_shelf.shelfnumber | html %]">[% private_shelf.shelfname | html %]</option> |
72 |
[% FOREACH private_shelf IN private_shelves %] |
| 47 |
[% END %] |
73 |
<option value="[% private_shelf.shelfnumber | html %]">[% private_shelf.shelfname | html %]</option> |
| 48 |
</optgroup> |
74 |
[% END %] |
| 49 |
[% END %] |
75 |
</optgroup> |
| 50 |
[% IF private_shelves_shared_with_me.count %] |
76 |
[% END %] |
| 51 |
<optgroup label="Private lists shared with me"> |
77 |
[% IF private_shelves_shared_with_me.count %] |
| 52 |
[% FOREACH private_shelf IN private_shelves_shared_with_me %] |
78 |
<optgroup label="Private lists shared with me"> |
| 53 |
<option value="[% private_shelf.shelfnumber | html %]">[% private_shelf.shelfname | html %]</option> |
79 |
[% FOREACH private_shelf IN private_shelves_shared_with_me %] |
| 54 |
[% END %] |
80 |
<option value="[% private_shelf.shelfnumber | html %]">[% private_shelf.shelfname | html %]</option> |
| 55 |
</optgroup> |
81 |
[% END %] |
| 56 |
[% END %] |
82 |
</optgroup> |
| 57 |
[% IF public_shelves.count %] |
83 |
[% END %] |
| 58 |
<optgroup label="Public lists"> |
84 |
[% IF public_shelves.count %] |
| 59 |
[% FOREACH public_shelf IN public_shelves %] |
85 |
<optgroup label="Public lists"> |
| 60 |
<option value="[% public_shelf.shelfnumber | html %]">[% public_shelf.shelfname | html %]</option> |
86 |
[% FOREACH public_shelf IN public_shelves %] |
| 61 |
[% END %] |
87 |
<option value="[% public_shelf.shelfnumber | html %]">[% public_shelf.shelfname | html %]</option> |
| 62 |
</optgroup> |
88 |
[% END %] |
|
|
89 |
</optgroup> |
| 90 |
[% END %] |
| 91 |
</select> |
| 92 |
[% FOREACH biblio IN biblios %] |
| 93 |
<input type="hidden" name="biblionumber" value="[% biblio.biblionumber | html %]" /> |
| 63 |
[% END %] |
94 |
[% END %] |
| 64 |
</select> |
95 |
<input type="hidden" name="op" value="cud-modifyshelfcontents" /> |
| 65 |
[% FOREACH biblio IN biblios %] |
96 |
</div> |
| 66 |
<input type="hidden" name="biblionumber" value="[% biblio.biblionumber | html %]" /> |
|
|
| 67 |
[% END %] |
| 68 |
<input type="hidden" name="op" value="cud-modifyshelfcontents" /> |
| 69 |
</fieldset> |
97 |
</fieldset> |
| 70 |
<fieldset class="action"> |
98 |
<fieldset class="action"> |
| 71 |
<input type="submit" value="Save" class="btn btn-primary" /> |
99 |
<input type="submit" value="Save" class="btn btn-primary" /> |
| 72 |
<a class="close cancel" href="#">Cancel</a> |
100 |
<a class="close cancel" href="#">Cancel</a> |
| 73 |
</fieldset> |
101 |
</fieldset> |
| 74 |
</form> |
102 |
</form> |
| 75 |
<p>...or...</p> |
|
|
| 76 |
[% ELSE %] |
103 |
[% ELSE %] |
| 77 |
[% IF ( singleshelf ) %] |
104 |
[% IF ( singleshelf ) %] |
| 78 |
<form name="f1" action="/cgi-bin/koha/opac-addbybiblionumber.pl" method="post"> |
105 |
<form name="f1" action="/cgi-bin/koha/opac-addbybiblionumber.pl" method="post" style="margin-left:0"> |
| 79 |
[% INCLUDE 'csrf-token.inc' %] |
106 |
[% INCLUDE 'csrf-token.inc' %] |
| 80 |
[% FOREACH biblio IN biblios %] |
107 |
[% FOREACH biblio IN biblios %] |
| 81 |
<input type="hidden" name="biblionumber" value="[% biblio.biblionumber | html %]" /> |
108 |
<input type="hidden" name="biblionumber" value="[% biblio.biblionumber | html %]" /> |
|
Lines 90-110
Link Here
|
| 90 |
[% END %] |
117 |
[% END %] |
| 91 |
[% END # IF / existingshelves %] |
118 |
[% END # IF / existingshelves %] |
| 92 |
[% END # / UNLESS newshelf %] |
119 |
[% END # / UNLESS newshelf %] |
|
|
120 |
[% END # / IF authorized %] |
| 121 |
</div> |
| 122 |
</div> |
| 123 |
</div> |
| 124 |
</div> |
| 125 |
|
| 126 |
[% IF ( authorized && !newshelf && !singleshelf) %] |
| 127 |
[% #UNLESS ( newshelf ) %] |
| 128 |
[% #UNLESS ( singleshelf ) %] |
| 129 |
<div class="form-divider">...or...</div> |
| 130 |
[% #END %] |
| 131 |
[% #END %] |
| 132 |
[% END %] |
| 93 |
|
133 |
|
|
|
134 |
<div class="container-fluid"> |
| 135 |
<div class="row"> |
| 136 |
<div class="col"> |
| 137 |
<div id="add_to_new_list" class="maincontent"> |
| 138 |
[% IF ( authorized ) %] |
| 94 |
[% UNLESS ( singleshelf ) %] |
139 |
[% UNLESS ( singleshelf ) %] |
| 95 |
<form name="f2" method="post" action="/cgi-bin/koha/opac-addbybiblionumber.pl"> |
140 |
<form name="f2" method="post" action="/cgi-bin/koha/opac-addbybiblionumber.pl"> |
| 96 |
[% INCLUDE 'csrf-token.inc' %] |
141 |
[% INCLUDE 'csrf-token.inc' %] |
| 97 |
<fieldset> |
142 |
<fieldset> |
| 98 |
<legend>Add to a new list:</legend> |
143 |
<legend>Add to a new list:</legend> |
| 99 |
<label for="newvirtualshelf">List name:</label> |
144 |
<div> |
| 100 |
<input type="text" name="newvirtualshelf" id="newvirtualshelf" size="40" /> |
145 |
<label for="newvirtualshelf" class="form-label required">List name:</label> |
| 101 |
<label for="category">Category:</label> |
146 |
<input type="text" name="newvirtualshelf" id="newvirtualshelf" size="40" class="form-control" required="required" /> |
| 102 |
<select name="public" id="public"> |
147 |
</div> |
| 103 |
<option value="0">Private</option> |
148 |
<div> |
| 104 |
[% IF (OpacAllowPublicListCreation) %] |
149 |
<label for="public" class="form-label">Category:</label> |
| 105 |
<option value="1">Public</option> |
150 |
<select name="public" id="public" class="form-select"> |
| 106 |
[% END %] |
151 |
<option value="0">Private</option> |
| 107 |
</select> |
152 |
[% IF (OpacAllowPublicListCreation) %] |
|
|
153 |
<option value="1">Public</option> |
| 154 |
[% END %] |
| 155 |
</select> |
| 156 |
</div> |
| 108 |
</fieldset> |
157 |
</fieldset> |
| 109 |
[% FOREACH biblio IN biblios %] |
158 |
[% FOREACH biblio IN biblios %] |
| 110 |
<input type="hidden" name="biblionumber" value="[% biblio.biblionumber | html %]" /> |
159 |
<input type="hidden" name="biblionumber" value="[% biblio.biblionumber | html %]" /> |
|
Lines 126-132
Link Here
|
| 126 |
[% END %] |
175 |
[% END %] |
| 127 |
</p> |
176 |
</p> |
| 128 |
[% END # IF authorized %] |
177 |
[% END # IF authorized %] |
| 129 |
<p><a href="#" class="close">Close this window.</a></p> |
|
|
| 130 |
</div> |
178 |
</div> |
| 131 |
<!-- / #useraddbybiblionumber --> |
179 |
<!-- / #useraddbybiblionumber --> |
| 132 |
</div> |
180 |
</div> |