Difference between revisions of "Datasets.pl"

From EPrints Documentation
Jump to: navigation, search
(Added actually file name in bold.)
m
 
Line 2: Line 2:
 
{{cfgd}}
 
{{cfgd}}
  
''datasets.pl'' contains definition of additional datasets for data objects.  By default all this config file does is define '''<code>$c->{datasets}</code>''' as an empty hash reference.   
+
'''datasets.pl''' contains definition of additional datasets for data objects.  By default all this config file does is define '''<code>$c->{datasets}</code>''' as an empty hash reference.   
  
 
Beyond this the file contains comment out configuration to provide examples for defining a new dataset and then defining fields for that new dataset.  Finally defining an Perl package for the data object, so its '''get_system_field_info''' and any other bespoke versions of [[API:EPrints/DataObj|EPrints::DataObj]] functions needed by this new dataset data object.
 
Beyond this the file contains comment out configuration to provide examples for defining a new dataset and then defining fields for that new dataset.  Finally defining an Perl package for the data object, so its '''get_system_field_info''' and any other bespoke versions of [[API:EPrints/DataObj|EPrints::DataObj]] functions needed by this new dataset data object.

Latest revision as of 12:13, 27 January 2022

EPrints 3 Reference: Directory Structure - Metadata Fields - Repository Configuration - XML Config Files - XML Export Format - EPrints data structure - Core API - Data Objects


Back to cfg.d

datasets.pl contains definition of additional datasets for data objects. By default all this config file does is define $c->{datasets} as an empty hash reference.

Beyond this the file contains comment out configuration to provide examples for defining a new dataset and then defining fields for that new dataset. Finally defining an Perl package for the data object, so its get_system_field_info and any other bespoke versions of EPrints::DataObj functions needed by this new dataset data object.