[% IF biblio.can_article_request( patron ) %]
- [% SET article_request_type = biblio.article_request_type( patron ) %]
+
Place article request for [% biblio.title | html %]
+ [% IF disclaimer %]
+
+
+ [% Koha.Preference('ArticleRequestsDisclaimerText') | $raw %]
+
+
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_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 %]
-
Place article request for [% biblio.title | html %]
-
+ [% END %]
[% ELSE %]
[% biblio.title | html %]
--- a/opac/opac-request-article.pl
+++ a/opac/opac-request-article.pl
@@ -23,6 +23,7 @@ use CGI qw ( -utf8 );
use C4::Auth;
use C4::Output;
+use C4::Context;
use Koha::Biblios;
use Koha::Patrons;
@@ -40,6 +41,7 @@ my ( $template, $borrowernumber, $cookie ) = get_template_and_user(
my $action = $cgi->param('action') || q{};
my $biblionumber = $cgi->param('biblionumber');
+my $disclaimer = C4::Context->preference('ArticleRequestsDisclaimerText') && !$action;
if ( $action eq 'create' ) {
my $branchcode = $cgi->param('branchcode');
@@ -81,6 +83,7 @@ my $patron = Koha::Patrons->find($borrowernumber);
$template->param(
biblio => $biblio,
patron => $patron,
+ disclaimer => $disclaimer
);
output_html_with_http_headers $cgi, $cookie, $template->output, undef, { force_no_caching => 1 };
--