[Koha-patches] [PATCH] Enable 'OPACDisplayItypes' system preference for controlling whether item type i
Owen Leonard
oleonard at myacpl.org
Thu Oct 9 15:00:11 CEST 2008
---
C4/Auth.pm | 1 +
admin/systempreferences.pl | 1 +
2 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/C4/Auth.pm b/C4/Auth.pm
index 871929e..1833801 100644
--- a/C4/Auth.pm
+++ b/C4/Auth.pm
@@ -345,6 +345,7 @@ sub get_template_and_user {
reviewson => C4::Context->preference("reviewson"),
suggestion => "" . C4::Context->preference("suggestion"),
virtualshelves => "" . C4::Context->preference("virtualshelves"),
+ OPACDisplayItypes => "" . C4::Context->preference("OPACDisplayItypes"),
);
}
return ( $template, $borrowernumber, $cookie, $flags);
diff --git a/admin/systempreferences.pl b/admin/systempreferences.pl
index c81146e..df762aa 100755
--- a/admin/systempreferences.pl
+++ b/admin/systempreferences.pl
@@ -266,6 +266,7 @@ my %tabsysprefs;
$tabsysprefs{OPACViewOthersSuggestions}="OPAC";
$tabsysprefs{URLLinkText}="OPAC";
$tabsysprefs{OPACShelfBrowser}="OPAC";
+ $tabsysprefs{OPACDisplayItypes}="OPAC";
# OPAC
$tabsysprefs{SearchMyLibraryFirst}="OPAC";
--
1.5.5.GIT
More information about the Koha-patches
mailing list