Bug 16782: (QA follow-up) Use Koha.Preference for staffClientBaseURL and provide...
authorNick Clemens <nick@bywatersolutions.com>
Mon, 8 Jan 2018 15:37:45 +0000 (15:37 +0000)
committerJonathan Druart <jonathan.druart@bugs.koha-community.org>
Tue, 9 Jan 2018 20:24:24 +0000 (17:24 -0300)
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
koha-tmpl/intranet-tmpl/prog/en/modules/reports/guided_reports_start.tt

index 3ae5c9e..b9daca6 100644 (file)
@@ -163,8 +163,8 @@ canned reports and writing custom SQL reports.</p>
                     <th class="title-string">Creation date</th>
                     <th class="title-string">Last edit</th>
                     <th class="title-string">Last run</th>
-                    <th>Public</th>
-                    <th>JSON URL</th>
+                    <th class="report_public">Public</th>
+                    <th class="report_json_url">JSON URL</th>
                     [% IF (usecache) %] <th>Cache expiry (seconds)</th> [% END %]
                     <th>Saved results</th>
                     [% IF has_obsolete_reports %]<th>Update</th>[% END %]
@@ -195,18 +195,18 @@ canned reports and writing custom SQL reports.</p>
                         <td><span title="[% savedreport.date_created %]">[% savedreport.date_created | $KohaDates %]</span></td>
                         <td><span title="[% savedreport.last_modified %]">[% savedreport.last_modified | $KohaDates with_hours => 1 %]</span></td>
                         <td><span title="[% savedreport.last_run %]">[% savedreport.last_run | $KohaDates with_hours => 1 %]</span></td>
-                        <td>
+                        <td class="report_public">
                         [% IF (savedreport.public) %]
                             Yes
                         [% ELSE %]
                             No
                         [% END %]
                         </td>
-                        <td>
+                        <td class="report_json_url">
                         [% IF (savedreport.public) %]
                             <a href="[% OPACBaseURL %]/cgi-bin/koha/svc/report?id=[% savedreport.id | html %]">[% OPACBaseURL %]/cgi-bin/koha/svc/report?id=[% savedreport.id | html %]</a>
                         [% ELSE %]
-                            <a href="/cgi-bin/koha/svc/report?id=[% savedreport.id | html %]">[% staffClientBaseURL %]/cgi-bin/koha/svc/report?id=[% savedreport.id | html %]</a>
+                            <a href="/cgi-bin/koha/svc/report?id=[% savedreport.id | html %]">[% Koha.Preference('staffClientBaseURL') %]/cgi-bin/koha/svc/report?id=[% savedreport.id | html %]</a>
                         [% END %]
                         </td>
                         [% IF (usecache) %] <td>[% savedreport.cache_expiry %]</td> [% END %]