[% IF error_message %]
[% biblio.title | html %]
[% SWITCH error_message %]
[% CASE 'article_request_limit_reached' %]You reached your open article requests limit.
[% CASE 'article_request_unhandled_exception' %]An error has occurred.
[% END %]
[% ELSIF biblio.can_article_request( patron ) %]
Place article request for [% biblio.title | html %]
[% IF ( disclaimer && !action) %]
[% PROCESS koha_news_block news => disclaimer %]
Accept
[% ELSE %]
[% SET article_request_type = biblio.article_request_type( patron ) %]
[% IF article_request_type == 'yes' %] [% SET mandatory_fields = Koha.Preference('ArticleRequestsMandatoryFields') %] [% END %]
[% IF article_request_type == 'bib_only' %] [% SET mandatory_fields = Koha.Preference('ArticleRequestsMandatoryFieldsRecordOnly') %] [% END %]
[% IF article_request_type == 'item_only' %] [% SET mandatory_fields = Koha.Preference('ArticleRequestsMandatoryFieldsItemOnly') %] [% END %]
[% IF article_request_fee > 0 %]
You will be charged with [% article_request_fee | $Price %] for every request
[% END %]
[% END %]
[% ELSE %]
[% biblio.title | html %]
No article requests can be made for this record.
[% END %]