@@ -, +, @@ removed Add different text to default and both languages. dev console). overview page. (Note that the Default URL always refers you to 'default'.) you still see the 'default' text. interface now on the CMS page using the same URL. --- opac/opac-page.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/opac/opac-page.pl +++ a/opac/opac-page.pl @@ -45,7 +45,7 @@ if (C4::Context->userenv) { if( $page_id ) { $page = Koha::AdditionalContents->search({ idnew => $page_id, location => ['opac_only', 'staff_and_opac'], branchcode => [ $homebranch, undef ] }); } elsif( $code ) { - my $lang = $query->param('language') || $query->cookie('KohaOpacLanguage'); + my $lang = $query->param('language') || $query->cookie('KohaOpacLanguage') || $template->lang; # In the next query we make sure that the 'default' records come after the regular languages $page = Koha::AdditionalContents->search({ code => $code, lang => ['default', $lang], location => ['opac_only', 'staff_and_opac'], branchcode => [ $homebranch, undef ] }, { order_by => { -desc => \[ 'CASE WHEN lang="default" THEN "" ELSE lang END' ]}} ); } --