Bug 29169: Fix wrong terminology when article request is not available
authorTomas Cohen Arazi <tomascohen@theke.io>
Thu, 7 Oct 2021 15:02:24 +0000 (12:02 -0300)
committerJonathan Druart <jonathan.druart@bugs.koha-community.org>
Fri, 8 Oct 2021 14:52:19 +0000 (16:52 +0200)
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-request-article.tt

index 9dad25f..dd646b4 100644 (file)
     <div class="container-fluid maincontent">
         <div class="row">
             <div class="col">
-                [% IF !error_message && biblio.can_article_request( patron ) %]
+                [% IF error_message %]
+                    <h1 class="title">[% biblio.title | html %]</h1>
+                    <div class="alert alert-info">
+                        [% 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 %]
+                    </div>
+                [% ELSIF biblio.can_article_request( patron ) %]
                     <h1>Place article request for [% biblio.title | html %]</h1>
                     [% IF ( disclaimer && !action) %]
                         <div class="alert alert-warning">
                             <input type="submit" class="btn btn-primary" value="Place request" />
                         </form>
                     [% END %]
-                [% ELSIF error_message %]
-                    <h1 class="title">[% biblio.title | html %]</h1>
-                    <div class="alert alert-info">
-                        [% SWITCH error_message %]
-                            [% CASE 'article_request_limit_reached'       %]You reached your article requests daily limit.
-                            [% CASE 'article_request_unhandled_exception' %]An error has occurred.
-                        [% END %]
-                    </div>
                 [% ELSE %]
                     <h1 class="title">[% biblio.title | html %]</h1>
                     <div class="alert alert-info">