|
Lines 91-502
Link Here
|
| 91 |
[% END %] |
91 |
[% END %] |
| 92 |
|
92 |
|
| 93 |
<div id="subscription_description" class="toptabs"> |
93 |
<div id="subscription_description" class="toptabs"> |
| 94 |
<ul class="ui-tabs-nav"> |
94 |
<ul class="nav nav-tabs" role="tablist"> |
| 95 |
<li><a href="#subscription_info">Information</a></li> |
95 |
<li role="presentation" class="active"> |
| 96 |
<li><a href="#subscription_planning">Planning</a></li> |
96 |
<a href="#subscription_info" aria-controls="subscription_info" role="tab" data-toggle="tab">Information</a> |
| 97 |
<li><a href="#subscription_issues">Issues</a></li> |
97 |
</li> |
| 98 |
<li><a href="#subscription_summary">Summary</a></li> |
98 |
<li role="presentation"> |
|
|
99 |
<a href="#subscription_planning" aria-controls="subscription_planning" role="tab" data-toggle="tab">Planning</a> |
| 100 |
</li> |
| 101 |
<li role="presentation"> |
| 102 |
<a href="#subscription_issues" aria-controls="subscription_issues" role="tab" data-toggle="tab">Issues</a> |
| 103 |
</li> |
| 104 |
<li role="presentation"> |
| 105 |
<a href="#subscription_summary" aria-controls="subscription_summary" role="tab" data-toggle="tab">Summary</a> |
| 106 |
</li> |
| 99 |
[% IF orders_grouped.size %] |
107 |
[% IF orders_grouped.size %] |
| 100 |
<li> |
108 |
<li role="presentation"> |
| 101 |
<a href="#acquisition_details">Acquisition details</a> |
109 |
<a href="#acquisition_details" aria-controls=" aria-controls="profile" role="tab" data-toggle="tab"" role="tab" data-toggle="tab">Acquisition details</a> |
| 102 |
</li> |
110 |
</li> |
| 103 |
[% END %] |
111 |
[% END %] |
| 104 |
</ul> |
112 |
</ul> |
| 105 |
|
113 |
<div class="tab-content"> |
| 106 |
<div id="subscription_info"> |
114 |
<div id="subscription_info" role="tabpanel" class="tab-pane active"> |
| 107 |
<div class="row"> |
115 |
<div class="row"> |
| 108 |
<div class="col-sm-6"> |
116 |
<div class="col-sm-6"> |
| 109 |
<div class="rows"> |
117 |
<div class="rows"> |
| 110 |
<ol> |
118 |
<ol> |
| 111 |
<li><span class="label">Subscription ID: </span>[% subscriptionid | html %]</li> |
119 |
<li><span class="label">Subscription ID: </span>[% subscriptionid | html %]</li> |
| 112 |
<li><span class="label">Librarian identity:</span> [% librarian | html %]</li> |
120 |
<li><span class="label">Librarian identity:</span> [% librarian | html %]</li> |
| 113 |
<li><span class="label">Vendor:</span> <a href="/cgi-bin/koha/acqui/supplier.pl?booksellerid=[% aqbooksellerid | uri %]">[% aqbooksellername | html %]</a></li> |
121 |
<li><span class="label">Vendor:</span> <a href="/cgi-bin/koha/acqui/supplier.pl?booksellerid=[% aqbooksellerid | uri %]">[% aqbooksellername | html %]</a></li> |
| 114 |
<li><span class="label">Biblio:</span> <a href="/cgi-bin/koha/catalogue/[% default_bib_view | uri %].pl?biblionumber=[% bibnum | uri %]">[% bibliotitle | html %]</a> <em>([% bibnum | html %])</em></li> |
122 |
<li><span class="label">Biblio:</span> <a href="/cgi-bin/koha/catalogue/[% default_bib_view | uri %].pl?biblionumber=[% bibnum | uri %]">[% bibliotitle | html %]</a> <em>([% bibnum | html %])</em></li> |
| 115 |
[% IF ( OPACBaseURL ) %] |
123 |
[% IF ( OPACBaseURL ) %] |
| 116 |
<li> |
124 |
<li> |
| 117 |
<span class="label">OPAC view:</span> |
125 |
<span class="label">OPAC view:</span> |
| 118 |
<a id="view-subscription-in-opac" target="_blank" href="[% Koha.Preference('OPACBaseURL') | url %]/cgi-bin/koha/opac-detail.pl?biblionumber=[% biblionumber | uri %]">Open in new window.</a> |
126 |
<a id="view-subscription-in-opac" target="_blank" href="[% Koha.Preference('OPACBaseURL') | url %]/cgi-bin/koha/opac-detail.pl?biblionumber=[% biblionumber | uri %]">Open in new window.</a> |
| 119 |
</li> |
127 |
</li> |
| 120 |
[% END %] |
128 |
[% END %] |
| 121 |
[% IF ( branchcode ) %] |
129 |
[% IF ( branchcode ) %] |
| 122 |
<li><span class="label">Library:</span> [% Branches.GetName( branchcode ) | html %]</li> |
130 |
<li><span class="label">Library:</span> [% Branches.GetName( branchcode ) | html %]</li> |
| 123 |
[% END %] |
131 |
[% END %] |
| 124 |
[% IF ( serialsadditems ) %] |
132 |
[% IF ( serialsadditems ) %] |
| 125 |
<li><span class="label">Items:</span> Serial receipt creates an item record.</li> |
133 |
<li><span class="label">Items:</span> Serial receipt creates an item record.</li> |
| 126 |
[% ELSE %] |
|
|
| 127 |
<li><span class="label">Items:</span> Serial receipt does not create an item record.</li> |
| 128 |
[% END %] |
| 129 |
<li> |
| 130 |
<span class="label">Serial number:</span> |
| 131 |
[% IF skip_serialseq %] |
| 132 |
Serial number is skipped when an irregularity is found. |
| 133 |
[% ELSE %] |
134 |
[% ELSE %] |
| 134 |
Serial number is kept when an irregularity is found. |
135 |
<li><span class="label">Items:</span> Serial receipt does not create an item record.</li> |
| 135 |
[% END %] |
136 |
[% END %] |
| 136 |
</li> |
|
|
| 137 |
<li><span class="label">Grace period:</span> [% graceperiod | html %]</li> |
| 138 |
</ol> |
| 139 |
</div> <!-- /.rows --> |
| 140 |
</div> <!-- /.col-sm-6 --> |
| 141 |
<div class="col-sm-6"> |
| 142 |
<div class="rows"> |
| 143 |
<ol> |
| 144 |
[% IF ( location ) %]<li><span class="label">Location:</span> [% location | html %]</li>[% END %] |
| 145 |
[% IF ( callnumber ) %]<li><span class="label">Call number:</span> [% callnumber | html %]</li>[% END %] |
| 146 |
[% IF ( staffdisplaycount ) %]<li><span class="label">Number of issues to display to staff:</span>[% staffdisplaycount | html %]</li>[% END %] |
| 147 |
[% IF ( opacdisplaycount ) %]<li><span class="label">Number of issues to display in OPAC:</span>[% opacdisplaycount | html %]</li>[% END %] |
| 148 |
[% IF ( letter ) %] |
| 149 |
<li> |
137 |
<li> |
| 150 |
<span class="label">Patron notification:</span> [% letter | html %] |
138 |
<span class="label">Serial number:</span> |
| 151 |
(<a href="/cgi-bin/koha/serials/viewalerts.pl?subscriptionid=[% subscriptionid | uri %]">subscribers</a>) |
139 |
[% IF skip_serialseq %] |
|
|
140 |
Serial number is skipped when an irregularity is found. |
| 141 |
[% ELSE %] |
| 142 |
Serial number is kept when an irregularity is found. |
| 143 |
[% END %] |
| 152 |
</li> |
144 |
</li> |
| 153 |
[% END %] |
145 |
<li><span class="label">Grace period:</span> [% graceperiod | html %]</li> |
| 154 |
[% IF ( hasRouting ) %]<li><span class="label">Routing:</span> yes</li>[% END %] |
146 |
</ol> |
| 155 |
</ol> |
147 |
</div> <!-- /.rows --> |
| 156 |
</div> <!-- /.rows --> |
148 |
</div> <!-- /.col-sm-6 --> |
| 157 |
</div> <!-- /.col-sm-6 --> |
|
|
| 158 |
</div> <!-- /.row --> |
| 159 |
|
| 160 |
[% IF available_additional_fields.count %] |
| 161 |
<hr> |
| 162 |
<div class="row"> |
| 163 |
<div class="col-sm-6"> |
149 |
<div class="col-sm-6"> |
| 164 |
<h3>Additional fields:</h3> |
|
|
| 165 |
<div class="rows"> |
150 |
<div class="rows"> |
| 166 |
<ol> |
151 |
<ol> |
| 167 |
[% INCLUDE 'additional-fields-display.inc' available=available_additional_fields values=additional_field_values %] |
152 |
[% IF ( location ) %]<li><span class="label">Location:</span> [% location | html %]</li>[% END %] |
|
|
153 |
[% IF ( callnumber ) %]<li><span class="label">Call number:</span> [% callnumber | html %]</li>[% END %] |
| 154 |
[% IF ( staffdisplaycount ) %]<li><span class="label">Number of issues to display to staff:</span>[% staffdisplaycount | html %]</li>[% END %] |
| 155 |
[% IF ( opacdisplaycount ) %]<li><span class="label">Number of issues to display in OPAC:</span>[% opacdisplaycount | html %]</li>[% END %] |
| 156 |
[% IF ( letter ) %] |
| 157 |
<li> |
| 158 |
<span class="label">Patron notification:</span> [% letter | html %] |
| 159 |
(<a href="/cgi-bin/koha/serials/viewalerts.pl?subscriptionid=[% subscriptionid | uri %]">subscribers</a>) |
| 160 |
</li> |
| 161 |
[% END %] |
| 162 |
[% IF ( hasRouting ) %]<li><span class="label">Routing:</span> yes</li>[% END %] |
| 168 |
</ol> |
163 |
</ol> |
| 169 |
</div> <!-- /.rows --> |
164 |
</div> <!-- /.rows --> |
| 170 |
</div> <!-- /.col-sm-6 --> |
165 |
</div> <!-- /.col-sm-6 --> |
| 171 |
</div> <!-- /.row --> |
166 |
</div> <!-- /.row --> |
| 172 |
[% END %] |
|
|
| 173 |
</div> <!-- /#subscription_info --> |
| 174 |
|
167 |
|
| 175 |
<div id="subscription_planning"> |
168 |
[% IF available_additional_fields.count %] |
| 176 |
<div class="row"> |
169 |
<hr> |
| 177 |
<div class="col-sm-12"> |
170 |
<div class="row"> |
| 178 |
<div class="rows"> |
171 |
<div class="col-sm-6"> |
| 179 |
<ol> |
172 |
<h3>Additional fields:</h3> |
| 180 |
<li> |
173 |
<div class="rows"> |
| 181 |
<span class="label">Beginning date:</span> |
174 |
<ol> |
| 182 |
[% startdate | html %] |
175 |
[% INCLUDE 'additional-fields-display.inc' available=available_additional_fields values=additional_field_values %] |
| 183 |
</li> |
176 |
</ol> |
| 184 |
<li> |
177 |
</div> <!-- /.rows --> |
| 185 |
<span class="label">Frequency:</span> |
178 |
</div> <!-- /.col-sm-6 --> |
| 186 |
[% frequency.description | html %] |
179 |
</div> <!-- /.row --> |
| 187 |
</li> |
180 |
[% END %] |
| 188 |
<li> |
181 |
</div> <!-- /#subscription_info --> |
| 189 |
<span class="label">Manual history: </span> |
182 |
|
| 190 |
[% IF ( manualhistory ) %] |
183 |
<div id="subscription_planning" role="tabpanel" class="tab-pane"> |
| 191 |
Enabled <a href="/cgi-bin/koha/serials/subscription-history.pl?subscriptionid=[% subscriptionid | uri %]">Edit history</a> |
184 |
<div class="row"> |
| 192 |
[% ELSE %] |
185 |
<div class="col-sm-12"> |
| 193 |
Disabled |
186 |
<div class="rows"> |
|
|
187 |
<ol> |
| 188 |
<li> |
| 189 |
<span class="label">Beginning date:</span> |
| 190 |
[% startdate | html %] |
| 191 |
</li> |
| 192 |
<li> |
| 193 |
<span class="label">Frequency:</span> |
| 194 |
[% frequency.description | html %] |
| 195 |
</li> |
| 196 |
<li> |
| 197 |
<span class="label">Manual history: </span> |
| 198 |
[% IF ( manualhistory ) %] |
| 199 |
Enabled <a href="/cgi-bin/koha/serials/subscription-history.pl?subscriptionid=[% subscriptionid | uri %]">Edit history</a> |
| 200 |
[% ELSE %] |
| 201 |
Disabled |
| 202 |
[% END %] |
| 203 |
</li> |
| 204 |
<li> |
| 205 |
<span class="label">Number pattern:</span> |
| 206 |
[% numberpattern.label | html %] |
| 207 |
</li> |
| 208 |
<li> |
| 209 |
<table> |
| 210 |
<tr> |
| 211 |
<td>Starting with:</td> |
| 212 |
[% IF (has_X) %] |
| 213 |
<td>[% lastvalue1 | html %]</td> |
| 214 |
[% END %] |
| 215 |
[% IF (has_Y) %] |
| 216 |
<td>[% lastvalue2 | html %]</td> |
| 217 |
[% END %] |
| 218 |
[% IF (has_Z) %] |
| 219 |
<td>[% lastvalue3 | html %]</td> |
| 220 |
[% END %] |
| 221 |
</tr> |
| 222 |
<tr> |
| 223 |
<td>Rollover:</td> |
| 224 |
[% IF (has_X) %] |
| 225 |
<td>[% numberpattern.whenmorethan1 | html %]</td> |
| 226 |
[% END %] |
| 227 |
[% IF (has_Y) %] |
| 228 |
<td>[% numberpattern.whenmorethan2 | html %]</td> |
| 229 |
[% END %] |
| 230 |
[% IF (has_Z) %] |
| 231 |
<td>[% numberpattern.whenmorethan3 | html %]</td> |
| 232 |
[% END %] |
| 233 |
</tr> |
| 234 |
</table> |
| 235 |
</li> |
| 236 |
[% IF ( irregular_issues ) %] |
| 237 |
<li> |
| 238 |
<span class="label">Irregularity:</span> |
| 239 |
[% irregular_issues | html %] issues |
| 240 |
</li> |
| 194 |
[% END %] |
241 |
[% END %] |
| 195 |
</li> |
|
|
| 196 |
<li> |
| 197 |
<span class="label">Number pattern:</span> |
| 198 |
[% numberpattern.label | html %] |
| 199 |
</li> |
| 200 |
<li> |
| 201 |
<table> |
| 202 |
<tr> |
| 203 |
<td>Starting with:</td> |
| 204 |
[% IF (has_X) %] |
| 205 |
<td>[% lastvalue1 | html %]</td> |
| 206 |
[% END %] |
| 207 |
[% IF (has_Y) %] |
| 208 |
<td>[% lastvalue2 | html %]</td> |
| 209 |
[% END %] |
| 210 |
[% IF (has_Z) %] |
| 211 |
<td>[% lastvalue3 | html %]</td> |
| 212 |
[% END %] |
| 213 |
</tr> |
| 214 |
<tr> |
| 215 |
<td>Rollover:</td> |
| 216 |
[% IF (has_X) %] |
| 217 |
<td>[% numberpattern.whenmorethan1 | html %]</td> |
| 218 |
[% END %] |
| 219 |
[% IF (has_Y) %] |
| 220 |
<td>[% numberpattern.whenmorethan2 | html %]</td> |
| 221 |
[% END %] |
| 222 |
[% IF (has_Z) %] |
| 223 |
<td>[% numberpattern.whenmorethan3 | html %]</td> |
| 224 |
[% END %] |
| 225 |
</tr> |
| 226 |
</table> |
| 227 |
</li> |
| 228 |
[% IF ( irregular_issues ) %] |
| 229 |
<li> |
242 |
<li> |
| 230 |
<span class="label">Irregularity:</span> |
243 |
<span class="label">First arrival:</span> |
| 231 |
[% irregular_issues | html %] issues |
244 |
[% firstacquidate | html %] |
| 232 |
</li> |
245 |
</li> |
| 233 |
[% END %] |
246 |
[% IF ( numberlength ) %]<li> |
| 234 |
<li> |
247 |
<span class="label">Number of issues:</span> |
| 235 |
<span class="label">First arrival:</span> |
248 |
[% numberlength | html %]</li> |
| 236 |
[% firstacquidate | html %] |
249 |
[% END %] |
| 237 |
</li> |
250 |
[% IF ( weeklength ) %]<li> |
| 238 |
[% IF ( numberlength ) %]<li> |
251 |
<span class="label">Number of weeks:</span> |
| 239 |
<span class="label">Number of issues:</span> |
252 |
[% weeklength | html %]</li> |
| 240 |
[% numberlength | html %]</li> |
253 |
[% END %] |
| 241 |
[% END %] |
254 |
[% IF ( monthlength ) %]<li> |
| 242 |
[% IF ( weeklength ) %]<li> |
255 |
<span class="label">Number of months:</span> |
| 243 |
<span class="label">Number of weeks:</span> |
256 |
[% monthlength | html %]</li> |
| 244 |
[% weeklength | html %]</li> |
257 |
[% END %] |
| 245 |
[% END %] |
258 |
</ol> |
| 246 |
[% IF ( monthlength ) %]<li> |
259 |
</div> <!-- /.rows --> |
| 247 |
<span class="label">Number of months:</span> |
260 |
</div> <!-- /.col-sd-12 --> |
| 248 |
[% monthlength | html %]</li> |
261 |
</div> <!-- /.row --> |
| 249 |
[% END %] |
262 |
</div> <!-- /#subscription_planning --> |
| 250 |
</ol> |
|
|
| 251 |
</div> <!-- /.rows --> |
| 252 |
</div> <!-- /.col-sd-12 --> |
| 253 |
</div> <!-- /.row --> |
| 254 |
</div> <!-- /#subscription_planning --> |
| 255 |
|
| 256 |
<div id="subscription_numbering" style="display:none;"> |
| 257 |
<h3>Numbering calculation</h3> |
| 258 |
<p><label>Numbering formula:</label> [% numberingmethod | html %]</p> |
| 259 |
<table> |
| 260 |
<tr> |
| 261 |
<th> </th> |
| 262 |
<th>X</th> |
| 263 |
<th>Y</th> |
| 264 |
<th>Z</th> |
| 265 |
</tr> |
| 266 |
<tr> |
| 267 |
<td>Add</td> |
| 268 |
<td> |
| 269 |
[% add1 | html %] |
| 270 |
</td> |
| 271 |
<td> |
| 272 |
[% add2 | html %] |
| 273 |
</td> |
| 274 |
<td> |
| 275 |
[% add3 | html %] |
| 276 |
</td> |
| 277 |
</tr> |
| 278 |
<tr> |
| 279 |
<td>once every</td> |
| 280 |
<td>[% every1 | html %]</td> |
| 281 |
<td>[% every2 | html %]</td> |
| 282 |
<td>[% every3 | html %]</td> |
| 283 |
</tr> |
| 284 |
<tr> |
| 285 |
<td>When more than</td> |
| 286 |
<td>[% whenmorethan1 | html %] [% IF ( innerloop1 ) %]<br /> |
| 287 |
<em>(is [% innerloop1 | html %])</em>[% END %]</td> |
| 288 |
<td>[% whenmorethan2 | html %] [% IF ( innerloop2 ) %]<br /> |
| 289 |
<em>(is [% innerloop2 | html %])</em>[% END %]</td> |
| 290 |
<td>[% whenmorethan3 | html %] [% IF ( innerloop3 ) %]<br /> |
| 291 |
<em>(is [% innerloop3 | html %])</em>[% END %]</td> |
| 292 |
</tr> |
| 293 |
<tr> |
| 294 |
<td>Set back to</td> |
| 295 |
<td>[% setto1 | html %]</td> |
| 296 |
<td>[% setto2 | html %]</td> |
| 297 |
<td>[% setto3 | html %]</td> |
| 298 |
</tr> |
| 299 |
<tr> |
| 300 |
<td> |
| 301 |
Inner counter |
| 302 |
</td> |
| 303 |
<td>[% innerloop1 | html %]</td> |
| 304 |
<td>[% innerloop2 | html %]</td> |
| 305 |
<td>[% innerloop3 | html %]</td> |
| 306 |
</tr> |
| 307 |
<tr> |
| 308 |
<td> |
| 309 |
Last value |
| 310 |
</td> |
| 311 |
<td>[% lastvalue1 | html %]</td> |
| 312 |
<td>[% lastvalue2 | html %]</td> |
| 313 |
<td>[% lastvalue3 | html %]</td> |
| 314 |
</tr> |
| 315 |
</table> |
| 316 |
</div> <!-- /#subscription_numbering --> |
| 317 |
|
263 |
|
| 318 |
<div id="subscription_issues"> |
264 |
<div id="subscription_numbering" role="tabpanel" class="tab-pane" style="display:none"> |
| 319 |
<table> |
265 |
<h3>Numbering calculation</h3> |
| 320 |
<tr> |
266 |
<p><label>Numbering formula:</label> [% numberingmethod | html %]</p> |
| 321 |
<th>Issue number</th> |
267 |
<table> |
| 322 |
<th>Planned date</th> |
|
|
| 323 |
<th>Published date</th> |
| 324 |
<th>Published date (text)</th> |
| 325 |
<th>Status</th> |
| 326 |
</tr> |
| 327 |
[% FOREACH serialslis IN serialslist %] |
| 328 |
<tr> |
268 |
<tr> |
|
|
269 |
<th> </th> |
| 270 |
<th>X</th> |
| 271 |
<th>Y</th> |
| 272 |
<th>Z</th> |
| 273 |
</tr> |
| 274 |
<tr> |
| 275 |
<td>Add</td> |
| 329 |
<td> |
276 |
<td> |
| 330 |
[% serialslis.serialseq | html %] |
277 |
[% add1 | html %] |
| 331 |
</td> |
278 |
</td> |
| 332 |
<td> |
279 |
<td> |
| 333 |
[% IF serialslis.planneddate %] |
280 |
[% add2 | html %] |
| 334 |
[% serialslis.planneddate | html %] |
|
|
| 335 |
[% ELSE %] |
| 336 |
Unknown |
| 337 |
[% END %] |
| 338 |
</td> |
281 |
</td> |
| 339 |
<td> |
282 |
<td> |
| 340 |
[% IF serialslis.publisheddate %] |
283 |
[% add3 | html %] |
| 341 |
[% serialslis.publisheddate | html %] |
|
|
| 342 |
[% ELSE %] |
| 343 |
Unknown |
| 344 |
[% END %] |
| 345 |
</td> |
284 |
</td> |
|
|
285 |
</tr> |
| 286 |
<tr> |
| 287 |
<td>once every</td> |
| 288 |
<td>[% every1 | html %]</td> |
| 289 |
<td>[% every2 | html %]</td> |
| 290 |
<td>[% every3 | html %]</td> |
| 291 |
</tr> |
| 292 |
<tr> |
| 293 |
<td>When more than</td> |
| 294 |
<td>[% whenmorethan1 | html %] [% IF ( innerloop1 ) %]<br /> |
| 295 |
<em>(is [% innerloop1 | html %])</em>[% END %]</td> |
| 296 |
<td>[% whenmorethan2 | html %] [% IF ( innerloop2 ) %]<br /> |
| 297 |
<em>(is [% innerloop2 | html %])</em>[% END %]</td> |
| 298 |
<td>[% whenmorethan3 | html %] [% IF ( innerloop3 ) %]<br /> |
| 299 |
<em>(is [% innerloop3 | html %])</em>[% END %]</td> |
| 300 |
</tr> |
| 301 |
<tr> |
| 302 |
<td>Set back to</td> |
| 303 |
<td>[% setto1 | html %]</td> |
| 304 |
<td>[% setto2 | html %]</td> |
| 305 |
<td>[% setto3 | html %]</td> |
| 306 |
</tr> |
| 307 |
<tr> |
| 346 |
<td> |
308 |
<td> |
| 347 |
[% serialslis.publisheddatetext | html %] |
309 |
Inner counter |
| 348 |
</td> |
310 |
</td> |
|
|
311 |
<td>[% innerloop1 | html %]</td> |
| 312 |
<td>[% innerloop2 | html %]</td> |
| 313 |
<td>[% innerloop3 | html %]</td> |
| 314 |
</tr> |
| 315 |
<tr> |
| 349 |
<td> |
316 |
<td> |
| 350 |
[% IF ( serialslis.status1 ) %]Expected[% END %] |
317 |
Last value |
| 351 |
[% IF ( serialslis.status2 ) %]Arrived[% END %] |
|
|
| 352 |
[% IF ( serialslis.status3 ) %]Late[% END %] |
| 353 |
[% IF ( serialslis.status4 ) %]Missing[% END %] |
| 354 |
[% IF ( serialslis.status41 ) %]Missing (never received)[% END %] |
| 355 |
[% IF ( serialslis.status42 ) %]Missing (sold out)[% END %] |
| 356 |
[% IF ( serialslis.status43 ) %]Missing (damaged)[% END %] |
| 357 |
[% IF ( serialslis.status44 ) %]Missing (lost)[% END %] |
| 358 |
[% IF ( serialslis.status5 ) %]Not issued[% END %] |
| 359 |
[% IF ( serialslis.status6 ) %]Delete[% END %] |
| 360 |
[% IF ( serialslis.status7 ) %] |
| 361 |
Claimed |
| 362 |
[% IF ( serialslis.claimdate ) %] |
| 363 |
[% serialslis.claimdate | html %] |
| 364 |
[% END %] |
| 365 |
[% END %] |
| 366 |
[% IF ( serialslis.status8 ) %]Stopped[% END %] |
| 367 |
</td> |
318 |
</td> |
|
|
319 |
<td>[% lastvalue1 | html %]</td> |
| 320 |
<td>[% lastvalue2 | html %]</td> |
| 321 |
<td>[% lastvalue3 | html %]</td> |
| 368 |
</tr> |
322 |
</tr> |
| 369 |
[% END # /FOREACH serialslist %] |
323 |
</table> |
| 370 |
</table> |
324 |
</div> <!-- /#subscription_numbering --> |
| 371 |
</div> <!-- /#subscription_issues --> |
|
|
| 372 |
|
| 373 |
<div id="subscription_summary"> |
| 374 |
<div class="row"> |
| 375 |
<div class="col-sm-12"> |
| 376 |
<div class="rows"> |
| 377 |
<ol> |
| 378 |
<li><span class="label">Start date:</span> [% startdate | html %] </li> |
| 379 |
<li><span class="label">End date:</span> [% enddate | html %]</li> |
| 380 |
<li><span class="label">History start date:</span> [% histstartdate | html %] </li> |
| 381 |
<li><span class="label">History end date:</span> [% histenddate | html %]</li> |
| 382 |
<li><span class="label">Received issues:</span>[% recievedlist | html | html_line_break %]</li> |
| 383 |
<li><span class="label">Missing issues:</span>[% missinglist | html | html_line_break %]</li> |
| 384 |
<li><span class="label">Nonpublic note:</span>[% internalnotes | html | html_line_break %]</li> |
| 385 |
<li><span class="label">Public note:</span>[% notes | html | html_line_break %]</li> |
| 386 |
<li><span class="label">History staff note:</span>[% librariannote | html | html_line_break %]</li> |
| 387 |
<li><span class="label">History OPAC note:</span>[% opacnote | html | html_line_break %]</li> |
| 388 |
</ol> |
| 389 |
</div> <!-- /.rows --> |
| 390 |
</div> <!-- /.col-sm-12 --> |
| 391 |
</div> <!-- /.row --> |
| 392 |
</div> <!-- /#subscription_summary --> |
| 393 |
|
325 |
|
| 394 |
[% IF orders_grouped.size %] |
326 |
<div id="subscription_issues" role="tabpanel" class="tab-pane"> |
| 395 |
<div id="acquisition_details"> |
327 |
<table> |
| 396 |
<h2>Acquisition details</h2> |
328 |
<tr> |
| 397 |
<table id="orders"> |
329 |
<th>Issue number</th> |
| 398 |
<caption> |
330 |
<th>Planned date</th> |
| 399 |
<span class="actions"> |
331 |
<th>Published date</th> |
| 400 |
<a href="#" id="hide_received_orders">Hide already received orders</a> |
332 |
<th>Published date (text)</th> |
| 401 |
| <a href="#" id="show_all_orders">Show all orders</a> |
333 |
<th>Status</th> |
| 402 |
| <a href="#" id="expand_all">Expand all</a> |
334 |
</tr> |
| 403 |
| <a href="#" id="collapse_all">Collapse all</a> |
335 |
[% FOREACH serialslis IN serialslist %] |
| 404 |
</span> |
|
|
| 405 |
</caption> |
| 406 |
<thead> |
| 407 |
<tr> |
336 |
<tr> |
| 408 |
<th>Invoice</th> |
337 |
<td> |
| 409 |
<th>Basket</th> |
338 |
[% serialslis.serialseq | html %] |
| 410 |
<th>Order number</th> |
339 |
</td> |
| 411 |
<th>Creation date</th> |
340 |
<td> |
| 412 |
<th>Receive date</th> |
341 |
[% IF serialslis.planneddate %] |
| 413 |
<th>Status</th> |
342 |
[% serialslis.planneddate | html %] |
| 414 |
<th>Internal note</th> |
343 |
[% ELSE %] |
| 415 |
<th>Vendor note</th> |
344 |
Unknown |
| 416 |
<th>Fund</th> |
345 |
[% END %] |
| 417 |
<th>Quantity</th> |
346 |
</td> |
| 418 |
<th title="ecost tax exc. / ecost tax inc.">Ordered</th> |
347 |
<td> |
| 419 |
<th title="Actual cost tax exc. / Actual cost tax inc.">Spent</th> |
348 |
[% IF serialslis.publisheddate %] |
| 420 |
</tr> |
349 |
[% serialslis.publisheddate | html %] |
| 421 |
</thead> |
350 |
[% ELSE %] |
| 422 |
<tbody> |
351 |
Unknown |
| 423 |
[% FOR ordernumber IN orders_grouped.keys %] |
352 |
[% END %] |
| 424 |
[% SET parent_tree_id = loop.count %] |
353 |
</td> |
| 425 |
[% SET parent_order = orders_grouped.$ordernumber %] |
354 |
<td> |
| 426 |
<tr data-tt-id="[% parent_tree_id | html %]" class="highlighted-row"> |
355 |
[% serialslis.publisheddatetext | html %] |
| 427 |
<td></td> [%# invoice %] |
356 |
</td> |
| 428 |
<td> |
357 |
<td> |
| 429 |
[% IF CAN_user_acquisition_order_manage %] |
358 |
[% IF ( serialslis.status1 ) %]Expected[% END %] |
| 430 |
<a href="/cgi-bin/koha/acqui/basket.pl?basketno=[% parent_order.basket.basketno | uri %]">[% parent_order.basket.basketname | html %] ([% parent_order.basket.basketno | html %])</a> |
359 |
[% IF ( serialslis.status2 ) %]Arrived[% END %] |
| 431 |
[% ELSE %] |
360 |
[% IF ( serialslis.status3 ) %]Late[% END %] |
| 432 |
[% parent_order.basket.basketname | html %] ([% parent_order.basket.basketno | html %]) |
361 |
[% IF ( serialslis.status4 ) %]Missing[% END %] |
| 433 |
[% END %] |
362 |
[% IF ( serialslis.status41 ) %]Missing (never received)[% END %] |
| 434 |
</td> |
363 |
[% IF ( serialslis.status42 ) %]Missing (sold out)[% END %] |
| 435 |
<td></td> [%# ordernumber %] |
364 |
[% IF ( serialslis.status43 ) %]Missing (damaged)[% END %] |
| 436 |
<td>[% parent_order.basket.creationdate | $KohaDates %]</td> |
365 |
[% IF ( serialslis.status44 ) %]Missing (lost)[% END %] |
| 437 |
<td>[% parent_order.datereceived | $KohaDates %]</td> |
366 |
[% IF ( serialslis.status5 ) %]Not issued[% END %] |
| 438 |
<td> |
367 |
[% IF ( serialslis.status6 ) %]Delete[% END %] |
| 439 |
[% SWITCH parent_order.orderstatus %] |
368 |
[% IF ( serialslis.status7 ) %] |
| 440 |
[% CASE 'new' %]<span title="status_1">New</span> |
369 |
Claimed |
| 441 |
[% CASE 'ordered' %]<span title="status_2">Ordered</span> |
370 |
[% IF ( serialslis.claimdate ) %] |
| 442 |
[% CASE 'partial' %]<span title="status_3">Partial</span> |
371 |
[% serialslis.claimdate | html %] |
| 443 |
[% CASE 'complete' %]<span title="status_4">Complete</span> |
|
|
| 444 |
[% CASE 'cancelled' %]<span title="status_5">Cancelled</span> |
| 445 |
[% END %] |
372 |
[% END %] |
| 446 |
</td> |
373 |
[% END %] |
| 447 |
<td></td> [%# internalnote %] |
374 |
[% IF ( serialslis.status8 ) %]Stopped[% END %] |
| 448 |
<td></td> [%# vendornote %] |
375 |
</td> |
| 449 |
<td></td> [%# fund %] |
376 |
</tr> |
| 450 |
<td>[% parent_order.quantity | html %]</td> |
377 |
[% END # /FOREACH serialslist %] |
| 451 |
<td>[% parent_order.ecost_tax_excluded | $Price %] / [% parent_order.ecost_tax_included | $Price %]</td> |
378 |
</table> |
| 452 |
<td>[% parent_order.unitprice_tax_excluded | $Price %] / [% parent_order.unitprice_tax_included | $Price %]</td> |
379 |
</div> <!-- /#subscription_issues --> |
|
|
380 |
|
| 381 |
<div id="subscription_summary" role="tabpanel" class="tab-pane"> |
| 382 |
<div class="row"> |
| 383 |
<div class="col-sm-12"> |
| 384 |
<div class="rows"> |
| 385 |
<ol> |
| 386 |
<li><span class="label">Start date:</span> [% startdate | html %] </li> |
| 387 |
<li><span class="label">End date:</span> [% enddate | html %]</li> |
| 388 |
<li><span class="label">History start date:</span> [% histstartdate | html %] </li> |
| 389 |
<li><span class="label">History end date:</span> [% histenddate | html %]</li> |
| 390 |
<li><span class="label">Received issues:</span>[% recievedlist | html | html_line_break %]</li> |
| 391 |
<li><span class="label">Missing issues:</span>[% missinglist | html | html_line_break %]</li> |
| 392 |
<li><span class="label">Nonpublic note:</span>[% internalnotes | html | html_line_break %]</li> |
| 393 |
<li><span class="label">Public note:</span>[% notes | html | html_line_break %]</li> |
| 394 |
<li><span class="label">History staff note:</span>[% librariannote | html | html_line_break %]</li> |
| 395 |
<li><span class="label">History OPAC note:</span>[% opacnote | html | html_line_break %]</li> |
| 396 |
</ol> |
| 397 |
</div> <!-- /.rows --> |
| 398 |
</div> <!-- /.col-sm-12 --> |
| 399 |
</div> <!-- /.row --> |
| 400 |
</div> <!-- /#subscription_summary --> |
| 401 |
|
| 402 |
[% IF orders_grouped.size %] |
| 403 |
<div id="acquisition_details" role="tabpanel" class="tab-pane"> |
| 404 |
<h2>Acquisition details</h2> |
| 405 |
<table id="orders"> |
| 406 |
<caption> |
| 407 |
<span class="actions"> |
| 408 |
<a href="#" id="hide_received_orders">Hide already received orders</a> |
| 409 |
| <a href="#" id="show_all_orders">Show all orders</a> |
| 410 |
| <a href="#" id="expand_all">Expand all</a> |
| 411 |
| <a href="#" id="collapse_all">Collapse all</a> |
| 412 |
</span> |
| 413 |
</caption> |
| 414 |
<thead> |
| 415 |
<tr> |
| 416 |
<th>Invoice</th> |
| 417 |
<th>Basket</th> |
| 418 |
<th>Order number</th> |
| 419 |
<th>Creation date</th> |
| 420 |
<th>Receive date</th> |
| 421 |
<th>Status</th> |
| 422 |
<th>Internal note</th> |
| 423 |
<th>Vendor note</th> |
| 424 |
<th>Fund</th> |
| 425 |
<th>Quantity</th> |
| 426 |
<th title="ecost tax exc. / ecost tax inc.">Ordered</th> |
| 427 |
<th title="Actual cost tax exc. / Actual cost tax inc.">Spent</th> |
| 453 |
</tr> |
428 |
</tr> |
| 454 |
[% FOR order IN parent_order.orders %] |
429 |
</thead> |
| 455 |
<tr data-tt-id="0" data-tt-parent-id="[% parent_tree_id | html %]"> |
430 |
<tbody> |
|
|
431 |
[% FOR ordernumber IN orders_grouped.keys %] |
| 432 |
[% SET parent_tree_id = loop.count %] |
| 433 |
[% SET parent_order = orders_grouped.$ordernumber %] |
| 434 |
<tr data-tt-id="[% parent_tree_id | html %]" class="highlighted-row"> |
| 435 |
<td></td> [%# invoice %] |
| 456 |
<td> |
436 |
<td> |
| 457 |
[% IF order.invoice %] |
437 |
[% IF CAN_user_acquisition_order_manage %] |
| 458 |
[% IF CAN_user_acquisition %] |
438 |
<a href="/cgi-bin/koha/acqui/basket.pl?basketno=[% parent_order.basket.basketno | uri %]">[% parent_order.basket.basketname | html %] ([% parent_order.basket.basketno | html %])</a> |
| 459 |
<a href="/cgi-bin/koha/acqui/invoice.pl?invoiceid=[% order.invoiceid | uri %]" title="Invoice detail page"> |
|
|
| 460 |
[% order.invoice.invoicenumber | html %]</a> |
| 461 |
[% ELSE %] |
439 |
[% ELSE %] |
| 462 |
[% order.invoice.invoicenumber | html %] |
440 |
[% parent_order.basket.basketname | html %] ([% parent_order.basket.basketno | html %]) |
| 463 |
[% END %] |
|
|
| 464 |
[% END %] |
| 465 |
</td> |
| 466 |
<td></td> [%# basket %] |
| 467 |
<td>[% order.ordernumber | html %]</td> |
| 468 |
<td data-order="[% order.basket.creationdate | uri %]">[% order.basket.creationdate | $KohaDates%]</td> |
| 469 |
<td data-order="[% order.datereceived | uri %]">[% order.datereceived | $KohaDates %]</td> |
| 470 |
[% SWITCH order.orderstatus %] |
| 471 |
[% CASE 'new' %]<td data-order="status_1">New |
| 472 |
[% CASE 'ordered' %]<td data-order="status_2">Ordered |
| 473 |
[% CASE 'partial' %]<td data-order="status_3">Partial |
| 474 |
[% CASE 'complete' %]<td data-order="status_4">Complete |
| 475 |
[% CASE 'cancelled' %]<td data-order="status_5">Cancelled |
| 476 |
[% END %] |
441 |
[% END %] |
| 477 |
</td> |
442 |
</td> |
| 478 |
<td>[% order.order_internalnote | html %]</td> |
443 |
<td></td> [%# ordernumber %] |
| 479 |
<td>[% order.order_vendornote | html %]</td> |
444 |
<td>[% parent_order.basket.creationdate | $KohaDates %]</td> |
| 480 |
<td>[% order.fund.budget_name | html %]</td> |
445 |
<td>[% parent_order.datereceived | $KohaDates %]</td> |
| 481 |
<td>[% order.quantity | html %]</td> |
|
|
| 482 |
<td> |
446 |
<td> |
| 483 |
[% UNLESS order.datereceived %] |
447 |
[% SWITCH parent_order.orderstatus %] |
| 484 |
[% order.ecost_tax_excluded * order.quantity | $Price %] / [% order.ecost_tax_included * order.quantity | $Price %] |
448 |
[% CASE 'new' %]<span title="status_1">New</span> |
| 485 |
[% END %] |
449 |
[% CASE 'ordered' %]<span title="status_2">Ordered</span> |
| 486 |
</td> |
450 |
[% CASE 'partial' %]<span title="status_3">Partial</span> |
| 487 |
<td> |
451 |
[% CASE 'complete' %]<span title="status_4">Complete</span> |
| 488 |
[% IF order.datereceived %] |
452 |
[% CASE 'cancelled' %]<span title="status_5">Cancelled</span> |
| 489 |
[%# FIXME What if unitprice has not been filled? %] |
|
|
| 490 |
[% order.unitprice_tax_excluded * order.quantity | $Price %] / [% order.unitprice_tax_included * order.quantity | $Price %] |
| 491 |
[% END %] |
453 |
[% END %] |
| 492 |
</td> |
454 |
</td> |
|
|
455 |
<td></td> [%# internalnote %] |
| 456 |
<td></td> [%# vendornote %] |
| 457 |
<td></td> [%# fund %] |
| 458 |
<td>[% parent_order.quantity | html %]</td> |
| 459 |
<td>[% parent_order.ecost_tax_excluded | $Price %] / [% parent_order.ecost_tax_included | $Price %]</td> |
| 460 |
<td>[% parent_order.unitprice_tax_excluded | $Price %] / [% parent_order.unitprice_tax_included | $Price %]</td> |
| 493 |
</tr> |
461 |
</tr> |
| 494 |
[% END # /FOR order %] |
462 |
[% FOR order IN parent_order.orders %] |
| 495 |
[% END # /FOR ordernumber %] |
463 |
<tr data-tt-id="0" data-tt-parent-id="[% parent_tree_id | html %]"> |
| 496 |
</tbody> |
464 |
<td> |
| 497 |
</table> <!-- /#orders --> |
465 |
[% IF order.invoice %] |
| 498 |
</div> <!-- /#acquisition_details --> |
466 |
[% IF CAN_user_acquisition %] |
| 499 |
[% END # IF orders_grouped.size %] |
467 |
<a href="/cgi-bin/koha/acqui/invoice.pl?invoiceid=[% order.invoiceid | uri %]" title="Invoice detail page"> |
|
|
468 |
[% order.invoice.invoicenumber | html %]</a> |
| 469 |
[% ELSE %] |
| 470 |
[% order.invoice.invoicenumber | html %] |
| 471 |
[% END %] |
| 472 |
[% END %] |
| 473 |
</td> |
| 474 |
<td></td> [%# basket %] |
| 475 |
<td>[% order.ordernumber | html %]</td> |
| 476 |
<td data-order="[% order.basket.creationdate | uri %]">[% order.basket.creationdate | $KohaDates%]</td> |
| 477 |
<td data-order="[% order.datereceived | uri %]">[% order.datereceived | $KohaDates %]</td> |
| 478 |
[% SWITCH order.orderstatus %] |
| 479 |
[% CASE 'new' %]<td data-order="status_1">New |
| 480 |
[% CASE 'ordered' %]<td data-order="status_2">Ordered |
| 481 |
[% CASE 'partial' %]<td data-order="status_3">Partial |
| 482 |
[% CASE 'complete' %]<td data-order="status_4">Complete |
| 483 |
[% CASE 'cancelled' %]<td data-order="status_5">Cancelled |
| 484 |
[% END %] |
| 485 |
</td> |
| 486 |
<td>[% order.order_internalnote | html %]</td> |
| 487 |
<td>[% order.order_vendornote | html %]</td> |
| 488 |
<td>[% order.fund.budget_name | html %]</td> |
| 489 |
<td>[% order.quantity | html %]</td> |
| 490 |
<td> |
| 491 |
[% UNLESS order.datereceived %] |
| 492 |
[% order.ecost_tax_excluded * order.quantity | $Price %] / [% order.ecost_tax_included * order.quantity | $Price %] |
| 493 |
[% END %] |
| 494 |
</td> |
| 495 |
<td> |
| 496 |
[% IF order.datereceived %] |
| 497 |
[%# FIXME What if unitprice has not been filled? %] |
| 498 |
[% order.unitprice_tax_excluded * order.quantity | $Price %] / [% order.unitprice_tax_included * order.quantity | $Price %] |
| 499 |
[% END %] |
| 500 |
</td> |
| 501 |
</tr> |
| 502 |
[% END # /FOR order %] |
| 503 |
[% END # /FOR ordernumber %] |
| 504 |
</tbody> |
| 505 |
</table> <!-- /#orders --> |
| 506 |
</div> <!-- /#acquisition_details --> |
| 507 |
[% END # IF orders_grouped.size %] |
| 508 |
</div> <!-- /.tab-content --> |
| 500 |
</div> <!-- /#subscription_description --> |
509 |
</div> <!-- /#subscription_description --> |
| 501 |
</main> |
510 |
</main> |
| 502 |
</div> <!-- /.col-sm-10.col-sm-push-2 --> |
511 |
</div> <!-- /.col-sm-10.col-sm-push-2 --> |
|
Lines 522-528
Link Here
|
| 522 |
var text = new Array(_("Number"),_("Volume"),_("Issue"),_("Month"),_("Week"),_("Starting with:"),_("Rollover at:"),_("Choose hemisphere:"),_("Northern"),_("Southern", |
531 |
var text = new Array(_("Number"),_("Volume"),_("Issue"),_("Month"),_("Week"),_("Starting with:"),_("Rollover at:"),_("Choose hemisphere:"),_("Northern"),_("Southern", |
| 523 |
"Autumn"),_("Winter"),_("Spring"),_("Summer"),_("Fall"),_("Season"),_("Year")); |
532 |
"Autumn"),_("Winter"),_("Spring"),_("Summer"),_("Fall"),_("Season"),_("Year")); |
| 524 |
$(document).ready(function() { |
533 |
$(document).ready(function() { |
| 525 |
$("#subscription_description").tabs(); |
534 |
|
| 526 |
$("#renewsub").click(function(){ |
535 |
$("#renewsub").click(function(){ |
| 527 |
popup([% subscriptionid | html %]); |
536 |
popup([% subscriptionid | html %]); |
| 528 |
return false; |
537 |
return false; |
| 529 |
- |
|
|