Jump to content
Wiki Home
EPrints Home
Bazaar
Files
Main menu
Main menu
move to sidebar
hide
Navigation
Front Page
EPrints 3 Manual
EPrints Training Course
EPrints Glossary
Installing EPrints
How-to Configure EPrints
EPrints 3.2+ API
EPrints 3 Reference
EPrints Plugins
Wiki
All categories
Recent changes
Main Page
Help
EPrints Documentation
Search
Search
Appearance
Log in
Request account
Personal tools
Log in
Request account
Pages for logged out editors
learn more
Contributions
Talk
Editing
API:bin/import subjects
(section)
Page
Discussion
British English
Read
Edit
View history
Tools
Tools
move to sidebar
hide
Actions
Read
Edit
View history
General
What links here
Related changes
Special pages
Page information
Appearance
move to sidebar
hide
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
==FILE FORMAT== There are two different file formats excepted, the default colon seperated file and XML in the eprints export format. The colon seperated ASCII is easier to edit, but is more limited. It is not intended for UTF-8 encoded characters and can only specify subject names in the default language. The XML format can contain any unicode characters and also allows multiple languages for the names of subjects. You may wish to dump the current subjects out of eprints as XML. Edit it. Then re-import it. The downside is that this format is far more verbose. <!-- Edit below this comment --> <!-- Pod2Wiki= --> <!-- Pod2Wiki=head_the_ascii_default_format --> ===The ASCII Default Format=== This is the default format. Comments may be placed on lines begining with a hash (#) Each (non-comment) line of the file should be in the following format: <em>subjectid</em>:<em>name</em>:<em>parents</em>:<em>depositable</em> eg. blgc-bphy:Biophysics:blgc,phys:1 Please see the main documentation for the meaning of these fields. * '''subjectid''' : An ASCII string which is a unique ID for this subject. * '''name''' : The name of this subject, in the default language of the repository. * '''parents''' : A comma seperated list of the parents of this subject. Be careful not to cause loops. The top level subject id is ROOT and should not be imported as it always exists. * '''depositable''' : A boolean value ( 1 or 0 ) which indicates if this subject may have eprints associated with it. <!-- Edit below this comment --> <!-- Pod2Wiki= --> <!-- Pod2Wiki=head_the_xml_file_format --> ===The XML File Format=== This is the standard eprints export format. It looks like this: <pre> <eprintsdata> <record> <field name="subjectid">phys</field> <field name="name"><lang id="en">Physical Sciences &amp; Mathematics</lang></field> <field name="parents">subjects</field> <field name="depositable">FALSE!/field! </record> . . . </eprintsdata></pre> The fields have the same meaning as described for the ASCII format, with the following variations. The name field can (and should) have a name for each language supported by the repository. Multiple parents are indicated by multiple <code><lt</code>field name="parents<gt>> elements. Depositable should be either TRUE or FALSE. <pre></pre> <!-- Edit below this comment --> <!-- Pod2Wiki= --> <!-- Pod2Wiki=head_copyright -->
Summary:
Please note that all contributions to EPrints Documentation may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see
EPrints Documentation:Copyrights
for details).
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)