From 335103bbd3de568d7906e3c6e525b59f9b700d63 Mon Sep 17 00:00:00 2001 From: toins Date: Tue, 10 Jul 2007 14:21:41 +0000 Subject: [PATCH] syspref are writed for the template in auth.pm --- C4/Auth.pm | 4 ++++ catalogue/search.pl | 10 ---------- 2 files changed, 4 insertions(+), 10 deletions(-) diff --git a/C4/Auth.pm b/C4/Auth.pm index a1e9ea1504..89820d03ff 100644 --- a/C4/Auth.pm +++ b/C4/Auth.pm @@ -227,6 +227,10 @@ sub get_template_and_user { hide_marc => C4::Context->preference("hide_marc"), patronimages => C4::Context->preference("patronimages"), "BiblioDefaultView".C4::Context->preference("BiblioDefaultView") => 1, + advancedMARCEditor => C4::Context->preference("advancedMARCEditor"), + suggestion => C4::Context->preference("suggestion"), + virtualshelves => C4::Context->preference("virtualshelves"), + LibraryName => C4::Context->preference("LibraryName"), ); } else { diff --git a/catalogue/search.pl b/catalogue/search.pl index 4d7e7551d9..42744f1f18 100755 --- a/catalogue/search.pl +++ b/catalogue/search.pl @@ -504,16 +504,6 @@ $template->param( searchdesc => ($query_type?"$query_type=":"")."$search_desc", opacfacets => 1, facets_loop => $facets, - suggestion => C4::Context->preference("suggestion"), - virtualshelves => C4::Context->preference("virtualshelves"), - LibraryName => C4::Context->preference("LibraryName"), - OpacNav => C4::Context->preference("OpacNav"), - opaccredits => C4::Context->preference("opaccredits"), - AmazonContent => C4::Context->preference("AmazonContent"), - opacsmallimage => C4::Context->preference("opacsmallimage"), - opaclayoutstylesheet => C4::Context->preference("opaclayoutstylesheet"), - opaccolorstylesheet => C4::Context->preference("opaccolorstylesheet"), - "BiblioDefaultView".C4::Context->preference("BiblioDefaultView") => 1, scan_use => $scan, search_error => $error, ); -- 2.39.5