protected function earlyExecute()
 {
     parent::earlyExecute();
     $this->isad = new sfIsadPlugin($this->resource);
     $title = $this->context->i18n->__('Add new archival description');
     if (isset($this->getRoute()->resource)) {
         if (1 > strlen($title = $this->resource)) {
             $title = $this->context->i18n->__('Untitled');
         }
         $title = $this->context->i18n->__('Edit %1%', array('%1%' => $title));
     }
     $this->response->setTitle("{$title} - {$this->response->getTitle()}");
     $this->eventComponent = new sfIsadPluginEventComponent($this->context, 'sfIsadPlugin', 'event');
     $this->eventComponent->resource = $this->resource;
     $this->eventComponent->execute($this->request);
     $this->rightEditComponent = new RightEditComponent($this->context, 'right', 'edit');
     $this->rightEditComponent->resource = $this->resource;
     $this->rightEditComponent->execute($this->request);
 }
 protected function earlyExecute()
 {
     parent::earlyExecute();
     $this->mods = new sfModsPlugin($this->resource);
     $title = $this->context->i18n->__('Add new resource');
     if (isset($this->getRoute()->resource)) {
         if (1 > strlen($title = $this->resource)) {
             $title = $this->context->i18n->__('Untitled');
         }
         $title = $this->context->i18n->__('Edit %1%', array('%1%' => $title));
     }
     $this->response->setTitle("{$title} - {$this->response->getTitle()}");
     $this->eventComponent = new InformationObjectEventComponent($this->context, 'informationobject', 'event');
     $this->eventComponent->resource = $this->resource;
     $this->eventComponent->execute($this->request);
     $this->eventComponent->form->getWidgetSchema()->type->setHelp($this->context->i18n->__('Select the type of activity that established the relation between the authority record and the resource.'));
     $this->rightEditComponent = new RightEditComponent($this->context, 'right', 'edit');
     $this->rightEditComponent->resource = $this->resource;
     $this->rightEditComponent->execute($this->request);
 }
 protected function earlyExecute()
 {
     parent::earlyExecute();
     $this->dc = new sfDcPlugin($this->resource);
     $title = $this->context->i18n->__('Add new resource');
     if (isset($this->getRoute()->resource)) {
         if (1 > strlen($title = $this->resource)) {
             $title = $this->context->i18n->__('Untitled');
         }
         $title = "Edit {$title}";
     }
     $this->response->setTitle("{$title} - {$this->response->getTitle()}");
     $this->eventComponent = new InformationObjectEventComponent($this->context, 'informationobject', 'event');
     $this->eventComponent->resource = $this->resource;
     $this->eventComponent->execute($this->request);
     $this->eventComponent->form->getWidgetSchema()->type->setHelp($this->context->i18n->__('Select the type of activity (creation, publication or contribution) that established the relation between the authority record and the archival description.'));
     $this->rightEditComponent = new RightEditComponent($this->context, 'right', 'edit');
     $this->rightEditComponent->resource = $this->resource;
     $this->rightEditComponent->execute($this->request);
 }
 public function earlyExecute()
 {
     parent::earlyExecute();
     $this->rad = new sfRadPlugin($this->resource);
     $title = $this->context->i18n->__('Add new archival description');
     if (isset($this->getRoute()->resource)) {
         if (1 > strlen($title = $this->resource)) {
             $title = $this->context->i18n->__('Untitled');
         }
         $title = $this->context->i18n->__('Edit %1%', array('%1%' => $title));
     }
     $this->response->setTitle("{$title} - {$this->response->getTitle()}");
     $this->eventComponent = new InformationObjectEventComponent($this->context, 'informationobject', 'event');
     $this->eventComponent->resource = $this->resource;
     $this->eventComponent->execute($this->request);
     $this->eventComponent->form->getWidgetSchema()->date->setHelp($this->context->i18n->__('"Give the date(s) of creation of the unit being described either as a single date, or range of dates (for inclusive dates and/or predominant dates). Always give the inclusive dates. When providing predominant dates, specify them as such, preceded by the word predominant..." (RAD 1.4B2) Record probable and uncertain dates in square brackets, using the conventions described in 1.4B5.'));
     $this->eventComponent->form->getWidgetSchema()->description->setHelp($this->context->i18n->__('"Make notes on dates and any details pertaining to the dates of creation, publication, or distribution, of the unit being described that are not included in the Date(s) of creation, including publication, distribution, etc., area and that are considered to be important." (RAD 1.8B8) "Make notes on the date(s) of accumulation or collection of the unit being described." (RAD 1.8B8a)'));
     $this->eventComponent->form->getWidgetSchema()->place->setHelp($this->context->i18n->__("\"For an item, transcribe a place of publication, distribution, etc., in the form and the grammatical case in which it appears.\" (RAD 1.4C1) {$this->eventComponent->form->getWidgetSchema()->place->getHelp()}"));
     $this->eventComponent->form->getWidgetSchema()->type->setHelp($this->context->i18n->__('Select the type of activity that established the relation between the authority record and the archival description (e.g. creation, accumulation, collection, publication, etc.)'));
     $this->rightEditComponent = new RightEditComponent($this->context, 'right', 'edit');
     $this->rightEditComponent->resource = $this->resource;
     $this->rightEditComponent->execute($this->request);
 }