public function setEditFormInformation() { parent::setEditFormInformation(); if (!$this->new_document) { // retrieve associated articles, for use in the MW contest checkbox $prefered_cultures = $this->getUser()->getCulturesForDocuments(); $id = $this->getRequestParameter('id'); $this->associated_articles = Association::findAllAssociatedDocs($id, array('id'), 'oc'); } }
public function setEditFormInformation() { parent::setEditFormInformation(); if (!$this->new_document) { $this->title_prefix = $this->getHighestSummitName(); $this->setPageTitle($this->__('Edition of "%1%"', array('%1%' => $this->title_prefix . $this->__(' :') . ' ' . $this->document->getName()))); // retrieve associated books for displaying them near bibliography field $prefered_cultures = $this->getUser()->getCulturesForDocuments(); $id = $this->getRequestParameter('id'); $this->associated_books = Book::getAssociatedBooksData(Association::findAllWithBestName($id, $prefered_cultures, 'br')); } }
public function setEditFormInformation() { parent::setEditFormInformation(); if (!$this->new_document) { // retrieve associated books for displaying them near bibliography field $prefered_cultures = $this->getUser()->getCulturesForDocuments(); $id = $this->getRequestParameter('id'); $this->associated_books = Book::getAssociatedBooksData(Association::findAllWithBestName($id, $prefered_cultures, 'bt')); } }