From 85f997744afec8cf1eedfc6d7cfd04e61f988e5f 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 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 Signed-off-by: Nick Clemens Signed-off-by: Tomas Cohen Arazi --- .../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 d1a1e20ec3..070b3063d5 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.39.5