• Main Page
  • Modules
  • Classes
  • Files
  • File List

classes/monograph/Monograph.inc.php

00001 <?php
00002 
00021 // Submission status constants
00022 define('STATUS_ARCHIVED', 0);
00023 define('STATUS_QUEUED', 1);
00024 define('STATUS_PUBLISHED', 3);
00025 define('STATUS_DECLINED', 4);
00026 
00027 define ('STATUS_QUEUED_UNASSIGNED', 5);
00028 define ('STATUS_QUEUED_REVIEW', 6);
00029 define ('STATUS_QUEUED_EDITING', 7);
00030 define ('STATUS_INCOMPLETE', 8);
00031 
00032 define('WORK_TYPE_EDITED_VOLUME', 1);
00033 define('WORK_TYPE_AUTHORED_WORK', 2);
00034 
00035 import('lib.pkp.classes.submission.Submission');
00036 import('classes.monograph.Author');
00037 
00038 class Monograph extends Submission {
00044    function Monograph() {
00045       // Switch on meta-data adapter support.
00046       $this->setHasLoadableAdapters(true);
00047 
00048       parent::Submission();
00049    }
00050 
00054    function getAssocType() {
00055       return ASSOC_TYPE_MONOGRAPH;
00056    }
00057 
00062    function getPressId() {
00063       return $this->getData('pressId');
00064    }
00065 
00070    function setPressId($pressId) {
00071       return $this->setData('pressId', $pressId);
00072    }
00073 
00078    function getSeriesId() {
00079       return $this->getData('seriesId');
00080    }
00081 
00086    function setSeriesId($id) {
00087       $this->setData('seriesId', $id);
00088    }
00089 
00094    function getSeriesTitle() {
00095       return $this->getData('seriesTitle');
00096    }
00097 
00102    function setSeriesTitle($title) {
00103       $this->setData('seriesTitle', $title);
00104    }
00105 
00110    function getSeriesAbbrev() {
00111       return $this->getData('seriesAbbrev');
00112    }
00113 
00118    function setSeriesAbbrev($abbrev) {
00119       $this->setData('seriesAbbrev', $abbrev);
00120    }
00121 
00126    function getSeriesPosition() {
00127       return $this->getData('seriesPosition');
00128    }
00129 
00134    function setSeriesPosition($seriesPosition) {
00135       $this->setData('seriesPosition', $seriesPosition);
00136    }
00137 
00142    function getCommentsToEditor() {
00143       return $this->getData('commentsToEditor');
00144    }
00145 
00150    function setCommentsToEditor($commentsToEditor) {
00151       return $this->setData('commentsToEditor', $commentsToEditor);
00152    }
00153 
00159    function getCopyrightNotice($locale) {
00160       return $this->getData('copyrightNotice', $locale);
00161    }
00162 
00168    function setCopyrightNotice($copyrightNotice, $locale) {
00169       return $this->setData('copyrightNotice', $copyrightNotice, $locale);
00170    }
00171 
00176    function getHideAuthor() {
00177       return $this->getData('hideAuthor');
00178    }
00179 
00184    function setHideAuthor($hideAuthor) {
00185       return $this->setData('hideAuthor', $hideAuthor);
00186    }
00187 
00192    function getStageId() {
00193       return $this->getData('stageId');
00194    }
00195 
00200    function setStageId($stageId) {
00201       return $this->setData('stageId', $stageId);
00202    }
00203 
00204 
00205    //
00206    // Peer Review
00207    //
00212    function getWorkType() {
00213       return $this->getData('workType');
00214    }
00215 
00220    function setWorkType($workType) {
00221       $this->setData('workType', $workType);
00222    }
00223 
00229    function getLocalizedFullTitle() {
00230       $fullTitle = null;
00231       if ($prefix = $this->getLocalizedPrefix()) {
00232          $fullTitle = $prefix . ' ';
00233       }
00234 
00235       $fullTitle .= $this->getLocalizedTitle();
00236 
00237       if ($subtitle = $this->getLocalizedSubtitle()) {
00238          $fullTitle = String::concatTitleFields(array($fullTitle, $subtitle));
00239       }
00240 
00241       return $fullTitle;
00242    }
00243 
00248    function getLocalizedSubtitle() {
00249       return $this->getLocalizedData('subtitle');
00250    }
00251 
00257    function getSubtitle($locale) {
00258       return $this->getData('subtitle', $locale);
00259    }
00260 
00266    function setSubtitle($subtitle, $locale) {
00267       return $this->setData('subtitle', $subtitle, $locale);
00268    }
00269 
00274    function getLocalizedSupportingAgencies() {
00275       return $this->getLocalizedData('supportingAgencies');
00276    }
00277 
00283    function getSupportingAgencies($locale) {
00284       return $this->getData('supportingAgencies', $locale);
00285    }
00286 
00292    function setSupportingAgencies($title, $locale) {
00293       return $this->setData('supportingAgencies', $title, $locale);
00294    }
00295 
00300    function getDatePublished() {
00301       return $this->getData('datePublished');
00302    }
00303 
00309    function setDatePublished($datePublished) {
00310       return $this->SetData('datePublished', $datePublished);
00311    }
00312 
00318    function isMetadataApproved() {
00319       return (boolean) $this->getDatePublished();
00320    }
00321 }
00322 
00323 ?>

Generated on Mon Sep 17 2012 13:58:55 for Open Monograph Press by  doxygen 1.7.1