Author: sevein
Date: Thu Dec 3 12:11:13 2009
New Revision: 4063
Log:
Improve validation error messages.
Modified:
trunk/plugins/sfIsadPlugin/modules/sfIsadPlugin/actions/showAction.class.php
Modified:
trunk/plugins/sfIsadPlugin/modules/sfIsadPlugin/actions/showAction.class.php
==============================================================================
---
trunk/plugins/sfIsadPlugin/modules/sfIsadPlugin/actions/showAction.class.php
Thu Dec 3 12:03:19 2009 (r4062)
+++
trunk/plugins/sfIsadPlugin/modules/sfIsadPlugin/actions/showAction.class.php
Thu Dec 3 12:11:13 2009 (r4063)
@@ -37,12 +37,12 @@
if (QubitAcl::check($this->informationObject, QubitAclAction::UPDATE_ID))
{
$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#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->creators = new
QubitValidatorCountable(array('required' => true), array('required' =>
$this->context->i18n->__('This archival description requires at least one
%1%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 requires at least one %1%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>'))));
+ $validatorSchema->title = new sfValidatorString(array('required' =>
true), array('required' => $this->context->i18n->__('%1%Title%2% - This is a
mandatory field.', array('%1%' => '<a
href="http://ica-atom.org/docs/index.php?title=RS-1#I.12">', '%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.