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,6 +127,7 @@ my %tabsysprefs;
|
|||
$tabsysprefs{BorrowersTitles}="Members";
|
||||
$tabsysprefs{patronimages}="Members";
|
||||
$tabsysprefs{MinPasswordLength}="Members";
|
||||
$tabsysprefs{uppercasesurnames}="Members";
|
||||
|
||||
# OPAC
|
||||
$tabsysprefs{AmazonAssocTag}="OPAC";
|
||||
|
|
|
@ -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" -->
|
||||
|
|
|
@ -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" -->
|
||||
|
|
|
@ -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" -->
|
||||
|
|
|
@ -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" -->
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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
|
||||
#
|
||||
|
|
Loading…
Reference in a new issue