Difference between revisions of "Authority Lists"

From EPrints Documentation
Jump to: navigation, search
Line 1: Line 1:
EPrints can autocomplete on an authority file.  The format of the file is a set of lines. Each line contains a lookup string, a tab, and a chunk of XML. This XML is a single autocomplete block.  The file needs to be placed in  
+
EPrints can autocomplete on an authority file.  The file needs to be placed in [[EPrints_Directory_Structure/eprints3/archives/ARCHIVEID/cfg/autocomplete|eprints3/archives/ARCHIVEID/cfg/autocomplete/]].   
[[EPrints_Directory_Structure/eprints3/archives/ARCHIVEID/cfg/autocomplete|eprints3/archives/ARCHIVEID/cfg/autocomplete/]].   
+
 
 +
== Using the EPrints Romeo Authority File ==
  
 
[http://romeo.eprints.org EPrints Romeo] is a service which provides a list of journals and their open access status.  A EPrints 3 authority file is available from their website.
 
[http://romeo.eprints.org EPrints Romeo] is a service which provides a list of journals and their open access status.  A EPrints 3 authority file is available from their website.
Line 18: Line 19:
  
 
   <field ref="publication" required="yes" input_lookup_url="{$config{perl_url}}/users/lookup/file" input_lookup_params="file=romeo_journals.autocomplete"/>
 
   <field ref="publication" required="yes" input_lookup_url="{$config{perl_url}}/users/lookup/file" input_lookup_params="file=romeo_journals.autocomplete"/>
 +
 +
All that is left now is to restart the webserver.
 +
 +
 +
 +
== Creating Your Own Authority File ==
 +
  
 
To use your own file, change 'romeo_journals.autocomplete' to the name of your file.
 
To use your own file, change 'romeo_journals.autocomplete' to the name of your file.
  
All that is left now is to restart the webserver.
+
 
 +
 
 +
The format of the file is a set of lines.  Each single line represents one entry in the authority file.
 +
 
 +
An entry consists of:
 +
 
 +
* A lookup string
 +
* A tab
 +
* A chunk of XML

Revision as of 18:06, 5 February 2007

EPrints can autocomplete on an authority file. The file needs to be placed in eprints3/archives/ARCHIVEID/cfg/autocomplete/.

Using the EPrints Romeo Authority File

EPrints Romeo is a service which provides a list of journals and their open access status. A EPrints 3 authority file is available from their website.

%cd /opt/eprints3/archives/ARCHIVEID/cfg/autocomplete
%wget romeo.eprints.org/romeo_journals.autocomplete

Now the file needs to be linked into the workflow. Edit the file

/opt/eprints3/archives/ARCHIVEID/cfg/workflows/eprint/default.xml

Find the input for Publication Title

<field ref="publication" required="yes" input_lookup_url="{$config{perl_url}}/users/lookup/journal_by_name" />

By default, this is set to use the 'journal_by_name' script, which searches records already in the repository. However, now that we have a long list of journals that we've downloaded from Romeo, we'd like to use that instead. Modify the line:

 <field ref="publication" required="yes" input_lookup_url="{$config{perl_url}}/users/lookup/file" input_lookup_params="file=romeo_journals.autocomplete"/>

All that is left now is to restart the webserver.


Creating Your Own Authority File

To use your own file, change 'romeo_journals.autocomplete' to the name of your file.


The format of the file is a set of lines. Each single line represents one entry in the authority file.

An entry consists of:

  • A lookup string
  • A tab
  • A chunk of XML