/** * Assign form data to user-submitted data. */ function readInputData() { $this->readUserVars(array('title', 'volume', 'number', 'year', 'description', 'publicIssueId', 'accessStatus', 'enableOpenAccessDate', 'showVolume', 'showNumber', 'showYear', 'showTitle', 'temporaryFileId')); // consider the additional field names from the public identifer plugins import('classes.plugins.PubIdPluginHelper'); $pubIdPluginHelper = new PubIdPluginHelper(); $pubIdPluginHelper->readInputData($this); $this->readUserDateVars(array('datePublished', 'openAccessDate')); $this->addCheck(new FormValidatorCustom($this, 'showVolume', 'required', 'editor.issues.issueIdentificationRequired', create_function('$showVolume, $showNumber, $showYear, $showTitle', 'return $showVolume || $showNumber || $showYear || $showTitle ? true : false;'), array($this->getData('showNumber'), $this->getData('showYear'), $this->getData('showTitle')))); }
/** * Assign form data to user-submitted data. */ function readInputData() { $this->readUserVars(array('label', 'publicGalleyId', 'deleteStyleFile', 'galleyLocale', 'remoteURL')); // consider the additional field names from the public identifer plugins import('classes.plugins.PubIdPluginHelper'); $pubIdPluginHelper = new PubIdPluginHelper(); $pubIdPluginHelper->readInputData($this); }
/** * Assign form data to user-submitted data. */ function readInputData() { $this->readUserVars(array('articleId', 'authors', 'deletedAuthors', 'primaryContact', 'title', 'abstract', 'coverPageAltText', 'showCoverPage', 'hideCoverPageToc', 'hideCoverPageAbstract', 'originalFileName', 'fileName', 'width', 'height', 'discipline', 'subjectClass', 'subject', 'coverageGeo', 'coverageChron', 'coverageSample', 'type', 'language', 'sponsor', 'citations', 'hideAuthor')); if ($this->isEditor) { $this->readUserVars(array('copyrightHolder', 'copyrightYear', 'licenseURL')); } // consider the additional field names from the public identifer plugins import('classes.plugins.PubIdPluginHelper'); $pubIdPluginHelper = new PubIdPluginHelper(); $pubIdPluginHelper->readInputData($this); $sectionDao =& DAORegistry::getDAO('SectionDAO'); $section =& $sectionDao->getSection($this->article->getSectionId()); if (!$section->getAbstractsNotRequired()) { $this->addCheck(new FormValidatorLocale($this, 'abstract', 'required', 'author.submit.form.abstractRequired', $this->getRequiredLocale())); } }
/** * Assign form data to user-submitted data. */ function readInputData() { $this->readUserVars(array('title', 'creator', 'subject', 'type', 'typeOther', 'description', 'publisher', 'sponsor', 'dateCreated', 'source', 'language', 'showReviewers', 'publicSuppFileId', 'remoteURL')); // consider the additional field names from the public identifer plugins import('classes.plugins.PubIdPluginHelper'); $pubIdPluginHelper = new PubIdPluginHelper(); $pubIdPluginHelper->readInputData($this); }