From a981846f2aebf08e060827c1b8acedc1631a8dd9 Mon Sep 17 00:00:00 2001 From: Marcel de Rooy Date: Thu, 18 Aug 2022 08:44:44 +0000 Subject: [PATCH] Bug 31385: (follow-up) Add code based URL on the staff CMS view Content-Type: text/plain; charset=utf-8 Test plan: Create a page with contents in two languages. Verify that the Default URL shows the default content and the Current language URL shows content based on active language. Signed-off-by: Marcel de Rooy --- .../en/modules/tools/additional-contents.tt | 19 ++++++++++++------- 1 file changed, 12 insertions(+), 7 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/additional-contents.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/additional-contents.tt index e5e82bb2e6..a186b73f7d 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/additional-contents.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/additional-contents.tt @@ -385,13 +385,18 @@ [% IF ( c.author) %][% INCLUDE 'patron-title.inc' patron=c.author %][% END %] [% IF category == 'pages' %] - [% IF c.location == 'opac_only' %] - OPAC: [% Koha.Preference('OPACBaseURL') | url %]/cgi-bin/koha/opac-page.pl?page_id=[% c.idnew | uri %] - [% ELSIF c.location == 'staff_only' %] - Librarian interface: [% Koha.Preference('staffClientBaseURL') | url %]/cgi-bin/koha/tools/page.pl?page_id=[% c.idnew | uri %] - [% ELSIF c.location == 'staff_and_opac' %] - OPAC: [% Koha.Preference('OPACBaseURL') | url %]/cgi-bin/koha/opac-page.pl?page_id=[% c.idnew | uri %]
- Librarian interface: [% Koha.Preference('staffClientBaseURL') | url %]/cgi-bin/koha/tools/page.pl?page_id=[% c.idnew | uri %] + [% IF c.location == 'opac_only' OR c.location == 'staff_and_opac' %] + OPAC: + Default + OR + Current language + [% END %] + [% IF c.location == 'staff_only' OR c.location == 'staff_and_opac' %] + [% IF c.location == 'staff_and_opac' %]
[% END %] + Librarian interface: + Default + OR + Current language [% END %] [% END %] -- 2.20.1