Training Video:Virtual Fields

From EPrints Documentation
Revision as of 14:47, 18 November 2015 by Mamalos@eng.auth.gr (talk | contribs) (Introduction)
Jump to: navigation, search


Introduction

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 uses with respect to displaying, it should be stressed out that Virtual Fields are not only limited to displaying values, they can be used for setting 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

Video

More Reading

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.