/** * Initialisiert das Formular und erzeugt die Unterformulare für die Titeltypen. */ public function init() { parent::init(); $this->setLegend('admin_document_section_titles'); $this->addSubForm(new Admin_Form_Document_TitlesMain(), 'Main'); $this->addSubForm(new Admin_Form_Document_MultiSubForm('Admin_Form_Document_Title', 'TitleAdditional', new Form_Validate_MultiSubForm_RepeatedLanguages()), 'Additional'); $this->addSubForm(new Admin_Form_Document_MultiSubForm('Admin_Form_Document_Title', 'TitleParent', new Form_Validate_MultiSubForm_RepeatedLanguages()), 'Parent'); $this->addSubForm(new Admin_Form_Document_MultiSubForm('Admin_Form_Document_Title', 'TitleSub', new Form_Validate_MultiSubForm_RepeatedLanguages()), 'Sub'); }
/** * Initialisiert Formular und fuegt Unterformulare fuer Schlagworttypen hinzu. */ public function init() { parent::init(); $this->addSubForm(new Admin_Form_Document_SubjectType('swd', array('columns' => array(array(), array('label' => 'Opus_Subject_Value'), array('label' => 'ExternalKey')))), 'Swd'); $this->addSubForm(new Admin_Form_Document_SubjectType('psyndex', array('columns' => array(array(), array('label' => 'Opus_Subject_Value'), array('label' => 'ExternalKey')))), 'Psyndex'); $this->addSubForm(new Admin_Form_Document_SubjectType('uncontrolled', array('columns' => array(array(), array('label' => 'Opus_Subject_Value'), array('label' => 'ExternalKey')))), 'Uncontrolled'); // TODO Unterformular fuer unbekannte Typen hinzufügen? $this->setDecorators(array('FormElements')); }
public function init() { parent::init(); $this->setLegend('admin_document_section_bibliographic'); $this->setUseNameAsLabel(true); // Label entsprechen den Namen der Elemente $this->addElement('text', self::ELEMENT_EDITION, array('size' => 70)); $this->addElement('text', self::ELEMENT_VOLUME, array('size' => 30)); $this->addElement('text', self::ELEMENT_PUBLISHER_NAME, array('size' => 70)); $this->addElement('text', self::ELEMENT_PUBLISHER_PLACE, array('size' => 70)); $this->addElement('text', self::ELEMENT_PAGE_COUNT, array('size' => 15)); $this->addElement('text', self::ELEMENT_PAGE_FIRST, array('size' => 15)); $this->addElement('text', self::ELEMENT_PAGE_LAST, array('size' => 15)); $this->addElement('text', self::ELEMENT_ISSUE, array('size' => 30)); $this->addElement('text', self::ELEMENT_CONTRIBUTING_CORPORATION, array('size' => 70)); $this->addElement('text', self::ELEMENT_CREATING_CORPORATION, array('size' => 70)); $this->addElement('Date', self::ELEMENT_THESIS_DATE_ACCEPTED); $this->addElement('Year', self::ELEMENT_THESIS_YEAR_ACCEPTED); $this->addSubForm(new Admin_Form_Document_MultiSubForm('Admin_Form_Document_Publisher', 'ThesisPublisher', new Form_Validate_MultiSubForm_RepeatedValues(Admin_Form_Document_Institute::ELEMENT_INSTITUTE, 'admin_document_error_repeated_institute')), 'Publishers'); $this->addSubForm(new Admin_Form_Document_MultiSubForm('Admin_Form_Document_Grantor', 'ThesisGrantor', new Form_Validate_MultiSubForm_RepeatedValues(Admin_Form_Document_Institute::ELEMENT_INSTITUTE, 'admin_document_error_repeated_institute')), 'Grantors'); $this->addElement('checkbox', self::ELEMENT_BELONGS_TO_BIBLIOGRAPHY); $this->setRemoveEmptyCheckbox(false); }