Bug 28405: add author name to request.tt when it exists
authorLucas Gass <lucas@bywatersolutions.com>
Thu, 20 Jan 2022 22:06:56 +0000 (22:06 +0000)
committerFridolin Somers <fridolin.somers@biblibre.com>
Tue, 15 Feb 2022 07:41:38 +0000 (21:41 -1000)
To test:
1. Place a hold and observe request.tt
2. No author name
3. Apply patch
4. Reload request.tt
5. Author name should appear on the same line as the title.

Signed-off-by: Barbara Johnson <barbara.johnson@bedfordtx.gov>
Signed-off-by: George Williams <george@nekls.org>
Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
koha-tmpl/intranet-tmpl/prog/en/modules/reserve/request.tt

index 306b8ea..5f72b1c 100644 (file)
             [% END %]
 
             [% UNLESS ( multi_hold ) %]
             [% END %]
 
             [% UNLESS ( multi_hold ) %]
-                <h1>Place a hold on [% INCLUDE 'biblio-title.inc' link = 1 %]</h1>
+                <h1>Place a hold on [% INCLUDE 'biblio-title.inc' link = 1 %] [% IF biblio.author %] by [% biblio.author | html %][% END %]</h1>
             [% ELSE %]
                 <h1>
                     [% IF ( patron ) %]
             [% ELSE %]
                 <h1>
                     [% IF ( patron ) %]