Training Video:Virtual Fields

From EPrints Documentation
Revision as of 09:27, 19 November 2015 by Alan.stiles@open.ac.uk (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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 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

Video

The Video can be found at http://www.youtube.com/watch?v=qu92uyXzHEA.

Index

Video

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.

More Reading