Пример #1
0
 /**
  * Get default manifest for the block
  *
  * @return  void
  */
 public function getManifest($new = false)
 {
     // Load config from db
     $obj = new \Components\Publications\Tables\Block($this->_parent->_db);
     $manifest = $obj->getManifest($this->_name);
     // Fall back
     if (!$manifest) {
         $manifest = array('name' => 'notes', 'label' => 'Notes', 'title' => 'Version Release Notes', 'draftHeading' => 'Add version release notes', 'draftTagline' => '', 'about' => '', 'adminTips' => '', 'elements' => array(10 => array('name' => 'metadata', 'type' => 'metadata', 'label' => 'Release Notes', 'about' => '<p>Version release notes usually include statements about version limitations and/or differences with previous versions, as well as any miscellaneous information that couldn\'t fit elsewhere.</p>', 'adminTips' => '', 'params' => array('required' => 0, 'aliasmap' => 'release_notes', 'field' => 'release_notes', 'input' => 'editor', 'placeholder' => 'Type version release notes', 'default' => '', 'maxlength' => '3000', 'cols' => '50', 'rows' => '6'))), 'params' => array('required' => 0, 'published_editing' => 0, 'collapse_elements' => 1));
         return json_decode(json_encode($manifest), FALSE);
     }
     return $manifest;
 }
Пример #2
0
 /**
  * Get default manifest for the block
  *
  * @return  void
  */
 public function getManifest($new = false)
 {
     // Load config from db
     $obj = new \Components\Publications\Tables\Block($this->_parent->_db);
     $manifest = $obj->getManifest($this->_name);
     // Fall back
     if (!$manifest) {
         $manifest = array('name' => 'extras', 'label' => 'Extras', 'title' => 'Publication Gallery and Supporting Docs', 'draftHeading' => 'Let\'s jazz up the publication page', 'draftTagline' => 'Add images/supporting docs:', 'about' => '', 'adminTips' => '', 'elements' => array(2 => array('name' => 'dataselector', 'type' => 'attachment', 'label' => 'Image Gallery', 'about' => '<p>Select image file(s) from the project repository</p>', 'aboutProv' => '<p>Attach image file(s) for publication gallery</p>', 'adminTips' => '', 'params' => array('type' => 'file', 'title' => '', 'required' => 0, 'min' => 0, 'max' => 50, 'role' => 3, 'typeParams' => array('allowed_ext' => array('gif', 'jpg', 'jpeg', 'png', 'bmp'), 'required_ext' => array(), 'handler' => 'imageviewer', 'handlers' => NULL, 'directory' => 'gallery', 'reuse' => 1, 'dirHierarchy' => 0, 'multiZip' => 0))), 3 => array('name' => 'dataselector', 'type' => 'attachment', 'label' => 'Supporting Docs', 'about' => '<p>And supporting materials related to publication</p>', 'aboutProv' => '<p>Attach a file or a number of files</p>', 'adminTips' => '', 'params' => array('type' => 'file', 'title' => '', 'required' => 0, 'min' => 0, 'max' => 500, 'role' => 2, 'typeParams' => array('allowed_ext' => array(), 'required_ext' => array(), 'handler' => NULL, 'handlers' => NULL, 'directory' => '', 'reuse' => 1, 'dirHierarchy' => 1, 'multiZip' => 0)))), 'params' => array('required' => 0, 'published_editing' => 1, 'collapse_elements' => 0, 'verify_types' => 1));
         return json_decode(json_encode($manifest), FALSE);
     }
     return $manifest;
 }
Пример #3
0
 /**
  * Get default manifest for the block
  *
  * @return  void
  */
 public function getManifest($new = false)
 {
     // Load config from db
     $obj = new \Components\Publications\Tables\Block($this->_parent->_db);
     $manifest = $obj->getManifest($this->_name);
     // Fall back
     if (!$manifest) {
         $manifest = array('name' => 'authors', 'label' => 'Authors', 'title' => 'Publication Authors', 'draftHeading' => 'Who are the authors?', 'draftTagline' => 'Build the author list', 'about' => '<p>Publication authors get selected from your current project team. Anyone you add as an author will also be added to your team as a project collaborator.</p>', 'adminTips' => '', 'elements' => array(), 'params' => array('required' => 1, 'published_editing' => 0, 'submitter' => 1, 'group_owner' => 0));
         return json_decode(json_encode($manifest), FALSE);
     }
     return $manifest;
 }
Пример #4
0
 /**
  * Get default manifest for the block
  *
  * @return  void
  */
 public function getManifest($new = false)
 {
     // Load config from db
     $obj = new \Components\Publications\Tables\Block($this->_parent->_db);
     $manifest = $obj->getManifest($this->_name);
     // Fall back
     if (!$manifest) {
         $manifest = array('name' => 'license', 'label' => 'License', 'title' => 'Publication License', 'draftHeading' => 'Choose License', 'draftTagline' => 'Define copyright and terms of use:', 'about' => 'It is important that you provide a license for your publication stating your copyright and terms of use of your content.', 'adminTips' => '', 'elements' => array(), 'params' => array('required' => 1, 'published_editing' => 0, 'include' => array(), 'exclude' => array()));
         return json_decode(json_encode($manifest), FALSE);
     }
     return $manifest;
 }
Пример #5
0
 /**
  * Get default manifest for the block
  *
  * @return  void
  */
 public function getManifest($new = false)
 {
     // Load config from db
     $obj = new \Components\Publications\Tables\Block($this->_parent->_db);
     $manifest = $obj->getManifest($this->_name);
     // Fall back
     if (!$manifest) {
         $manifest = array('name' => 'citations', 'label' => 'Citations', 'title' => 'Citations to integral or companion resources', 'draftHeading' => 'Add citations', 'draftTagline' => 'Cite integral or companion resources', 'about' => '', 'adminTips' => '', 'elements' => array(), 'params' => array('required' => 0, 'published_editing' => 1));
         return json_decode(json_encode($manifest), FALSE);
     }
     return $manifest;
 }
