View | Details | Raw Unified | Return to bug 27948
Collapse All | Expand All

(-)a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-request-article.tt (-9 / +7 lines)
Lines 1-7 Link Here
1
[% USE Koha %]
1
[% USE Koha %]
2
[% USE raw %]
3
[% USE Branches %]
2
[% USE Branches %]
4
[% USE ItemTypes %]
3
[% USE ItemTypes %]
4
[% USE KohaNews %]
5
[% USE raw %]
5
[% INCLUDE 'doc-head-open.inc' %]
6
[% INCLUDE 'doc-head-open.inc' %]
6
7
7
<title>Request article &rsaquo; [% IF ( LibraryNameTitle ) %][% LibraryNameTitle | html %][% ELSE %]Koha online[% END %] catalog</title>
8
<title>Request article &rsaquo; [% IF ( LibraryNameTitle ) %][% LibraryNameTitle | html %][% ELSE %]Koha online[% END %] catalog</title>
Lines 12-17 Link Here
12
[% INCLUDE 'bodytag.inc' bodyid='opac-request-article' %]
13
[% INCLUDE 'bodytag.inc' bodyid='opac-request-article' %]
13
[% INCLUDE 'masthead.inc' %]
14
[% INCLUDE 'masthead.inc' %]
14
15
16
[% SET disclaimer = KohaNews.get( location => "ArticleRequestsDisclaimerText", lang => lang, library => branchcode ) %]
17
15
<div class="main">
18
<div class="main">
16
    <nav aria-label="breadcrumb">
19
    <nav aria-label="breadcrumb">
17
        <ul class="breadcrumb">
20
        <ul class="breadcrumb">
Lines 32-45 Link Here
32
            <div class="col">
35
            <div class="col">
33
                [% IF biblio.can_article_request( patron ) %]
36
                [% IF biblio.can_article_request( patron ) %]
34
                    <h1>Place article request for [% biblio.title | html %]</h1>
37
                    <h1>Place article request for [% biblio.title | html %]</h1>
35
                    [% IF disclaimer %]
38
                    [% IF ( disclaimer && !action) %]
36
                        <div class="alert alert-warning">
39
                        <div class="alert alert-warning">
37
                            [% FOREACH disc IN disclaimer %]
40
                            [% PROCESS koha_news_block news => disclaimer %]
38
                            <h3>[% disc.title | html %]</h3>
39
                            <p>
40
                                [% disc.content | $raw %]
41
                            </p>
42
                            [% END %]
43
                            <a href="/cgi-bin/koha/opac-request-article.pl?biblionumber=[% biblio.biblionumber | uri %]&amp;action=accept"
41
                            <a href="/cgi-bin/koha/opac-request-article.pl?biblionumber=[% biblio.biblionumber | uri %]&amp;action=accept"
44
                            class="btn btn-sm btn-primary"><i class="fa fa-check" aria-hidden="true"></i> Accept</a>
42
                            class="btn btn-sm btn-primary"><i class="fa fa-check" aria-hidden="true"></i> Accept</a>
45
                        </div>
43
                        </div>
Lines 52-58 Link Here
52
50
53
51
54
                        <form id="place-article-request" method="post" action="/cgi-bin/koha/opac-request-article.pl">
52
                        <form id="place-article-request" method="post" action="/cgi-bin/koha/opac-request-article.pl">
55
                        <legend class="sr-only">Place article request</legend>
53
                            <legend class="sr-only">Place article request</legend>
56
                            <input type="hidden" name="action" value="create" />
54
                            <input type="hidden" name="action" value="create" />
57
                            <input type="hidden" name="biblionumber" id="biblionumber" value="[% biblio.biblionumber | html %]" />
55
                            <input type="hidden" name="biblionumber" id="biblionumber" value="[% biblio.biblionumber | html %]" />
58
56
(-)a/opac/opac-request-article.pl (-2 / +1 lines)
Lines 91-97 my $patron = Koha::Patrons->find($borrowernumber); Link Here
91
$template->param(
91
$template->param(
92
    biblio => $biblio,
92
    biblio => $biblio,
93
    patron => $patron,
93
    patron => $patron,
94
    disclaimer => $disclaimer
94
    action => $action
95
);
95
);
96
96
97
output_html_with_http_headers $cgi, $cookie, $template->output, undef, { force_no_caching => 1 };
97
output_html_with_http_headers $cgi, $cookie, $template->output, undef, { force_no_caching => 1 };
98
- 

Return to bug 27948