Files/Add/remove configured fields from the database

From EPrints Documentation
Jump to: navigation, search

Abstract

Utility scripts that allow adding/removing fields from the database.

To add a field to eprints:

  • Add the configuration for the field to cfg.d/{eprints|user}_fields.pl
  • execute ./bin/add_field <repository> {eprint|user} <field_name>

To remove a field:

  • execute ./bin/remove_field <repository> {eprint|user} <field_name>
  • Remove the configuration for the field from cfg.d/{eprints|user}_fields.pl

Installation

Unpack the tarball in your eprints root directory. Patch Database as follows (if patch fails in the dry-run don't try patching - it will just break your Database.pm):

patch -p0 --dry-run < Database.pm.patch 
patch -p0 < Database.pm.patch