|
Lines 170-512
Link Here
|
| 170 |
</form> |
170 |
</form> |
| 171 |
|
171 |
|
| 172 |
<div id="article-request-tabs" class="toptabs"> |
172 |
<div id="article-request-tabs" class="toptabs"> |
| 173 |
<ul> |
173 |
<ul class="nav nav-tabs" role="tablist"> |
| 174 |
<li> |
174 |
<li role="presentation" class="active"> |
| 175 |
<a href="#article-requests-requested"> |
175 |
<a href="#article-requests-requested" aria-controls="article-requests-requested" role="tab" data-toggle="tab"> |
| 176 |
New (<span id="ar_requested_count">[% article_requests_requested.count | html %]</span>) |
176 |
New (<span id="ar_requested_count">[% article_requests_requested.count | html %]</span>) |
| 177 |
</a> |
177 |
</a> |
| 178 |
</li> |
178 |
</li> |
| 179 |
|
179 |
|
| 180 |
<li> |
180 |
<li role="presentation"> |
| 181 |
<a href="#article-requests-pending"> |
181 |
<a href="#article-requests-pending" aria-controls="article-requests-pending" role="tab" data-toggle="tab"> |
| 182 |
Pending (<span id="ar_pending_count">[% article_requests_pending.count | html %]</span>) |
182 |
Pending (<span id="ar_pending_count">[% article_requests_pending.count | html %]</span>) |
| 183 |
</a> |
183 |
</a> |
| 184 |
</li> |
184 |
</li role="presentation"> |
| 185 |
|
185 |
|
| 186 |
<li> |
186 |
<li> |
| 187 |
<a href="#article-requests-processing"> |
187 |
<a href="#article-requests-processing" aria-controls="article-requests-processing" role="tab" data-toggle="tab"> |
| 188 |
Processing (<span id="ar_processing_count">[% article_requests_processing.count | html %]</span>) |
188 |
Processing (<span id="ar_processing_count">[% article_requests_processing.count | html %]</span>) |
| 189 |
</a> |
189 |
</a> |
| 190 |
</li> |
190 |
</li> |
| 191 |
</ul> |
191 |
</ul> |
| 192 |
|
192 |
<div class="tab-content"> |
| 193 |
<div id="article-requests-requested"> |
193 |
<div id="article-requests-requested" role="tabpanel" class="tab-pane active"> |
| 194 |
<div class="article-requests-requested_table_controls"> |
194 |
<div class="article-requests-requested_table_controls"> |
| 195 |
<a href="#" class="SelectAll"><i class="fa fa-check"></i> Select all</a> | <a href="#" class="ClearAll"><i class="fa fa-remove"></i> Clear all</a> |
195 |
<a href="#" class="SelectAll"><i class="fa fa-check"></i> Select all</a> | <a href="#" class="ClearAll"><i class="fa fa-remove"></i> Clear all</a> |
| 196 |
[% PROCESS actions menuid='article-menu-requested' id_arg=0 pull_right='' aria_menu='table_controls' %] |
196 |
[% PROCESS actions menuid='article-menu-requested' id_arg=0 pull_right='' aria_menu='table_controls' %] |
|
|
197 |
</div> |
| 198 |
|
| 199 |
<table id="article-requests-requested-table"> |
| 200 |
<thead> |
| 201 |
<tr> |
| 202 |
<th/> |
| 203 |
<th class="ar-title">Title</th> |
| 204 |
<th class="ar-request">Requested article</th> |
| 205 |
<th class="ar-collection">Collection</th> |
| 206 |
<th class="ar-itemtype">Item type</th> |
| 207 |
<th class="ar-callnumber">Call number</th> |
| 208 |
<th class="ar-status">Status</th> |
| 209 |
<th class="ar-copynumber">Copy number</th> |
| 210 |
<th class="ar-enumchron">Enumeration</th> |
| 211 |
<th class="ar-barcode">Barcode</th> |
| 212 |
<th class="ar-format">Format</th> |
| 213 |
<th class="ar-urls">URLs</th> |
| 214 |
<th class="ar-patron">Patron</th> |
| 215 |
<th class="ar-date">Date</th> |
| 216 |
<th class="ar-actions noExport">Actions</th> |
| 217 |
</tr> |
| 218 |
</thead> |
| 219 |
|
| 220 |
<tbody> |
| 221 |
[% FOREACH ar IN article_requests_requested %] |
| 222 |
<tr class="ar-row ar-requested"> |
| 223 |
<td><input type="checkbox" reqid="[% ar.id | html %]"/></td> |
| 224 |
<td class="ar-title"> |
| 225 |
<p> |
| 226 |
<a class="title" href="/cgi-bin/koha/circ/request-article.pl?biblionumber=[% ar.biblionumber | uri %]"> |
| 227 |
[% INCLUDE 'biblio-title.inc' biblio=ar.biblio %] |
| 228 |
</a> |
| 229 |
</p> |
| 230 |
|
| 231 |
<p> |
| 232 |
<div class="ar-biblionumber content_hidden">[% ar.biblionumber | html %]</div> |
| 233 |
<div class="ar-author">[% ar.biblio.author | html %]</div> |
| 234 |
<div class="ar-pubdata"> |
| 235 |
[% ar.biblio.biblioitem.publishercode | html %] |
| 236 |
|
| 237 |
[% IF ar.biblio.biblioitem.publicationyear %] |
| 238 |
[% ar.biblio.biblioitem.publicationyear | html %] |
| 239 |
[% ELSIF ar.biblio.copyrightdate %] |
| 240 |
[% ar.biblio.copyrightdate | html %] |
| 241 |
[% END %] |
| 242 |
|
| 243 |
[% IF ar.biblio.biblioitem.pages %] |
| 244 |
: [% ar.biblio.biblioitem.pages | html %] |
| 245 |
[% END %] |
| 246 |
|
| 247 |
[% r.biblio.biblioitem.size | html %] |
| 248 |
|
| 249 |
[% IF ar.biblio.biblioitem.isbn %] |
| 250 |
ISBN: [% ar.biblio.biblioitem.isbn | html %] |
| 251 |
[% END %] |
| 252 |
</div> |
| 253 |
</p> |
| 254 |
</td> |
| 255 |
<td class="ar-request"> |
| 256 |
[% IF ar.toc_request %] <p><strong>Include TOC</strong> </p> [% END %] |
| 257 |
[% IF ar.title %] <p><strong>Title:</strong> [% ar.title | html %] </p> [% END %] |
| 258 |
[% IF ar.author %] <p><strong>Author:</strong> [% ar.author | html %] </p> [% END %] |
| 259 |
[% IF ar.volume %] <p><strong>Volume:</strong> [% ar.volume | html %] </p> [% END %] |
| 260 |
[% IF ar.issue %] <p><strong>Issue:</strong> [% ar.issue | html %] </p> [% END %] |
| 261 |
[% IF ar.date %] <p><strong>Date:</strong> [% ar.date | html %] </p> [% END %] |
| 262 |
[% IF ar.pages %] <p><strong>Pages:</strong> [% ar.pages | html %] </p> [% END %] |
| 263 |
[% IF ar.chapters %] <p><strong>Chapters:</strong> [% ar.chapters | html %] </p> [% END %] |
| 264 |
[% IF ar.patron_notes %] <p><strong>Patron notes:</strong> [% ar.patron_notes | html %] </p> [% END %] |
| 265 |
</td> |
| 266 |
<td class="ar-collection">[% AuthorisedValues.GetDescriptionByKohaField( kohafield => 'items.ccode', authorised_value => ar.item.ccode ) | html %]</td> |
| 267 |
<td class="ar-itemtype">[% ItemTypes.GetDescription( ar.item.effective_itemtype ) | html %]</td> |
| 268 |
<td class="ar-callnumber"> |
| 269 |
[% IF ar.item.location %] |
| 270 |
<em>[% AuthorisedValues.GetDescriptionByKohaField( kohafield => 'items.location', authorised_value => ar.item.location ) | html %]</em> |
| 271 |
[% END %] |
| 272 |
|
| 273 |
[% ar.item.itemcallnumber | html %] |
| 274 |
</td> |
| 275 |
<td class="ar-status">[% PROCESS 'item_status' myitem = ar.item IF ar.item %]</td> |
| 276 |
<td class="ar-copynumber">[% ar.item.copynumber | html %]</td> |
| 277 |
<td class="ar-enumchron">[% ar.item.enumchron | html %]</td> |
| 278 |
<td class="ar-barcode">[% ar.item.barcode | html %]</td> |
| 279 |
<td class="ar-format">[% IF ar.format == 'PHOTOCOPY' %]Copy[% ELSIF ar.format == 'SCAN' %]Scan[% END %]</td> |
| 280 |
<td class="ar-urls">[% IF ar.format == 'SCAN' %]<span id="url_yesno_[% ar.id | html %]">[% IF ar.urls %]Yes[% ELSE %]No[% END%]</span><span id="url_[% ar.id | html %]" style="display:none;">[% ar.urls | url %]</span>[% END %]</td> |
| 281 |
<td class="ar-patron"> |
| 282 |
<p> |
| 283 |
<a href="/cgi-bin/koha/circ/circulation.pl?findborrower=[% ar.borrower.cardnumber | uri %]"> |
| 284 |
[% ar.borrower.surname | html %][% IF ar.borrower.firstname %], [% ar.borrower.firstname | html %][% END %] ([% ar.borrower.cardnumber | html %]) |
| 285 |
</a> |
| 286 |
</p> |
| 287 |
|
| 288 |
<p>[% ar.borrower.phone | html %]</p> |
| 289 |
</td> |
| 290 |
<td class="ar-date"><span title="[% ar.created_on | html %]">[% ar.created_on | $KohaDates %]</span></td> |
| 291 |
<td class="ar-actions"> |
| 292 |
[% PROCESS actions menuid = "row" _ ar.id id_arg=ar.id pull_right='pull-right' aria_menu='ar-actions' %] |
| 293 |
</td> |
| 294 |
</tr> |
| 295 |
[% END %] |
| 296 |
</tbody> |
| 297 |
</table> |
| 197 |
</div> |
298 |
</div> |
| 198 |
|
299 |
|
| 199 |
<table id="article-requests-requested-table"> |
300 |
<div id="article-requests-pending" role="tabpanel" class="tab-pane"> |
| 200 |
<thead> |
301 |
<div class="article-requests-pending_table_controls"> |
| 201 |
<tr> |
302 |
<a href="#" class="SelectAll"><i class="fa fa-check"></i> Select all</a> | <a href="#" class="ClearAll"><i class="fa fa-remove"></i> Clear all</a> |
| 202 |
<th/> |
303 |
[% PROCESS actions menuid='article-menu-pending' id_arg=0 pull_right='' aria_menu='table_controls' %] |
| 203 |
<th class="ar-title">Title</th> |
304 |
</div> |
| 204 |
<th class="ar-request">Requested article</th> |
305 |
|
| 205 |
<th class="ar-collection">Collection</th> |
306 |
<table id="article-requests-pending-table"> |
| 206 |
<th class="ar-itemtype">Item type</th> |
307 |
<thead> |
| 207 |
<th class="ar-callnumber">Call number</th> |
308 |
<tr> |
| 208 |
<th class="ar-status">Status</th> |
309 |
<th/> |
| 209 |
<th class="ar-copynumber">Copy number</th> |
310 |
<th class="ar-title">Title</th> |
| 210 |
<th class="ar-enumchron">Enumeration</th> |
311 |
<th class="ar-request">Requested article</th> |
| 211 |
<th class="ar-barcode">Barcode</th> |
312 |
<th class="ar-collection">Collection</th> |
| 212 |
<th class="ar-format">Format</th> |
313 |
<th class="ar-itemtype">Item type</th> |
| 213 |
<th class="ar-urls">URLs</th> |
314 |
<th class="ar-callnumber">Call number</th> |
| 214 |
<th class="ar-patron">Patron</th> |
315 |
<th class="ar-status">Status</th> |
| 215 |
<th class="ar-date">Date</th> |
316 |
<th class="ar-copynumber">Copy number</th> |
| 216 |
<th class="ar-actions noExport">Actions</th> |
317 |
<th class="ar-enumchron">Enumeration</th> |
| 217 |
</tr> |
318 |
<th class="ar-barcode">Barcode</th> |
| 218 |
</thead> |
319 |
<th class="ar-format">Format</th> |
| 219 |
|
320 |
<th class="ar-urls">URLs</th> |
| 220 |
<tbody> |
321 |
<th class="ar-patron">Patron</th> |
| 221 |
[% FOREACH ar IN article_requests_requested %] |
322 |
<th class="ar-date">Date</th> |
| 222 |
<tr class="ar-row ar-requested"> |
323 |
<th class="ar-actions noExport">Actions</th> |
| 223 |
<td><input type="checkbox" reqid="[% ar.id | html %]"/></td> |
|
|
| 224 |
<td class="ar-title"> |
| 225 |
<p> |
| 226 |
<a class="title" href="/cgi-bin/koha/circ/request-article.pl?biblionumber=[% ar.biblionumber | uri %]"> |
| 227 |
[% INCLUDE 'biblio-title.inc' biblio=ar.biblio %] |
| 228 |
</a> |
| 229 |
</p> |
| 230 |
|
| 231 |
<p> |
| 232 |
<div class="ar-biblionumber content_hidden">[% ar.biblionumber | html %]</div> |
| 233 |
<div class="ar-author">[% ar.biblio.author | html %]</div> |
| 234 |
<div class="ar-pubdata"> |
| 235 |
[% ar.biblio.biblioitem.publishercode | html %] |
| 236 |
|
| 237 |
[% IF ar.biblio.biblioitem.publicationyear %] |
| 238 |
[% ar.biblio.biblioitem.publicationyear | html %] |
| 239 |
[% ELSIF ar.biblio.copyrightdate %] |
| 240 |
[% ar.biblio.copyrightdate | html %] |
| 241 |
[% END %] |
| 242 |
|
| 243 |
[% IF ar.biblio.biblioitem.pages %] |
| 244 |
: [% ar.biblio.biblioitem.pages | html %] |
| 245 |
[% END %] |
| 246 |
|
| 247 |
[% r.biblio.biblioitem.size | html %] |
| 248 |
|
| 249 |
[% IF ar.biblio.biblioitem.isbn %] |
| 250 |
ISBN: [% ar.biblio.biblioitem.isbn | html %] |
| 251 |
[% END %] |
| 252 |
</div> |
| 253 |
</p> |
| 254 |
</td> |
| 255 |
<td class="ar-request"> |
| 256 |
[% IF ar.toc_request %] <p><strong>Include TOC</strong> </p> [% END %] |
| 257 |
[% IF ar.title %] <p><strong>Title:</strong> [% ar.title | html %] </p> [% END %] |
| 258 |
[% IF ar.author %] <p><strong>Author:</strong> [% ar.author | html %] </p> [% END %] |
| 259 |
[% IF ar.volume %] <p><strong>Volume:</strong> [% ar.volume | html %] </p> [% END %] |
| 260 |
[% IF ar.issue %] <p><strong>Issue:</strong> [% ar.issue | html %] </p> [% END %] |
| 261 |
[% IF ar.date %] <p><strong>Date:</strong> [% ar.date | html %] </p> [% END %] |
| 262 |
[% IF ar.pages %] <p><strong>Pages:</strong> [% ar.pages | html %] </p> [% END %] |
| 263 |
[% IF ar.chapters %] <p><strong>Chapters:</strong> [% ar.chapters | html %] </p> [% END %] |
| 264 |
[% IF ar.patron_notes %] <p><strong>Patron notes:</strong> [% ar.patron_notes | html %] </p> [% END %] |
| 265 |
</td> |
| 266 |
<td class="ar-collection">[% AuthorisedValues.GetDescriptionByKohaField( kohafield => 'items.ccode', authorised_value => ar.item.ccode ) | html %]</td> |
| 267 |
<td class="ar-itemtype">[% ItemTypes.GetDescription( ar.item.effective_itemtype ) | html %]</td> |
| 268 |
<td class="ar-callnumber"> |
| 269 |
[% IF ar.item.location %] |
| 270 |
<em>[% AuthorisedValues.GetDescriptionByKohaField( kohafield => 'items.location', authorised_value => ar.item.location ) | html %]</em> |
| 271 |
[% END %] |
| 272 |
|
| 273 |
[% ar.item.itemcallnumber | html %] |
| 274 |
</td> |
| 275 |
<td class="ar-status">[% PROCESS 'item_status' myitem = ar.item IF ar.item %]</td> |
| 276 |
<td class="ar-copynumber">[% ar.item.copynumber | html %]</td> |
| 277 |
<td class="ar-enumchron">[% ar.item.enumchron | html %]</td> |
| 278 |
<td class="ar-barcode">[% ar.item.barcode | html %]</td> |
| 279 |
<td class="ar-format">[% IF ar.format == 'PHOTOCOPY' %]Copy[% ELSIF ar.format == 'SCAN' %]Scan[% END %]</td> |
| 280 |
<td class="ar-urls">[% IF ar.format == 'SCAN' %]<span id="url_yesno_[% ar.id | html %]">[% IF ar.urls %]Yes[% ELSE %]No[% END%]</span><span id="url_[% ar.id | html %]" style="display:none;">[% ar.urls | url %]</span>[% END %]</td> |
| 281 |
<td class="ar-patron"> |
| 282 |
<p> |
| 283 |
<a href="/cgi-bin/koha/circ/circulation.pl?findborrower=[% ar.borrower.cardnumber | uri %]"> |
| 284 |
[% ar.borrower.surname | html %][% IF ar.borrower.firstname %], [% ar.borrower.firstname | html %][% END %] ([% ar.borrower.cardnumber | html %]) |
| 285 |
</a> |
| 286 |
</p> |
| 287 |
|
| 288 |
<p>[% ar.borrower.phone | html %]</p> |
| 289 |
</td> |
| 290 |
<td class="ar-date"><span title="[% ar.created_on | html %]">[% ar.created_on | $KohaDates %]</span></td> |
| 291 |
<td class="ar-actions"> |
| 292 |
[% PROCESS actions menuid = "row" _ ar.id id_arg=ar.id pull_right='pull-right' aria_menu='ar-actions' %] |
| 293 |
</td> |
| 294 |
</tr> |
324 |
</tr> |
| 295 |
[% END %] |
325 |
</thead> |
| 296 |
</tbody> |
326 |
|
| 297 |
</table> |
327 |
<tbody> |
| 298 |
</div> |
328 |
[% FOREACH ar IN article_requests_pending %] |
| 299 |
|
329 |
<tr class="ar-row ar-pending"> |
| 300 |
<div id="article-requests-pending"> |
330 |
<td><input type="checkbox" reqid="[% ar.id | html %]"/></td> |
| 301 |
<div class="article-requests-pending_table_controls"> |
331 |
<td class="ar-title"> |
| 302 |
<a href="#" class="SelectAll"><i class="fa fa-check"></i> Select all</a> | <a href="#" class="ClearAll"><i class="fa fa-remove"></i> Clear all</a> |
332 |
<p> |
| 303 |
[% PROCESS actions menuid='article-menu-pending' id_arg=0 pull_right='' aria_menu='table_controls' %] |
333 |
<a class="title" href="/cgi-bin/koha/circ/request-article.pl?biblionumber=[% ar.biblionumber | uri %]"> |
|
|
334 |
[% INCLUDE 'biblio-title.inc' biblio=ar.biblio %] |
| 335 |
</a> |
| 336 |
</p> |
| 337 |
|
| 338 |
<p> |
| 339 |
<div class="ar-biblionumber content_hidden">[% ar.biblionumber | html %]</div> |
| 340 |
<div class="ar-author">[% ar.biblio.author | html %]</div> |
| 341 |
<div class="ar-pubdata"> |
| 342 |
[% ar.biblio.biblioitem.publishercode | html %] |
| 343 |
|
| 344 |
[% IF ar.biblio.biblioitem.publicationyear %] |
| 345 |
[% ar.biblio.biblioitem.publicationyear | html %] |
| 346 |
[% ELSIF ar.biblio.copyrightdate %] |
| 347 |
[% ar.biblio.copyrightdate | html %] |
| 348 |
[% END %] |
| 349 |
|
| 350 |
[% IF ar.biblio.biblioitem.pages %] |
| 351 |
: [% ar.biblio.biblioitem.pages | html %] |
| 352 |
[% END %] |
| 353 |
|
| 354 |
[% r.biblio.biblioitem.size | html %] |
| 355 |
|
| 356 |
[% IF ar.biblio.biblioitem.isbn %] |
| 357 |
ISBN: [% ar.biblio.biblioitem.isbn | html %] |
| 358 |
[% END %] |
| 359 |
</div> |
| 360 |
</p> |
| 361 |
</td> |
| 362 |
<td class="ar-request"> |
| 363 |
[% IF ar.toc_request %] <p><strong>Include TOC</strong> </p> [% END %] |
| 364 |
[% IF ar.title %] <p><strong>Title:</strong> [% ar.title | html %] </p> [% END %] |
| 365 |
[% IF ar.author %] <p><strong>Author:</strong> [% ar.author | html %] </p> [% END %] |
| 366 |
[% IF ar.volume %] <p><strong>Volume:</strong> [% ar.volume | html %] </p> [% END %] |
| 367 |
[% IF ar.issue %] <p><strong>Issue:</strong> [% ar.issue | html %] </p> [% END %] |
| 368 |
[% IF ar.date %] <p><strong>Date:</strong> [% ar.date | html %] </p> [% END %] |
| 369 |
[% IF ar.pages %] <p><strong>Pages:</strong> [% ar.pages | html %] </p> [% END %] |
| 370 |
[% IF ar.chapters %] <p><strong>Chapters:</strong> [% ar.chapters | html %] </p> [% END %] |
| 371 |
[% IF ar.patron_notes %] <p><strong>Patron notes:</strong> [% ar.patron_notes | html %] </p> [% END %] |
| 372 |
</td> |
| 373 |
<td class="ar-collection">[% AuthorisedValues.GetDescriptionByKohaField( kohafield => 'items.ccode', authorised_value => ar.item.ccode ) | html %]</td> |
| 374 |
<td class="ar-itemtype">[% ItemTypes.GetDescription( ar.item.effective_itemtype ) | html %]</td> |
| 375 |
<td class="ar-callnumber"> |
| 376 |
[% IF ar.item.location %] |
| 377 |
<em>[% AuthorisedValues.GetDescriptionByKohaField( kohafield => 'items.location', authorised_value => ar.item.location ) | html %]</em> |
| 378 |
[% END %] |
| 379 |
|
| 380 |
[% ar.item.itemcallnumber | html %] |
| 381 |
</td> |
| 382 |
<td class="ar-status">[% PROCESS 'item_status' myitem = ar.item IF ar.item %]</td> |
| 383 |
<td class="ar-copynumber">[% ar.item.copynumber | html %]</td> |
| 384 |
<td class="ar-enumchron">[% ar.item.enumchron | html %]</td> |
| 385 |
<td class="ar-barcode">[% ar.item.barcode | html %]</td> |
| 386 |
<td class="ar-format">[% IF ar.format == 'PHOTOCOPY' %]Copy[% ELSIF ar.format == 'SCAN' %]Scan[% END %]</td> |
| 387 |
<td class="ar-urls">[% IF ar.format == 'SCAN' %]<span id="url_yesno_[% ar.id | html %]">[% IF ar.urls %]Yes[% ELSE %]No[% END%]</span><span id="url_[% ar.id | html %]" style="display:none;">[% ar.urls | url %]</span>[% END %]</td> |
| 388 |
<td class="ar-patron"> |
| 389 |
<p> |
| 390 |
<a href="/cgi-bin/koha/circ/circulation.pl?findborrower=[% ar.borrower.cardnumber | uri %]"> |
| 391 |
[% ar.borrower.surname | html %][% IF ar.borrower.firstname %], [% ar.borrower.firstname | html %][% END %] ([% ar.borrower.cardnumber | html %]) |
| 392 |
</a> |
| 393 |
</p> |
| 394 |
|
| 395 |
<p>[% ar.borrower.phone | html %]</p> |
| 396 |
</td> |
| 397 |
<td class="ar-date" data-order="[% ar.created_on | html %]">[% ar.created_on | $KohaDates %]</td> |
| 398 |
<td class="ar-actions"> |
| 399 |
[% PROCESS actions menuid = "row" _ ar.id id_arg=ar.id format=ar.format pull_right='pull-right' aria_menu='ar-actions' %] |
| 400 |
</td> |
| 401 |
</tr> |
| 402 |
[% END %] |
| 403 |
</tbody> |
| 404 |
</table> |
| 304 |
</div> |
405 |
</div> |
| 305 |
|
406 |
|
| 306 |
<table id="article-requests-pending-table"> |
407 |
<div id="article-requests-processing" role="tabpanel" class="tab-pane"> |
| 307 |
<thead> |
408 |
<div class="article-requests-processing_table_controls"> |
| 308 |
<tr> |
409 |
<a href="#" class="SelectAll"><i class="fa fa-check"></i> Select all</a> | <a href="#" class="ClearAll"><i class="fa fa-remove"></i> Clear all</a> |
| 309 |
<th/> |
410 |
[% PROCESS actions menuid='article-menu-processing' id_arg=0 pull_right='' aria_menu='table_controls' %] |
| 310 |
<th class="ar-title">Title</th> |
411 |
</div> |
| 311 |
<th class="ar-request">Requested article</th> |
412 |
<table id="article-requests-processing-table"> |
| 312 |
<th class="ar-collection">Collection</th> |
413 |
<thead> |
| 313 |
<th class="ar-itemtype">Item type</th> |
414 |
<tr> |
| 314 |
<th class="ar-callnumber">Call number</th> |
415 |
<th/> |
| 315 |
<th class="ar-status">Status</th> |
416 |
<th class="ar-title">Title</th> |
| 316 |
<th class="ar-copynumber">Copy number</th> |
417 |
<th class="ar-request">Requested article</th> |
| 317 |
<th class="ar-enumchron">Enumeration</th> |
418 |
<th class="ar-collection">Collection</th> |
| 318 |
<th class="ar-barcode">Barcode</th> |
419 |
<th class="ar-itemtype">Item type</th> |
| 319 |
<th class="ar-format">Format</th> |
420 |
<th class="ar-callnumber">Call number</th> |
| 320 |
<th class="ar-urls">URLs</th> |
421 |
<th class="ar-status">Status</th> |
| 321 |
<th class="ar-patron">Patron</th> |
422 |
<th class="ar-copynumber">Copy number</th> |
| 322 |
<th class="ar-date">Date</th> |
423 |
<th class="ar-enumchron">Enumeration</th> |
| 323 |
<th class="ar-actions noExport">Actions</th> |
424 |
<th class="ar-barcode">Barcode</th> |
| 324 |
</tr> |
425 |
<th class="ar-format">Format</th> |
| 325 |
</thead> |
426 |
<th class="ar-urls">URLs</th> |
| 326 |
|
427 |
<th class="ar-patron">Patron</th> |
| 327 |
<tbody> |
428 |
<th class="ar-date">Date</th> |
| 328 |
[% FOREACH ar IN article_requests_pending %] |
429 |
<th class="ar-actions noExport">Actions</th> |
| 329 |
<tr class="ar-row ar-pending"> |
|
|
| 330 |
<td><input type="checkbox" reqid="[% ar.id | html %]"/></td> |
| 331 |
<td class="ar-title"> |
| 332 |
<p> |
| 333 |
<a class="title" href="/cgi-bin/koha/circ/request-article.pl?biblionumber=[% ar.biblionumber | uri %]"> |
| 334 |
[% INCLUDE 'biblio-title.inc' biblio=ar.biblio %] |
| 335 |
</a> |
| 336 |
</p> |
| 337 |
|
| 338 |
<p> |
| 339 |
<div class="ar-biblionumber content_hidden">[% ar.biblionumber | html %]</div> |
| 340 |
<div class="ar-author">[% ar.biblio.author | html %]</div> |
| 341 |
<div class="ar-pubdata"> |
| 342 |
[% ar.biblio.biblioitem.publishercode | html %] |
| 343 |
|
| 344 |
[% IF ar.biblio.biblioitem.publicationyear %] |
| 345 |
[% ar.biblio.biblioitem.publicationyear | html %] |
| 346 |
[% ELSIF ar.biblio.copyrightdate %] |
| 347 |
[% ar.biblio.copyrightdate | html %] |
| 348 |
[% END %] |
| 349 |
|
| 350 |
[% IF ar.biblio.biblioitem.pages %] |
| 351 |
: [% ar.biblio.biblioitem.pages | html %] |
| 352 |
[% END %] |
| 353 |
|
| 354 |
[% r.biblio.biblioitem.size | html %] |
| 355 |
|
| 356 |
[% IF ar.biblio.biblioitem.isbn %] |
| 357 |
ISBN: [% ar.biblio.biblioitem.isbn | html %] |
| 358 |
[% END %] |
| 359 |
</div> |
| 360 |
</p> |
| 361 |
</td> |
| 362 |
<td class="ar-request"> |
| 363 |
[% IF ar.toc_request %] <p><strong>Include TOC</strong> </p> [% END %] |
| 364 |
[% IF ar.title %] <p><strong>Title:</strong> [% ar.title | html %] </p> [% END %] |
| 365 |
[% IF ar.author %] <p><strong>Author:</strong> [% ar.author | html %] </p> [% END %] |
| 366 |
[% IF ar.volume %] <p><strong>Volume:</strong> [% ar.volume | html %] </p> [% END %] |
| 367 |
[% IF ar.issue %] <p><strong>Issue:</strong> [% ar.issue | html %] </p> [% END %] |
| 368 |
[% IF ar.date %] <p><strong>Date:</strong> [% ar.date | html %] </p> [% END %] |
| 369 |
[% IF ar.pages %] <p><strong>Pages:</strong> [% ar.pages | html %] </p> [% END %] |
| 370 |
[% IF ar.chapters %] <p><strong>Chapters:</strong> [% ar.chapters | html %] </p> [% END %] |
| 371 |
[% IF ar.patron_notes %] <p><strong>Patron notes:</strong> [% ar.patron_notes | html %] </p> [% END %] |
| 372 |
</td> |
| 373 |
<td class="ar-collection">[% AuthorisedValues.GetDescriptionByKohaField( kohafield => 'items.ccode', authorised_value => ar.item.ccode ) | html %]</td> |
| 374 |
<td class="ar-itemtype">[% ItemTypes.GetDescription( ar.item.effective_itemtype ) | html %]</td> |
| 375 |
<td class="ar-callnumber"> |
| 376 |
[% IF ar.item.location %] |
| 377 |
<em>[% AuthorisedValues.GetDescriptionByKohaField( kohafield => 'items.location', authorised_value => ar.item.location ) | html %]</em> |
| 378 |
[% END %] |
| 379 |
|
| 380 |
[% ar.item.itemcallnumber | html %] |
| 381 |
</td> |
| 382 |
<td class="ar-status">[% PROCESS 'item_status' myitem = ar.item IF ar.item %]</td> |
| 383 |
<td class="ar-copynumber">[% ar.item.copynumber | html %]</td> |
| 384 |
<td class="ar-enumchron">[% ar.item.enumchron | html %]</td> |
| 385 |
<td class="ar-barcode">[% ar.item.barcode | html %]</td> |
| 386 |
<td class="ar-format">[% IF ar.format == 'PHOTOCOPY' %]Copy[% ELSIF ar.format == 'SCAN' %]Scan[% END %]</td> |
| 387 |
<td class="ar-urls">[% IF ar.format == 'SCAN' %]<span id="url_yesno_[% ar.id | html %]">[% IF ar.urls %]Yes[% ELSE %]No[% END%]</span><span id="url_[% ar.id | html %]" style="display:none;">[% ar.urls | url %]</span>[% END %]</td> |
| 388 |
<td class="ar-patron"> |
| 389 |
<p> |
| 390 |
<a href="/cgi-bin/koha/circ/circulation.pl?findborrower=[% ar.borrower.cardnumber | uri %]"> |
| 391 |
[% ar.borrower.surname | html %][% IF ar.borrower.firstname %], [% ar.borrower.firstname | html %][% END %] ([% ar.borrower.cardnumber | html %]) |
| 392 |
</a> |
| 393 |
</p> |
| 394 |
|
| 395 |
<p>[% ar.borrower.phone | html %]</p> |
| 396 |
</td> |
| 397 |
<td class="ar-date" data-order="[% ar.created_on | html %]">[% ar.created_on | $KohaDates %]</td> |
| 398 |
<td class="ar-actions"> |
| 399 |
[% PROCESS actions menuid = "row" _ ar.id id_arg=ar.id format=ar.format pull_right='pull-right' aria_menu='ar-actions' %] |
| 400 |
</td> |
| 401 |
</tr> |
430 |
</tr> |
| 402 |
[% END %] |
431 |
</thead> |
| 403 |
</tbody> |
432 |
|
| 404 |
</table> |
433 |
<tbody> |
| 405 |
</div> |
434 |
[% FOREACH ar IN article_requests_processing %] |
| 406 |
|
435 |
<tr class="ar-row ar-processing"> |
| 407 |
<div id="article-requests-processing"> |
436 |
<td><input type="checkbox" reqid="[% ar.id | html %]"/></td> |
| 408 |
<div class="article-requests-processing_table_controls"> |
437 |
<td class="ar-title"> |
| 409 |
<a href="#" class="SelectAll"><i class="fa fa-check"></i> Select all</a> | <a href="#" class="ClearAll"><i class="fa fa-remove"></i> Clear all</a> |
438 |
<p> |
| 410 |
[% PROCESS actions menuid='article-menu-processing' id_arg=0 pull_right='' aria_menu='table_controls' %] |
439 |
[% INCLUDE 'biblio-title.inc' biblio=ar.biblio link = 1%] |
|
|
440 |
</p> |
| 441 |
|
| 442 |
<p> |
| 443 |
<div class="ar-biblionumber content_hidden">[% ar.biblionumber | html %]</div> |
| 444 |
<div class="ar-author">[% ar.biblio.author | html %]</div> |
| 445 |
<div class="ar-pubdata"> |
| 446 |
[% ar.biblio.biblioitem.publishercode | html %] |
| 447 |
|
| 448 |
[% IF ar.biblio.biblioitem.publicationyear %] |
| 449 |
[% ar.biblio.biblioitem.publicationyear | html %] |
| 450 |
[% ELSIF ar.biblio.copyrightdate %] |
| 451 |
[% ar.biblio.copyrightdate | html %] |
| 452 |
[% END %] |
| 453 |
|
| 454 |
[% IF ar.biblio.biblioitem.pages %] |
| 455 |
: [% ar.biblio.biblioitem.pages | html %] |
| 456 |
[% END %] |
| 457 |
|
| 458 |
[% r.biblio.biblioitem.size | html %] |
| 459 |
|
| 460 |
[% IF ar.biblio.biblioitem.isbn %] |
| 461 |
ISBN: [% ar.biblio.biblioitem.isbn | html %] |
| 462 |
[% END %] |
| 463 |
</div> |
| 464 |
</p> |
| 465 |
</td> |
| 466 |
<td class="ar-request"> |
| 467 |
[% IF ar.toc_request %] <p><strong>Include TOC</strong> </p> [% END %] |
| 468 |
[% IF ar.title %] <p><strong>Title:</strong> [% ar.title | html %] </p> [% END %] |
| 469 |
[% IF ar.author %] <p><strong>Author:</strong> [% ar.author | html %] </p> [% END %] |
| 470 |
[% IF ar.volume %] <p><strong>Volume:</strong> [% ar.volume | html %] </p> [% END %] |
| 471 |
[% IF ar.issue %] <p><strong>Issue:</strong> [% ar.issue | html %] </p> [% END %] |
| 472 |
[% IF ar.date %] <p><strong>Date:</strong> [% ar.date | html %] </p> [% END %] |
| 473 |
[% IF ar.pages %] <p><strong>Pages:</strong> [% ar.pages | html %] </p> [% END %] |
| 474 |
[% IF ar.chapters %] <p><strong>Chapters:</strong> [% ar.chapters | html %] </p> [% END %] |
| 475 |
[% IF ar.patron_notes %] <p><strong>Patron notes:</strong> [% ar.patron_notes | html %] </p> [% END %] |
| 476 |
</td> |
| 477 |
<td class="ar-collection">[% AuthorisedValues.GetDescriptionByKohaField( kohafield => 'items.ccode', authorised_value => ar.item.ccode ) | html %]</td> |
| 478 |
<td class="ar-itemtype">[% ItemTypes.GetDescription( ar.item.effective_itemtype ) | html %]</td> |
| 479 |
<td class="ar-callnumber"> |
| 480 |
[% IF ar.item.location %] |
| 481 |
<em>[% AuthorisedValues.GetDescriptionByKohaField( kohafield => 'items.location', authorised_value => ar.item.location ) | html %]</em> |
| 482 |
[% END %] |
| 483 |
|
| 484 |
[% ar.item.itemcallnumber | html %] |
| 485 |
</td> |
| 486 |
<td class="ar-status">[% PROCESS 'item_status' myitem = ar.item IF ar.item %]</td> |
| 487 |
<td class="ar-copynumber">[% ar.item.copynumber | html %]</td> |
| 488 |
<td class="ar-enumchron">[% ar.item.enumchron | html %]</td> |
| 489 |
<td class="ar-barcode">[% ar.item.barcode | html %]</td> |
| 490 |
<td class="ar-format">[% IF ar.format == 'PHOTOCOPY' %]Copy[% ELSIF ar.format == 'SCAN' %]Scan[% END %]</td> |
| 491 |
<td class="ar-urls">[% IF ar.format == 'SCAN' %]<span id="url_yesno_[% ar.id | html %]">[% IF ar.urls %]Yes[% ELSE %]No[% END%]</span><span id="url_[% ar.id | html %]" style="display:none;">[% ar.urls | url %]</span>[% END %]</td> |
| 492 |
<td class="ar-patron"> |
| 493 |
<p> |
| 494 |
<a href="/cgi-bin/koha/circ/circulation.pl?findborrower=[% ar.borrower.cardnumber | uri %]"> |
| 495 |
[% ar.borrower.surname | html %][% IF ar.borrower.firstname %], [% ar.borrower.firstname | html %][% END %] ([% ar.borrower.cardnumber | html %]) |
| 496 |
</a> |
| 497 |
</p> |
| 498 |
|
| 499 |
<p>[% ar.borrower.phone | html %]</p> |
| 500 |
</td> |
| 501 |
<td class="ar-date" data-order="[% ar.created_on | html %]">[% ar.created_on | $KohaDates %]</td> |
| 502 |
<td class="ar-actions"> |
| 503 |
[% PROCESS actions menuid="table_" _ ar.id id_arg=ar.id format=ar.format pull_right='pull-right' aria_menu='ar-actions' %] |
| 504 |
</td> |
| 505 |
</tr> |
| 506 |
[% END %] |
| 507 |
</tbody> |
| 508 |
</table> |
| 411 |
</div> |
509 |
</div> |
| 412 |
<table id="article-requests-processing-table"> |
510 |
</div> <!-- /.tab-content --> |
| 413 |
<thead> |
|
|
| 414 |
<tr> |
| 415 |
<th/> |
| 416 |
<th class="ar-title">Title</th> |
| 417 |
<th class="ar-request">Requested article</th> |
| 418 |
<th class="ar-collection">Collection</th> |
| 419 |
<th class="ar-itemtype">Item type</th> |
| 420 |
<th class="ar-callnumber">Call number</th> |
| 421 |
<th class="ar-status">Status</th> |
| 422 |
<th class="ar-copynumber">Copy number</th> |
| 423 |
<th class="ar-enumchron">Enumeration</th> |
| 424 |
<th class="ar-barcode">Barcode</th> |
| 425 |
<th class="ar-format">Format</th> |
| 426 |
<th class="ar-urls">URLs</th> |
| 427 |
<th class="ar-patron">Patron</th> |
| 428 |
<th class="ar-date">Date</th> |
| 429 |
<th class="ar-actions noExport">Actions</th> |
| 430 |
</tr> |
| 431 |
</thead> |
| 432 |
|
| 433 |
<tbody> |
| 434 |
[% FOREACH ar IN article_requests_processing %] |
| 435 |
<tr class="ar-row ar-processing"> |
| 436 |
<td><input type="checkbox" reqid="[% ar.id | html %]"/></td> |
| 437 |
<td class="ar-title"> |
| 438 |
<p> |
| 439 |
[% INCLUDE 'biblio-title.inc' biblio=ar.biblio link = 1%] |
| 440 |
</p> |
| 441 |
|
| 442 |
<p> |
| 443 |
<div class="ar-biblionumber content_hidden">[% ar.biblionumber | html %]</div> |
| 444 |
<div class="ar-author">[% ar.biblio.author | html %]</div> |
| 445 |
<div class="ar-pubdata"> |
| 446 |
[% ar.biblio.biblioitem.publishercode | html %] |
| 447 |
|
| 448 |
[% IF ar.biblio.biblioitem.publicationyear %] |
| 449 |
[% ar.biblio.biblioitem.publicationyear | html %] |
| 450 |
[% ELSIF ar.biblio.copyrightdate %] |
| 451 |
[% ar.biblio.copyrightdate | html %] |
| 452 |
[% END %] |
| 453 |
|
| 454 |
[% IF ar.biblio.biblioitem.pages %] |
| 455 |
: [% ar.biblio.biblioitem.pages | html %] |
| 456 |
[% END %] |
| 457 |
|
| 458 |
[% r.biblio.biblioitem.size | html %] |
| 459 |
|
| 460 |
[% IF ar.biblio.biblioitem.isbn %] |
| 461 |
ISBN: [% ar.biblio.biblioitem.isbn | html %] |
| 462 |
[% END %] |
| 463 |
</div> |
| 464 |
</p> |
| 465 |
</td> |
| 466 |
<td class="ar-request"> |
| 467 |
[% IF ar.toc_request %] <p><strong>Include TOC</strong> </p> [% END %] |
| 468 |
[% IF ar.title %] <p><strong>Title:</strong> [% ar.title | html %] </p> [% END %] |
| 469 |
[% IF ar.author %] <p><strong>Author:</strong> [% ar.author | html %] </p> [% END %] |
| 470 |
[% IF ar.volume %] <p><strong>Volume:</strong> [% ar.volume | html %] </p> [% END %] |
| 471 |
[% IF ar.issue %] <p><strong>Issue:</strong> [% ar.issue | html %] </p> [% END %] |
| 472 |
[% IF ar.date %] <p><strong>Date:</strong> [% ar.date | html %] </p> [% END %] |
| 473 |
[% IF ar.pages %] <p><strong>Pages:</strong> [% ar.pages | html %] </p> [% END %] |
| 474 |
[% IF ar.chapters %] <p><strong>Chapters:</strong> [% ar.chapters | html %] </p> [% END %] |
| 475 |
[% IF ar.patron_notes %] <p><strong>Patron notes:</strong> [% ar.patron_notes | html %] </p> [% END %] |
| 476 |
</td> |
| 477 |
<td class="ar-collection">[% AuthorisedValues.GetDescriptionByKohaField( kohafield => 'items.ccode', authorised_value => ar.item.ccode ) | html %]</td> |
| 478 |
<td class="ar-itemtype">[% ItemTypes.GetDescription( ar.item.effective_itemtype ) | html %]</td> |
| 479 |
<td class="ar-callnumber"> |
| 480 |
[% IF ar.item.location %] |
| 481 |
<em>[% AuthorisedValues.GetDescriptionByKohaField( kohafield => 'items.location', authorised_value => ar.item.location ) | html %]</em> |
| 482 |
[% END %] |
| 483 |
|
| 484 |
[% ar.item.itemcallnumber | html %] |
| 485 |
</td> |
| 486 |
<td class="ar-status">[% PROCESS 'item_status' myitem = ar.item IF ar.item %]</td> |
| 487 |
<td class="ar-copynumber">[% ar.item.copynumber | html %]</td> |
| 488 |
<td class="ar-enumchron">[% ar.item.enumchron | html %]</td> |
| 489 |
<td class="ar-barcode">[% ar.item.barcode | html %]</td> |
| 490 |
<td class="ar-format">[% IF ar.format == 'PHOTOCOPY' %]Copy[% ELSIF ar.format == 'SCAN' %]Scan[% END %]</td> |
| 491 |
<td class="ar-urls">[% IF ar.format == 'SCAN' %]<span id="url_yesno_[% ar.id | html %]">[% IF ar.urls %]Yes[% ELSE %]No[% END%]</span><span id="url_[% ar.id | html %]" style="display:none;">[% ar.urls | url %]</span>[% END %]</td> |
| 492 |
<td class="ar-patron"> |
| 493 |
<p> |
| 494 |
<a href="/cgi-bin/koha/circ/circulation.pl?findborrower=[% ar.borrower.cardnumber | uri %]"> |
| 495 |
[% ar.borrower.surname | html %][% IF ar.borrower.firstname %], [% ar.borrower.firstname | html %][% END %] ([% ar.borrower.cardnumber | html %]) |
| 496 |
</a> |
| 497 |
</p> |
| 498 |
|
| 499 |
<p>[% ar.borrower.phone | html %]</p> |
| 500 |
</td> |
| 501 |
<td class="ar-date" data-order="[% ar.created_on | html %]">[% ar.created_on | $KohaDates %]</td> |
| 502 |
<td class="ar-actions"> |
| 503 |
[% PROCESS actions menuid="table_" _ ar.id id_arg=ar.id format=ar.format pull_right='pull-right' aria_menu='ar-actions' %] |
| 504 |
</td> |
| 505 |
</tr> |
| 506 |
[% END %] |
| 507 |
</tbody> |
| 508 |
</table> |
| 509 |
</div> |
| 510 |
<br/> |
511 |
<br/> |
| 511 |
</div> |
512 |
</div> |
| 512 |
</div> |
513 |
</div> |
|
Lines 520-537
Link Here
|
| 520 |
var active_tab = "#article-requests-requested"; |
521 |
var active_tab = "#article-requests-requested"; |
| 521 |
var last_cancel_reason, requested_datatable, pending_datatable, processing_datatable, active_datatable; |
522 |
var last_cancel_reason, requested_datatable, pending_datatable, processing_datatable, active_datatable; |
| 522 |
$(document).ready(function() { |
523 |
$(document).ready(function() { |
| 523 |
$('#article-request-tabs').tabs({ |
|
|
| 524 |
activate: function( activate_event, activate_ui ) { |
| 525 |
active_tab = activate_ui.newPanel.selector; |
| 526 |
if( active_tab == '#article-requests-requested' ) |
| 527 |
active_datatable = requested_datatable; |
| 528 |
else if( active_tab == '#article-requests-pending' ) |
| 529 |
active_datatable = pending_datatable; |
| 530 |
else active_datatable = processing_datatable; |
| 531 |
activateBatchActions( active_tab ); |
| 532 |
}, |
| 533 |
}); |
| 534 |
|
524 |
|
|
|
525 |
$("#article-request-tabs a[data-toggle='tab']").on("shown.bs.tab", function (e) { |
| 526 |
active_tab = e.target.hash; |
| 527 |
if( active_tab == "#article-requests-requested" ){ |
| 528 |
active_datatable = requested_datatable; |
| 529 |
} else if( active_tab == "#article-requests-pending" ){ |
| 530 |
active_datatable = pending_datatable; |
| 531 |
} else { |
| 532 |
active_datatable = processing_datatable; |
| 533 |
} |
| 534 |
activateBatchActions( active_tab ); |
| 535 |
}); |
| 535 |
|
536 |
|
| 536 |
$( "input:checkbox, #article-request-tabs" ).on("change", function(){ |
537 |
$( "input:checkbox, #article-request-tabs" ).on("change", function(){ |
| 537 |
activateBatchActions( active_tab ); |
538 |
activateBatchActions( active_tab ); |
| 538 |
- |
|
|