From 1b7da4dd9b686251b8235bc23bc65e1415faed05 Mon Sep 17 00:00:00 2001 From: tipaul Date: Wed, 8 Mar 2006 16:18:05 +0000 Subject: [PATCH] some changes in systempreference settings --- admin/systempreferences.pl | 71 ++++++++++--------- .../en/parameters/systempreferences.tmpl | 28 ++++---- 2 files changed, 55 insertions(+), 44 deletions(-) diff --git a/admin/systempreferences.pl b/admin/systempreferences.pl index a33c1a1aba..9c46f8d6ec 100755 --- a/admin/systempreferences.pl +++ b/admin/systempreferences.pl @@ -50,48 +50,51 @@ use C4::Context; my %tabsysprefs; $tabsysprefs{acquisitions}="Acquisitions"; -$tabsysprefs{gist}="Acquisitions"; -$tabsysprefs{authoritysep}="Authorities"; -$tabsysprefs{ISBD}="Catalogue"; -$tabsysprefs{marc}="Catalogue"; -$tabsysprefs{autoBarcode}="Catalogue"; -$tabsysprefs{marcflavour}="Catalogue"; -$tabsysprefs{SubscriptionHistory}="OPAC"; -$tabsysprefs{maxoutstanding}="Circulation"; -$tabsysprefs{printcirculationslips}="Circulation"; -$tabsysprefs{ReturnBeforeExpiry}="Circulation"; -$tabsysprefs{suggestion}="OPAC"; -$tabsysprefs{automembernum}="Members"; -$tabsysprefs{noissuescharge}="Circulation"; -$tabsysprefs{opacthemes}="OPAC"; -$tabsysprefs{opaclanguages}="OPAC"; -$tabsysprefs{LibraryName}="OPAC"; -$tabsysprefs{opacstylesheet}="OPAC"; -$tabsysprefs{opaccolorstylesheet}="OPAC"; -$tabsysprefs{opaclayoutstylesheet}="OPAC"; -$tabsysprefs{BiblioDefaultView}="OPAC"; -$tabsysprefs{opaclargeimage}="OPAC"; -$tabsysprefs{opacsmallimage}="OPAC"; -$tabsysprefs{opaclanguagesdisplay}="OPAC"; -$tabsysprefs{OpacNav}="OPAC"; -$tabsysprefs{opaccredits}="OPAC"; -$tabsysprefs{hidelostitems}="OPAC"; -$tabsysprefs{AnonSuggestions}="OPAC"; $tabsysprefs{AmazonAssocTag}="OPAC"; $tabsysprefs{AmazonContent}="OPAC"; $tabsysprefs{AmazonDevKey}="OPAC"; -$tabsysprefs{KohaAdmin}="Admin"; +$tabsysprefs{AnonSuggestions}="OPAC"; +$tabsysprefs{autoBarcode}="Catalogue"; +$tabsysprefs{automembernum}="Members"; +$tabsysprefs{authoritysep}="Authorities"; +$tabsysprefs{BiblioDefaultView}="OPAC"; $tabsysprefs{checkdigit}="Members"; $tabsysprefs{dateformat}="Admin"; +$tabsysprefs{Disable_Dictionary}="OPAC"; +$tabsysprefs{gist}="Acquisitions"; +$tabsysprefs{hidelostitems}="OPAC"; +$tabsysprefs{hide_marc}="Catalogue"; $tabsysprefs{insecure}="Admin"; -$tabsysprefs{ldapinfos}="Admin"; -$tabsysprefs{ldapserver}="Admin"; $tabsysprefs{itemcallnumber}="Catalogue"; +$tabsysprefs{ISBD}="Catalogue"; +$tabsysprefs{KohaAdmin}="Admin"; +$tabsysprefs{LabelMARCView}="Catalogue"; +$tabsysprefs{LibraryName}="OPAC"; +$tabsysprefs{marc}="Catalogue"; +$tabsysprefs{marcflavour}="Catalogue"; $tabsysprefs{maxreserves}="Circulation"; -$tabsysprefs{virtualshelves}="OPAC"; -$tabsysprefs{hide_marc}="Catalogue"; +$tabsysprefs{maxoutstanding}="Circulation"; $tabsysprefs{NotifyBorrowerDeparture}="Members"; +$tabsysprefs{opaccolorstylesheet}="OPAC"; +$tabsysprefs{opaccredits}="OPAC"; +$tabsysprefs{opaclanguagesdisplay}="OPAC"; +$tabsysprefs{opaclanguages}="OPAC"; +$tabsysprefs{opaclargeimage}="OPAC"; +$tabsysprefs{opaclayoutstylesheet}="OPAC"; +$tabsysprefs{OpacNav}="OPAC"; $tabsysprefs{OpacPasswordChange}="OPAC"; +$tabsysprefs{opacreadinghistory}="OPAC"; +$tabsysprefs{opacsmallimage}="OPAC"; +$tabsysprefs{opacstylesheet}="OPAC"; +$tabsysprefs{opacthemes}="OPAC"; +$tabsysprefs{noissuescharge}="Circulation"; +$tabsysprefs{printcirculationslips}="Circulation"; +$tabsysprefs{ReturnBeforeExpiry}="Circulation"; +$tabsysprefs{serialsadditems}="Catalogue"; +$tabsysprefs{sortbynonfiling}="Catalogue"; +$tabsysprefs{SubscriptionHistory}="OPAC"; +$tabsysprefs{suggestion}="OPAC"; +$tabsysprefs{virtualshelves}="OPAC"; sub StringSearch { my ($env,$searchstring,$type)=@_; @@ -107,6 +110,9 @@ sub StringSearch { my $sth=$dbh->prepare("Select variable,value,explanation,type,options from systempreferences where (variable like ?) order by variable"); $sth->execute($syspref); while (my $data=$sth->fetchrow_hashref){ + $data->{value} =~ s/{value} =~ s/>/</g; + $data->{value}=substr($data->{value},0,100)."..." if length($data->{value}) >100; push(@results,$data); $cnt++; } @@ -124,6 +130,7 @@ sub StringSearch { my $sth=$dbh->prepare($strsth); $sth->execute(); while (my $data=$sth->fetchrow_hashref){ + $data->{value}=substr($data->{value},0,100); push(@results,$data); $cnt++; } diff --git a/koha-tmpl/intranet-tmpl/default/en/parameters/systempreferences.tmpl b/koha-tmpl/intranet-tmpl/default/en/parameters/systempreferences.tmpl index c7e532fd3a..d80cc975c1 100644 --- a/koha-tmpl/intranet-tmpl/default/en/parameters/systempreferences.tmpl +++ b/koha-tmpl/intranet-tmpl/default/en/parameters/systempreferences.tmpl @@ -212,19 +212,23 @@ - - - - - - +
VariableValueExplanation
- - - - - - + + + + + + + + " method="post"> -- 2.39.5
">//images/fileopen.png" width="32" hspace="0" vspace="0" border="0">
Edit
">//images/edittrash.png" width="32" hspace="0" vspace="0" border="0">
Delete
+

:

+

()

+
+

" class="button parameters">Modify

+
+

" class="button parameters">Delete

+