Fix for bug 1296, making surnames uppercase a systems preference

This commit is contained in:
rangi 2007-07-02 02:30:15 +00:00
parent e1353fb639
commit d27c5bb427
7 changed files with 36 additions and 3 deletions

View file

@ -127,6 +127,7 @@ my %tabsysprefs;
$tabsysprefs{BorrowersTitles}="Members";
$tabsysprefs{patronimages}="Members";
$tabsysprefs{MinPasswordLength}="Members";
$tabsysprefs{uppercasesurnames}="Members";
# OPAC
$tabsysprefs{AmazonAssocTag}="OPAC";

View file

@ -138,7 +138,11 @@
<label>
<!-- /TMPL_IF-->
Surname</label>
<! --TMPL_IF NAME="uppercasesurnames" -->
<input style="text-transform:uppercase;" type="text" name="surname" size="20" value="<!-- TMPL_VAR NAME="surname" -->" >
<!-- TMPL_ELSE -->
<input style="text-transform:capitalize;" type="text" name="surname" size="20" value="<!-- TMPL_VAR NAME="surname" -->" >
<!-- /TMPL_IF -->
</p>
<p>
<!-- TMPL_IF NAME="mandatoryfirstname" -->

View file

@ -137,7 +137,11 @@
<label>
<!-- /TMPL_IF-->
Surname</label>
<! --TMPL_IF NAME="uppercasesurnames" -->
<input style="text-transform:uppercase;" type="text" name="surname" size="20" value="<!-- TMPL_VAR NAME="surname" -->" >
<!-- TMPL_ELSE -->
<input style="text-transform:capitalize;" type="text" name="surname" size="20" value="<!-- TMPL_VAR NAME="surname" -->" >
<!-- /TMPL_IF -->
</p>
<p>
<!-- TMPL_IF NAME="mandatoryfirstname" -->

View file

@ -132,7 +132,11 @@
<label>
<!-- /TMPL_IF-->
Surname</label>
<! --TMPL_IF NAME="uppercasesurnames" -->
<input style="text-transform:uppercase;" type="text" name="surname" size="20" value="<!-- TMPL_VAR NAME="surname" -->" >
<!-- TMPL_ELSE -->
<input style="text-transform:capitalize;" type="text" name="surname" size="20" value="<!-- TMPL_VAR NAME="surname" -->" >
<!-- /TMPL_IF -->
</p>
<p>
<!-- TMPL_IF NAME="mandatoryfirstname" -->

View file

@ -132,7 +132,14 @@
<label>
<!-- /TMPL_IF-->
Nom de famille</label>
<! --TMPL_IF NAME="uppercasesurnames" -->
<input style="text-transform:uppercase;" type="text" name="surname" size="20" value="<!-- TMPL_VAR NAME="surname" -->" >
<!-- TMPL_ELSE -->
<input style="text-transform:capitalize;" type="text" name="surname" size="20" value="<!-- TMPL_VAR NAME="surname" -->" >
<!-- /TMPL_IF -->
</p>
<p>
<!-- TMPL_IF NAME="mandatoryfirstname" -->

View file

@ -83,6 +83,8 @@ my $check_categorytype=$input->param('check_categorytype');
# NOTE: Alert for ethnicity and ethnotes fields, they are unvalided in all borrowers form
my $borrower_data;
$template->param("uppercasesurnames" => C4::Context->preference('uppercasesurnames'));
#function to automatic setup the mandatory fields (visual with css)
my $check_BorrowerMandatoryField=C4::Context->preference("BorrowerMandatoryField");
my @field_check=split(/\|/,$check_BorrowerMandatoryField);

View file

@ -519,6 +519,14 @@ my %tabledata = (
explanation => "Enter a specific hash for NoZebra indexes. Enter : 'indexname' => '100a,245a,500*','index2' => '...'",
type => 'Free',
},
{
uniquefieldrequired => 'variable',
variable => 'uppercasesurnames',
value => '0',
forceupdate => {'explanation' => 1, 'type' => 1},
explanation => "Force Surnames to be uppercase",
type => 'YesNo',
},
],
userflags => [
{
@ -2048,6 +2056,9 @@ $sth->finish;
exit;
# $Log$
# Revision 1.171 2007/07/02 02:30:16 rangi
# Fix for bug 1296, making surnames uppercase a systems preference
#
# Revision 1.170 2007/06/26 13:25:37 tipaul
# removing some useless tables from updatedatabase
#