Fix for bug 1296, making surnames uppercase a systems preference
This commit is contained in:
parent
e1353fb639
commit
d27c5bb427
7 changed files with 36 additions and 3 deletions
|
@ -127,7 +127,8 @@ my %tabsysprefs;
|
||||||
$tabsysprefs{BorrowersTitles}="Members";
|
$tabsysprefs{BorrowersTitles}="Members";
|
||||||
$tabsysprefs{patronimages}="Members";
|
$tabsysprefs{patronimages}="Members";
|
||||||
$tabsysprefs{MinPasswordLength}="Members";
|
$tabsysprefs{MinPasswordLength}="Members";
|
||||||
|
$tabsysprefs{uppercasesurnames}="Members";
|
||||||
|
|
||||||
# OPAC
|
# OPAC
|
||||||
$tabsysprefs{AmazonAssocTag}="OPAC";
|
$tabsysprefs{AmazonAssocTag}="OPAC";
|
||||||
$tabsysprefs{AmazonContent}="OPAC";
|
$tabsysprefs{AmazonContent}="OPAC";
|
||||||
|
|
|
@ -138,7 +138,11 @@
|
||||||
<label>
|
<label>
|
||||||
<!-- /TMPL_IF-->
|
<!-- /TMPL_IF-->
|
||||||
Surname</label>
|
Surname</label>
|
||||||
|
<! --TMPL_IF NAME="uppercasesurnames" -->
|
||||||
<input style="text-transform:uppercase;" type="text" name="surname" size="20" value="<!-- TMPL_VAR NAME="surname" -->" >
|
<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>
|
||||||
<p>
|
<p>
|
||||||
<!-- TMPL_IF NAME="mandatoryfirstname" -->
|
<!-- TMPL_IF NAME="mandatoryfirstname" -->
|
||||||
|
|
|
@ -137,7 +137,11 @@
|
||||||
<label>
|
<label>
|
||||||
<!-- /TMPL_IF-->
|
<!-- /TMPL_IF-->
|
||||||
Surname</label>
|
Surname</label>
|
||||||
|
<! --TMPL_IF NAME="uppercasesurnames" -->
|
||||||
<input style="text-transform:uppercase;" type="text" name="surname" size="20" value="<!-- TMPL_VAR NAME="surname" -->" >
|
<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>
|
||||||
<p>
|
<p>
|
||||||
<!-- TMPL_IF NAME="mandatoryfirstname" -->
|
<!-- TMPL_IF NAME="mandatoryfirstname" -->
|
||||||
|
|
|
@ -132,7 +132,11 @@
|
||||||
<label>
|
<label>
|
||||||
<!-- /TMPL_IF-->
|
<!-- /TMPL_IF-->
|
||||||
Surname</label>
|
Surname</label>
|
||||||
<input style="text-transform:uppercase;" type="text" name="surname" size="20" value="<!-- TMPL_VAR NAME="surname" -->" >
|
<! --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>
|
||||||
<p>
|
<p>
|
||||||
<!-- TMPL_IF NAME="mandatoryfirstname" -->
|
<!-- TMPL_IF NAME="mandatoryfirstname" -->
|
||||||
|
|
|
@ -132,7 +132,14 @@
|
||||||
<label>
|
<label>
|
||||||
<!-- /TMPL_IF-->
|
<!-- /TMPL_IF-->
|
||||||
Nom de famille</label>
|
Nom de famille</label>
|
||||||
<input style="text-transform:uppercase;" type="text" name="surname" size="20" value="<!-- TMPL_VAR NAME="surname" -->" >
|
<! --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>
|
||||||
<p>
|
<p>
|
||||||
<!-- TMPL_IF NAME="mandatoryfirstname" -->
|
<!-- TMPL_IF NAME="mandatoryfirstname" -->
|
||||||
|
|
|
@ -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
|
# NOTE: Alert for ethnicity and ethnotes fields, they are unvalided in all borrowers form
|
||||||
my $borrower_data;
|
my $borrower_data;
|
||||||
|
|
||||||
|
$template->param("uppercasesurnames" => C4::Context->preference('uppercasesurnames'));
|
||||||
|
|
||||||
#function to automatic setup the mandatory fields (visual with css)
|
#function to automatic setup the mandatory fields (visual with css)
|
||||||
my $check_BorrowerMandatoryField=C4::Context->preference("BorrowerMandatoryField");
|
my $check_BorrowerMandatoryField=C4::Context->preference("BorrowerMandatoryField");
|
||||||
my @field_check=split(/\|/,$check_BorrowerMandatoryField);
|
my @field_check=split(/\|/,$check_BorrowerMandatoryField);
|
||||||
|
|
|
@ -519,6 +519,14 @@ my %tabledata = (
|
||||||
explanation => "Enter a specific hash for NoZebra indexes. Enter : 'indexname' => '100a,245a,500*','index2' => '...'",
|
explanation => "Enter a specific hash for NoZebra indexes. Enter : 'indexname' => '100a,245a,500*','index2' => '...'",
|
||||||
type => 'Free',
|
type => 'Free',
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
uniquefieldrequired => 'variable',
|
||||||
|
variable => 'uppercasesurnames',
|
||||||
|
value => '0',
|
||||||
|
forceupdate => {'explanation' => 1, 'type' => 1},
|
||||||
|
explanation => "Force Surnames to be uppercase",
|
||||||
|
type => 'YesNo',
|
||||||
|
},
|
||||||
],
|
],
|
||||||
userflags => [
|
userflags => [
|
||||||
{
|
{
|
||||||
|
@ -2048,6 +2056,9 @@ $sth->finish;
|
||||||
exit;
|
exit;
|
||||||
|
|
||||||
# $Log$
|
# $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
|
# Revision 1.170 2007/06/26 13:25:37 tipaul
|
||||||
# removing some useless tables from updatedatabase
|
# removing some useless tables from updatedatabase
|
||||||
#
|
#
|
||||||
|
|
Loading…
Reference in a new issue