Пример #6
0
 /**
  * Get default manifest for the block
  *
  * @return  void
  */
 public function getManifest($new = false)
 {
     // Load config from db
     $obj = new \Components\Publications\Tables\Block($this->_parent->_db);
     $manifest = $obj->getManifest($this->_name);
     // Fall back
     if (!$manifest) {
         $manifest = array('name' => 'review', 'label' => 'Review', 'title' => 'Publication Review', 'draftHeading' => 'Review Publication', 'draftTagline' => 'Here is your publication at a glance:', 'about' => '', 'adminTips' => '', 'elements' => array(), 'params' => array('required' => 1, 'published_editing' => 0));
         return json_decode(json_encode($manifest), FALSE);
     }
     return $manifest;
 }
Пример #7
0
 /**
  * Get default manifest for the block
  *
  * @return  void
  */
 public function getManifest($new = false)
 {
     // Load config from db
     $obj = new \Components\Publications\Tables\Block($this->_parent->_db);
     $manifest = $obj->getManifest($this->_name);
     // Fall back
     if (!$manifest) {
         $manifest = array('name' => 'description', 'label' => 'Description', 'title' => 'Publication Description', 'draftHeading' => 'Name and describe your publication', 'draftTagline' => 'Here is what\'s required:', 'about' => '', 'adminTips' => '', 'elements' => array(1 => array('name' => 'metadata', 'type' => 'metadata', 'label' => 'Publication Title', 'about' => '<p>Pick a descriptive yet concise publication title that will quickly tell users about its content.</p>', 'adminTips' => '', 'params' => array('required' => 1, 'aliasmap' => 'title', 'field' => 'title', 'input' => 'text', 'placeholder' => 'Type publication title', 'default' => 'Untitled Draft', 'maxlength' => '255')), 2 => array('name' => 'metadata', 'type' => 'metadata', 'label' => 'Publication Abstract', 'about' => '<p>Provide a short (max 255 characters) abstract for your publication</p>', 'adminTips' => '', 'params' => array('required' => 1, 'aliasmap' => 'abstract', 'field' => 'abstract', 'input' => 'textarea', 'placeholder' => 'Type publication abstract', 'default' => '', 'maxlength' => '255', 'cols' => '50', 'rows' => '3')), 3 => array('name' => 'metadata', 'type' => 'metadata', 'label' => 'Publication Description', 'about' => '<p>Describe your publication in detail</p>', 'adminTips' => '', 'params' => array('required' => 1, 'aliasmap' => 'description', 'field' => 'description', 'input' => 'editor', 'placeholder' => 'Describe publication', 'default' => '', 'maxlength' => '3000', 'cols' => '50', 'rows' => '6'))), 'params' => array('required' => 1, 'published_editing' => 0, 'collapse_elements' => 1));
         if ($new == true) {
             $manifest['label'] = 'Metadata';
             $manifest['title'] = 'Publication Metadata';
             $manifest['draftHeading'] = 'Provide some metadata';
             $manifest['elements'] = array(1 => $this->getElementManifest());
         }
         return json_decode(json_encode($manifest), FALSE);
     }
     return $manifest;
 }
Пример #8
0
 /**
  * Get default manifest for the block
  *
  * @return  void
  */
 public function getManifest($new = false)
 {
     // Load config from db
     $obj = new \Components\Publications\Tables\Block($this->_parent->_db);
     $manifest = $obj->getManifest($this->_name);
     // Fall back
     if (!$manifest) {
         $manifest = array('name' => 'tags', 'label' => 'Tags', 'title' => 'Publication Tags', 'draftHeading' => 'Add tags', 'draftTagline' => 'Make your publication more discoverable:', 'about' => 'Tags help users find your publication. Before adding your own tags, try finding good matches in existing tag library.', 'adminTips' => '', 'elements' => array(), 'params' => array('required' => 1, 'published_editing' => 0));
         return json_decode(json_encode($manifest), FALSE);
     }
     return $manifest;
 }
Пример #9
0
 /**
  * Get default manifest for the block
  *
  * @return  void
  */
 public function getManifest($new = false)
 {
     // Load config from db
     $obj = new \Components\Publications\Tables\Block($this->_parent->_db);
     $manifest = $obj->getManifest($this->_name);
     // Fall back
     if (!$manifest) {
         $manifest = array('name' => 'content', 'label' => 'Content', 'title' => 'Publication Content', 'draftHeading' => 'Let\'s work on publication content', 'draftTagline' => 'Here is what\'s required:', 'about' => '', 'adminTips' => '', 'elements' => array(1 => array('name' => 'dataselector', 'type' => 'attachment', 'label' => 'Primary File(s)', 'about' => '<p>Select a file or a number of files from the project repository</p>', 'aboutProv' => '<p>Attach a file or a number of files to be bundled together</p>', 'adminTips' => '', 'params' => array('type' => 'file', 'title' => '', 'required' => 1, 'min' => 1, 'max' => 500, 'role' => 1, 'typeParams' => array('allowed_ext' => array(), 'required_ext' => array(), 'handler' => NULL, 'handlers' => array(), 'directory' => '', 'reuse' => 0, 'dirHierarchy' => 1, 'multiZip' => 1)))), 'params' => array('required' => 1, 'published_editing' => 0, 'collapse_elements' => 1, 'verify_types' => 1));
         if ($new == true) {
             $manifest['elements'] = array(1 => $this->getElementManifest());
         }
         return json_decode(json_encode($manifest), FALSE);
     }
     return $manifest;
 }