[% USE raw %] [% USE Asset %] [% USE Context %] [% USE KohaDates %] [% USE Branches %] [% USE Categories %] [% USE ItemTypes %] [% USE AuthorisedValues %] [% USE Price %] [% SET footerjs = 1 %] [% SET article_requests_view = 1 %] [% SET biblionumber = biblio.biblionumber %] [% INCLUDE 'doc-head-open.inc' %] [% SET libraries = Branches.all %] [% SET categories = Categories.all.unblessed %] [% SET columns = ['name', 'address', 'cardnumber', 'dateofbirth', 'category', 'branch', 'phone'] %] [% PROCESS "patron-search.inc" %] Request article › Circulation › Koha [% INCLUDE 'doc-head-close.inc' %] [% BLOCK cancel_modal %] [% END %] [% WRAPPER 'header.inc' %] [% INCLUDE 'circ-search.inc' %] [% END %] [% WRAPPER 'sub-header.inc' %] [% END %] [% INCLUDE 'blocking_errors.inc' %]

Request article from [% INCLUDE 'biblio-title.inc' link = 1 %]

[% IF error_message %]
[% SWITCH error_message %] [% CASE 'article_request_limit_reached' %]

Patron reached daily limit.

[% CASE 'article_request_unhandled_exception' %]

An error has occurred. Check the logs.

[% END %]
[% END %] [% UNLESS patron %]
[% PROCESS patron_search_filters_simple %] [% PROCESS patron_search_table table_id => 'table_borrowers', open_on_row_click => 1 %]
[% ELSE %] [% IF biblio.can_article_request( patron ) %] [% IF article_request_fee > 0 %]
Patron will be charged with [% article_request_fee | $Price %] for every request
[% END %]
Place article request from [% biblio.title | html %] for [% patron.firstname | html %] [% patron.surname | html %] ( [% patron.cardnumber | html %] )
[% SET article_request_type = biblio.article_request_type( patron ) %] [% IF article_request_type != 'bib_only' %]
[% FOREACH item IN biblio.items %] [% IF item.can_article_request( patron ) %] [% END %] [% END %] [% IF article_request_type != 'item_only' %] [% END %]
Select item:
  Item type Barcode Home library Call number Enumeration
[% IF article_request_type == 'item_only' && !checked %] [% SET checked = 1 %] [% ELSE %] [% END %] [% ItemTypes.GetDescription( item.itype ) | html %] [% item.barcode | html %] [% Branches.GetName( item.homebranch ) | html %] [% item.itemcallnumber | html %] [% item.enumchron | html %]
Any item
[% END %]

[% ELSE %] No article requests can be made for this record. [% END %] [% END %] [% SET biblio_current_article_requests = Context.Scalar( Context.Scalar( biblio, 'article_requests' ), 'filter_by_current' ) %] [% IF biblio_current_article_requests.count > 0 && !patron %]
Current article requests [% FOREACH ar IN biblio_current_article_requests %] [% END %]
Placed on Patron Title Author Volume Issue Date TOC Pages Chapters Patron notes Format Item Status Pickup library  
[% ar.created_on | $KohaDates %] [% ar.borrower.firstname | html %] [% ar.borrower.surname | html %] [% ar.title | html %] [% ar.author | html %] [% ar.volume | html %] [% ar.issue | html %] [% ar.date | html %] [% IF ar.toc_request %]Yes[% END %] [% ar.pages | html %] [% ar.chapters | html %] [% ar.patron_notes | html %] [% IF ar.format == 'PHOTOCOPY' %]Copy[% ELSIF ar.format == 'SCAN' %]Scan[% END %] [% IF ar.item %] [% ar.item.barcode | html %] [% END %] [% IF ar.status == 'PENDING' %] Pending [% ELSIF ar.status == 'PROCESSING' %] Processing [% ELSIF ar.status == 'REQUESTED' %] New [% ELSIF ar.status == 'COMPLETED' %] Completed [% ELSIF ar.status == 'CANCELED' %] Canceled [% END %]
[% PROCESS cancel_modal %] [% END %]
[% MACRO jsinclude BLOCK %] [% INCLUDE 'datatables.inc' %] [% PROCESS patron_search_js table_id => 'table_borrowers', categories => categories, libraries => libraries, extended_attribute_types => attribute_type_codes, columns => columns, open_on_row_click => 1, on_click_url => '/cgi-bin/koha/circ/request-article.pl?biblionumber=' _ biblio.biblionumber, redirect_if_one_result => 1, redirect_url => '/cgi-bin/koha/circ/request-article.pl?biblionumber=' _ biblio.biblionumber %] [% END %] [% INCLUDE 'intranet-bottom.inc' %]