|
Lines 9-22
Link Here
|
| 9 |
<script type="text/javascript"> |
9 |
<script type="text/javascript"> |
| 10 |
//<![CDATA[ |
10 |
//<![CDATA[ |
| 11 |
$(document).ready(function() { |
11 |
$(document).ready(function() { |
| 12 |
var srlt = $("#srlt").dataTable($.extend(true, {}, dataTablesDefaults, { |
12 |
var osrlt = $("#osrlt").dataTable($.extend(true, {}, dataTablesDefaults, { |
| 13 |
"aoColumnDefs": [ |
13 |
"aoColumnDefs": [ |
| 14 |
{ "aTargets": [ -1, -2, -3 ], "bSortable": false, "bSearchable": false }, |
14 |
{ "aTargets": [ -1, -2, -3 ], "bSortable": false, "bSearchable": false }, |
| 15 |
], |
15 |
], |
| 16 |
"sPaginationType": "four_button" |
16 |
"sPaginationType": "four_button" |
| 17 |
} ) ); |
17 |
} ) ); |
| 18 |
|
18 |
|
| 19 |
srlt.fnAddFilters("filter", 750); |
19 |
var csrlt = $("#csrlt").dataTable($.extend(true, {}, dataTablesDefaults, { |
|
|
20 |
"aoColumnDefs": [ |
| 21 |
{ "aTargets": [ -1, -2 ], "bSortable": false, "bSearchable": false }, |
| 22 |
], |
| 23 |
"sPaginationType": "four_button" |
| 24 |
} ) ); |
| 25 |
|
| 26 |
osrlt.fnAddFilters("filter", 750); |
| 27 |
csrlt.fnAddFilters("filter", 750); |
| 28 |
|
| 29 |
$('#serialstabs').tabs(); |
| 30 |
|
| 20 |
}); |
31 |
}); |
| 21 |
//]]> |
32 |
//]]> |
| 22 |
</script> |
33 |
</script> |
|
Lines 33-41
Link Here
|
| 33 |
<div class="yui-b"> |
44 |
<div class="yui-b"> |
| 34 |
[% INCLUDE 'serials-toolbar.inc' %] |
45 |
[% INCLUDE 'serials-toolbar.inc' %] |
| 35 |
|
46 |
|
| 36 |
<h2>Serials subscriptions</h2> |
47 |
<h2>Serials subscriptions ([% total %] found)</h2> |
| 37 |
|
48 |
|
| 38 |
<div id="advsearch"> |
49 |
<div id="advsearch" style="padding-bottom:3em;"> |
| 39 |
<form action="/cgi-bin/koha/serials/serials-search.pl" method="get"> |
50 |
<form action="/cgi-bin/koha/serials/serials-search.pl" method="get"> |
| 40 |
<fieldset class="rows"> |
51 |
<fieldset class="rows"> |
| 41 |
<legend onclick="$('#advsearch_form').slideToggle(400);"> |
52 |
<legend onclick="$('#advsearch_form').slideToggle(400);"> |
|
Lines 93-178
Link Here
|
| 93 |
</div> |
104 |
</div> |
| 94 |
|
105 |
|
| 95 |
[% IF ( done_searched ) %] |
106 |
[% IF ( done_searched ) %] |
| 96 |
[% IF ( subscriptions ) %] |
107 |
[% IF ( total ) %] |
| 97 |
<table id="srlt"> |
108 |
<div id="serialstabs" class="toptabs" style="clear:both;"> |
| 98 |
<thead> |
109 |
<ul class="ui-tabs-nav"> |
| 99 |
<tr> |
110 |
<li><a href="#opened">Opened ([% openedsubscriptions.size || 0 %])</a></li> |
| 100 |
<th>ISSN</th> |
111 |
<li><a href="#closed">Closed ([% closedsubscriptions.size || 0 %])</a></li> |
| 101 |
<th>Title</th> |
112 |
</ul> |
| 102 |
<th> Notes </th> |
113 |
<div id="opened"> |
| 103 |
<th>Library</th> |
114 |
[% IF openedsubscriptions %] |
| 104 |
<th>Call number</th> |
115 |
<table id="osrlt"> |
| 105 |
<th>Expiration date</th> |
116 |
<thead> |
| 106 |
[% IF ( routing && CAN_user_serials_routing ) %] |
117 |
<tr> |
| 107 |
<th>Routing list</th> |
118 |
<th>ISSN</th> |
| 108 |
[% END %] |
119 |
<th>Title</th> |
| 109 |
<th> </th> |
120 |
<th> Notes </th> |
| 110 |
<th> </th> |
121 |
<th>Library</th> |
| 111 |
</tr> |
122 |
<th>Call number</th> |
| 112 |
</thead> |
123 |
<th>Expiration date</th> |
| 113 |
<tfoot> |
124 |
[% IF ( routing && CAN_user_serials_routing ) %] |
| 114 |
<tr> |
125 |
<th>Routing list</th> |
| 115 |
<td><input type="text" class="filter" data-column_num="0" placeholder="Search ISSN" /></td> |
126 |
[% END %] |
| 116 |
<td><input type="text" class="filter" data-column_num="1" placeholder="Search title" /></td> |
127 |
<th> </th> |
| 117 |
<td><input type="text" class="filter" data-column_num="2" placeholder="Search notes" /></td> |
128 |
<th> </th> |
| 118 |
<td><input type="text" class="filter" data-column_num="3" placeholder="Search library" /></td> |
129 |
</tr> |
| 119 |
<td><input type="text" class="filter" data-column_num="4" placeholder="Search callnumber" /></td> |
130 |
</thead> |
| 120 |
<td><input type="text" class="filter" data-column_num="5" placeholder="Search expiration date" /></td> |
131 |
<tfoot> |
| 121 |
[% IF ( routing && CAN_user_serials_routing ) %]<td></td>[% END %] |
132 |
<tr> |
| 122 |
<td></td> |
133 |
<td><input type="text" class="filter" data-column_num="0" placeholder="Search ISSN" /></td> |
| 123 |
<td></td> |
134 |
<td><input type="text" class="filter" data-column_num="1" placeholder="Search title" /></td> |
| 124 |
</tr> |
135 |
<td><input type="text" class="filter" data-column_num="2" placeholder="Search notes" /></td> |
| 125 |
</tfoot> |
136 |
<td><input type="text" class="filter" data-column_num="3" placeholder="Search library" /></td> |
| 126 |
<tbody> |
137 |
<td><input type="text" class="filter" data-column_num="4" placeholder="Search callnumber" /></td> |
| 127 |
[% FOREACH subscription IN subscriptions %] |
138 |
<td><input type="text" class="filter" data-column_num="5" placeholder="Search expiration date" /></td> |
| 128 |
<tr> |
139 |
[% IF ( routing && CAN_user_serials_routing ) %]<td></td>[% END %] |
| 129 |
<td> |
140 |
<td></td> |
| 130 |
[% IF ( subscription.issn ) %][% subscription.issn %] |
141 |
<td></td> |
| 131 |
[% END %] |
142 |
</tr> |
| 132 |
</td> |
143 |
</tfoot> |
| 133 |
<td><a href="/cgi-bin/koha/serials/subscription-detail.pl?subscriptionid=[% subscription.subscriptionid %]" class="button" title="subscription detail">[% subscription.title |html %]</a> |
144 |
<tbody> |
| 134 |
</td> |
145 |
[% FOREACH subscription IN openedsubscriptions %] |
| 135 |
<td>[% IF ( subscription.notes ) %][% subscription.notes %][% END %] |
146 |
<tr> |
| 136 |
[% IF ( subscription.internalnotes ) %]([% subscription.internalnotes %])[% END %] |
147 |
<td> |
| 137 |
</td> |
148 |
[% IF ( subscription.issn ) %][% subscription.issn %] |
| 138 |
<td> |
149 |
[% END %] |
| 139 |
[% IF ( subscription.branchname ) %][% subscription.branchname %][% END %] |
150 |
</td> |
| 140 |
</td> |
151 |
<td><a href="/cgi-bin/koha/serials/subscription-detail.pl?subscriptionid=[% subscription.subscriptionid %]" class="button" title="subscription detail">[% subscription.title |html %]</a> |
| 141 |
<td> |
152 |
</td> |
| 142 |
[% IF ( subscription.callnumber ) %][% subscription.callnumber %][% END %] |
153 |
<td>[% IF ( subscription.notes ) %][% subscription.notes %][% END %] |
| 143 |
</td> |
154 |
[% IF ( subscription.internalnotes ) %]([% subscription.internalnotes %])[% END %] |
| 144 |
<td> |
155 |
</td> |
| 145 |
[% IF ( subscription.enddate ) %][% subscription.enddate | $KohaDates %][% END %] |
156 |
<td> |
| 146 |
</td> |
157 |
[% IF ( subscription.branchname ) %][% subscription.branchname %][% END %] |
| 147 |
[% IF ( routing && CAN_user_serials_routing ) %] |
158 |
</td> |
| 148 |
<td> |
159 |
<td> |
| 149 |
[% IF ( subscription.cannotedit ) %] |
160 |
[% IF ( subscription.callnumber ) %][% subscription.callnumber %][% END %] |
| 150 |
|
161 |
</td> |
| 151 |
[% ELSE %] |
162 |
<td> |
| 152 |
[% IF ( subscription.routingedit ) %] |
163 |
[% IF ( subscription.enddate ) %][% subscription.enddate | $KohaDates %][% END %] |
| 153 |
<a href="/cgi-bin/koha/serials/routing.pl?subscriptionid=[% subscription.subscriptionid %]">Edit</a> |
164 |
</td> |
| 154 |
([% subscription.routingedit %]) |
165 |
[% IF ( routing && CAN_user_serials_routing ) %] |
| 155 |
[% ELSE %] |
166 |
<td> |
| 156 |
<a href="/cgi-bin/koha/serials/routing.pl?subscriptionid=[% subscription.subscriptionid %]&op=new">New</a> |
167 |
[% IF ( subscription.cannotedit ) %] |
| 157 |
[% END %] |
168 |
|
|
|
169 |
[% ELSE %] |
| 170 |
[% IF ( subscription.routingedit ) %] |
| 171 |
<a href="/cgi-bin/koha/serials/routing.pl?subscriptionid=[% subscription.subscriptionid %]">Edit</a> |
| 172 |
([% subscription.routingedit %]) |
| 173 |
[% ELSE %] |
| 174 |
<a href="/cgi-bin/koha/serials/routing.pl?subscriptionid=[% subscription.subscriptionid %]&op=new">New</a> |
| 175 |
[% END %] |
| 176 |
[% END %] |
| 177 |
</td> |
| 178 |
[% END %] |
| 179 |
<td><a href="/cgi-bin/koha/serials/serials-collection.pl?subscriptionid=[% subscription.subscriptionid %]">Issue history</a> |
| 180 |
</td> |
| 181 |
<td> |
| 182 |
[% IF ( subscription.cannotedit ) %] |
| 183 |
|
| 184 |
[% ELSE %] |
| 185 |
[% IF ( CAN_user_serials_receive_serials ) %]<a href="/cgi-bin/koha/serials/serials-edit.pl?subscriptionid=[% subscription.subscriptionid %]&serstatus=1,3,7">Serial receive</a>[% END %] |
| 186 |
[% END %] |
| 187 |
</td> |
| 188 |
</tr> |
| 189 |
[% END %] |
| 190 |
</tbody> |
| 191 |
</table> |
| 192 |
[% ELSE %] |
| 193 |
There is no opened subscription for your search. |
| 194 |
[% END %] |
| 195 |
</div> |
| 196 |
<div id="closed"> |
| 197 |
[% IF closedsubscriptions %] |
| 198 |
<table id="csrlt"> |
| 199 |
<thead> |
| 200 |
<tr> |
| 201 |
<th>ISSN</th> |
| 202 |
<th>Title</th> |
| 203 |
<th> Notes </th> |
| 204 |
<th>Library</th> |
| 205 |
<th>Call number</th> |
| 206 |
<th> </th> |
| 207 |
<th> </th> |
| 208 |
</tr> |
| 209 |
</thead> |
| 210 |
<tfoot> |
| 211 |
<tr> |
| 212 |
<td><input type="text" class="filter" data-column_num="0" placeholder="Search ISSN" /></td> |
| 213 |
<td><input type="text" class="filter" data-column_num="1" placeholder="Search title" /></td> |
| 214 |
<td><input type="text" class="filter" data-column_num="2" placeholder="Search notes" /></td> |
| 215 |
<td><input type="text" class="filter" data-column_num="3" placeholder="Search library" /></td> |
| 216 |
<td><input type="text" class="filter" data-column_num="4" placeholder="Search callnumber" /></td> |
| 217 |
<td></td> |
| 218 |
<td></td> |
| 219 |
</tr> |
| 220 |
</tfoot> |
| 221 |
<tbody> |
| 222 |
[% FOREACH subscription IN closedsubscriptions %] |
| 223 |
<tr> |
| 224 |
<td> |
| 225 |
[% IF ( subscription.issn ) %] |
| 226 |
[% subscription.issn %] |
| 227 |
[% END %] |
| 228 |
</td> |
| 229 |
<td> |
| 230 |
<a href="/cgi-bin/koha/serials/subscription-detail.pl?subscriptionid=[% subscription.subscriptionid %]" class="button" title="subscription detail">[% subscription.title |html %]</a> |
| 231 |
</td> |
| 232 |
<td> |
| 233 |
[% IF ( subscription.notes ) %][% subscription.notes %][% END %] |
| 234 |
[% IF ( subscription.internalnotes ) %]([% subscription.internalnotes %])[% END %] |
| 235 |
</td> |
| 236 |
<td> |
| 237 |
[% IF ( subscription.branchname ) %][% subscription.branchname %][% END %] |
| 238 |
</td> |
| 239 |
<td> |
| 240 |
[% IF ( subscription.callnumber ) %][% subscription.callnumber %][% END %] |
| 241 |
</td> |
| 242 |
<td> |
| 243 |
[% UNLESS subscription.cannotedit %] |
| 244 |
<a href="/cgi-bin/koha/serials/serials-search.pl?subscriptionid=[% subscription.subscriptionid %]&op=reopen&routing=[% subscription.routing %]&searched=1&title_filter=[% title_filter %]&ISSN_filter=[% ISSN_filter %]&EAN_filter=[% EAN_filter %]&published_filter=[% publisher_filter %]&bookseller_filter=[% bookseller_filter %]&branch_filter=[% branch_filter %]" onclick="return confirm(_('Are you sure you want to reopen this subscription?'));">Reopen</a> |
| 245 |
[% ELSE %] |
| 246 |
Cannot edit |
| 247 |
[% END %] |
| 248 |
</td> |
| 249 |
<td> |
| 250 |
<a href="/cgi-bin/koha/serials/serials-collection.pl?subscriptionid=[% subscription.subscriptionid %]">Issue history</a> |
| 251 |
</td> |
| 252 |
</tr> |
| 158 |
[% END %] |
253 |
[% END %] |
| 159 |
</td> |
254 |
</tbody> |
| 160 |
[% END %] |
255 |
</table> |
| 161 |
<td><a href="/cgi-bin/koha/serials/serials-collection.pl?subscriptionid=[% subscription.subscriptionid %]">Issue history</a> |
256 |
[% ELSE %] |
| 162 |
</td> |
257 |
There is no closed subscription for your search. |
| 163 |
<td> |
|
|
| 164 |
[% IF ( subscription.cannotedit ) %] |
| 165 |
|
| 166 |
[% ELSE %] |
| 167 |
[% IF ( CAN_user_serials_receive_serials ) %]<a href="/cgi-bin/koha/serials/serials-edit.pl?subscriptionid=[% subscription.subscriptionid %]&serstatus=1,3,7">Serial receive</a>[% END %] |
| 168 |
[% END %] |
| 169 |
</td> |
| 170 |
</tr> |
| 171 |
[% END %] |
258 |
[% END %] |
| 172 |
</tbody> |
259 |
</div> |
| 173 |
</table> |
260 |
</div> |
| 174 |
[% ELSE %] |
|
|
| 175 |
There is no subscription for your search. |
| 176 |
[% END %] |
261 |
[% END %] |
| 177 |
[% END %] |
262 |
[% END %] |
| 178 |
</div> |
263 |
</div> |