Author: sevein
Date: Sat Nov 28 13:55:46 2009
New Revision: 3989
Log:
Standarize and improve validation messages for mandatory fields. (ISAAR, ISAD,
ISDIAH)
Modified:
trunk/apps/qubit/modules/actor/actions/showIsaarAction.class.php
trunk/apps/qubit/modules/informationobject/actions/showIsadAction.class.php
trunk/apps/qubit/modules/repository/actions/showIsdiahAction.class.php
Modified: trunk/apps/qubit/modules/actor/actions/showIsaarAction.class.php
==============================================================================
--- trunk/apps/qubit/modules/actor/actions/showIsaarAction.class.php Sat Nov
28 11:45:45 2009 (r3988)
+++ trunk/apps/qubit/modules/actor/actions/showIsaarAction.class.php Sat Nov
28 13:55:46 2009 (r3989)
@@ -34,10 +34,10 @@
parent::execute($request);
$validatorSchema = new sfValidatorSchema;
- $validatorSchema->authorizedFormOfName = new
sfValidatorString(array('required' => true), array('required' => 'Authorized
form of name'));
- $validatorSchema->datesOfExistence = new
sfValidatorString(array('required' => true), array('required' => 'Dates of
existence'));
- $validatorSchema->descriptionIdentifier = new
sfValidatorString(array('required' => true), array('required' => 'Authority
record identifier'));
- $validatorSchema->entityType = new sfValidatorString(array('required' =>
true), array('required' => 'Type of entity'));
+ $validatorSchema->authorizedFormOfName = new
sfValidatorString(array('required' => true), array('required' => '%1%Authorized
form of name%2% - This is a mandatory field.'), array('%1%' => '<a
href="http://ica-atom.org/docs/index.php?title=RS-2#4.7">', '%2%' => '</a>'));
+ $validatorSchema->datesOfExistence = new
sfValidatorString(array('required' => true), array('required' => '%1%Dates of
existence%2% - This is a mandatory field.'), array('%1%' => '<a
href="http://ica-atom.org/docs/index.php?title=RS-2#4.7">', '%2%' => '</a>'));
+ $validatorSchema->descriptionIdentifier = new
sfValidatorString(array('required' => true), array('required' => '%1%Authority
record identifier%2% - This is a mandatory field.'), array('%1%' => '<a
href="http://ica-atom.org/docs/index.php?title=RS-2#4.7">', '%2%' => '</a>'));
+ $validatorSchema->entityType = new sfValidatorString(array('required' =>
true), array('required' => '%1%Type of entity%2% - This is a mandatory
field.'), array('%1%' => '<a
href="http://ica-atom.org/docs/index.php?title=RS-2#4.7">', '%2%' => '</a>'));
try
{
Modified:
trunk/apps/qubit/modules/informationobject/actions/showIsadAction.class.php
==============================================================================
--- trunk/apps/qubit/modules/informationobject/actions/showIsadAction.class.php
Sat Nov 28 11:45:45 2009 (r3988)
+++ trunk/apps/qubit/modules/informationobject/actions/showIsadAction.class.php
Sat Nov 28 13:55:46 2009 (r3989)
@@ -33,12 +33,12 @@
parent::execute($request);
$validatorSchema = new sfValidatorSchema;
- $validatorSchema->creators = new QubitValidatorCountable(array('required'
=> true), array('required' => $this->context->i18n->__('This archival
description should %1%content at least on creator%2%.', array('%1%' => '<a
href="http://ica-atom.org/docs/index.php?title=RS-1#3.2.1">', '%2%' =>
'</a>'))));
- $validatorSchema->dates = new QubitValidatorCountable(array('required' =>
true), array('required' => $this->context->i18n->__('This archival description
should %1%content at least one date%2%.', array('%1%' => '<a
href="http://ica-atom.org/docs/index.php?title=RS-1#3.1.3">', '%2%' =>
'</a>'))));
- $validatorSchema->extentAndMedium = new sfValidatorString(array('required'
=> true), array('required' => $this->context->i18n->__('%1%Extent and medium%2%
- This is a mandatory field.', array('%1%' => '<a
href="http://ica-atom.org/docs/index.php?title=RS-1#I">', '%2%' => '</a>'))));
- $validatorSchema->identifier = new sfValidatorString(array('required' =>
true), array('required' => $this->context->i18n->__('%1%Identifier%2% - This is
a mandatory field.', array('%1%' => '<a
href="http://ica-atom.org/docs/index.php?title=RS-1#I">', '%2%' => '</a>'))));
- $validatorSchema->levelOfDescription = new
sfValidatorString(array('required' => true), array('required' =>
$this->context->i18n->__('%1%Level of description%2% - This is a mandatory
field.', array('%1%' => '<a
href="http://ica-atom.org/docs/index.php?title=RS-1#I">', '%2%' => '</a>'))));
- $validatorSchema->title = new sfValidatorString(array('required' => true),
array('required' => $this->context->i18n->__('This archival description is
untitled. A title is %1%considered essential%2% for international exchange of
descriptive information.', array('%1%' => '<a
href="http://ica-atom.org/docs/index.php?title=RS-1#I">', '%2%' => '</a>'))));
+ $validatorSchema->creators = new QubitValidatorCountable(array('required'
=> true), array('required' => $this->context->i18n->__('This archival
description should %1%content at least on creator%2%.', array('%1%' => '<a
href="http://ica-atom.org/docs/index.php?title=RS-1#I.12">', '%2%' =>
'</a>'))));
+ $validatorSchema->dates = new QubitValidatorCountable(array('required' =>
true), array('required' => $this->context->i18n->__('This archival description
should %1%content at least one date%2%.', array('%1%' => '<a
href="http://ica-atom.org/docs/index.php?title=RS-1#I.12">', '%2%' =>
'</a>'))));
+ $validatorSchema->extentAndMedium = new sfValidatorString(array('required'
=> true), array('required' => $this->context->i18n->__('%1%Extent and medium%2%
- This is a mandatory field.', array('%1%' => '<a
href="http://ica-atom.org/docs/index.php?title=RS-1#I.12">', '%2%' =>
'</a>'))));
+ $validatorSchema->identifier = new sfValidatorString(array('required' =>
true), array('required' => $this->context->i18n->__('%1%Identifier%2% - This is
a mandatory field.', array('%1%' => '<a
href="http://ica-atom.org/docs/index.php?title=RS-1#I.12">', '%2%' =>
'</a>'))));
+ $validatorSchema->levelOfDescription = new
sfValidatorString(array('required' => true), array('required' =>
$this->context->i18n->__('%1%Level of description%2% - This is a mandatory
field.', array('%1%' => '<a
href="http://ica-atom.org/docs/index.php?title=RS-1#I.12">', '%2%' =>
'</a>'))));
+ $validatorSchema->title = new sfValidatorString(array('required' => true),
array('required' => $this->context->i18n->__('This archival description is
untitled. A title is %1%considered essential%2% for international exchange of
descriptive information.', array('%1%' => '<a
href="http://ica-atom.org/docs/index.php?title=RS-1#I.12">', '%2%' =>
'</a>'))));
try
{
Modified: trunk/apps/qubit/modules/repository/actions/showIsdiahAction.class.php
==============================================================================
--- trunk/apps/qubit/modules/repository/actions/showIsdiahAction.class.php
Sat Nov 28 11:45:45 2009 (r3988)
+++ trunk/apps/qubit/modules/repository/actions/showIsdiahAction.class.php
Sat Nov 28 13:55:46 2009 (r3989)
@@ -35,9 +35,9 @@
// add ISDIAH specific commands
$validatorSchema = new sfValidatorSchema;
- $validatorSchema->authorizedFormOfName = new
sfValidatorString(array('required' => true), array('required' => 'Authorized
form of name'));
- $validatorSchema->identifier = new sfValidatorString(array('required' =>
true), array('required' => 'Identifier'));
- $validatorSchema->locationAndAddress = new
QubitValidatorCountable(array('required' => true), array('required' =>
'Location and address'));
+ $validatorSchema->authorizedFormOfName = new
sfValidatorString(array('required' => true), array('required' => '%1%Authorized
form of name%2% - This is a mandatory field.'), array('%1%' => '<a
href="http://ica-atom.org/docs/index.php?title=RS-3#4.7">', '%2%' => '</a>'));
+ $validatorSchema->identifier = new sfValidatorString(array('required' =>
true), array('required' => '%1%Identifier%2% - This is a mandatory field.'),
array('%1%' => '<a href="http://ica-atom.org/docs/index.php?title=RS-3#4.7">',
'%2%' => '</a>'));
+ $validatorSchema->locationAndAddress = new
QubitValidatorCountable(array('required' => true), array('required' =>
'%1%Location and address%2% - This is a mandatory field.'), array('%1%' => '<a
href="http://ica-atom.org/docs/index.php?title=RS-3#4.7">', '%2%' => '</a>'));
try
{
--
You received this message because you are subscribed to the Google Groups
"Qubit Toolkit Commits" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/qubit-commits?hl=en.