[% 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 %]
Confirm deletion
Are you sure you want to cancel this article request?
[% END %]
[% INCLUDE 'header.inc' %]
[% INCLUDE 'circ-search.inc' %]
[% 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 %]
[% 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 %]
[% 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 %]
[% PROCESS cancel_modal %]
[% END %]