https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=39720

--- Comment #1 from Fridolin Somers <[email protected]> ---
git grep can not exclude so I use grep directly :
We need not exclude test suite and installer (updatedatabase.pl and dbrevs)

grep -r --exclude-dir=.git --exclude-dir=t --exclude-dir=installer -o
'C4::Context->preference(.*)' | awk -F 'preference\(|\)' '{print $2}' | tr -d
'"' | tr -d "'" | tr -d ' ' | sort -u | grep -v '^\$' | tee
patches/sysprefs_calls.txt

Then :
for i in $(cat patches/sysprefs_calls.txt); do echo "### $i" ; grep -i -c
"'$i'" installer/data/mysql/mandatory/sysprefs.sql ; done | grep -B1 ^0 | grep
^#
### ($interfaceeqopac
### automatic_item_modification_by_age_configuration
### delimiter
### IntranetmainUserblock
### marcflavour
### MarcFlavour
### MARCFLAVOUR
### OPACFineNoRenewalsIncludeCredit
### OPACResultsSidebar
### PatronSelfRegistrationAdditionalInstructions
### PREF_008
### preference
### SelfCheckHelpMessage
### some_variable
### version
### Version

Those are normal cases :
automatic_item_modification_by_age_configuration
MarcFlavour
version
some_variable/preference => commes from POD ;)
PREF_008 => Is a constant for "MARCAuthorityControlField008"

So :
for i in $(cat patches/sysprefs_missing.txt); do echo "## $i"; git grep
"C4::Context->preference(.$i"  ; echo ; done

## delimiter
misc/cronjobs/staticfines.pl:    $delim           = "\t";    # ? 
C4::Context->preference('delimiter') || "\t";

## IntranetmainUserblock
C4/Auth.pm:            IntranetmainUserblock         =>
C4::Context->preference("IntranetmainUserblock"),

## OPACFineNoRenewalsIncludeCredit
C4/Circulation.pm:           
C4::Context->preference("OPACFineNoRenewalsIncludeCredit")
opac/opac-user.pl:   
C4::Context->preference("OPACFineNoRenewalsIncludeCredit")

## OPACResultsSidebar
opac/opac-search.pl:$template->param( OPACResultsSidebar =>
C4::Context->preference('OPACResultsSidebar') );

## PatronSelfRegistrationAdditionalInstructions
opac/opac-memberentry.pl:                   
C4::Context->preference('PatronSelfRegistrationAdditionalInstructions') );
opac/opac-registration-verify.pl:               
C4::Context->preference('PatronSelfRegistrationAdditionalInstructions') );

## SelfCheckHelpMessage
opac/sco/help.pl:if ( C4::Context->preference('SelfCheckHelpMessage') ) {
opac/sco/help.pl:    $template->param( SelfCheckHelpMessage =>
C4::Context->preference('SelfCheckHelpMessage') );

-- 
You are receiving this mail because:
You are watching all bug changes.
_______________________________________________
Koha-bugs mailing list
[email protected]
https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/

Reply via email to