Training Video:Virtual Fields
Walkthrough of adding a metadata field to a repository.
Virtual Meta Fields are fields that are not stored in the database, instead their input and output is programmed. They can be used whenever a default display-value is not suitable. Since their value is calculated their uses are limited by one's imagination. Despite their obvious usefulness with respect to rendering and displaying content, it should be stressed out that they can be used for storing values as well.
Except from Virtual Fields, this video touches other useful areas of EPrints, like how to write an EPrints script using the API, how fields are rendered, etc.
What you will learn
Watching this video will teach you:
- How and when to use Virtual Fields
- How to add a new field (Virtual Field in this example)
- How a Virtual Field's value is rendered
- How to correctly override an EPrints' function (render_value in this example)
- How to use the Core API Wiki
- How abstracts are refreshed and re-generated
- How the citation's summary page is edited
- How to create and run a simple script using EPrints' API
- How to return a value from a Virtual Field
- How to inherit MetaField.pm class to create a new field type and override some of its functions
- How to create a virtual field based on a newly generated field type
What you should already know
- basic understanding of EPrints tree structure (http://wiki.eprints.org/w/EPrints_Directory_Structure_Tree)
- basic understanding of EPrints configuration files (http://wiki.eprints.org/w/EPrints_Directory_Structure/eprints3/archives/ARCHIVEID/cfg/cfg.d)
- basic understanding of Eprints administrative commands (http://wiki.eprints.org/w/API:bin/epadmin)
- Metatada fields (http://wiki.eprints.org/w/Category:EPrints_Metadata_Fields)
Notes, Errata and Additional Information
The content of the video has been tested in Ubuntu and Debian, using EPrints versions 3.3.13 and 3.3.14.