Bugzilla – Attachment 139349 Details for
Bug 31385
Additional contents: Allow searching a CMS page by code in multilanguage env
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 31385: (follow-up) Add code based URL on the staff CMS view
Bug-31385-follow-up-Add-code-based-URL-on-the-staf.patch (text/plain), 3.89 KB, created by
Marcel de Rooy
on 2022-08-18 08:47:57 UTC
(
hide
)
Description:
Bug 31385: (follow-up) Add code based URL on the staff CMS view
Filename:
MIME Type:
Creator:
Marcel de Rooy
Created:
2022-08-18 08:47:57 UTC
Size:
3.89 KB
patch
obsolete
>From a981846f2aebf08e060827c1b8acedc1631a8dd9 Mon Sep 17 00:00:00 2001 >From: Marcel de Rooy <m.de.rooy@rijksmuseum.nl> >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 <m.de.rooy@rijksmuseum.nl> >--- > .../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 @@ > <td>[% IF ( c.author) %][% INCLUDE 'patron-title.inc' patron=c.author %][% END %]</td> > [% IF category == 'pages' %] > <td class="actions"> >- [% IF c.location == 'opac_only' %] >- <strong>OPAC</strong>: <a target="_blank" href="[% Koha.Preference('OPACBaseURL') | url %]/cgi-bin/koha/opac-page.pl?page_id=[% c.idnew | uri %]" title="View on OPAC">[% Koha.Preference('OPACBaseURL') | url %]/cgi-bin/koha/opac-page.pl?page_id=[% c.idnew | uri %]</a> >- [% ELSIF c.location == 'staff_only' %] >- <strong>Librarian interface</strong>: <a href="/cgi-bin/koha/tools/page.pl?page_id=[% c.idnew | uri %]" title="View on librarian interface">[% Koha.Preference('staffClientBaseURL') | url %]/cgi-bin/koha/tools/page.pl?page_id=[% c.idnew | uri %]</a> >- [% ELSIF c.location == 'staff_and_opac' %] >- <strong>OPAC</strong>: <a target="_blank" href="[% Koha.Preference('OPACBaseURL') | url %]/cgi-bin/koha/opac-page.pl?page_id=[% c.idnew | uri %]" title="View on OPAC">[% Koha.Preference('OPACBaseURL') | url %]/cgi-bin/koha/opac-page.pl?page_id=[% c.idnew | uri %]</a><br> >- <strong>Librarian interface</strong>: <a href="/cgi-bin/koha/tools/page.pl?page_id=[% c.idnew | uri %]" title="View on librarian interface">[% Koha.Preference('staffClientBaseURL') | url %]/cgi-bin/koha/tools/page.pl?page_id=[% c.idnew | uri %]</a> >+ [% IF c.location == 'opac_only' OR c.location == 'staff_and_opac' %] >+ <strong>OPAC</strong>: >+ <a target="_blank" href="[% Koha.Preference('OPACBaseURL') | url %]/cgi-bin/koha/opac-page.pl?page_id=[% c.idnew | url %]" title="View on OPAC">Default</a> >+ OR >+ <a target="_blank" href="[% Koha.Preference('OPACBaseURL') | url %]/cgi-bin/koha/opac-page.pl?code=[% c.code | url %]" title="View on OPAC">Current language</a> >+ [% END %] >+ [% IF c.location == 'staff_only' OR c.location == 'staff_and_opac' %] >+ [% IF c.location == 'staff_and_opac' %]<br/>[% END %] >+ <strong>Librarian interface</strong>: >+ <a href="/cgi-bin/koha/tools/page.pl?page_id=[% c.idnew | url %]" title="View on librarian interface">Default</a> >+ OR >+ <a href="/cgi-bin/koha/tools/page.pl?code=[% c.code | url %]" title="View on librarian interface">Current language</a> > [% END %] > </td> > [% END %] >-- >2.20.1
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 31385
:
139295
|
139296
|
139298
|
139348
|
139349
|
139390
|
139391
|
139392
|
139393