/** * Display the notes tab. * @param $args array * @param $request PKPRequest */ function viewNotes($args, &$request) { $this->setupTemplate(); import('controllers.informationCenter.form.NewMonographNoteForm'); $notesForm = new NewMonographNoteForm($this->monograph->getId()); $notesForm->initData(); $json = new JSON(true, $notesForm->fetch($request)); return $json->getString(); }
/** * Display the notes tab. * @param $args array * @param $request PKPRequest */ function viewNotes($args, &$request) { // Fetch the monograph to display information about $monograph =& $this->getAuthorizedContextObject(ASSOC_TYPE_MONOGRAPH); $this->setupTemplate(); import('controllers.informationCenter.form.NewMonographNoteForm'); $notesForm = new NewMonographNoteForm($monograph->getId()); $notesForm->initData(); $json = new JSON('true', $notesForm->fetch($request)); return $json->getString(); }