Lines 13-427
Link Here
|
13 |
</head> |
13 |
</head> |
14 |
|
14 |
|
15 |
<body id="ser_serials-home" class="ser"> |
15 |
<body id="ser_serials-home" class="ser"> |
16 |
[% INCLUDE 'header.inc' %] |
16 |
[% INCLUDE 'header.inc' %] |
17 |
[% INCLUDE 'serials-search.inc' %] |
17 |
[% INCLUDE 'serials-search.inc' %] |
18 |
|
18 |
|
19 |
<nav id="breadcrumbs" aria-label="Breadcrumb" class="breadcrumb"> |
19 |
<nav id="breadcrumbs" aria-label="Breadcrumb" class="breadcrumb"> |
20 |
<ol> |
20 |
<ol> |
21 |
<li> |
|
|
22 |
<a href="/cgi-bin/koha/mainpage.pl">Home</a> |
23 |
</li> |
24 |
[% IF ( done_searched ) %] |
25 |
<li> |
26 |
<a href="/cgi-bin/koha/serials/serials-home.pl">Serials</a> |
27 |
</li> |
28 |
<li> |
29 |
<a href="#" aria-current="page"> |
30 |
Search results |
31 |
</a> |
32 |
</li> |
33 |
[% ELSE %] |
34 |
<li> |
21 |
<li> |
35 |
<a href="#" aria-current="page"> |
22 |
<a href="/cgi-bin/koha/mainpage.pl">Home</a> |
36 |
Serials |
|
|
37 |
</a> |
38 |
</li> |
23 |
</li> |
39 |
[% END %] |
24 |
[% IF ( done_searched ) %] |
40 |
</ol> |
25 |
<li> |
41 |
</nav> |
26 |
<a href="/cgi-bin/koha/serials/serials-home.pl">Serials</a> |
42 |
|
27 |
</li> |
43 |
[% url_params = [] %] |
28 |
<li> |
44 |
[% FOREACH param IN CGI.params.pairs %] |
29 |
<a href="#" aria-current="page"> |
45 |
[% escaped_value = BLOCK %][% param.value | uri %][% END %] |
30 |
Search results |
46 |
[% url_params.push(param.key _ '=' _ escaped_value) %] |
31 |
</a> |
47 |
[% END %] |
32 |
</li> |
48 |
[% SET referrer = '/cgi-bin/koha/serials/serials-search.pl?' %] |
33 |
[% ELSE %] |
49 |
[% referrer = BLOCK %][% referrer | url %][% url_params.join("&") |uri %][% END %] |
34 |
<li> |
50 |
[% SET edit_action_link = '/cgi-bin/koha/serials/subscription-batchedit.pl?referrer=' _ referrer %] |
35 |
<a href="#" aria-current="page"> |
51 |
|
36 |
Serials |
52 |
[% BLOCK subscriptions_table %] |
37 |
</a> |
53 |
<form method="post"> |
38 |
</li> |
|
|
39 |
[% END %] |
40 |
</ol> |
41 |
</nav> |
54 |
|
42 |
|
55 |
[% IF closed %] |
43 |
[% url_params = [] %] |
56 |
[% SET tab = 'closed' %] |
44 |
[% FOREACH param IN CGI.params.pairs %] |
57 |
[% ELSE %] |
45 |
[% escaped_value = BLOCK %][% param.value | uri %][% END %] |
58 |
[% SET tab = 'opened' %] |
46 |
[% url_params.push(param.key _ '=' _ escaped_value) %] |
59 |
[% END %] |
47 |
[% END %] |
60 |
[% IF CAN_user_serials_edit_subscription %] |
|
|
61 |
<div class="actions"> |
62 |
<a class="select-all" href="#" data-tab="[% tab | html %]"><i class="fa fa-check"></i> Select all</a> |
63 |
| |
64 |
<a class="clear-all" href="#" data-tab="[% tab | html %]"><i class="fa fa-remove"></i> Clear all</a> |
65 |
<span class="itemselection_actions"> |
66 |
| Actions: |
67 |
<a class="itemselection_action_modify"><i class="fa fa-pencil"></i> Edit selected serials</a> |
68 |
</span> |
69 |
</div> |
70 |
[% END %] |
71 |
<table> |
72 |
<thead> |
73 |
<tr> |
74 |
<th></th> |
75 |
<th>ISSN</th> |
76 |
<th class="anti-the">Title</th> |
77 |
<th>Notes</th> |
78 |
<th>Library</th> |
79 |
<th>Location</th> |
80 |
<th>Call number</th> |
81 |
[% UNLESS closed %] |
82 |
<th>Expiration date</th> |
83 |
[% END %] |
84 |
[% FOR field IN additional_fields_for_subscription %] |
85 |
<th>[% field.name | html %]</th> |
86 |
[% END %] |
87 |
<th class="NoSort noExport">Actions</th> |
88 |
</tr> |
89 |
</thead> |
90 |
<tfoot> |
91 |
<tr> |
92 |
<td></td> |
93 |
<td><input type="text" class="dt-filter" data-column_num="1" placeholder="Search ISSN" /></td> |
94 |
<td><input type="text" class="dt-filter" data-column_num="2" placeholder="Search title" /></td> |
95 |
<td><input type="text" class="dt-filter" data-column_num="3" placeholder="Search notes" /></td> |
96 |
<td><input type="text" class="dt-filter" data-column_num="4" placeholder="Search library" /></td> |
97 |
<td><input type="text" class="dt-filter" data-column_num="5" placeholder="Search location" /></td> |
98 |
<td><input type="text" class="dt-filter" data-column_num="6" placeholder="Search callnumber" /></td> |
99 |
[% SET column_num = 6 %] |
100 |
[% UNLESS closed %] |
101 |
<td><input type="text" class="dt-filter" data-column_num="7" placeholder="Search expiration date" /></td> |
102 |
[% SET column_num = column_num + 1 %] |
103 |
[% END %] |
104 |
[% FOR field IN additional_fields_for_subscription %] |
105 |
<td><input type="text" class="dt-filter" data-column_num="[% loop.count + column_num | html %]" placeholder="Search [% field.name | html %]" /></td> |
106 |
[% END %] |
107 |
<td></td> |
108 |
</tr> |
109 |
</tfoot> |
110 |
<tbody> |
111 |
[% FOREACH subscription IN subscriptions %] |
112 |
[% UNLESS subscription.cannotdisplay %] |
113 |
<tr> |
114 |
<td> |
115 |
[% UNLESS subscription.cannotedit %] |
116 |
<input type="checkbox" name="subscriptionid" value="[% subscription.subscriptionid | html %]" /> |
117 |
[% ELSE %] |
118 |
<input type="checkbox" name="subscriptionid" value="[% subscription.subscriptionid | html %]" disabled="disabled" title="You cannot edit this subscription" /> |
119 |
[% END %] |
120 |
</td> |
121 |
<td> |
122 |
[% IF ( subscription.issn ) %][% subscription.issn | html %] |
123 |
[% END %] |
124 |
</td> |
125 |
<td><a href="/cgi-bin/koha/serials/subscription-detail.pl?subscriptionid=[% subscription.subscriptionid | uri %]" class="button" title="subscription detail">[% subscription.title | html %]</a> |
126 |
</td> |
127 |
<td>[% IF ( subscription.publicnotes ) %][% subscription.publicnotes | html %][% END %] |
128 |
[% IF ( subscription.internalnotes ) %]([% subscription.internalnotes | html %])[% END %] |
129 |
</td> |
130 |
<td> |
131 |
[% IF ( subscription.branchcode ) %][% Branches.GetName( subscription.branchcode ) | html %][% END %] |
132 |
</td> |
133 |
<td> |
134 |
[% IF ( subscription.location ) %][% AuthorisedValues.GetDescriptionByKohaField( kohafield => 'items.location', authorised_value => subscription.location ) | html %][% END %] |
135 |
</td> |
136 |
<td> |
137 |
[% IF ( subscription.callnumber ) %][% subscription.callnumber | html %][% END %] |
138 |
</td> |
139 |
[% UNLESS closed %] |
140 |
<td data-order="[% subscription.enddate | html %]"> |
141 |
[% subscription.enddate | $KohaDates %] |
142 |
</td> |
143 |
[% END %] |
144 |
|
48 |
|
145 |
[% FOR field IN additional_fields_for_subscription %] |
49 |
[% SET referrer = '/cgi-bin/koha/serials/serials-search.pl?' %] |
146 |
[% IF field.authorised_value_category %] |
50 |
[% referrer = BLOCK %][% referrer | url %][% url_params.join("&") |uri %][% END %] |
147 |
<td>[% AuthorisedValues.GetByCode( field.authorised_value_category, subscription.additional_fields.${field.name} ) | html %]</td> |
51 |
[% SET edit_action_link = '/cgi-bin/koha/serials/subscription-batchedit.pl?referrer=' _ referrer %] |
148 |
[% ELSE %] |
52 |
|
149 |
<td>[% subscription.additional_fields.${field.name} | html %]</td> |
53 |
[% BLOCK subscriptions_table %] |
150 |
[% END %] |
54 |
<form method="post"> |
|
|
55 |
[% IF closed %] |
56 |
[% SET tab = 'closed' %] |
57 |
[% ELSE %] |
58 |
[% SET tab = 'opened' %] |
151 |
[% END %] |
59 |
[% END %] |
|
|
60 |
[% IF CAN_user_serials_edit_subscription %] |
61 |
<div class="actions"> |
62 |
<a class="select-all" href="#" data-tab="[% tab | html %]"><i class="fa fa-check"></i> Select all</a> |
63 |
| |
64 |
<a class="clear-all" href="#" data-tab="[% tab | html %]"><i class="fa fa-remove"></i> Clear all</a> |
65 |
<span class="itemselection_actions"> |
66 |
| Actions: |
67 |
<a class="itemselection_action_modify"><i class="fa fa-pencil"></i> Edit selected serials</a> |
68 |
</span> |
69 |
</div> |
70 |
[% END %] |
71 |
<table> |
72 |
<thead> |
73 |
<tr> |
74 |
<th></th> |
75 |
<th>ISSN</th> |
76 |
<th class="anti-the">Title</th> |
77 |
<th>Notes</th> |
78 |
<th>Library</th> |
79 |
<th>Location</th> |
80 |
<th>Call number</th> |
81 |
[% UNLESS closed %] |
82 |
<th>Expiration date</th> |
83 |
[% END %] |
84 |
[% FOR field IN additional_fields_for_subscription %] |
85 |
<th>[% field.name | html %]</th> |
86 |
[% END %] |
87 |
<th class="NoSort noExport">Actions</th> |
88 |
</tr> |
89 |
</thead> |
90 |
<tbody> |
91 |
[% FOREACH subscription IN subscriptions %] |
92 |
[% UNLESS subscription.cannotdisplay %] |
93 |
<tr> |
94 |
<td> |
95 |
[% UNLESS subscription.cannotedit %] |
96 |
<input type="checkbox" name="subscriptionid" value="[% subscription.subscriptionid | html %]" /> |
97 |
[% ELSE %] |
98 |
<input type="checkbox" name="subscriptionid" value="[% subscription.subscriptionid | html %]" disabled="disabled" title="You cannot edit this subscription" /> |
99 |
[% END %] |
100 |
</td> |
101 |
<td> |
102 |
[% IF ( subscription.issn ) %] |
103 |
[% subscription.issn | html %] |
104 |
[% END %] |
105 |
</td> |
106 |
<td> |
107 |
<a href="/cgi-bin/koha/serials/subscription-detail.pl?subscriptionid=[% subscription.subscriptionid | uri %]" class="button" title="subscription detail">[% subscription.title | html %]</a> |
108 |
</td> |
109 |
<td> |
110 |
[% IF ( subscription.publicnotes ) %][% subscription.publicnotes | html %][% END %] |
111 |
[% IF ( subscription.internalnotes ) %]([% subscription.internalnotes | html %])[% END %] |
112 |
</td> |
113 |
<td> |
114 |
[% IF ( subscription.branchcode ) %][% Branches.GetName( subscription.branchcode ) | html %][% END %] |
115 |
</td> |
116 |
<td> |
117 |
[% IF ( subscription.location ) %] |
118 |
[% AuthorisedValues.GetDescriptionByKohaField( kohafield => 'items.location', authorised_value => subscription.location ) | html %] |
119 |
[% END %] |
120 |
</td> |
121 |
<td> |
122 |
[% IF ( subscription.callnumber ) %][% subscription.callnumber | html %][% END %] |
123 |
</td> |
124 |
[% UNLESS closed %] |
125 |
<td data-order="[% subscription.enddate | html %]"> |
126 |
[% subscription.enddate | $KohaDates %] |
127 |
</td> |
128 |
[% END %] |
152 |
|
129 |
|
153 |
<td> |
130 |
[% FOR field IN additional_fields_for_subscription %] |
154 |
<div class="btn-group dropup"> |
131 |
[% IF field.authorised_value_category %] |
155 |
[% IF closed %] |
132 |
<td>[% AuthorisedValues.GetByCode( field.authorised_value_category, subscription.additional_fields.${field.name} ) | html %]</td> |
156 |
<a class="btn btn-default btn-xs dropdown-toggle" id="closedsubactions[% subscription.subscriptionid | html %]" role="button" data-toggle="dropdown" href="#"> |
133 |
[% ELSE %] |
157 |
Actions <b class="caret"></b> |
134 |
<td>[% subscription.additional_fields.${field.name} | html %]</td> |
158 |
</a> |
135 |
[% END %] |
159 |
<ul class="dropdown-menu pull-right" role="menu" aria-labelledby="closedsubactions[% subscription.subscriptionid | html %]"> |
|
|
160 |
|
161 |
[% IF ( routing && CAN_user_serials_routing ) %] |
162 |
[% UNLESS ( subscription.cannotedit ) %] |
163 |
<li> |
164 |
<a href="/cgi-bin/koha/serials/serials-search.pl?subscriptionid=[% subscription.subscriptionid | uri %]&op=reopen&routing=[% subscription.routing | uri %]&searched=1&title_filter=[% title_filter | uri %]&ISSN_filter=[% ISSN_filter | uri %]&EAN_filter=[% EAN_filter | uri %]&published_filter=[% publisher_filter | uri %]&bookseller_filter=[% bookseller_filter | uri %]&branch_filter=[% branch_filter | uri %]" id="reopensub"> <i class="fa fa-repeat"></i> Reopen</a> |
165 |
</li> |
166 |
[% END %] |
136 |
[% END %] |
167 |
[% END # IF ( routing && CAN_user_serials_routing ) %] |
|
|
168 |
|
137 |
|
169 |
<li> |
138 |
<td> |
170 |
<a href="/cgi-bin/koha/serials/serials-collection.pl?subscriptionid=[% subscription.subscriptionid | uri %]"><i class="fa fa-list-alt"></i> Issue history</a> |
139 |
<div class="btn-group dropup"> |
171 |
</li> |
140 |
[% IF closed %] |
|
|
141 |
<a class="btn btn-default btn-xs dropdown-toggle" id="closedsubactions[% subscription.subscriptionid | html %]" role="button" data-toggle="dropdown" href="#"> |
142 |
Actions <b class="caret"></b> |
143 |
</a> |
144 |
<ul class="dropdown-menu pull-right" role="menu" aria-labelledby="closedsubactions[% subscription.subscriptionid | html %]"> |
145 |
|
146 |
[% IF ( routing && CAN_user_serials_routing ) %] |
147 |
[% UNLESS ( subscription.cannotedit ) %] |
148 |
<li> |
149 |
<a href="/cgi-bin/koha/serials/serials-search.pl?subscriptionid=[% subscription.subscriptionid | uri %]&op=reopen&routing=[% subscription.routing | uri %]&searched=1&title_filter=[% title_filter | uri %]&ISSN_filter=[% ISSN_filter | uri %]&EAN_filter=[% EAN_filter | uri %]&published_filter=[% publisher_filter | uri %]&bookseller_filter=[% bookseller_filter | uri %]&branch_filter=[% branch_filter | uri %]" id="reopensub"> <i class="fa fa-repeat"></i> Reopen</a> |
150 |
</li> |
151 |
[% END %] |
152 |
[% END # IF ( routing && CAN_user_serials_routing ) %] |
153 |
|
154 |
<li> |
155 |
<a href="/cgi-bin/koha/serials/serials-collection.pl?subscriptionid=[% subscription.subscriptionid | uri %]"><i class="fa fa-list-alt"></i> Issue history</a> |
156 |
</li> |
157 |
|
158 |
</ul> |
159 |
[% ELSE %] |
160 |
<div class="btn-group"> |
161 |
[% IF ( CAN_user_serials_receive_serials ) %] |
162 |
[%# There should be no space between these two buttons, it would render badly %] |
163 |
<a class="btn btn-default btn-xs" role="button" |
164 |
href="/cgi-bin/koha/serials/serials-edit.pl?subscriptionid=[% subscription.subscriptionid | html %]&serstatus=1,3,7"><i |
165 |
class="fa fa-inbox"></i> Serial receive</a><a |
166 |
class="btn btn-default btn-xs dropdown-toggle" id="subactions[% subscription.subscriptionid | html %]" role="button" |
167 |
data-toggle="dropdown" href="#"><b class="caret"></b></a> |
168 |
[% ELSE %] |
169 |
<a class="btn btn-default btn-xs dropdown-toggle" id="subactions[% subscription.subscriptionid | html %]" role="button" data-toggle="dropdown" href="#">Actions <b class="caret"></b></a> |
170 |
[% END %] |
171 |
<ul class="dropdown-menu pull-right" role="menu" aria-labelledby="subactions[% subscription.subscriptionid | html %]"> |
172 |
|
173 |
[% IF ( routing && CAN_user_serials_routing ) %] |
174 |
[% IF ( subscription.cannotedit ) %] |
175 |
[% ELSE %] |
176 |
[% IF ( subscription.routingedit ) %] |
177 |
<li> |
178 |
<a href="/cgi-bin/koha/serials/routing.pl?subscriptionid=[% subscription.subscriptionid | uri %]"><i class="fa fa-pencil"></i> Edit routing list ([% subscription.routingedit | html %])</a> |
179 |
</li> |
180 |
[% ELSE %] |
181 |
<li> |
182 |
<a href="/cgi-bin/koha/serials/routing.pl?subscriptionid=[% subscription.subscriptionid | uri %]&op=new"> <i class="fa fa-plus"></i> New routing list</a> |
183 |
</li> |
184 |
[% END %] |
185 |
[% END %] |
186 |
[% END # IF ( routing && CAN_user_serials_routing ) %] |
187 |
|
188 |
<li> |
189 |
<a href="/cgi-bin/koha/serials/serials-collection.pl?subscriptionid=[% subscription.subscriptionid | uri %]"><i class="fa fa-list-alt"></i> Issue history</a> |
190 |
</li> |
191 |
</ul> |
192 |
</div> |
193 |
[% END %] |
194 |
</div> |
195 |
</td> |
196 |
|
197 |
</tr> |
198 |
[% END %] |
199 |
[% END %] |
200 |
</tbody> |
201 |
<tfoot> |
202 |
<tr> |
203 |
<td></td> |
204 |
<td><input type="text" class="dt-filter" data-column_num="1" placeholder="Search ISSN" /></td> |
205 |
<td><input type="text" class="dt-filter" data-column_num="2" placeholder="Search title" /></td> |
206 |
<td><input type="text" class="dt-filter" data-column_num="3" placeholder="Search notes" /></td> |
207 |
<td><input type="text" class="dt-filter" data-column_num="4" placeholder="Search library" /></td> |
208 |
<td><input type="text" class="dt-filter" data-column_num="5" placeholder="Search location" /></td> |
209 |
<td><input type="text" class="dt-filter" data-column_num="6" placeholder="Search callnumber" /></td> |
210 |
[% SET column_num = 6 %] |
211 |
[% UNLESS closed %] |
212 |
<td><input type="text" class="dt-filter" data-column_num="7" placeholder="Search expiration date" /></td> |
213 |
[% SET column_num = column_num + 1 %] |
214 |
[% END %] |
215 |
[% FOR field IN additional_fields_for_subscription %] |
216 |
<td><input type="text" class="dt-filter" data-column_num="[% loop.count + column_num | html %]" placeholder="Search [% field.name | html %]" /></td> |
217 |
[% END %] |
218 |
<td></td> |
219 |
</tr> |
220 |
</tfoot> |
221 |
</table> |
222 |
</form> |
223 |
[% END %] |
224 |
|
225 |
<div class="main container-fluid"> |
226 |
<div class="row"> |
227 |
<div class="col-sm-10 col-sm-push-2"> |
228 |
<main> |
229 |
|
230 |
[% INCLUDE 'serials-toolbar.inc' %] |
172 |
|
231 |
|
173 |
</ul> |
232 |
[% IF ( done_searched ) %] |
|
|
233 |
<h2>Serials subscriptions ([% total | html %] found)</h2> |
174 |
[% ELSE %] |
234 |
[% ELSE %] |
175 |
<div class="btn-group"> |
235 |
<h2>Serials subscriptions search</h2> |
176 |
[% IF ( CAN_user_serials_receive_serials ) %] |
236 |
[% END %] |
177 |
[%# There should be no space between these two buttons, it would render badly %] |
237 |
|
178 |
<a class="btn btn-default btn-xs" role="button" |
238 |
[% UNLESS ( done_searched ) %] |
179 |
href="/cgi-bin/koha/serials/serials-edit.pl?subscriptionid=[% subscription.subscriptionid | html %]&serstatus=1,3,7"><i |
239 |
<div id="advsearch" style="padding-bottom:3em;"> |
180 |
class="fa fa-inbox"></i> Serial receive</a><a |
240 |
<form action="/cgi-bin/koha/serials/serials-search.pl" method="get"> |
181 |
class="btn btn-default btn-xs dropdown-toggle" id="subactions[% subscription.subscriptionid | html %]" role="button" |
241 |
<fieldset class="rows"> |
182 |
data-toggle="dropdown" href="#"><b class="caret"></b></a> |
242 |
<legend>Search subscriptions</legend> |
183 |
[% ELSE %] |
243 |
<ol> |
184 |
<a class="btn btn-default btn-xs dropdown-toggle" id="subactions[% subscription.subscriptionid | html %]" role="button" data-toggle="dropdown" href="#">Actions <b class="caret"></b></a> |
|
|
185 |
[% END %] |
186 |
<ul class="dropdown-menu pull-right" role="menu" aria-labelledby="subactions[% subscription.subscriptionid | html %]"> |
187 |
|
188 |
[% IF ( routing && CAN_user_serials_routing ) %] |
189 |
[% IF ( subscription.cannotedit ) %] |
190 |
[% ELSE %] |
191 |
[% IF ( subscription.routingedit ) %] |
192 |
<li> |
244 |
<li> |
193 |
<a href="/cgi-bin/koha/serials/routing.pl?subscriptionid=[% subscription.subscriptionid | uri %]"><i class="fa fa-pencil"></i> Edit routing list ([% subscription.routingedit | html %])</a> |
245 |
<label for="issn">ISSN:</label> |
|
|
246 |
<input type="text" id="issn" name="ISSN_filter" value="[% ISSN_filter | html %]" /> |
247 |
</li> |
248 |
<li> |
249 |
<label for="title">Title:</label> |
250 |
<input type="text" id="title" name="title_filter" value="[% title_filter | html %]" /> |
251 |
</li> |
252 |
[% IF ( marcflavour == "UNIMARC" ) %] |
253 |
<li> |
254 |
<label for="ean">EAN:</label> |
255 |
<input type="text" id="ean" name="EAN_filter" value="[% EAN_filter | html %]" /> |
256 |
</li> |
257 |
[% END %] |
258 |
<li> |
259 |
<label for="callnumber">Call number:</label> |
260 |
<input type="text" id="callnumber" name="callnumber_filter" value="[% callnumber_filter | html %]" /> |
261 |
</li> |
262 |
<li> |
263 |
<label for="publisher">Publisher:</label> |
264 |
<input type="text" id="publisher" name="publisher_filter" value="[% publisher_filter | html %]" /> |
194 |
</li> |
265 |
</li> |
195 |
[% ELSE %] |
|
|
196 |
<li> |
266 |
<li> |
197 |
<a href="/cgi-bin/koha/serials/routing.pl?subscriptionid=[% subscription.subscriptionid | uri %]&op=new"> <i class="fa fa-plus"></i> New routing list</a> |
267 |
<label for="bookseller">Vendor:</label> |
|
|
268 |
<input type="text" id="bookseller" name="bookseller_filter" value="[% bookseller_filter | html %]" /> |
198 |
</li> |
269 |
</li> |
|
|
270 |
<li> |
271 |
<label for="branch">Library:</label> |
272 |
<select id="branch" name="branch_filter"> |
273 |
<option value="">All</option> |
274 |
[%# FIXME Should not we filter the libraries? %] |
275 |
[% PROCESS options_for_libraries libraries => Branches.all( selected => branch_filter, unfiltered => 1 ) %] |
276 |
</select> |
277 |
</li> |
278 |
<li> |
279 |
<label for="location">Location:</label> |
280 |
[% PROCESS 'av-build-dropbox.inc' name="location_filter", category="LOC", default=location_filter, all=1 %] |
281 |
</li> |
282 |
<li> |
283 |
<label for="to">Expires before:</label> |
284 |
<input type="text" id="to" name="expiration_date_filter" value="[% expiration_date_filter | $KohaDates %]" size="10" maxlength="10" class="flatpickr" /> |
285 |
</li> |
286 |
[% INCLUDE 'additional-fields-entry.inc' available=additional_fields_for_subscription values=additional_field_filters wrap_fieldset=0 %] |
287 |
</ol> |
288 |
<input type="hidden" name="searched" value="1" /> |
289 |
[% IF ( mana ) %] |
290 |
<input type="hidden" name="mana" value="1" /> |
199 |
[% END %] |
291 |
[% END %] |
200 |
[% END %] |
292 |
<fieldset class="action"> |
201 |
[% END # IF ( routing && CAN_user_serials_routing ) %] |
293 |
<input type="submit" value="Search" /> |
202 |
|
294 |
</fieldset> |
203 |
<li> |
295 |
</fieldset> |
204 |
<a href="/cgi-bin/koha/serials/serials-collection.pl?subscriptionid=[% subscription.subscriptionid | uri %]"><i class="fa fa-list-alt"></i> Issue history</a> |
296 |
</form> |
205 |
</li> |
|
|
206 |
</ul> |
207 |
</div> |
297 |
</div> |
208 |
[% END %] |
298 |
[% END %] |
209 |
</div> |
299 |
[% IF ( done_searched ) %] |
210 |
</td> |
300 |
[% IF ( total ) %] |
211 |
|
301 |
<div id="serialstabs" class="toptabs" style="clear:both;"> |
212 |
</tr> |
302 |
<ul class="ui-tabs-nav"> |
213 |
[% END %] |
303 |
[% IF mana %] |
214 |
[% END %] |
304 |
<li><a href="#mana">Mana ([% total || 0 | html %])</a></li> |
215 |
</tbody> |
305 |
[% ELSE %] |
216 |
</table> |
306 |
<li><a href="#opened">Open ([% openedsubscriptions.size || 0 | html %])</a></li> |
217 |
</form> |
307 |
<li><a href="#closed">Closed ([% closedsubscriptions.size || 0 | html %])</a></li> |
218 |
[% END %] |
308 |
[% END %] |
219 |
|
309 |
</ul> |
220 |
<div class="main container-fluid"> |
310 |
[% IF mana %] |
221 |
<div class="row"> |
311 |
<div id="mana"> |
222 |
<div class="col-sm-10 col-sm-push-2"> |
312 |
[% INCLUDE 'mana/mana-subscription-search-result.inc' %] |
223 |
<main> |
313 |
</div> |
224 |
|
314 |
[% ELSE %] |
225 |
[% INCLUDE 'serials-toolbar.inc' %] |
315 |
<div id="opened"> |
226 |
|
316 |
[% IF openedsubscriptions %] |
227 |
[% IF ( done_searched ) %] |
317 |
[% INCLUDE subscriptions_table subscriptions = openedsubscriptions %] |
228 |
<h2>Serials subscriptions ([% total | html %] found)</h2> |
318 |
[% ELSE %] |
229 |
[% ELSE %] |
319 |
<div class="dialog message"> |
230 |
<h2>Serials subscriptions search</h2> |
320 |
<p>Your search returned no open subscriptions.</p> |
231 |
[% END %] |
321 |
</div> |
232 |
|
322 |
[% END %] |
233 |
[% UNLESS ( done_searched ) %] |
323 |
</div> |
234 |
<div id="advsearch" style="padding-bottom:3em;"> |
324 |
<div id="closed"> |
235 |
<form action="/cgi-bin/koha/serials/serials-search.pl" method="get"> |
325 |
[% IF closedsubscriptions %] |
236 |
<fieldset class="rows"> |
326 |
[% INCLUDE subscriptions_table subscriptions = closedsubscriptions closed = 1 %] |
237 |
<legend>Search subscriptions</legend> |
327 |
[% ELSE %] |
238 |
<ol> |
328 |
<div class="dialog message"> |
239 |
<li> |
329 |
<p>Your search returned no closed subscriptions.</p> |
240 |
<label for="issn">ISSN:</label> |
330 |
</div> |
241 |
<input type="text" id="issn" name="ISSN_filter" value="[% ISSN_filter | html %]" /> |
331 |
[% END %] |
242 |
</li> |
332 |
</div> |
243 |
<li> |
333 |
[% END %] |
244 |
<label for="title">Title:</label> |
334 |
</div> |
245 |
<input type="text" id="title" name="title_filter" value="[% title_filter | html %]" /> |
335 |
[% ELSE %] |
246 |
</li> |
336 |
<div class="dialog message"> |
247 |
[% IF ( marcflavour == "UNIMARC" ) %] |
337 |
<p>Your search returned no results.</p> |
248 |
<li> |
338 |
</div> |
249 |
<label for="ean">EAN:</label> |
339 |
[% END %] |
250 |
<input type="text" id="ean" name="EAN_filter" value="[% EAN_filter | html %]" /> |
340 |
[% END %] |
251 |
</li> |
|
|
252 |
[% END %] |
253 |
<li> |
254 |
<label for="callnumber">Call number:</label> |
255 |
<input type="text" id="callnumber" name="callnumber_filter" value="[% callnumber_filter | html %]" /> |
256 |
</li> |
257 |
<li> |
258 |
<label for="publisher">Publisher:</label> |
259 |
<input type="text" id="publisher" name="publisher_filter" value="[% publisher_filter | html %]" /> |
260 |
</li> |
261 |
<li> |
262 |
<label for="bookseller">Vendor:</label> |
263 |
<input type="text" id="bookseller" name="bookseller_filter" value="[% bookseller_filter | html %]" /> |
264 |
</li> |
265 |
<li> |
266 |
<label for="branch">Library:</label> |
267 |
<select id="branch" name="branch_filter"> |
268 |
<option value="">All</option> |
269 |
[%# FIXME Should not we filter the libraries? %] |
270 |
[% PROCESS options_for_libraries libraries => Branches.all( selected => branch_filter, unfiltered => 1 ) %] |
271 |
</select> |
272 |
</li> |
273 |
<li> |
274 |
<label for="location">Location:</label> |
275 |
[% PROCESS 'av-build-dropbox.inc' name="location_filter", category="LOC", default=location_filter, all=1 %] |
276 |
</li> |
277 |
<li> |
278 |
<label for="to">Expires before:</label> |
279 |
<input type="text" id="to" name="expiration_date_filter" value="[% expiration_date_filter | $KohaDates %]" size="10" maxlength="10" class="flatpickr" /> |
280 |
</li> |
281 |
[% INCLUDE 'additional-fields-entry.inc' available=additional_fields_for_subscription values=additional_field_filters wrap_fieldset=0 %] |
282 |
</ol> |
283 |
<input type="hidden" name="searched" value="1" /> |
284 |
[% IF ( mana ) %]<input type="hidden" name="mana" value="1" />[% END %] |
285 |
<fieldset class="action"> |
286 |
<input type="submit" value="Search" /> |
287 |
</fieldset> |
288 |
</fieldset> |
289 |
</form> |
290 |
</div> |
291 |
[% END %] |
292 |
[% IF ( done_searched ) %] |
293 |
[% IF ( total ) %] |
294 |
<div id="serialstabs" class="toptabs" style="clear:both;"> |
295 |
<ul class="ui-tabs-nav"> |
296 |
[% IF mana %] |
297 |
<li><a href="#mana">Mana ([% total || 0 | html %])</a></li> |
298 |
[% ELSE %] |
299 |
<li><a href="#opened">Open ([% openedsubscriptions.size || 0 | html %])</a></li> |
300 |
<li><a href="#closed">Closed ([% closedsubscriptions.size || 0 | html %])</a></li> |
301 |
[% END %] |
302 |
</ul> |
303 |
[% IF mana %] |
304 |
<div id="mana"> |
305 |
[% INCLUDE 'mana/mana-subscription-search-result.inc' %] |
306 |
</div> |
307 |
[% ELSE %] |
308 |
<div id="opened"> |
309 |
[% IF openedsubscriptions %] |
310 |
[% INCLUDE subscriptions_table subscriptions = openedsubscriptions %] |
311 |
[% ELSE %] |
312 |
<div class="dialog message"> |
313 |
<p>Your search returned no open subscriptions.</p> |
314 |
</div> |
315 |
[% END %] |
316 |
</div> |
317 |
<div id="closed"> |
318 |
[% IF closedsubscriptions %] |
319 |
[% INCLUDE subscriptions_table subscriptions = closedsubscriptions closed = 1 %] |
320 |
[% ELSE %] |
321 |
<div class="dialog message"> |
322 |
<p>Your search returned no closed subscriptions.</p> |
323 |
</div> |
324 |
[% END %] |
325 |
</div> |
326 |
[% END %] |
327 |
</div> |
328 |
[% ELSE %] |
329 |
<div class="dialog message"> |
330 |
<p>Your search returned no results.</p> |
331 |
</div> |
332 |
[% END %] |
333 |
[% END %] |
334 |
|
335 |
</main> |
336 |
</div> <!-- /.col-sm-10.col-sm-push-2 --> |
337 |
|
338 |
<div class="col-sm-2 col-sm-pull-10"> |
339 |
<aside> |
340 |
|
341 |
[% INCLUDE 'serials-menu.inc' %] |
342 |
[% IF ( done_searched ) %] |
343 |
[% UNLESS ( mana ) %] |
344 |
<div id="advsearch"> |
345 |
<form action="/cgi-bin/koha/serials/serials-search.pl" method="get"> |
346 |
<fieldset class="brief"> |
347 |
<h4>Search subscriptions</h4> |
348 |
<ol> |
349 |
<li> |
350 |
<label for="issn">ISSN:</label> |
351 |
<input type="text" id="issn" name="ISSN_filter" value="[% ISSN_filter | html %]" /> |
352 |
</li> |
353 |
<li> |
354 |
<label for="title">Title:</label> |
355 |
<input type="text" id="title" name="title_filter" value="[% title_filter | html %]" /> |
356 |
</li> |
357 |
[% IF ( marcflavour == "UNIMARC" ) %] |
358 |
<li> |
359 |
<label for="ean">EAN:</label> |
360 |
<input type="text" id="ean" name="EAN_filter" value="[% EAN_filter | html %]" /> |
361 |
</li> |
362 |
[% END %] |
363 |
<li> |
364 |
<label for="callnumber">Call number:</label> |
365 |
<input type="text" id="callnumber" name="callnumber_filter" value="[% callnumber_filter | html %]" /> |
366 |
</li> |
367 |
<li> |
368 |
<label for="publisher">Publisher:</label> |
369 |
<input type="text" id="publisher" name="publisher_filter" value="[% publisher_filter | html %]" /> |
370 |
</li> |
371 |
<li> |
372 |
<label for="bookseller">Vendor:</label> |
373 |
<input type="text" id="bookseller" name="bookseller_filter" value="[% bookseller_filter | html %]" /> |
374 |
</li> |
375 |
<li> |
376 |
<label for="branch">Library:</label> |
377 |
<select id="branch" name="branch_filter"> |
378 |
<option value="">All</option> |
379 |
[%# FIXME Should not we filter the libraries? %] |
380 |
[% PROCESS options_for_libraries libraries => Branches.all( selected => branch_filter, unfiltered => 1 ) %] |
381 |
</select> |
382 |
</li> |
383 |
<li> |
384 |
<label for="location">Location:</label> |
385 |
[% PROCESS 'av-build-dropbox.inc' name="location_filter", category="LOC", default=location_filter, all=1 %] |
386 |
</li> |
387 |
<li> |
388 |
<label for="to">Expires before:</label> |
389 |
<input type="text" id="to" name="expiration_date_filter" value="[% expiration_date_filter | $KohaDates %]" size="10" maxlength="10" class="flatpickr" /> |
390 |
</li> |
391 |
|
341 |
|
392 |
[% FOR field IN additional_fields_for_subscription %] |
342 |
</main> |
393 |
<li> |
343 |
</div> <!-- /.col-sm-10.col-sm-push-2 --> |
394 |
<label for="additional_field_[% field.id | html %]ID"> [% field.name | html %]: </label> |
344 |
|
395 |
[% IF field.authorised_value_category %] |
345 |
<div class="col-sm-2 col-sm-pull-10"> |
396 |
<select id="additional_field_[% field.id | html %]" name="additional_field_[% field.id | html %]"> |
346 |
<aside> |
397 |
<option value="">All</option> |
347 |
|
398 |
[% FOREACH av IN AuthorisedValues.GetAuthValueDropbox(field.authorised_value_category) %] |
348 |
[% INCLUDE 'serials-menu.inc' %] |
399 |
[% IF av.authorised_value == additional_field_filters.${field.id} %] |
349 |
[% IF ( done_searched ) %] |
400 |
<option value="[% av.authorised_value | html %]" selected="selected">[% av.lib | html %]</option> |
350 |
[% UNLESS ( mana ) %] |
401 |
[% ELSE %] |
351 |
<div id="advsearch"> |
402 |
<option value="[% av.authorised_value | html %]">[% av.lib | html %]</option> |
352 |
<form action="/cgi-bin/koha/serials/serials-search.pl" method="get"> |
403 |
[% END %] |
353 |
<fieldset class="brief"> |
|
|
354 |
<h4>Search subscriptions</h4> |
355 |
<ol> |
356 |
<li> |
357 |
<label for="issn">ISSN:</label> |
358 |
<input type="text" id="issn" name="ISSN_filter" value="[% ISSN_filter | html %]" /> |
359 |
</li> |
360 |
<li> |
361 |
<label for="title">Title:</label> |
362 |
<input type="text" id="title" name="title_filter" value="[% title_filter | html %]" /> |
363 |
</li> |
364 |
[% IF ( marcflavour == "UNIMARC" ) %] |
365 |
<li> |
366 |
<label for="ean">EAN:</label> |
367 |
<input type="text" id="ean" name="EAN_filter" value="[% EAN_filter | html %]" /> |
368 |
</li> |
369 |
[% END %] |
370 |
<li> |
371 |
<label for="callnumber">Call number:</label> |
372 |
<input type="text" id="callnumber" name="callnumber_filter" value="[% callnumber_filter | html %]" /> |
373 |
</li> |
374 |
<li> |
375 |
<label for="publisher">Publisher:</label> |
376 |
<input type="text" id="publisher" name="publisher_filter" value="[% publisher_filter | html %]" /> |
377 |
</li> |
378 |
<li> |
379 |
<label for="bookseller">Vendor:</label> |
380 |
<input type="text" id="bookseller" name="bookseller_filter" value="[% bookseller_filter | html %]" /> |
381 |
</li> |
382 |
<li> |
383 |
<label for="branch">Library:</label> |
384 |
<select id="branch" name="branch_filter"> |
385 |
<option value="">All</option> |
386 |
[%# FIXME Should not we filter the libraries? %] |
387 |
[% PROCESS options_for_libraries libraries => Branches.all( selected => branch_filter, unfiltered => 1 ) %] |
388 |
</select> |
389 |
</li> |
390 |
<li> |
391 |
<label for="location">Location:</label> |
392 |
[% PROCESS 'av-build-dropbox.inc' name="location_filter", category="LOC", default=location_filter, all=1 %] |
393 |
</li> |
394 |
<li> |
395 |
<label for="to">Expires before:</label> |
396 |
<input type="text" id="to" name="expiration_date_filter" value="[% expiration_date_filter | $KohaDates %]" size="10" maxlength="10" class="flatpickr" /> |
397 |
</li> |
398 |
|
399 |
[% FOR field IN additional_fields_for_subscription %] |
400 |
<li> |
401 |
<label for="additional_field_[% field.id | html %]ID"> [% field.name | html %]: </label> |
402 |
[% IF field.authorised_value_category %] |
403 |
<select id="additional_field_[% field.id | html %]" name="additional_field_[% field.id | html %]"> |
404 |
<option value="">All</option> |
405 |
[% FOREACH av IN AuthorisedValues.GetAuthValueDropbox(field.authorised_value_category) %] |
406 |
[% IF av.authorised_value == additional_field_filters.${field.id} %] |
407 |
<option value="[% av.authorised_value | html %]" selected="selected">[% av.lib | html %]</option> |
408 |
[% ELSE %] |
409 |
<option value="[% av.authorised_value | html %]">[% av.lib | html %]</option> |
410 |
[% END %] |
411 |
[% END %] |
412 |
</select> |
413 |
[% ELSE %] |
414 |
<input id="additional_field_[% field.id | html %]" type="text" value="[% additional_field_filters.${field.id} | html %]" name="additional_field_[% field.id | html %]" /> |
415 |
[% END %] |
416 |
</li> |
417 |
[% END %] |
418 |
</ol> |
419 |
<input type="hidden" name="searched" value="1" /> |
420 |
<fieldset class="action"> |
421 |
<input type="submit" value="Search" /> |
422 |
</fieldset> |
423 |
|
424 |
</fieldset> |
425 |
</form> |
426 |
</div> |
404 |
[% END %] |
427 |
[% END %] |
405 |
</select> |
|
|
406 |
[% ELSE %] |
407 |
<input id="additional_field_[% field.id | html %]" type="text" value="[% additional_field_filters.${field.id} | html %]" name="additional_field_[% field.id | html %]" /> |
408 |
[% END %] |
428 |
[% END %] |
409 |
</li> |
429 |
</aside> |
410 |
[% END %] |
430 |
</div> <!-- /.col-sm-2.col-sm-pull-10 --> |
411 |
</ol> |
431 |
</div> <!-- /.row --> |
412 |
<input type="hidden" name="searched" value="1" /> |
|
|
413 |
<fieldset class="action"> |
414 |
<input type="submit" value="Search" /> |
415 |
</fieldset> |
416 |
|
417 |
</div> |
418 |
</fieldset> |
419 |
</form> |
420 |
[% END %] |
421 |
[% END %] |
422 |
</aside> |
423 |
</div> <!-- /.col-sm-2.col-sm-pull-10 --> |
424 |
</div> <!-- /.row --> |
425 |
|
432 |
|
426 |
[% MACRO jsinclude BLOCK %] |
433 |
[% MACRO jsinclude BLOCK %] |
427 |
[% INCLUDE 'calendar.inc' %] |
434 |
[% INCLUDE 'calendar.inc' %] |
428 |
- |
|
|