/**
  * Constructor
  * @param $plugin CrossRefExportPlugin
  * @param $journalId integer
  */
 function CrossRefSettingsForm(&$plugin, $journalId)
 {
     // Configure the object.
     parent::DOIExportSettingsForm($plugin, $journalId);
     // Add form validation checks.
     $this->addCheck(new FormValidator($this, 'depositorName', 'required', 'plugins.importexport.crossref.settings.form.depositorNameRequired'));
     $this->addCheck(new FormValidatorEmail($this, 'depositorEmail', 'required', 'plugins.importexport.crossref.settings.form.depositorEmailRequired'));
 }
Ejemplo n.º 2
0
 /**
  * Constructor
  * @param $plugin DataciteExportPlugin
  * @param $journalId integer
  */
 function DataciteSettingsForm(&$plugin, $journalId)
 {
     // Configure the object.
     parent::DOIExportSettingsForm($plugin, $journalId);
     // Add form validation checks.
     // The username is used in HTTP basic authentication and according to RFC2617 it therefore may not contain a colon.
     $this->addCheck(new FormValidatorRegExp($this, 'username', FORM_VALIDATOR_OPTIONAL_VALUE, 'plugins.importexport.datacite.settings.form.usernameRequired', '/^[^:]+$/'));
 }
 /**
  * Constructor
  * @param $plugin DataciteExportPlugin
  * @param $journalId integer
  */
 function DataciteSettingsForm(&$plugin, $journalId)
 {
     // Configure the object.
     parent::DOIExportSettingsForm($plugin, $journalId);
     // Add form validation checks.
     // The username is used in HTTP basic authentication and according to RFC2617 it therefore may not contain a colon.
     $this->addCheck(new FormValidatorRegExp($this, 'username', FORM_VALIDATOR_OPTIONAL_VALUE, 'plugins.importexport.datacite.settings.form.usernameRequired', '/^[^:]+$/'));
     $this->addCheck(new FormValidatorCustom($this, 'username', 'required', 'plugins.importexport.datacite.settings.form.usernameRequired', create_function('$username,$form', 'if ($form->getData(\'automaticRegistration\') && empty($username)) { return false; } return true;'), array(&$this)));
     $this->addCheck(new FormValidatorCustom($this, 'password', 'required', 'plugins.importexport.datacite.settings.form.passwordRequired', create_function('$password,$form', 'if ($form->getData(\'automaticRegistration\') && empty($password)) { return false; } return true;'), array(&$this)));
 }
Ejemplo n.º 4
0
 /**
  * Constructor
  * @param $plugin MedraExportPlugin
  * @param $journalId integer
  */
 function MedraSettingsForm(&$plugin, $journalId)
 {
     // Configure the object.
     parent::DOIExportSettingsForm($plugin, $journalId);
     // Add form validation checks.
     $this->addCheck(new FormValidator($this, 'registrantName', FORM_VALIDATOR_REQUIRED_VALUE, 'plugins.importexport.medra.settings.form.registrantNameRequired'));
     $this->addCheck(new FormValidator($this, 'fromCompany', FORM_VALIDATOR_REQUIRED_VALUE, 'plugins.importexport.medra.settings.form.fromCompanyRequired'));
     $this->addCheck(new FormValidator($this, 'fromName', FORM_VALIDATOR_REQUIRED_VALUE, 'plugins.importexport.medra.settings.form.fromNameRequired'));
     $this->addCheck(new FormValidatorEmail($this, 'fromEmail', FORM_VALIDATOR_REQUIRED_VALUE, 'plugins.importexport.medra.settings.form.fromEmailRequired'));
     $this->addCheck(new FormValidatorInSet($this, 'exportIssuesAs', FORM_VALIDATOR_REQUIRED_VALUE, 'plugins.importexport.medra.settings.form.exportIssuesAs', array(O4DOI_ISSUE_AS_WORK, O4DOI_ISSUE_AS_MANIFESTATION)));
     $this->addCheck(new FormValidatorInSet($this, 'publicationCountry', FORM_VALIDATOR_REQUIRED_VALUE, 'plugins.importexport.medra.settings.form.publicationCountry', array_keys($this->_getCountries())));
     // The username is used in HTTP basic authentication and according to RFC2617 it therefore may not contain a colon.
     $this->addCheck(new FormValidatorRegExp($this, 'username', FORM_VALIDATOR_OPTIONAL_VALUE, 'plugins.importexport.medra.settings.form.usernameRequired', '/^[^:]+$/'));
 }
Ejemplo n.º 5
0
 /**
  * Constructor
  * @param $plugin CrossRefExportPlugin
  * @param $journalId integer
  */
 function EzidSettingsForm(&$plugin, $journalId)
 {
     // Configure the object.
     parent::DOIExportSettingsForm($plugin, $journalId);
 }