Newer
Older
Digital_Repository / Repositories / otago_eprints3 / otago_eprints / cfg / cfg.d / eprint_fields.pl
$c->{fields}->{eprint} = [
                           {
                             'name' => 'creators',
                             'fields' => [
                                           {
                                             'hide_honourific' => 1,
                                             'type' => 'name',
                                             'family_first' => 1,
                                             'hide_lineage' => 1,
                                             'sub_name' => 'name'
                                           },
                                           {
                                             'input_cols' => 20,
                                             'allow_null' => 1,
                                             'type' => 'text',
                                             'sub_name' => 'id'
                                           }
                                         ],
                             'input_boxes' => 4,
                             'type' => 'compound',
                             'multiple' => 1
                           },
                           {
                             'name' => 'title',
                             'type' => 'longtext',
                             'input_rows' => 3
                           },
                           {
                             'options' => [
                                            'pub',
                                            'inpress',
                                            'submitted',
                                            'unpub'
                                          ],
                             'name' => 'ispublished',
                             'type' => 'set'
                           },
                           {
                             'top' => 'subjects',
                             'render_input' => undef,
                             'browse_link' => 'subjects',
                             'name' => 'subjects',
                             'multiple' => 1,
                             'type' => 'subject'
                           },
# NJS: Affiliations field to store organisational unit within the University.
                           {
                             'top' => 'affiliations',
                             'render_input' => undef,
                             'browse_link' => 'affiliations',
                             'name' => 'affiliations',
                             'multiple' => 1,
                             'type' => 'subject'
                           },
                           {
                             'options' => [
                                            'public',
                                            'restricted',
                                            'none'
                                          ],
                             'name' => 'full_text_status',
                             'type' => 'set'
                           },
                           {
                             'options' => [
                                            'technical_report',
                                            'project_report',
                                            'documentation',
                                            'manual',
                                            'working_paper',
                                            'discussion_paper',
                                            'other'
                                          ],
                             'name' => 'monograph_type',
                             'type' => 'set'
                           },
                           {
                             'options' => [
                                            'paper',
                                            'poster',
                                            'keynote',
                                            'speech',
                                            'lecture',
                                            'seminar',
                                            'talk',
                                            'demonstration',
                                            'other'
                                          ],
                             'name' => 'pres_type',
                             'type' => 'set'
                           },
                           {
                             'name' => 'keywords',
                             'type' => 'longtext',
                             'input_rows' => 3
                           },
                           {
                             'name' => 'note',
                             'type' => 'longtext',
                             'input_rows' => 5
                           },
                           {
                             'name' => 'suggestions',
                             'type' => 'longtext'
                           },
                           {
                             'name' => 'abstract',
                             'type' => 'longtext',
                             'input_rows' => 10
                           },
                           {
                             'options' => [
                                            'published',
                                            'submitted',
                                            'completed'
                                          ],
                             'name' => 'date_type',
                             'input_style' => 'medium',
                             'type' => 'set'
                           },
                           {
                             'name' => 'date',
                             'type' => 'date',
                             'min_resolution' => 'year'
                           },
                           {
                             'name' => 'series',
                             'type' => 'text'
                           },
                           {
                             'name' => 'publication',
                             'type' => 'text'
                           },
                           {
                             'maxlength' => 6,
                             'name' => 'volume',
                             'type' => 'text'
                           },
                           {
                             'maxlength' => 6,
                             'name' => 'number',
                             'type' => 'text'
                           },
                           {
                             'name' => 'publisher',
                             'type' => 'text'
                           },
                           {
                             'sql_index' => 0,
                             'name' => 'place_of_pub',
                             'type' => 'text'
                           },
                           {
                             'sql_index' => 0,
                             'name' => 'pagerange',
                             'type' => 'pagerange'
                           },
                           {
                             'maxlength' => 6,
                             'sql_index' => 0,
                             'name' => 'pages',
                             'type' => 'int'
                           },
                           {
                             'sql_index' => 0,
                             'name' => 'event_title',
                             'type' => 'text'
                           },
                           {
                             'sql_index' => 0,
                             'name' => 'event_location',
                             'type' => 'text'
                           },
                           {
                             'sql_index' => 0,
                             'name' => 'event_dates',
                             'type' => 'text'
                           },
                           {
                             'options' => [
                                            'conference',
                                            'workshop',
                                            'other'
                                          ],
                             'name' => 'event_type',
                             'type' => 'set'
                           },
                           {
                             'name' => 'id_number',
                             'type' => 'text'
                           },
                           {
                             'sql_index' => 0,
                             'name' => 'patent_applicant',
                             'type' => 'text'
                           },
                           {
                             'name' => 'institution',
                             'type' => 'text'
                           },
                           {
                             'sql_index' => 0,
                             'name' => 'department',
                             'type' => 'text'
                           },
                           {
                             'options' => [
                                            'blank',
                                            'honours',
                                            'cmaster',
                                            'rmaster',
                                            'phd',
                                            'other'
                                          ],
                             'name' => 'thesis_type',
                             'type' => 'set'
                           },
                           {
                             'name' => 'refereed',
                             'input_style' => 'radio',
                             'type' => 'boolean'
                           },
                           {
                             'name' => 'isbn',
                             'type' => 'text'
                           },
                           {
                             'name' => 'issn',
                             'type' => 'text'
                           },
                           {
                             'sql_index' => 0,
                             'name' => 'book_title',
                             'type' => 'text'
                           },
                           {
                             'name' => 'editors',
                             'fields' => [
                                           {
                                             'hide_honourific' => 1,
                                             'type' => 'name',
                                             'family_first' => 1,
                                             'hide_lineage' => 1,
                                             'sub_name' => 'name'
                                           },
                                           {
                                             'input_cols' => 20,
                                             'allow_null' => 1,
                                             'type' => 'text',
                                             'sub_name' => 'id'
                                           }
                                         ],
                             'input_boxes' => 4,
                             'type' => 'compound',
                             'multiple' => 1
                           },
                           {
                             'sql_index' => 0,
                             'name' => 'official_url',
                             'type' => 'url'
                           },
                           {
                             'name' => 'referencetext',
                             'type' => 'longtext',
                             'input_rows' => 10
                           },
# NJS 2007-04-02: Added author_permission field to indicate whether permission
# has been granted by the author to make the eprint publicly available.
# NJS 2009-07-13: Added "not applicable" option.
                           {
                             'options' => [
                                            'unproc',
                                            'na',
                                            'ongoing',
                                            'no',
                                            'embargo',
                                            'yes'
                                          ],
                             'name' => 'author_permission',
                             'type' => 'set'
                           },
# NJS 2007-04-04: Added copyright_confirmed field to indicate whether
# copyright status has been resolved.
# NJS 2009-07-13: Added "not applicable" option.
                           {
                             'options' => [
                                            'unproc',
                                            'na',
                                            'ongoing',
                                            'no',
                                            'embargo',
                                            'yes'
                                          ],
                             'name' => 'copyright_confirmed',
                             'type' => 'set'
                           },
# NJS 2008-07-21: Restored standard EPrints 3 fields that were removed by
# the v2->v3 migration script.
          {
            'name' => 'completion_time',
            'type' => 'text',
          },
          
          {
            'name' => 'composition_type',
            'type' => 'text',
          },

          {
            'name' => 'data_type',
            'type' => 'text',
          },

          {
            'name' => 'learning_level',
            'type' => 'text',
          },

          {
            'name' => 'num_pieces',
            'type' => 'int',
          },

          {
            'name' => 'output_media',
            'type' => 'text',
          },

          {
            'name' => 'pedagogic_type',
            'type' => 'set',
            'options' => [
                           'presentation',
                           'activity',
                           'case',
                           'enquiry',
                           'problem',
                           'collaboration',
                           'communication',
                         ],
          },

          {
            'name' => 'task_purpose',
            'type' => 'longtext',
          },

          {
            'name' => 'accompaniment',
            'type' => 'text',
            'multiple' => 1,
            'input_boxes' => 1,
          },

          {
            'name' => 'conductors',
            'type' => 'compound',
            'multiple' => 1,
            'fields' => [
                          {
                            'sub_name' => 'name',
                            'type' => 'name',
                            'hide_honourific' => 1,
                            'hide_lineage' => 1,
                            'family_first' => 1,
                          },
                          {
                            'sub_name' => 'id',
                            'type' => 'text',
                            'input_cols' => 20,
                            'allow_null' => 1,
                          }
                        ],
            'input_boxes' => 1,
          },

          {
            'name' => 'copyright_holders',
            'type' => 'text',
            'multiple' => 1,
            'input_boxes' => 1,
          },

          {
            'name' => 'corp_creators',
            'type' => 'text',
            'multiple' => 1,
          },

          {
            'name' => 'exhibitors',
            'type' => 'compound',
            'multiple' => 1,
            'fields' => [
                          {
                            'sub_name' => 'name',
                            'type' => 'name',
                            'hide_honourific' => 1,
                            'hide_lineage' => 1,
                            'family_first' => 1,
                          },
                          {
                            'sub_name' => 'id',
                            'type' => 'text',
                            'input_cols' => 20,
                            'allow_null' => 1,
                          }
                        ],
            'input_boxes' => 2,
          },

          {
            'name' => 'funders',
            'type' => 'text',
            'multiple' => 1,
            'input_boxes' => 1,
          },

          {
            'name' => 'lyricists',
            'type' => 'compound',
            'multiple' => 1,
            'fields' => [
                          {
                            'sub_name' => 'name',
                            'type' => 'name',
                            'hide_honourific' => 1,
                            'hide_lineage' => 1,
                            'family_first' => 1,
                          },
                          {
                            'sub_name' => 'id',
                            'type' => 'text',
                            'input_cols' => 20,
                            'allow_null' => 1,
                          }
                        ],
            'input_boxes' => 1,
          },

          {
            'name' => 'producers',
            'type' => 'compound',
            'multiple' => 1,
            'fields' => [
                          {
                            'sub_name' => 'name',
                            'type' => 'name',
                            'hide_honourific' => 1,
                            'hide_lineage' => 1,
                            'family_first' => 1,
                          },
                          {
                            'sub_name' => 'id',
                            'type' => 'text',
                            'input_cols' => 20,
                            'allow_null' => 1,
                          }
                        ],
            'input_boxes' => 1,
          },

          {
            'name' => 'projects',
            'type' => 'text',
            'multiple' => 1,
            'input_boxes' => 1,
          },

          {
            'name' => 'related_url',
            'type' => 'compound',
            'multiple' => 1,
            'fields' => [
                          {
                            'sub_name' => 'url',
                            'type' => 'url',
                            'input_cols' => 40,
                          },
                          {
                            'sub_name' => 'type',
                            'type' => 'set',
                            'options' => [
                                           'pub',
                                           'author',
                                           'org',
                                         ],
                          }
                        ],
            'input_boxes' => 1,
            'input_ordered' => 0,
          },

          {
            'name' => 'skill_areas',
            'type' => 'text',
            'multiple' => 1,
            'input_boxes' => 1,
          },

                         ];