diff --git a/dspace/docs/html/apa.html b/dspace/docs/html/apa.html index c058fecc56..9b4f90a75a 100644 --- a/dspace/docs/html/apa.html +++ b/dspace/docs/html/apa.html @@ -1,4 +1,4 @@ -Appendix A. DSpace System Documentation: Appendix A

Appendix A. DSpace System Documentation: Appendix A

Table of Contents

A.1. Default Dublin Core Metadata Registry
A.2. Default Bitstream Format Registry

A.1. Default Dublin Core Metadata Registry

+Appendix A. DSpace System Documentation: Appendix A

Appendix A. DSpace System Documentation: Appendix A

A.1. Default Dublin Core Metadata Registry

Element Qualifier @@ -6,7 +6,7 @@ Scope Note
contributor A person, organization, or service responsible for the content of the resource. Catch-all for unspecified contributors.
contributoradvisorUse primarily for thesis advisor.
contributor¹author
contributoreditor
contributorillustrator
contributorother
coveragespatialSpatial characteristics of content.
coveragetemporalTemporal characteristics of content.
creator Do not use; only for harvested metadata.
date Use qualified form if possible.
date¹accessionedDate DSpace takes possession of item.
date¹availableDate or date range item became available to the public.
datecopyrightDate of copyright.
datecreatedDate of creation or manufacture of intellectual content if different from date.issued.
date¹issuedDate of publication or distribution.
datesubmittedRecommend for theses/dissertations.
identifier Catch-all for unambiguous identifiers not defined by qualified form; use identifier.other for a known identifier common to a local collection instead of unqualified form.
identifier¹citationHuman-readable, standard bibliographic citation of non-DSpace format of this item
identifier¹govdocA government document number
identifier¹isbnInternational Standard Book Number
identifier¹issnInternational Standard Serial Number
identifiersiciSerial Item and Contribution Identifier
identifier¹ismnInternational Standard Music Number
identifier¹otherA known identifier type common to a local collection.
identifier¹uriUniform Resource Identifier
description¹ Catch-all for any description not defined by qualifiers.
description¹abstractAbstract or summary.
description¹provenanceThe history of custody of the item since its creation, including any changes successive custodians made to it.
description¹sponsorshipInformation about sponsoring agencies, individuals, or contractual arrangements for the item.
descriptionstatementofresponsibilityTo preserve statement of responsibility from MARC records.
descriptiontableofcontentsA table of contents for a given item.
descriptionuriUniform Resource Identifier pointing to description of this item.
format¹ Catch-all for any format information not defined by qualifiers.
format¹extentSize or duration.
formatmediumPhysical medium.
format¹mimetypeRegistered MIME type identifiers.
language Catch-all for non-ISO forms of the language of the item, accommodating harvested values.
language¹isoCurrent ISO standard for language of intellectual content, including country codes (e.g. "en_US").
publisher¹ Entity responsible for publication, distribution, or imprint.
relation Catch-all for references to other related items.
relationisformatofReferences additional physical form.
relationispartofReferences physically or logically containing item.
relation¹ispartofseriesSeries name and number within that series, if available.
relationhaspartReferences physically or logically contained item.
relationisversionofReferences earlier version.
relationhasversionReferences later version.
relationisbasedonReferences source.
relationisreferencedbyPointed to by referenced resource.
relationrequiresReferenced resource is required to support function, delivery, or coherence of item.
relationreplacesReferences preceeding item.
relationisreplacedbyReferences succeeding item.
relationuriReferences Uniform Resource Identifier for related item
rights Terms governing use and reproduction.
rightsuriReferences terms governing use and reproduction.
source Do not use; only for harvested metadata.
sourceuriDo not use; only for harvested metadata.
subject¹ Uncontrolled index term.
subjectclassificationCatch-all for value from local classification system. Global classification systems will receive specific qualifier
subjectddcDewey Decimal Classification Number
subjectlccLibrary of Congress Classification Number
subjectlcshLibrary of Congress Subject Headings
subjectmeshMEdical Subject Headings
subjectotherLocal controlled vocabulary; global vocabularies will receive specific qualifier.
title¹ Title statement/title proper.
title¹alternativeVarying (or substitute) form of title proper appearing in item, e.g. abbreviation or translation
type¹ Nature or genre of content.

-

¹Used by system. DO NOT REMOVE

A.2. Default Bitstream Format Registry

+

¹Used by system. DO NOT REMOVE

A.2. Default Bitstream Format Registry

Mimetype

@@ -464,11 +464,10 @@

mov, qt

-

¹ Used by system: do not remove


¹ Used by system: do not remove


\ No newline at end of file +

Licensed under a Creative Commons Attribution 3.0 United States License

\ No newline at end of file diff --git a/dspace/docs/html/ch01.html b/dspace/docs/html/ch01.html index 1dfb541bfb..c51e56d87f 100644 --- a/dspace/docs/html/ch01.html +++ b/dspace/docs/html/ch01.html @@ -1,14 +1,13 @@ -Chapter 1. DSpace System Documentation: Introduction

Chapter 1. DSpace System Documentation: Introduction

DSpace is an open source software platform that enables organisations to:

  • capture and describe digital material using a submission workflow module, or a variety of programmatic ingest options

  • distribute an organisation's digital assets over the web through a search and retrieval system

  • preserve digital assets over the long term

This system documentation includes a functional overview of the system, which is a good introduction to the capabilities of the system, and should be readable by non-technical folk. Everyone should read this section first because it introduces some terminology used throughout the rest of the documentation.

For people actually running a DSpace service, there is an installation guide, and sections on configuration and the directory structure. Note that as of DSpace 1.2, the administration user interface guide is now on-line help available from within the DSpace system.

Finally, for those interested in the details of how DSpace works, and those potentially interested in modifying the code for their own purposes, there is a detailed architecture and design section.

Other good sources of information are:

  • The DSpace Public API Javadocs. Build these with the command mvn javadoc:javadoc.

  • The DSpace Wiki contains stacks of useful information about the DSpace platform and the work people are doing with it. You are strongly encouraged to visit this site and add information about your own work. Useful Wiki areas are:

    • A list of DSpace resources (Web sites, mailing lists etc.)

    • +Chapter 1. DSpace System Documentation: Introduction

      Chapter 1. DSpace System Documentation: Introduction

      DSpace is an open source software platform that enables organisations to:

      • capture and describe digital material using a submission workflow module, or a variety of programmatic ingest options

      • distribute an organisation's digital assets over the web through a search and retrieval system

      • preserve digital assets over the long term

      This system documentation includes a functional overview of the system, which is a good introduction to the capabilities of the system, and should be readable by non-technical folk. Everyone should read this section first because it introduces some terminology used throughout the rest of the documentation.

      For people actually running a DSpace service, there is an installation guide, and sections on configuration and the directory structure. Note that as of DSpace 1.2, the administration user interface guide is now on-line help available from within the DSpace system.

      Finally, for those interested in the details of how DSpace works, and those potentially interested in modifying the code for their own purposes, there is a detailed architecture and design section.

      Other good sources of information are:


  • www.dspace.org has announcements and contains useful information about bringing up an instance of DSpace at your organization.

  • The dspace-tech e-mail list on SourceForge is the recommended place to ask questions, since a growing community of DSpace developers and users is on hand on that list to help with any questions you might have. The e-mail archive of that list is a useful resource.

  • The dspace-devel e-mail list, for those developing with the DSpace with a view to contributing to the core DSpace code.


\ No newline at end of file +

Licensed under a Creative Commons Attribution 3.0 United States License

\ No newline at end of file diff --git a/dspace/docs/html/ch02.html b/dspace/docs/html/ch02.html index 7541dde9b2..c68f711371 100644 --- a/dspace/docs/html/ch02.html +++ b/dspace/docs/html/ch02.html @@ -1,7 +1,7 @@ -Chapter 2. DSpace System Documentation: Functional Overview

Chapter 2. DSpace System Documentation: Functional Overview

The following sections describe the various functional aspects of the DSpace system.

2.1. Data Model

+Chapter 2. DSpace System Documentation: Functional Overview

Chapter 2. DSpace System Documentation: Functional Overview

The following sections describe the various functional aspects of the DSpace system.

2.1. Data Model

-

Data Model Diagram

The way data is organized in DSpace is intended to reflect the structure of the organization using the DSpace system. Each DSpace site is divided into communities, which can be further divided into sub-communities reflecting the typical university structure of college, departement, research center, or laboratory.

Communities contain collections, which are groupings of related content. A collection may appear in more than one community.

Each collection is composed of items, which are the basic archival elements of the archive. Each item is owned by one collection. Additionally, an item may appear in additional collections; however every item has one and only one owning collection.

Items are further subdivided into named bundles of bitstreams. Bitstreams are, as the name suggests, streams of bits, usually ordinary computer files. Bitstreams that are somehow closely related, for example HTML files and images that compose a single HTML document, are organised into bundles.

In practice, most items tend to have these named bundles:

  • ORIGINAL -- the bundle with the original, deposited bitstreams

  • THUMBNAILS -- thumbnails of any image bitstreams

  • TEXT -- extracted full-text from bitstreams in ORIGINAL, for indexing

  • LICENSE -- contains the deposit license that the submitter granted the host organization; in other words, specifies the rights that the hosting organization have

  • CC_LICENSE -- contains the distribution license, if any (a Creative Commons license) associated with the item. This license specifies what end users downloading the content can do with the content

Each bitstream is associated with one Bitstream Format. Because preservation services may be an important aspect of the DSpace service, it is important to capture the specific formats of files that users submit. In DSpace, a bitstream format is a unique and consistent way to refer to a particular file format. An integral part of a bitstream format is an either implicit or explicit notion of how material in that format can be interpreted. For example, the interpretation for bitstreams encoded in the JPEG standard for still image compression is defined explicitly in the Standard ISO/IEC 10918-1. The interpretation of bitstreams in Microsoft Word 2000 format is defined implicitly, through reference to the Microsoft Word 2000 application. Bitstream formats can be more specific than MIME types or file suffixes. For example, application/ms-word and .doc span multiple versions of the Microsoft Word application, each of which produces bitstreams with presumably different characteristics.

Each bitstream format additionally has a support level, indicating how well the hosting institution is likely to be able to preserve content in the format in the future. There are three possible support levels that bitstream formats may be assigned by the hosting institution. The host institution should determine the exact meaning of each support level, after careful consideration of costs and requirements. MIT Libraries' interpretation is shown below:

Table 2.1. MIT Libraries' Definitions of Bitstream Format Support Levels

+

Data Model Diagram

The way data is organized in DSpace is intended to reflect the structure of the organization using the DSpace system. Each DSpace site is divided into communities, which can be further divided into sub-communities reflecting the typical university structure of college, departement, research center, or laboratory.

Communities contain collections, which are groupings of related content. A collection may appear in more than one community.

Each collection is composed of items, which are the basic archival elements of the archive. Each item is owned by one collection. Additionally, an item may appear in additional collections; however every item has one and only one owning collection.

Items are further subdivided into named bundles of bitstreams. Bitstreams are, as the name suggests, streams of bits, usually ordinary computer files. Bitstreams that are somehow closely related, for example HTML files and images that compose a single HTML document, are organised into bundles.

In practice, most items tend to have these named bundles:

  • ORIGINAL -- the bundle with the original, deposited bitstreams

  • THUMBNAILS -- thumbnails of any image bitstreams

  • TEXT -- extracted full-text from bitstreams in ORIGINAL, for indexing

  • LICENSE -- contains the deposit license that the submitter granted the host organization; in other words, specifies the rights that the hosting organization have

  • CC_LICENSE -- contains the distribution license, if any (a Creative Commons license) associated with the item. This license specifies what end users downloading the content can do with the content

Each bitstream is associated with one Bitstream Format. Because preservation services may be an important aspect of the DSpace service, it is important to capture the specific formats of files that users submit. In DSpace, a bitstream format is a unique and consistent way to refer to a particular file format. An integral part of a bitstream format is an either implicit or explicit notion of how material in that format can be interpreted. For example, the interpretation for bitstreams encoded in the JPEG standard for still image compression is defined explicitly in the Standard ISO/IEC 10918-1. The interpretation of bitstreams in Microsoft Word 2000 format is defined implicitly, through reference to the Microsoft Word 2000 application. Bitstream formats can be more specific than MIME types or file suffixes. For example, application/ms-word and .doc span multiple versions of the Microsoft Word application, each of which produces bitstreams with presumably different characteristics.

Each bitstream format additionally has a support level, indicating how well the hosting institution is likely to be able to preserve content in the format in the future. There are three possible support levels that bitstream formats may be assigned by the hosting institution. The host institution should determine the exact meaning of each support level, after careful consideration of costs and requirements. MIT Libraries' interpretation is shown below:

Table 2.1. MIT Libraries' Definitions of Bitstream Format Support Levels

Supported

@@ -19,7 +19,7 @@

The format is unrecognized, but the hosting institution will undertake to preserve the bitstream as-is and allow it to be retrieved.

-

Each item has one qualified Dublin Core metadata record. Other metadata might be stored in an item as a serialized bitstream, but we store Dublin Core for every item for interoperability and ease of discovery. The Dublin Core may be entered by end-users as they submit content, or it might be derived from other metadata as part of an ingest process.

Items can be removed from DSpace in one of two ways: They may be 'withdrawn', which means they remain in the archive but are completely hidden from view. In this case, if an end-user attempts to access the withdrawn item, they are presented with a 'tombstone,' that indicates the item has been removed. For whatever reason, an item may also be 'expunged' if necessary, in which case all traces of it are removed from the archive.

Table 2.2. Objects in the DSpace Data Model

+

Each item has one qualified Dublin Core metadata record. Other metadata might be stored in an item as a serialized bitstream, but we store Dublin Core for every item for interoperability and ease of discovery. The Dublin Core may be entered by end-users as they submit content, or it might be derived from other metadata as part of an ingest process.

Items can be removed from DSpace in one of two ways: They may be 'withdrawn', which means they remain in the archive but are completely hidden from view. In this case, if an end-user attempts to access the withdrawn item, they are presented with a 'tombstone,' that indicates the item has been removed. For whatever reason, an item may also be 'expunged' if necessary, in which case all traces of it are removed from the archive.

Table 2.2. Objects in the DSpace Data Model

Object

@@ -51,7 +51,7 @@

Bitstream Format

Microsoft Word version 6.0; JPEG encoded image format

-

2.2. Plugin Manager

The PluginManager is a very simple component container. It creates and organizes components (plugins), and helps select a plugin in the cases where there are many possible choices. It also gives some limited control over the lifecycle of a plugin.

A plugin is defined by a Java interface. The consumer of a plugin asks for its plugin by interface. A Plugin is an instance of any class that implements the plugin interface. It is interchangeable with other implementations, so that any of them may be "plugged in".

The mediafilter is a simple example of a plugin implementation. Refer to the Business Logic Layer for more details on Plugins.

2.3. Metadata

Broadly speaking, DSpace holds three sorts of metadata about archived content:

Descriptive Metadata

DSpace can support multiple flat metadata schemas for describing an item.

A qualified Dublin Core metadata schema loosely based on the Library Application Profile set of elements and qualifiers is provided by default. The set of elements and qualifiers used by MIT Libraries comes pre-configured with the DSpace source code. However, you can configure multiple schemas and select metadata fields from a mix of configured schemas to describe your items.

Other descriptive metadata about items (e.g. metadata described in a hierarchical schema) may be held in serialized bitstreams. Communities and collections have some simple descriptive metadata (a name, and some descriptive prose), held in the DBMS.

Administrative Metadata

This includes preservation metadata, provenance and authorization policy data. Most of this is held within DSpace's relation DBMS schema. Provenance metadata (prose) is stored in Dublin Core records. Additionally, some other administrative metadata (for example, bitstream byte sizes and MIME types) is replicated in Dublin Core records so that it is easily accessible outside of DSpace.

Structural Metadata

This includes information about how to present an item, or bitstreams within an item, to an end-user, and the relationships between constituent parts of the item. As an example, consider a thesis consisting of a number of TIFF images, each depicting a single page of the thesis. Structural metadata would include the fact that each image is a single page, and the ordering of the TIFF images/pages. Structural metadata in DSpace is currently fairly basic; within an item, bitstreams can be arranged into separate bundles as described above. A bundle may also optionally have a primary bitstream. This is currently used by the HTML support to indicate which bitstream in the bundle is the first HTML file to send to a browser.

In addition to some basic technical metadata, bitstreams also have a 'sequence ID' that uniquely identifies it within an item. This is used to produce a 'persistent' bitstream identifier for each bitstream.

Additional structural metadata can be stored in serialized bitstreams, but DSpace does not currently understand this natively.

2.4. Packager Plugins

Packagers are software modules that translate between DSpace Item objects and a self-contained external representation, or "package". A Package Ingester interprets, or ingests, the package and creates an Item. A Package Disseminator writes out the contents of an Item in the package format.

A package is typically an archive file such as a Zip or "tar" file, including a manifest document which contains metadata and a description of the package contents. The IMS Content Package is a typical packaging standard. A package might also be a single document or media file that contains its own metadata, such as a PDF document with embedded descriptive metadata.

Package ingesters and package disseminators are each a type of named plugin (see Plugin Manager), so it is easy to add new packagers specific to the needs of your site. You do not have to supply both an ingester and disseminator for each format; it is perfectly acceptable to just implement one of them.

Most packager plugins call upon Crosswalk plugins to translate the metadata between DSpace's object model and the package format.

2.5. Crosswalk Plugins

Crosswalks are software modules that translate between DSpace object metadata and a specific external representation. An Ingestion Crosswalk interprets the external format and crosswalks it to DSpace's internal data structure, while a Dissemination Crosswalk does the opposite.

For example, a MODS ingestion crosswalk translates descriptive metadata from the MODS format to the metadata fields on a DSpace Item. A MODS dissemination crosswalk generates a MODS document from the metadata on a DSpace Item.

Crosswalk plugins are named plugins see Plugin Manager), so it is easy to add new crosswalks. You do not have to supply both an ingester and disseminator for each format; it is perfectly acceptable to just implement one of them.

There is also a special pair of crosswalk plugins which use XSL stylesheets to translate the external metadata to or from an internal DSpace format. You can add and modify XSLT crosswalks simply by editing the DSpace configuration and the stylesheets, which are stored in files in the DSpace installation directory.

The Packager plugins and OAH-PMH server make use of crosswalk plugins.

2.6. E-People and Groups

Although many of DSpace's functions such as document discovery and retrieval can be used anonymously, some features (and perhaps some documents) are only available to certain "privileged" users. E-People and Groups are the way DSpace identifies application users for the purpose of granting privileges. This identity is bound to a session of a DSpace application such as the Web UI or one of the command-line batch programs. Both E-People and Groups are granted privileges by the authorization system described below.

2.6.1. E-Person

DSpace hold the following information about each e-person:

  • E-mail address

  • First and last names

  • Whether the user is able to log in to the system via the Web UI, and whether they must use an X509 certificate to do so;

  • A password (encrypted), if appropriate

  • A list of collections for which the e-person wishes to be notified of new items

  • Whether the e-person 'self-registered' with the system; that is, whether the system created the e-person record automatically as a result of the end-user independently registering with the system, as opposed to the e-person record being generated from the institution's personnel database, for example.

  • The network ID for the corresponding LDAP record

2.6.2. Groups

Groups are another kind of entity that can be granted permissions in the authorization system. A group is usually an explicit list of E-People; anyone identified as one of those E-People also gains the privileges granted to the group.

However, an application session can be assigned membership in a group without being identified as an E-Person. For example, some sites use this feature to identify users of a local network so they can read restricted materials not open to the whole world. Sessions originating from the local network are given membership in the "LocalUsers" group and gain the corresonding privileges.

Administrators can also use groups as "roles" to manage the granting of privileges more efficiently.

2.7. Authentication

Authentication is when an application session positively identifies itself as belonging to an E-Person and/or Group. In DSpace 1.4, it is implemented by a mechanism called Stackable Authentication: the DSpace configuration declares a "stack" of authentication methods. An application (like the Web UI) calls on the Authentication Manager, which tries each of these methods in turn to identify the E-Person to which the session belongs, as well as any extra Groups. The E-Person authentication methods are tried in turn until one succeeds. Every authenticator in the stack is given a chance to assign extra Groups. This mechanism offers the following advantages:

  • Separates authentication from the Web user interface so the same authentication methods are used for other applications such as non-interactive Web Services

  • Improved modularity: The authentication methods are all independent of each other. Custom authentication methods can be "stacked" on top of the default DSpace username/password method.

  • Cleaner support for "implicit" authentication where username is found in the environment of a Web request, e.g. in an X.509 client certificate.

2.8. Authorization

DSpace's authorization system is based on associating actions with objects and the lists of EPeople who can perform them. The associations are called Resource Policies, and the lists of EPeople are called Groups. There are two special groups: 'Administrators', who can do anything in a site, and 'Anonymous', which is a list that contains all users. Assigning a policy for an action on an object to anonymous means giving everyone permission to do that action. (For example, most objects in DSpace sites have a policy of 'anonymous' READ.) Permissions must be explicit - lack of an explicit permission results in the default policy of 'deny'. Permissions also do not 'commute'; for example, if an e-person has READ permission on an item, they might not necessarily have READ permission on the bundles and bitstreams in that item. Currently Collections, Communities and Items are discoverable in the browse and search systems regardless of READ authorization.

The following actions are possible:

+


2.2. Plugin Manager

The PluginManager is a very simple component container. It creates and organizes components (plugins), and helps select a plugin in the cases where there are many possible choices. It also gives some limited control over the lifecycle of a plugin.

A plugin is defined by a Java interface. The consumer of a plugin asks for its plugin by interface. A Plugin is an instance of any class that implements the plugin interface. It is interchangeable with other implementations, so that any of them may be "plugged in".

The mediafilter is a simple example of a plugin implementation. Refer to the Business Logic Layer for more details on Plugins.

2.3. Metadata

Broadly speaking, DSpace holds three sorts of metadata about archived content:

Descriptive Metadata

DSpace can support multiple flat metadata schemas for describing an item.

A qualified Dublin Core metadata schema loosely based on the Library Application Profile set of elements and qualifiers is provided by default. The set of elements and qualifiers used by MIT Libraries comes pre-configured with the DSpace source code. However, you can configure multiple schemas and select metadata fields from a mix of configured schemas to describe your items.

Other descriptive metadata about items (e.g. metadata described in a hierarchical schema) may be held in serialized bitstreams. Communities and collections have some simple descriptive metadata (a name, and some descriptive prose), held in the DBMS.

Administrative Metadata

This includes preservation metadata, provenance and authorization policy data. Most of this is held within DSpace's relation DBMS schema. Provenance metadata (prose) is stored in Dublin Core records. Additionally, some other administrative metadata (for example, bitstream byte sizes and MIME types) is replicated in Dublin Core records so that it is easily accessible outside of DSpace.

Structural Metadata

This includes information about how to present an item, or bitstreams within an item, to an end-user, and the relationships between constituent parts of the item. As an example, consider a thesis consisting of a number of TIFF images, each depicting a single page of the thesis. Structural metadata would include the fact that each image is a single page, and the ordering of the TIFF images/pages. Structural metadata in DSpace is currently fairly basic; within an item, bitstreams can be arranged into separate bundles as described above. A bundle may also optionally have a primary bitstream. This is currently used by the HTML support to indicate which bitstream in the bundle is the first HTML file to send to a browser.

In addition to some basic technical metadata, bitstreams also have a 'sequence ID' that uniquely identifies it within an item. This is used to produce a 'persistent' bitstream identifier for each bitstream.

Additional structural metadata can be stored in serialized bitstreams, but DSpace does not currently understand this natively.

2.4. Packager Plugins

Packagers are software modules that translate between DSpace Item objects and a self-contained external representation, or "package". A Package Ingester interprets, or ingests, the package and creates an Item. A Package Disseminator writes out the contents of an Item in the package format.

A package is typically an archive file such as a Zip or "tar" file, including a manifest document which contains metadata and a description of the package contents. The IMS Content Package is a typical packaging standard. A package might also be a single document or media file that contains its own metadata, such as a PDF document with embedded descriptive metadata.

Package ingesters and package disseminators are each a type of named plugin (see Plugin Manager), so it is easy to add new packagers specific to the needs of your site. You do not have to supply both an ingester and disseminator for each format; it is perfectly acceptable to just implement one of them.

Most packager plugins call upon Crosswalk plugins to translate the metadata between DSpace's object model and the package format.

2.5. Crosswalk Plugins

Crosswalks are software modules that translate between DSpace object metadata and a specific external representation. An Ingestion Crosswalk interprets the external format and crosswalks it to DSpace's internal data structure, while a Dissemination Crosswalk does the opposite.

For example, a MODS ingestion crosswalk translates descriptive metadata from the MODS format to the metadata fields on a DSpace Item. A MODS dissemination crosswalk generates a MODS document from the metadata on a DSpace Item.

Crosswalk plugins are named plugins see Plugin Manager), so it is easy to add new crosswalks. You do not have to supply both an ingester and disseminator for each format; it is perfectly acceptable to just implement one of them.

There is also a special pair of crosswalk plugins which use XSL stylesheets to translate the external metadata to or from an internal DSpace format. You can add and modify XSLT crosswalks simply by editing the DSpace configuration and the stylesheets, which are stored in files in the DSpace installation directory.

The Packager plugins and OAH-PMH server make use of crosswalk plugins.

2.6. E-People and Groups

Although many of DSpace's functions such as document discovery and retrieval can be used anonymously, some features (and perhaps some documents) are only available to certain "privileged" users. E-People and Groups are the way DSpace identifies application users for the purpose of granting privileges. This identity is bound to a session of a DSpace application such as the Web UI or one of the command-line batch programs. Both E-People and Groups are granted privileges by the authorization system described below.

2.6.1. E-Person

DSpace hold the following information about each e-person:

  • E-mail address

  • First and last names

  • Whether the user is able to log in to the system via the Web UI, and whether they must use an X509 certificate to do so;

  • A password (encrypted), if appropriate

  • A list of collections for which the e-person wishes to be notified of new items

  • Whether the e-person 'self-registered' with the system; that is, whether the system created the e-person record automatically as a result of the end-user independently registering with the system, as opposed to the e-person record being generated from the institution's personnel database, for example.

  • The network ID for the corresponding LDAP record

2.6.2. Groups

Groups are another kind of entity that can be granted permissions in the authorization system. A group is usually an explicit list of E-People; anyone identified as one of those E-People also gains the privileges granted to the group.

However, an application session can be assigned membership in a group without being identified as an E-Person. For example, some sites use this feature to identify users of a local network so they can read restricted materials not open to the whole world. Sessions originating from the local network are given membership in the "LocalUsers" group and gain the corresonding privileges.

Administrators can also use groups as "roles" to manage the granting of privileges more efficiently.

2.7. Authentication

Authentication is when an application session positively identifies itself as belonging to an E-Person and/or Group. In DSpace 1.4, it is implemented by a mechanism called Stackable Authentication: the DSpace configuration declares a "stack" of authentication methods. An application (like the Web UI) calls on the Authentication Manager, which tries each of these methods in turn to identify the E-Person to which the session belongs, as well as any extra Groups. The E-Person authentication methods are tried in turn until one succeeds. Every authenticator in the stack is given a chance to assign extra Groups. This mechanism offers the following advantages:

  • Separates authentication from the Web user interface so the same authentication methods are used for other applications such as non-interactive Web Services

  • Improved modularity: The authentication methods are all independent of each other. Custom authentication methods can be "stacked" on top of the default DSpace username/password method.

  • Cleaner support for "implicit" authentication where username is found in the environment of a Web request, e.g. in an X.509 client certificate.

2.8. Authorization

DSpace's authorization system is based on associating actions with objects and the lists of EPeople who can perform them. The associations are called Resource Policies, and the lists of EPeople are called Groups. There are two special groups: 'Administrators', who can do anything in a site, and 'Anonymous', which is a list that contains all users. Assigning a policy for an action on an object to anonymous means giving everyone permission to do that action. (For example, most objects in DSpace sites have a policy of 'anonymous' READ.) Permissions must be explicit - lack of an explicit permission results in the default policy of 'deny'. Permissions also do not 'commute'; for example, if an e-person has READ permission on an item, they might not necessarily have READ permission on the bundles and bitstreams in that item. Currently Collections, Communities and Items are discoverable in the browse and search systems regardless of READ authorization.

The following actions are possible:

Collection

ADD/REMOVE

@@ -99,9 +99,9 @@

WRITE

modify bitstream

-

Note that there is no 'DELETE' action. In order to 'delete' an object (e.g. an item) from the archive, one must have REMOVE permission on all objects (in this case, collection) that contain it. The 'orphaned' item is automatically deleted.

Policies can apply to individual e-people or groups of e-people.

2.9. Ingest Process and Workflow

Rather than being a single subsystem, ingesting is a process that spans several. Below is a simple illustration of the current ingesting process in DSpace.

+

Note that there is no 'DELETE' action. In order to 'delete' an object (e.g. an item) from the archive, one must have REMOVE permission on all objects (in this case, collection) that contain it. The 'orphaned' item is automatically deleted.

Policies can apply to individual e-people or groups of e-people.

2.9. Ingest Process and Workflow

Rather than being a single subsystem, ingesting is a process that spans several. Below is a simple illustration of the current ingesting process in DSpace.

-

DSpace Ingest Process

The batch item importer is an application, which turns an external SIP (an XML metadata document with some content files) into an "in progress submission" object. The Web submission UI is similarly used by an end-user to assemble an "in progress submission" object.

Depending on the policy of the collection to which the submission in targeted, a workflow process may be started. This typically allows one or more human reviewers or 'gatekeepers' to check over the submission and ensure it is suitable for inclusion in the collection.

When the Batch Ingester or Web Submit UI completes the InProgressSubmission object, and invokes the next stage of ingest (be that workflow or item installation), a provenance message is added to the Dublin Core which includes the filenames and checksums of the content of the submission. Likewise, each time a workflow changes state (e.g. a reviewer accepts the submission), a similar provenance statement is added. This allows us to track how the item has changed since a user submitted it.

Once any workflow process is successfully and positively completed, the InProgressSubmission object is consumed by an "item installer", that converts the InProgressSubmission into a fully blown archived item in DSpace. The item installer:

  • Assigns an accession date

  • Adds a "date.available" value to the Dublin Core metadata record of the item

  • Adds an issue date if none already present

  • Adds a provenance message (including bitstream checksums)

  • Assigns a Handle persistent identifier

  • Adds the item to the target collection, and adds appropriate authorization policies

  • Adds the new item to the search and browse indices

2.9.1. Workflow Steps

A collection's workflow can have up to three steps. Each collection may have an associated e-person group for performing each step; if no group is associated with a certain step, that step is skipped. If a collection has no e-person groups associated with any step, submissions to that collection are installed straight into the main archive.

In other words, the sequence is this: The collection receives a submission. If the collection has a group assigned for workflow step 1, that step is invoked, and the group is notified. Otherwise, workflow step 1 is skipped. Likewise, workflow steps 2 and 3 are performed if and only if the collection has a group assigned to those steps.

When a step is invoked, the task of performing that workflow step put in the 'task pool' of the associated group. One member of that group takes the task from the pool, and it is then removed from the task pool, to avoid the situation where several people in the group may be performing the same task without realizing it.

The member of the group who has taken the task from the pool may then perform one of three actions:

+

DSpace Ingest Process

The batch item importer is an application, which turns an external SIP (an XML metadata document with some content files) into an "in progress submission" object. The Web submission UI is similarly used by an end-user to assemble an "in progress submission" object.

Depending on the policy of the collection to which the submission in targeted, a workflow process may be started. This typically allows one or more human reviewers or 'gatekeepers' to check over the submission and ensure it is suitable for inclusion in the collection.

When the Batch Ingester or Web Submit UI completes the InProgressSubmission object, and invokes the next stage of ingest (be that workflow or item installation), a provenance message is added to the Dublin Core which includes the filenames and checksums of the content of the submission. Likewise, each time a workflow changes state (e.g. a reviewer accepts the submission), a similar provenance statement is added. This allows us to track how the item has changed since a user submitted it.

Once any workflow process is successfully and positively completed, the InProgressSubmission object is consumed by an "item installer", that converts the InProgressSubmission into a fully blown archived item in DSpace. The item installer:

  • Assigns an accession date

  • Adds a "date.available" value to the Dublin Core metadata record of the item

  • Adds an issue date if none already present

  • Adds a provenance message (including bitstream checksums)

  • Assigns a Handle persistent identifier

  • Adds the item to the target collection, and adds appropriate authorization policies

  • Adds the new item to the search and browse indices

2.9.1. Workflow Steps

A collection's workflow can have up to three steps. Each collection may have an associated e-person group for performing each step; if no group is associated with a certain step, that step is skipped. If a collection has no e-person groups associated with any step, submissions to that collection are installed straight into the main archive.

In other words, the sequence is this: The collection receives a submission. If the collection has a group assigned for workflow step 1, that step is invoked, and the group is notified. Otherwise, workflow step 1 is skipped. Likewise, workflow steps 2 and 3 are performed if and only if the collection has a group assigned to those steps.

When a step is invoked, the task of performing that workflow step put in the 'task pool' of the associated group. One member of that group takes the task from the pool, and it is then removed from the task pool, to avoid the situation where several people in the group may be performing the same task without realizing it.

The member of the group who has taken the task from the pool may then perform one of three actions:

Workflow Step

@@ -123,19 +123,30 @@

Can edit metadata provided by the user with the submission, but cannot change the submitted files. Must then commit to archive; may not reject submission.

-

Submission Workflow in DSpace

If a submission is rejected, the reason (entered by the workflow participant) is e-mailed to the submitter, and it is returned to the submitter's 'My DSpace' page. The submitter can then make any necessary modifications and re-submit, whereupon the process starts again.

If a submission is 'accepted', it is passed to the next step in the workflow. If there are no more workflow steps with associated groups, the submission is installed in the main archive.

One last possibility is that a workflow can be 'aborted' by a DSpace site administrator. This is accomplished using the administration UI.

The reason for this apparently arbitrary design is that is was the simplist case that covered the needs of the early adopter communities at MIT. The functionality of the workflow system will no doubt be extended in the future.

2.10. Supervision and Collaboration

In order to facilitate, as a primary objective, the opportunity for thesis authors to be supervised in the preparation of their e-thesis, a supervision order system exists to bind groups of other users (thesis supervisors) to an item in someone's pre-submission workspace. The bound group can have system policies associated with it that allow different levels of interaction with the student's item; a small set of default policy groups are provided:

  • Full editorial control

  • View item contents

  • No policies

Once the default set has been applied, a system administrator may modify them as they would any other policy set in DSpace

This functionality could also be used in situations where researchers wish to collaborate on a particular submission, although there is no particular collaborative workspace functionality.

2.11. Handles

Researchers require a stable point of reference for their works. The simple evolution from sharing of citations to emailing of URLs broke when Web users learned that sites can disappear or be reconfigured without notice, and that their bookmark files containing critical links to research results couldn't be trusted long term. To help solve this problem, a core DSpace feature is the creation of persistent identifier for every item, collection and community stored in DSpace. To persist identifier, DSpace requires a storage- and location- independent mechanism for creating and maintaining identifiers. DSpace uses the CNRI Handle System for creating these identifiers. The rest of this section assumes a basic familiarity with the Handle system.

DSpace uses Handles primarily as a means of assigning globally unique identifiers to objects. Each site running DSpace needs to obtain a Handle 'prefix' from CNRI, so we know that if we create identifiers with that prefix, they won't clash with identifiers created elsewhere.

Presently, Handles are assigned to communities, collections, and items. Bundles and bitstreams are not assigned Handles, since over time, the way in which an item is encoded as bits may change, in order to allow access with future technologies and devices. Older versions may be moved to off-line storage as a new standard becomes de facto. Since it's usually the item that is being preserved, rather than the particular bit encoding, it only makes sense to persistently identify and allow access to the item, and allow users to access the appropriate bit encoding from there.

Of course, it may be that a particular bit encoding of a file is explicitly being preserved; in this case, the bitstream could be the only one in the item, and the item's Handle would then essentially refer just to that bitstream. The same bitstream can also be included in other items, and thus would be citable as part of a greater item, or individually.

The Handle system also features a global resolution infrastructure; that is, an end-user can enter a Handle into any service (e.g. Web page) that can resolve Handles, and the end-user will be directed to the object (in the case of DSpace, community, collection or item) identified by that Handle. In order to take advantage of this feature of the Handle system, a DSpace site must also run a 'Handle server' that can accept and resolve incoming resolution requests. All the code for this is included in the DSpace source code bundle.

Handles can be written in two forms:

+			

Submission Workflow in DSpace

If a submission is rejected, the reason (entered by the workflow participant) is e-mailed to the submitter, and it is returned to the submitter's 'My DSpace' page. The submitter can then make any necessary modifications and re-submit, whereupon the process starts again.

If a submission is 'accepted', it is passed to the next step in the workflow. If there are no more workflow steps with associated groups, the submission is installed in the main archive.

One last possibility is that a workflow can be 'aborted' by a DSpace site administrator. This is accomplished using the administration UI.

The reason for this apparently arbitrary design is that is was the simplist case that covered the needs of the early adopter communities at MIT. The functionality of the workflow system will no doubt be extended in the future.

2.10. Supervision and Collaboration

In order to facilitate, as a primary objective, the opportunity for thesis authors to be supervised in the preparation of their e-thesis, a supervision order system exists to bind groups of other users (thesis supervisors) to an item in someone's pre-submission workspace. The bound group can have system policies associated with it that allow different levels of interaction with the student's item; a small set of default policy groups are provided:

  • Full editorial control

  • View item contents

  • No policies

Once the default set has been applied, a system administrator may modify them as they would any other policy set in DSpace

This functionality could also be used in situations where researchers wish to collaborate on a particular submission, although there is no particular collaborative workspace functionality.

2.11. Handles

Researchers require a stable point of reference for their works. The simple evolution from sharing of citations to emailing of URLs broke when Web users learned that sites can disappear or be reconfigured without notice, and that their bookmark files containing critical links to research results couldn't be trusted long term. To help solve this problem, a core DSpace feature is the creation of persistent identifier for every item, collection and community stored in DSpace. To persist identifier, DSpace requires a storage- and location- independent mechanism for creating and maintaining identifiers. DSpace uses the CNRI Handle System for creating these identifiers. The rest of this section assumes a basic familiarity with the Handle system.

DSpace uses Handles primarily as a means of assigning globally unique identifiers to objects. Each site running DSpace needs to obtain a Handle 'prefix' from CNRI, so we know that if we create identifiers with that prefix, they won't clash with identifiers created elsewhere.

Presently, Handles are assigned to communities, collections, and items. Bundles and bitstreams are not assigned Handles, since over time, the way in which an item is encoded as bits may change, in order to allow access with future technologies and devices. Older versions may be moved to off-line storage as a new standard becomes de facto. Since it's usually the item that is being preserved, rather than the particular bit encoding, it only makes sense to persistently identify and allow access to the item, and allow users to access the appropriate bit encoding from there.

Of course, it may be that a particular bit encoding of a file is explicitly being preserved; in this case, the bitstream could be the only one in the item, and the item's Handle would then essentially refer just to that bitstream. The same bitstream can also be included in other items, and thus would be citable as part of a greater item, or individually.

The Handle system also features a global resolution infrastructure; that is, an end-user can enter a Handle into any service (e.g. Web page) that can resolve Handles, and the end-user will be directed to the object (in the case of DSpace, community, collection or item) identified by that Handle. In order to take advantage of this feature of the Handle system, a DSpace site must also run a 'Handle server' that can accept and resolve incoming resolution requests. All the code for this is included in the DSpace source code bundle.

Handles can be written in two forms:

 hdl:1721.123/4567
 http://hdl.handle.net/1721.123/4567
-

The above represent the same Handle. The first is possibly more convenient to use only as an identifier; however, by using the second form, any Web browser becomes capable of resolving Handles. An end-user need only access this form of the Handle as they would any other URL. It is possible to enable some browsers to resolve the first form of Handle as if they were standard URLs using CNRI's Handle Resolver plug-in, but since the first form can always be simply derived from the second, DSpace displays Handles in the second form, so that it is more useful for end-users.

It is important to note that DSpace uses the CNRI Handle infrastructure only at the 'site' level. For example, in the above example, the DSpace site has been assigned the prefix '1721.123'. It is still the responsibility of the DSpace site to maintain the association between a full Handle (including the '4567' local part) and the community, collection or item in question.

2.12. Bitstream 'Persistent' Identifiers

Similar to handles for DSpace items, bitstreams also have 'Persistent' identifiers. They are more volatile than Handles, since if the content is moved to a different server or organizaion, they will no longer work (hence the quotes around 'persistent'). However, they are more easily persisted than the simple URLs based on database primary key previously used. This means that external systems can more reliably refer to specific bitstreams stored in a DSpace instance.

Each bitstream has a sequence ID, unique within an item. This sequence ID is used to create a persistent ID, of the form:

+

The above represent the same Handle. The first is possibly more convenient to use only as an identifier; however, by using the second form, any Web browser becomes capable of resolving Handles. An end-user need only access this form of the Handle as they would any other URL. It is possible to enable some browsers to resolve the first form of Handle as if they were standard URLs using CNRI's Handle Resolver plug-in, but since the first form can always be simply derived from the second, DSpace displays Handles in the second form, so that it is more useful for end-users.

It is important to note that DSpace uses the CNRI Handle infrastructure only at the 'site' level. For example, in the above example, the DSpace site has been assigned the prefix '1721.123'. It is still the responsibility of the DSpace site to maintain the association between a full Handle (including the '4567' local part) and the community, collection or item in question.

2.12. Bitstream 'Persistent' Identifiers

Similar to handles for DSpace items, bitstreams also have 'Persistent' identifiers. They are more volatile than Handles, since if the content is moved to a different server or organizaion, they will no longer work (hence the quotes around 'persistent'). However, they are more easily persisted than the simple URLs based on database primary key previously used. This means that external systems can more reliably refer to specific bitstreams stored in a DSpace instance.

Each bitstream has a sequence ID, unique within an item. This sequence ID is used to create a persistent ID, of the form:

dspace url/bitstream/handle/sequence ID/filename

For example:

 https://dspace.myu.edu/bitstream/123.456/789/24/foo.html
-

The above refers to the bitstream with sequence ID 24 in the item with the Handle hdl:123.456/789. The foo.html is really just there as a hint to browsers: Although DSpace will provide the appropriate MIME type, some browsers only function correctly if the file has an expected extension.

2.13. Storage Resource Broker (SRB) Support

DSpace offers two means for storing bitstreams. The first is in the file system on the server. The second is using SRB (Storage Resource Broker). Both are achieved using a simple, lightweight API.

SRB is purely an option but may be used in lieu of the server's file system or in addition to the file system. Without going into a full description, SRB is a very robust, sophisticated storage manager that offers essentially unlimited storage and straightforward means to replicate (in simple terms, backup) the content on other local or remote storage resources.

2.14. Search and Browse

DSpace allows end-users to discover content in a number of ways, including:

  • Via external reference, such as a Handle

  • Searching for one or more keywords in metadata or extracted full-text

  • Browsing though title, author, date or subject indices, with optional image thumbnails

Search is an essential component of discovery in DSpace. Users' expectations from a search engine are quite high, so a goal for DSpace is to supply as many search features as possible. DSpace's indexing and search module has a very simple API which allows for indexing new content, regenerating the index, and performing searches on the entire corpus, a community, or collection. Behind the API is the Java freeware search engine Lucene. Lucene gives us fielded searching, stop word removal, stemming, and the ability to incrementally add new indexed content without regenerating the entire index. The specific Lucene search indexes are configurable enabling institutions to customize which DSpace metadata fields are indexed.

Another important mechanism for discovery in DSpace is the browse. This is the process whereby the user views a particular index, such as the title index, and navigates around it in search of interesting items. The browse subsystem provides a simple API for achieving this by allowing a caller to specify an index, and a subsection of that index. The browse subsystem then discloses the portion of the index of interest. Indices that may be browsed are item title, item issue date, item author, and subject terms. Additionally, the browse can be limited to items within a particular collection or community.

2.15. HTML Support

For the most part, at present DSpace simply supports uploading and downloading of bitstreams as-is. This is fine for the majority of commonly-used file formats -- for example PDFs, Microsoft Word documents, spreadsheets and so forth. HTML documents (Web sites and Web pages) are far more complicated, and this has important ramifications when it comes to digital preservation:

  • Web pages tend to consist of several files -- one or more HTML files that contain references to each other, and stylesheets and image files that are referenced by the HTML files.

  • Web pages also link to or include content from other sites, often imperceptably to the end-user. Thus, in a few year's time, when someone views the preserved Web site, they will probably find that many links are now broken or refer to other sites than are now out of context.

    In fact, it may be unclear to an end-user when they are viewing content stored in DSpace and when they are seeing content included from another site, or have navigated to a page that is not stored in DSpace. This problem can manifest when a submitter uploads some HTML content. For example, the HTML document may include an image from an external Web site, or even their local hard drive. When the submitter views the HTML in DSpace, their browser is able to use the reference in the HTML to retrieve the appropriate image, and so to the submitter, the whole HTML document appears to have been deposited correctly. However, later on, when another user tries to view that HTML, their browser might not be able to retrieve the included image since it may have been removed from the external server. Hence the HTML will seem broken.

  • Often Web pages are produced dynamically by software running on the Web server, and represent the state of a changing database underneath it.

Dealing with these issues is the topic of much active research. Currently, DSpace bites off a small, tractable chunk of this problem. DSpace can store and provide on-line browsing capability for self-contained, non-dynamic HTML documents. In practical terms, this means:

  • No dynamic content (CGI scripts and so forth)

  • All links to preserved content must be relative links, that do not refer to 'parents' above the 'root' of the HTML document/site:

    • diagram.gif is OK

    • image/foo.gif is OK

    • ../index.html is only OK in a file that is at least a directory deep in the HTML document/site hierarchy

    • /stylesheet.css is not OK (the link will break)

    • http://somedomain.com/content.html is not OK (the link will continue to link to the external site which may change or disappear)

  • Any 'absolute links' (e.g. http://somedomain.com/content.html) are stored 'as is', and will continue to link to the external content (as opposed to relative links, which will link to the copy of the content stored in DSpace.) Thus, over time, the content refered to by the absolute link may change or disappear.

2.16. OAI Support

The Open Archives Initiative has developed a protocol for metadata harvesting. This allows sites to programmatically retrieve or 'harvest' the metadata from several sources, and offer services using that metadata, such as indexing or linking services. Such a service could allow users to access information from a large number of sites from one place.

DSpace exposes the Dublin Core metadata for items that are publicly (anonymously) accessible. Additionally, the collection structure is also exposed via the OAI protocol's 'sets' mechanism. OCLC's open source OAICat framework is used to provide this functionality.

You can also configure the OAI service to make use of any crosswalk plugin to offer additional metadata formats, such as MODS.

DSpace's OAI service does support the exposing of deletion information for withdrawn items, but not for items that are 'expunged' (see above). DSpace also supports OAI-PMH resumption tokens.

2.17. OpenURL Support

DSpace supports the OpenURL protocol from SFX, in a rather simple fashion. If your institution has an SFX server, DSpace will display an OpenURL link on every item page, automatically using the Dublin Core metadata. Additionally, DSpace can respond to incoming OpenURLs. Presently it simply passes the information in the OpenURL to the search subsystem. A list of results is then displayed, which usually gives the relevant item (if it is in DSpace) at the top of the list.

2.18. Creative Commons Support

Dspace provides support for Creative Commons licenses to be attached to items in the repository. They represent an alternative to traditional copyright. To learn more about Creative Commons, visit their website. Support for the licenses is controlled by a site-wide configuration option, and since license selection involves redirection to the Creative Commons website, additional parameters may be configured to work with a proxy server. If the option is enabled, users may select a Creative Commons license during the submission process, or elect to skip Creative Commons licensing. If a selection is made a copy of the license text and RDF metadata is stored along with the item in the repository. There is also an indication - text and a Creative Commons icon - in the item display page of the web user interface when an item is licensed under Creative Commons.

2.19. Subscriptions

As noted above, end-users (e-people) may 'subscribe' to collections in order to be alerted when new items appear in those collections. Each day, end-users who are subscribed to one or more collections will receive an e-mail giving brief details of all new items that appeared in any of those collections the previous day. If no new items appeared in any of the subscribed collections, no e-mail is sent. Users can unsubscribe themselves at any time. RSS feeds of new items are also available for collections and communities.

2.20. Import and Export

DSpace also includes batch tools to import and export items in a simple directory structure, where the Dublin Core metadata is stored in an XML file. This may be used as the basis for moving content between DSpace and other systems.

There is also a METS-based export tool, which exports items as METS-based metadata with associated bitstreams referenced from the METS file.

2.21. Registration

Registration is an alternate means of incorporating items, their metadata, and their bitstreams into DSpace by taking advantage of the bitstreams already being in accessible computer storage. An example might be that there is a repository for existing digital assets. Rather than using the normal interactive ingest process or the batch import to furnish DSpace the metadata and to upload bitstreams, registration provides DSpace the metadata and the location of the bitstreams. DSpace uses a variation of the import tool to accomplish registration.

2.22. Statistics

Various statistical reports about the contents and use of your system can be automatically generated by the system. These are generated by analysing DSpace's log files. Statistics can be broken down monthly.

The report includes data such as:

  • A customisable general summary of activities in the archive, by default including:

    • Number of item views

    • Number of collection visits

    • Number of community visits

    • Number of OAI Requests

  • Customisable summary of archive contents

  • Broken-down list of item viewings

  • A full break-down of all system activity

  • User logins

  • Most popular searches

The results of statistical analysis can be presented on a by-month and an in-total report, and are available via the user interface. The reports can also either be made public or restricted to administrator access only.

2.23. Checksum Checker

The purpose of the checker is to verify that the content in a DSpace repository has not become corrupted or been tampered with. The functionality can be invoked on an ad-hoc basis from the command line, or configured via cron or similar. Options exist to support large repositories that cannot be entirely checked in one run of the tool. The tool is extensible to new reporting and checking priority approaches.

2.24.  - Usage Instrumentation

DSpace can report usage events, such as bitstream downloads, to a pluggable event processor. This can be used for developing customized usage statistics, for example. Sample event processor plugins writes event records to a file as tab-separated values or XML.


The above refers to the bitstream with sequence ID 24 in the item with the Handle hdl:123.456/789. The foo.html is really just there as a hint to browsers: Although DSpace will provide the appropriate MIME type, some browsers only function correctly if the file has an expected extension.

2.13. Storage Resource Broker (SRB) Support

DSpace offers two means for storing bitstreams. The first is in the file system on the server. The second is using SRB (Storage Resource Broker). Both are achieved using a simple, lightweight API.

SRB is purely an option but may be used in lieu of the server's file system or in addition to the file system. Without going into a full description, SRB is a very robust, sophisticated storage manager that offers essentially unlimited storage and straightforward means to replicate (in simple terms, backup) the content on other local or remote storage resources.

2.14. Search and Browse

DSpace allows end-users to discover content in a number of ways, including:

  • Via external reference, such as a Handle

  • Searching for one or more keywords in metadata or extracted full-text

  • Browsing though title, author, date or subject indices, with optional image thumbnails

Search is an essential component of discovery in DSpace. Users' expectations from a search engine are quite high, so a goal for DSpace is to supply as many search features as possible. DSpace's indexing and search module has a very simple API which allows for indexing new content, regenerating the index, and performing searches on the entire corpus, a community, or collection. Behind the API is the Java freeware search engine Lucene. Lucene gives us fielded searching, stop word removal, stemming, and the ability to incrementally add new indexed content without regenerating the entire index. The specific Lucene search indexes are configurable enabling institutions to customize which DSpace metadata fields are indexed.

Another important mechanism for discovery in DSpace is the browse. This is the process whereby the user views a particular index, such as the title index, and navigates around it in search of interesting items. The browse subsystem provides a simple API for achieving this by allowing a caller to specify an index, and a subsection of that index. The browse subsystem then discloses the portion of the index of interest. Indices that may be browsed are item title, item issue date, item author, and subject terms. Additionally, the browse can be limited to items within a particular collection or community.

2.15. HTML Support

For the most part, at present DSpace simply supports uploading and downloading of bitstreams as-is. This is fine for the majority of commonly-used file formats -- for example PDFs, Microsoft Word documents, spreadsheets and so forth. HTML documents (Web sites and Web pages) are far more complicated, and this has important ramifications when it comes to digital preservation:

  • Web pages tend to consist of several files -- one or more HTML files that contain references to each other, and stylesheets and image files that are referenced by the HTML files.

  • Web pages also link to or include content from other sites, often imperceptably to the end-user. Thus, in a few year's time, when someone views the preserved Web site, they will probably find that many links are now broken or refer to other sites than are now out of context.

    In fact, it may be unclear to an end-user when they are viewing content stored in DSpace and when they are seeing content included from another site, or have navigated to a page that is not stored in DSpace. This problem can manifest when a submitter uploads some HTML content. For example, the HTML document may include an image from an external Web site, or even their local hard drive. When the submitter views the HTML in DSpace, their browser is able to use the reference in the HTML to retrieve the appropriate image, and so to the submitter, the whole HTML document appears to have been deposited correctly. However, later on, when another user tries to view that HTML, their browser might not be able to retrieve the included image since it may have been removed from the external server. Hence the HTML will seem broken.

  • Often Web pages are produced dynamically by software running on the Web server, and represent the state of a changing database underneath it.

Dealing with these issues is the topic of much active research. Currently, DSpace bites off a small, tractable chunk of this problem. DSpace can store and provide on-line browsing capability for self-contained, non-dynamic HTML documents. In practical terms, this means:

  • No dynamic content (CGI scripts and so forth)

  • All links to preserved content must be relative links, that do not refer to 'parents' above the 'root' of the HTML document/site:

    • diagram.gif is OK

    • image/foo.gif is OK

    • ../index.html is only OK in a file that is at least a directory deep in the HTML document/site hierarchy

    • /stylesheet.css is not OK (the link will break)

    • http://somedomain.com/content.html is not OK (the link will continue to link to the external site which may change or disappear)

  • Any 'absolute links' (e.g. http://somedomain.com/content.html) are stored 'as is', and will continue to link to the external content (as opposed to relative links, which will link to the copy of the content stored in DSpace.) Thus, over time, the content refered to by the absolute link may change or disappear.

2.16. OAI Support

The Open Archives Initiative has developed a protocol for metadata harvesting. This allows sites to programmatically retrieve or 'harvest' the metadata from several sources, and offer services using that metadata, such as indexing or linking services. Such a service could allow users to access information from a large number of sites from one place.

DSpace exposes the Dublin Core metadata for items that are publicly (anonymously) accessible. Additionally, the collection structure is also exposed via the OAI protocol's 'sets' mechanism. OCLC's open source OAICat framework is used to provide this functionality.

You can also configure the OAI service to make use of any crosswalk plugin to offer additional metadata formats, such as MODS.

DSpace's OAI service does support the exposing of deletion information for withdrawn items, but not for items that are 'expunged' (see above). DSpace also supports OAI-PMH resumption tokens.

2.17. OpenURL Support

DSpace supports the OpenURL protocol from SFX, in a rather simple fashion. If your institution has an SFX server, DSpace will display an OpenURL link on every item page, automatically using the Dublin Core metadata. Additionally, DSpace can respond to incoming OpenURLs. Presently it simply passes the information in the OpenURL to the search subsystem. A list of results is then displayed, which usually gives the relevant item (if it is in DSpace) at the top of the list.

2.18. Creative Commons Support

Dspace provides support for Creative Commons licenses to be attached to items in the repository. They represent an alternative to traditional copyright. To learn more about Creative Commons, visit their website. Support for the licenses is controlled by a site-wide configuration option, and since license selection involves redirection to the Creative Commons website, additional parameters may be configured to work with a proxy server. If the option is enabled, users may select a Creative Commons license during the submission process, or elect to skip Creative Commons licensing. If a selection is made a copy of the license text and RDF metadata is stored along with the item in the repository. There is also an indication - text and a Creative Commons icon - in the item display page of the web user interface when an item is licensed under Creative Commons.

2.19. Subscriptions

As noted above, end-users (e-people) may 'subscribe' to collections in order to be alerted when new items appear in those collections. Each day, end-users who are subscribed to one or more collections will receive an e-mail giving brief details of all new items that appeared in any of those collections the previous day. If no new items appeared in any of the subscribed collections, no e-mail is sent. Users can unsubscribe themselves at any time. RSS feeds of new items are also available for collections and communities.

2.20. Import and Export

DSpace also includes batch tools to import and export items in a simple directory structure, where the Dublin Core metadata is stored in an XML file. This may be used as the basis for moving content between DSpace and other systems.

There is also a METS-based export tool, which exports items as METS-based metadata with associated bitstreams referenced from the METS file.

2.21. Registration

Registration is an alternate means of incorporating items, their metadata, and their bitstreams into DSpace by taking advantage of the bitstreams already being in accessible computer storage. An example might be that there is a repository for existing digital assets. Rather than using the normal interactive ingest process or the batch import to furnish DSpace the metadata and to upload bitstreams, registration provides DSpace the metadata and the location of the bitstreams. DSpace uses a variation of the import tool to accomplish registration.

2.22. Statistics

Various statistical reports about the contents and use of your system can be automatically generated by the system. These are generated by analysing DSpace's log files. Statistics can be broken down monthly.

The report includes data such as:

  • A customisable general summary of activities in the archive, by default including:

    • Number of item views

    • Number of collection visits

    • Number of community visits

    • Number of OAI Requests

  • Customisable summary of archive contents

  • Broken-down list of item viewings

  • A full break-down of all system activity

  • User logins

  • Most popular searches

The results of statistical analysis can be presented on a by-month and an in-total report, and are available via the user interface. The reports can also either be made public or restricted to administrator access only.

2.23. Checksum Checker

The purpose of the checker is to verify that the content in a DSpace repository has not become corrupted or been tampered with. The functionality can be invoked on an ad-hoc basis from the command line, or configured via cron or similar. Options exist to support large repositories that cannot be entirely checked in one run of the tool. The tool is extensible to new reporting and checking priority approaches.

2.24.  + Usage Instrumentation

DSpace can report usage events, such as bitstream downloads, to a pluggable event processor. This can be used for developing customized usage statistics, for example. Sample event processor plugins writes event records to a file as tab-separated values or XML.

2.25. Choice Management and Authority Control

This is a configurable framework that lets you define plug-in classes to control the choice of values for a given DSpace metadata fields. It also lets you configure fields to include "authority" values along with the textual metadata value. The chocie-control system includes a user interface in both the Configurable Submission UI and the Admin UI (edit Item pages) that assists the user in choosing metadata values.

2.25.1. Introduction and Motivation

2.25.1.1. Definitions

Choice Management

This is a mechanism that generates a list of choices for a value to be entered in a given metadata field. Depending on your implementation, the exact choice list might be determined by a proposed value or query, or it could be a fixed list that is the same for every query. It may also be closed (limited to choices produced internally) or open, allowing the user-supplied query to be included as a choice.

Authority Control

This works in addition to choice management to supply an authority key along with the chosen value, which is also assigned to the Item's metadata field entry. Any authority-controlled field is also inherently choice-controlled.

2.25.1.2. About Authority Control

The advantages we seek from an authority controlled metadata field are:

  1. There is a simple and positive way to test whether two values are identical, by comparing authority keys.

    • Comparing plain text values can give false positive results e.g. when two different people have a name that is written the same.

    • It can also give false negative results when the same name is written different ways, e.g. "J. Smith" vs. "John Smith".

  2. Help in entering correct metadata values. The submission and admin UIs may call on the authority to check a proposed value and list possible matches to help the user select one.

  3. Improved interoperability. By sharing a name authority with another application, your DSpace can interoperate more cleanly with other applications.

    • For example, a DSpace institutional repository sharing a naming authority with the campus social network would let the social network construct a list of all DSpace Items matching the shared author identifier, rather than by error-prone name matching.

    • When the name authority is shared with a campus directory, DSpace can look up the email address of an author to send automatic email about works of theirs submitted by a third party. That author does not have to be an EPerson.

  4. Authority keys are normally invisible in the public web UIs. They are only seen by administrators editing metadata. The value of an authority key is not expected to be meaningful to an end-user or site visitor.

Authority control is different from the controlled vocabulary of keywords already implemented in the submission UI:

  1. Authorities are external to DSpace. The source of authority control is typically an external database or network resource.

    • Plug-in architecture makes it easy to integrate new authorities without modifying any core code.

  2. This authority proposal impacts all phases of metadata management.

    • The keyword vocabularies are only for the submission UI.

    • Authority control is asserted everywhere metadata values are changed, including unattended/batch submission, LNI and SWORD package submission, and the administrative UI.

2.25.1.3. Some Terminology

+

Authority

+
+

An authority is a source of fixed values for a given domain, each unique value identified by a key.

+
. +

For example, the OCLC LC Name Authority Service.

+
+

Authority Record

+
The information associated with one of the values in an authority; may include alternate spellings and equivalent forms of the value, etc.
+

Authority Key

+
+

An opaque, hopefully persistent, identifier corresponding to exactly one record in the authority.

+

\ No newline at end of file +

Licensed under a Creative Commons Attribution 3.0 United States License

\ No newline at end of file diff --git a/dspace/docs/html/ch03.html b/dspace/docs/html/ch03.html index d349eeaa72..e94f33629c 100644 --- a/dspace/docs/html/ch03.html +++ b/dspace/docs/html/ch03.html @@ -1,4 +1,4 @@ -Chapter 3. DSpace System Documentation: Installation

Chapter 3. DSpace System Documentation: Installation

3.1. For the Impatient

Since some users might want to get their test version up and running as fast as possible, offered below is an unsupported outline of getting DSpace to run quickly.

[Warning]

Only experienced unix admins should even attempt the following without going to Section 3.3

+Chapter 3. DSpace System Documentation: Installation

Chapter 3. DSpace System Documentation: Installation

3.1. For the Impatient

Since some users might want to get their test version up and running as fast as possible, offered below is an unsupported outline of getting DSpace to run quickly.

[Warning]

Only experienced unix admins should even attempt the following without going to Section 3.3

 useradd -m dspace
 gunzip -c dspace-1.x-src-release.tar.gz | tar -xf -
@@ -16,9 +16,27 @@ ant fresh_install
 cp -r [dspace]/webapps/* [tomcat]/webapps
 /etc/init.d/tomcat start
 [dspace]/bin/create-administrator
-

3.2. Prerequisite Software

The list below describes the third-party components and tools you'll need to run a DSpace server. These are just guidelines. Since DSpace is built on open source, standards-based tools, there are numerous other possibilities and setups.

Also, please note that the configuration and installation guidelines relating to a particular tool below are here for convenience. You should refer to the documentation for each individual component for complete and up-to-date details. Many of the tools are updated on a frequent basis, and the guidelines below may become out of date.

3.2.1. UNIX-like OS or Microsoft Windows

  • UNIX-like OS (Linux, HP/UX etc) : Many distributions of Linux/Unix come with some of the dependencies below pre installed or easily installed via updates, you should consult your particular distributions documentation to determine what is already available.

  • Microsoft Windows: (see full Windows Instructions for full set of prerequisites)

3.2.2. Java JDK 5 or later (standard SDK is fine, you don't need J2EE)

DSpace now required Java 5 or greater because of usage of new language capabilities introduced in 5 that make coding easier and cleaner.

Java 5 or later can be downloaded from the following location: http://java.sun.com/javase/downloads/index.jsp

3.2.3. Apache Maven 2.0.8 or later (Java build tool)

Maven is necessary in the first stage of the build process to assemble the installation package for your DSpace instance. It gives you the flexibility to customize DSpace using the exisitng Maven projects found in the [dspace-source]/dspace/modules directory or by adding in your own Maven project to build the installation package for DSpace, and apply any custom interface "overlay" changes.

Maven can be downloaded from the the following location: http://maven.apache.org/download.html

3.2.4. Apache Ant 1.7 or later (Java build tool)

Apache Ant is still required for the second stage of the build process. It is used once the installation package has been constructed in [dspace-source]/dspace/target/dspace-<version>-build.dir and still uses some of the familiar ant build targets found in the 1.4.x build process.

Ant can be downloaded from the following location: http://ant.apache.org

3.2.5. Relational Database: (PostgreSQL or Oracle).

  • - PostgreSQL 7.3 or greater -

    PostgreSQL can be downloaded from the following location: http://www.postgresql.org/ Its highly recommended that you try to work with Postgres 8.x or greater, however, 7.3 or greater should still work. Unicode (specifically UTF-8) support must be enabled. This is enabled by default in 8.0+. For 7.x, be sure to compile with the following options to the 'configure' script:

    --enable-multibyte --enable-unicode --with-java

    Once installed, you need to enable TCP/IP connections (DSpace uses JDBC). For 7.x, edit postgresql.conf (usually in /usr/local/pgsql/data or /var/lib/pgsql/data), and add this line:

    tcpip_socket = true

    For 8.0+, in postgresql.conf uncomment the line starting:

    listen_addresses = 'localhost'

    Then tighten up security a bit by editing pg_hba.conf and adding this line:

    host dspace dspace 127.0.0.1 255.255.255.255 md5

    Then restart PostgreSQL.

  • Oracle 9 or greater

    Details on acquiring Oracle can be downloaded from the following location: http://www.oracle.com/database/

    You will need to create a database for DSpace. Make sure that the character set is one of the Unicode character sets. DSpace uses UTF-8 natively, and it is suggested that the Oracle database use the same character set. You will also need to create a user account for DSpace (e.g. dspace,) and ensure that it has permissions to add and remove tables in the database. Refer to the Quick Installation for more details.

    NOTE: DSpace uses sequences to generate unique object IDs - beware Oracle sequences, which are said to lose their values when doing a database export/import, say restoring from a backup. Be sure to run the script etc/update-sequences.sql.

    For people interested in switching from Postgres to Oracle, I know of no tools that would do this automatically. You will need to recreate the community, collection, and eperson structure in the Oracle system, and then use the item export and import tools to move your content over.

3.2.6. Servlet Engine: (Jakarta Tomcat 4.x, Jetty, Caucho Resin or equivalent).

  • Jakarta Tomcat 4.x or later.

    Tomcat can be dowloaded from the following location: http://tomcat.apache.org

    Note that DSpace will need to run as the same user as Tomcat, so you might want to install and run Tomcat as a user called 'dspace'. Set the environment variable TOMCAT_USER appropriately.

    You need to ensure that Tomcat has a) enough memory to run DSpace and b) uses UTF-8 as its default file encoding for international character support. So ensure in your startup scripts (etc) that the following environment variable is set:

    JAVA_OPTS="-Xmx512M -Xms64M -Dfile.encoding=UTF-8"

    Modifications in /[tomcat]/conf/server.xml :

    You also need to alter Tomcat's default configuration to support searching and browsing of multi-byte UTF-8 correctly. You need to add a configuration option to the <Connector> element in [tomcat]/config/server.xml:

    URIEncoding="UTF-8"

    e.g. if you're using the default Tomcat config, it should read:

    +		

3.2. Prerequisite Software

The list below describes the third-party components and tools you'll need to run a DSpace server. These are just guidelines. Since DSpace is built on open source, standards-based tools, there are numerous other possibilities and setups.

Also, please note that the configuration and installation guidelines relating to a particular tool below are here for convenience. You should refer to the documentation for each individual component for complete and up-to-date details. Many of the tools are updated on a frequent basis, and the guidelines below may become out of date.

3.2.1. UNIX-like OS or Microsoft Windows

  • UNIX-like OS (Linux, HP/UX etc) : Many distributions of Linux/Unix come with some of the dependencies below pre installed or easily installed via updates, you should consult your particular distributions documentation to determine what is already available.

  • Microsoft Windows: (see full Windows Instructions for full set of prerequisites)

3.2.2. Sun Java JDK 5 or later (standard SDK is fine, you don't need J2EE)

DSpace now requires Sun Java 5 or greater because of usage of new language capabilities introduced in 5 that make coding easier and cleaner.

Java 5 or later can be downloaded from the following location: http://java.sun.com/javase/downloads/index.jsp

+

[Tip]

Only Sun's Java has been tested with each release and is known to work correctly. Other flavors of Java may pose problems.

+

3.2.3. Apache Maven 2.0.8 or later (Java build tool)

Maven is necessary in the first stage of the build process to assemble the installation package for your DSpace instance. It gives you the flexibility to customize DSpace using the exisitng Maven projects found in the [dspace-source]/dspace/modules directory or by adding in your own Maven project to build the installation package for DSpace, and apply any custom interface "overlay" changes.

Maven can be downloaded from the the following location: http://maven.apache.org/download.html

3.2.3.1. Configuring a Proxy

You can configure a proxy to use for some or all of your HTTP requests in Maven 2.0. The username and password are only required if your proxy requires basic authentication (note that later releases may support storing your passwords in a secured keystore—in the mean time, please ensure your settings.xml file (usually ${user.home}/.m2/settings.xml) is secured with permissions appropriate for your operating system).

Example:

<settings> 
+  . 
+  . 
+  <proxies> 
+   <proxy> 
+      <active>true</active> 
+      <protocol>http</protocol> 
+      <host>proxy.somewhere.com</host> 
+      <port>8080</port> 
+      <username>proxyuser</username> 
+      <password>somepassword</password> 
+      <nonProxyHosts>www.google.com|*.somewhere.com</nonProxyHosts> 
+    </proxy> 
+  </proxies> 
+  . 
+  . 
+</settings> 

3.2.4. Apache Ant 1.7 or later (Java build tool)

Apache Ant is still required for the second stage of the build process. It is used once the installation package has been constructed in [dspace-source]/dspace/target/dspace-<version>-build.dir and still uses some of the familiar ant build targets found in the 1.4.x build process.

Ant can be downloaded from the following location: http://ant.apache.org

3.2.5. Relational Database: (PostgreSQL or Oracle).

  • + PostgreSQL 7.3 or 7.4 +

    PostgreSQL can be downloaded from the following location: http://www.postgresql.org/ Its highly recommended that you try to work with Postgres 8.x or greater, however, 7.3 or greater should still work. Unicode (specifically UTF-8) support must be enabled. This is enabled by default in 8.0+. For 7.x, be sure to compile with the following options to the 'configure' script:

    --enable-multibyte --enable-unicode --with-java

    Once installed, you need to enable TCP/IP connections (DSpace uses JDBC). For 7.x, edit postgresql.conf (usually in /usr/local/pgsql/data or /var/lib/pgsql/data), and add this line:

    tcpip_socket = true

    Then tighten up security a bit by editing pg_hba.conf and adding this line:

    host dspace dspace 127.0.0.1 255.255.255.255 md5

    Then restart PostgreSQL.

  • For 8.0 or later

    Editing postgresql.conf uncomment the line starting:

    listen_addresses = 'localhost'

    Then tighten up security a bit by editing pg_hba.conf and adding this line:

    host dspace dspace 127.0.0.1 255.255.255.255 md5

    Then restart PostgreSQL.

  • Oracle 9 or greater

    Details on acquiring Oracle can be downloaded from the following location: http://www.oracle.com/database/

    You will need to create a database for DSpace. Make sure that the character set is one of the Unicode character sets. DSpace uses UTF-8 natively, and it is suggested that the Oracle database use the same character set. You will also need to create a user account for DSpace (e.g. dspace,) and ensure that it has permissions to add and remove tables in the database. Refer to the Quick Installation for more details.

    NOTE: DSpace uses sequences to generate unique object IDs - beware Oracle sequences, which are said to lose their values when doing a database export/import, say restoring from a backup. Be sure to run the script etc/update-sequences.sql.

    For people interested in switching from Postgres to Oracle, I know of no tools that would do this automatically. You will need to recreate the community, collection, and eperson structure in the Oracle system, and then use the item export and import tools to move your content over.

3.2.6. Servlet Engine: (Jakarta Tomcat 4.x, Jetty, Caucho Resin or equivalent).

  • Jakarta Tomcat 4.x or later.

    Tomcat can be dowloaded from the following location: http://tomcat.apache.org

    Note that DSpace will need to run as the same user as Tomcat, so you might want to install and run Tomcat as a user called 'dspace'. Set the environment variable TOMCAT_USER appropriately.

    You need to ensure that Tomcat has a) enough memory to run DSpace and b) uses UTF-8 as its default file encoding for international character support. So ensure in your startup scripts (etc) that the following environment variable is set:

    JAVA_OPTS="-Xmx512M -Xms64M -Dfile.encoding=UTF-8"

    Modifications in /[tomcat]/conf/server.xml :

    You also need to alter Tomcat's default configuration to support searching and browsing of multi-byte UTF-8 correctly. You need to add a configuration option to the <Connector> element in [tomcat]/config/server.xml:

    URIEncoding="UTF-8"

    e.g. if you're using the default Tomcat config, it should read:

     <!-- Define a non-SSL HTTP/1.1 Connector on port 8080 -->
     <Connector port="8080"
                   maxThreads="150"
    @@ -31,18 +49,19 @@ cp -r [dspace]/webapps/* [tomcat]/webapps
     	          disableUploadTimeout="true"
                   URIEncoding="UTF-8"/>

    You may change the port from 8080 by editing it in the file above, and by setting the variable CONNECTOR_PORT in server.xml

  • Jetty or Caucho Resin -

    DSpace will also run on an equivalent servlet Engine, such as Jetty (http://www.mortbay.org/jetty/index.html) or Caucho Resin (http://www.caucho.com/).

    Jetty and Resin are configured for correct handling of UTF-8 by default.

3.2.7. Perl (required for [dspace]/bin/dspace-info.pl)

-

3.3. Installation Options

3.3.1. Overview of Install Options

With the advent of a new Apache Maven 2 based build architecture in DSpace 1.5.x, you now have two options in how you may wish to install and manage your local installation of DSpace. If you've used DSpace 1.4.x, please recognize that the initial build proceedure has changed to allow for more customization. You will find the later 'Ant based' stages of the installation proceedure familiar. Maven is used to resolve the dependencies of DSpace online from the 'Maven Central Repository' server.

It is important to note that the strategies are identical in terms of the list of proceedures required to complete the build process, the only difference being that the Source Release includes "more modules" that will be built given their presence in the distribution package.

  • Default Release (dspace-<version>-release.zip)

    • This distribution will be adequate for most cases of running a DSpace instance. It is intended to be the quickest way to get DSpace installed and running while still allowing for customization of the themes and branding of your DSpace instance.

    • This method allows you to customize DSpace configurations (in dspace.cfg) or user interfaces, using basic pre-built interface "overlays".

    • It downloads "precompiled" libraries for the core dspace-api, supporting servlets, taglibraries, aspects and themes for the dspace-xmlui, dspace-xmlui and other webservice/applications.

    • This approach exposes the parts of the application that the DSpace commiters would prefer to see customized. All other modules are downloaded from the 'Maven Central Repository'

      The directory structure for this release is the following:

      • [dspace-source]

        • dspace/ - DSpace 'build' and configuration module

        • pom.xml - DSpace Parent Project definition

  • Source Release (dspace-<version>-src-release.zip)

    • This method is recommended for those who wish to develop DSpace further or alter its underlying capabilities to a greater degree.

    • It contains all dspace code for the core dspace-api, supporting servlets, taglibraries, aspects and themes for Manakin (dspace-xmlui), and other webservice/applications.

    • Provides all the same capabilities as the normal release.

      The directory structure for this release is more detailed:

      • [dspace-source] -

        • dspace/ - DSpace 'build' and configuration module

        • dspace-api/ - Java API source module

        • dspace-jspui/ - JSP-UI source module

        • dspace-oai - OAI-PMH source module

        • dspace-xmlui - XML-UI (Manakin) source module

        • dspace-lni - Lightweight Network Interface source module

        • dspace-sword -- SWORD (Simple Web-serve Offering Repository Deposit) deposit service source module

        • pom.xml - DSpace Parent Project definition

3.3.2. Overview of DSpace Directories

Before beginning an installation, it is important to get a general understanding of the DSpace directories and the names by which they are generally referred. (Please attempt to use these below directory names when asking for help on the DSpace Mailing Lists, as it will help everyone better understand what directory you may be referring to.)

DSpace uses three separate directory trees. Although you don't need to know all the details of them in order to install DSpace, you do need to know they exist and also know how they're referred to in this document:

  1. The installation directory, referred to as [dspace] . This is the location where DSpace is installed and running off of it is the location that gets defined in the dspace.cfg as "dspace.dir". It is where all the DSpace configuration files, command line scripts, documentation and webapps will be installed to.

  2. The source directory, referred to as [dspace-source] . This is the location where the DSpace release distribution has been unzipped into. It usually has the name of the archive that you expanded such as dspace-<version>-release or dspace-<version>-src-release. It is the directory where all of your "build" commands will be run.

  3. The web deployment directory. This is the directory that contains your DSpace web application(s). In DSpace 1.5.x and above, this corresponds to [dspace]/webapps by default. However, if you are using Tomcat, you may decide to copy your DSpace web applications from [dspace]/webapps/ to [tomcat]/webapps/ (with [tomcat] being wherever you installed Tomcat—also known as $CATALINA_HOME).

For details on the contents of these separate directory trees, refer to directories.html. Note that the [dspace-source] and [dspace] directories are always separate!

3.3.3. Installation

This method gets you up and running with DSpace quickly and easily. It is identical in both the Default Release and Source Release distributions.

  1. Create the DSpace user. This needs to be the same user that Tomcat (or Jetty etc.) will run as. e.g. as root run:

    useradd -m dspace
  2. Download the latest DSpace release There are two version available with each release of DSpace: (dspace-1.x-release. and dspace-1.x-src-release.xxx); you only need to choose one. If you want a copy of all underlying Java source code, you should download the dspace-1.x-src-release.xxx Within each version, you have a choice of compressed file format. Choose the one that best fits your environment.

  3. Unpack the DSpace software. After downloading the software, based on the compression file format, choose one of the following methods to unpack your software:

    1. Zip file. If you downloaded dspace-1.6-release.zip do the following:

      unzip dspace-1.6-release.zip
    2. .gz file. If you downloaded dspace-1.6-release.tar.gz do the following:

      gunzip -c dspace-1.6-release.tar.gz | tar -xf -
    3. .bz2 file. If you downloaded dspace-1.6-release.tar.bz2do the following:

      bunzip2 dspace-1.6-release.tar.bz | tar -xf -

    For ease of reference, we will refer to the location of this unzipped version of the DSpace release as [dspace-source] in the remainder of these instructions.

    [Tip]

    After unpacking the file, the user may which to change the ownership of the dspace-1.6-release to the 'dspace' user. (And you may need to change the group).

  4. Database Setup

    +

    DSpace will also run on an equivalent servlet Engine, such as Jetty (http://www.mortbay.org/jetty/index.html) or Caucho Resin (http://www.caucho.com/).

    Jetty and Resin are configured for correct handling of UTF-8 by default.

3.2.7. Perl (required for [dspace]/bin/dspace-info.pl)

3.3. Installation Options

3.3.1. Overview of Install Options

With the advent of a new Apache Maven 2 based build architecture in DSpace 1.5.x, you now have two options in how you may wish to install and manage your local installation of DSpace. If you've used DSpace 1.4.x, please recognize that the initial build proceedure has changed to allow for more customization. You will find the later 'Ant based' stages of the installation proceedure familiar. Maven is used to resolve the dependencies of DSpace online from the 'Maven Central Repository' server.

It is important to note that the strategies are identical in terms of the list of proceedures required to complete the build process, the only difference being that the Source Release includes "more modules" that will be built given their presence in the distribution package.

  • Default Release (dspace-<version>-release.zip)

    • This distribution will be adequate for most cases of running a DSpace instance. It is intended to be the quickest way to get DSpace installed and running while still allowing for customization of the themes and branding of your DSpace instance.

    • This method allows you to customize DSpace configurations (in dspace.cfg) or user interfaces, using basic pre-built interface "overlays".

    • It downloads "precompiled" libraries for the core dspace-api, supporting servlets, taglibraries, aspects and themes for the dspace-xmlui, dspace-xmlui and other webservice/applications.

    • This approach exposes the parts of the application that the DSpace commiters would prefer to see customized. All other modules are downloaded from the 'Maven Central Repository'

      The directory structure for this release is the following:

      • [dspace-source]

        • dspace/ - DSpace 'build' and configuration module

        • pom.xml - DSpace Parent Project definition

  • Source Release (dspace-<version>-src-release.zip)

    • This method is recommended for those who wish to develop DSpace further or alter its underlying capabilities to a greater degree.

    • It contains all dspace code for the core dspace-api, supporting servlets, taglibraries, aspects and themes for Manakin (dspace-xmlui), and other webservice/applications.

    • Provides all the same capabilities as the normal release.

      The directory structure for this release is more detailed:

      • [dspace-source] +

        • dspace/ - DSpace 'build' and configuration module

        • dspace-api/ - Java API source module

        • dspace-jspui/ - JSP-UI source module

        • dspace-oai - OAI-PMH source module

        • dspace-xmlui - XML-UI (Manakin) source module

        • dspace-lni - Lightweight Network Interface source module

        • dspace-sword -- SWORD (Simple Web-serve Offering Repository Deposit) deposit service source module

        • pom.xml - DSpace Parent Project definition

3.3.2. Overview of DSpace Directories

Before beginning an installation, it is important to get a general understanding of the DSpace directories and the names by which they are generally referred. (Please attempt to use these below directory names when asking for help on the DSpace Mailing Lists, as it will help everyone better understand what directory you may be referring to.)

DSpace uses three separate directory trees. Although you don't need to know all the details of them in order to install DSpace, you do need to know they exist and also know how they're referred to in this document:

  1. The installation directory, referred to as [dspace] . This is the location where DSpace is installed and running off of it is the location that gets defined in the dspace.cfg as "dspace.dir". It is where all the DSpace configuration files, command line scripts, documentation and webapps will be installed to.

  2. The source directory, referred to as [dspace-source] . This is the location where the DSpace release distribution has been unzipped into. It usually has the name of the archive that you expanded such as dspace-<version>-release or dspace-<version>-src-release. It is the directory where all of your "build" commands will be run.

  3. The web deployment directory. This is the directory that contains your DSpace web application(s). In DSpace 1.5.x and above, this corresponds to [dspace]/webapps by default. However, if you are using Tomcat, you may decide to copy your DSpace web applications from [dspace]/webapps/ to [tomcat]/webapps/ (with [tomcat] being wherever you installed Tomcat—also known as $CATALINA_HOME).

For details on the contents of these separate directory trees, refer to directories.html. Note that the [dspace-source] and [dspace] directories are always separate!

3.3.3. Installation

This method gets you up and running with DSpace quickly and easily. It is identical in both the Default Release and Source Release distributions.

  1. Create the DSpace user. This needs to be the same user that Tomcat (or Jetty etc.) will run as. e.g. as root run:

    useradd -m dspace
  2. Download the latest DSpace release There are two version available with each release of DSpace: (dspace-1.x-release. and dspace-1.x-src-release.xxx); you only need to choose one. If you want a copy of all underlying Java source code, you should download the dspace-1.x-src-release.xxx Within each version, you have a choice of compressed file format. Choose the one that best fits your environment.

  3. Unpack the DSpace software. After downloading the software, based on the compression file format, choose one of the following methods to unpack your software:

    1. Zip file. If you downloaded dspace-1.6-release.zip do the following:

      unzip dspace-1.6-release.zip
    2. .gz file. If you downloaded dspace-1.6-release.tar.gz do the following:

      gunzip -c dspace-1.6-release.tar.gz | tar -xf -
    3. .bz2 file. If you downloaded dspace-1.6-release.tar.bz2do the following:

      bunzip2 dspace-1.6-release.tar.bz | tar -xf -

    For ease of reference, we will refer to the location of this unzipped version of the DSpace release as [dspace-source] in the remainder of these instructions.

    [Tip]

    After unpacking the file, the user may which to change the ownership of the dspace-1.6-release to the 'dspace' user. (And you may need to change the group).

  4. Database Setup

    PostgreSQL:

    1. A PostgreSQL 8.1-404 jdbc3 driver is configured as part of the default DSpace build. You no longer need to copy any postgreSQL jars to get postgreSQL installed.

    2. Create a dspace database, owned by the dspace PostgreSQL user (you are still logged in at 'root'):

      createuser -U postgres -d -A -P dspace ; createdb -U dspace -E UNICODE dspace

      You will be prompted for a password for the DSpace database. (This isn't the same as the dspace user's UNIX password.)

    Oracle:

    1. Setting up oracle is a bit different now. You will need still need to get a Copy of the oracle JDBC driver, but instead of copying it into a lib directory you will need to install it into your local Maven repository. You'll need to download it first from this location: http://www.oracle.com/technology/software/tech/java/sqlj_jdbc/htdocs/jdbc_10201.html

      $ mvn install:install-file -Dfile=ojdbc14.jar -DgroupId=com.oracle \ -DartifactId=ojdbc14 -Dversion=10.2.0.2.0 -Dpackaging=jar -DgeneratePom=true -

    2. Create a database for DSpace. Make sure that the character set is one of the Unicode character sets. DSpace uses UTF-8 natively, and it is suggested that the Oracle database use the same character set. Create a user account for DSpace (e.g. dspace,) and ensure that it has permissions to add and remove tables in the database.

    3. Edit the [dspace-source]/dspace/config/dspace.cfg database settings:

      db.name   = oracle
      -db.url    = jdbc.oracle.thin:@//host:port/dspace
      -db.driver = oracle.jdbc.OracleDriver
  5. Initial Configuration

    Edit[dspace-source]/dspace/config/dspace.cfg, in particular you'll need to set these properties:

    dspace.dir -- must be set to the [dspace] (installation) directory.

    dspace.url -- complete URL of this server's DSpace home page.

    dspace.hostname -- fully-qualified domain name of web server.

    dspace.name -- "Proper" name of your server, e.g. "My Digital Library".

    db.password -- the database password you entered in the previous step.

    mail.server -- fully-qualified domain name of your outgoing mail server.

    mail.from.address -- the "From:" address to put on email sent by DSpace.

    feedback.recipient -- mailbox for feedback mail.

    mail.admin -- mailbox for DSpace site administrator.

    alert.recipient -- mailbox for server errors/alerts (not essential but very useful!)

    registration.notify -- mailbox for emails when new users register (optional)

    NOTE: You can interpolate the value of one configuration variable in the value of another one. For example, to set feedback.recipient to the same value as mail.admin, the line would look like:

         feedback.recipient = ${mail.admin}

    Refer to 5.2. General Configuration for details and examples of the above.

  6. DSpace Directory

    Create the directory for the DSpace installation (i.e. [dspace]). As root (or a user with appropriate permissions), run:

    mkdir [dspace]
    +							

  7. Create a database for DSpace. Make sure that the character set is one of the Unicode character sets. DSpace uses UTF-8 natively, and it is suggested that the Oracle database use the same character set. Create a user account for DSpace (e.g. dspace,) and ensure that it has permissions to add and remove tables in the database.

  8. Edit the [dspace-source]/dspace/config/dspace.cfg database settings:

    +db.name   = oracle
    +db.url    = jdbc:oracle:thin:@//host:port/dspace
    +db.driver = oracle.jdbc.OracleDriver
    +							
  • Initial Configuration

    Edit[dspace-source]/dspace/config/dspace.cfg, in particular you'll need to set these properties:

    dspace.dir -- must be set to the [dspace] (installation) directory.

    dspace.url -- complete URL of this server's DSpace home page.

    dspace.hostname -- fully-qualified domain name of web server.

    dspace.name -- "Proper" name of your server, e.g. "My Digital Library".

    db.password -- the database password you entered in the previous step.

    mail.server -- fully-qualified domain name of your outgoing mail server.

    mail.from.address -- the "From:" address to put on email sent by DSpace.

    feedback.recipient -- mailbox for feedback mail.

    mail.admin -- mailbox for DSpace site administrator.

    alert.recipient -- mailbox for server errors/alerts (not essential but very useful!)

    registration.notify -- mailbox for emails when new users register (optional)

    NOTE: You can interpolate the value of one configuration variable in the value of another one. For example, to set feedback.recipient to the same value as mail.admin, the line would look like:

         feedback.recipient = ${mail.admin}

    Refer to 5.2. General Configuration for details and examples of the above.

  • DSpace Directory

    Create the directory for the DSpace installation (i.e. [dspace]). As root (or a user with appropriate permissions), run:

    mkdir [dspace]
     chown dspace [dspace]

    (Assuming the dspace UNIX username.)

  • Installation Package

    As the dspace UNIX user, generate the DSpace installation package in the [dspace-source]/dspace directory:

    cd [dspace-source]/dspace/
     mvn package

    Note: without any extra arguments, the DSpace installation package is initialized for PostgreSQL.

    If you want to use Oracle instead, you should build the DSpace installation package as follows:

    mvn -Ddb.name=oracle package
  • Build DSpace and Initialize Database

    As the dspace UNIX user, initialize the DSpace database and install DSpace to [dspace]:

    cd [dspace-source]/dspace/target/dspace-[version]-build.dir
     
    @@ -50,7 +69,9 @@ ant fresh_install
  • Administrator Account

    Create an initial administrator account:

    [dspace]/bin/create-administrator
  • Initial Startup!

    Now the moment of truth! Start up (or restart) Tomcat/Jetty/Resin. Visit the base URL(s) of your server, depending on which DSpace web applications you want to use. You should see the DSpace home page. Congratulations!

    Base URLs of DSpace Web Applications:

    • JSP User Interface - (e.g.) http://dspace.myu.edu:8080/jspui

    • XML User Interface (aka. Manakin) - (e.g.) http://dspace.myu.edu:8080/xmlui

    • OAI-PMH Interface - (e.g.) http://dspace.myu.edu:8080/oai/request?verb=identify (Should return an XML-based response)

  • In order to set up some communities and collections, you'll need to login as your DSpace Administrator (which you created with create-administrator above) and access the administration UI in either the JSP or XML user interface.

    3.4. Advanced Installation

    The above installation steps are sufficient to set up a test server to play around with, but there are a few other steps and options you should probably consider before deploying a DSpace production site.

    3.4.1. 'cron' Jobs

    A couple of DSpace features require that a script is run regularly -- the e-mail subscription feature that alerts users of new items being deposited, and the new 'media filter' tool, that generates thumbnails of images and extracts the full-text of documents for indexing.

    To set these up, you just need to run the following command as the dspace UNIX user:

    crontab -e

    Then add the following lines:

    # Send out subscription e-mails at 01:00 every day
    +	....
  • + Administrator Account

    Create an initial administrator account:

    [dspace]/bin/create-administrator
  • + Initial Startup!

    Now the moment of truth! Start up (or restart) Tomcat/Jetty/Resin. Visit the base URL(s) of your server, depending on which DSpace web applications you want to use. You should see the DSpace home page. Congratulations!

    Base URLs of DSpace Web Applications:

    • JSP User Interface - (e.g.) http://dspace.myu.edu:8080/jspui

    • XML User Interface (aka. Manakin) - (e.g.) http://dspace.myu.edu:8080/xmlui

    • OAI-PMH Interface - (e.g.) http://dspace.myu.edu:8080/oai/request?verb=Identify (Should return an XML-based response)

  • In order to set up some communities and collections, you'll need to login as your DSpace Administrator (which you created with create-administrator above) and access the administration UI in either the JSP or XML user interface.

    3.4. Advanced Installation

    The above installation steps are sufficient to set up a test server to play around with, but there are a few other steps and options you should probably consider before deploying a DSpace production site.

    3.4.1. 'cron' Jobs

    A couple of DSpace features require that a script is run regularly -- the e-mail subscription feature that alerts users of new items being deposited, and the new 'media filter' tool, that generates thumbnails of images and extracts the full-text of documents for indexing.

    To set these up, you just need to run the following command as the dspace UNIX user:

    crontab -e

    Then add the following lines:

    # Send out subscription e-mails at 01:00 every day
     0 1 * * *  [dspace]/bin/sub-daily
     # Run the media filter at 02:00 every day
     0 2 * * *  [dspace]/bin/filter-media
    @@ -63,7 +84,7 @@ ant fresh_install
    -report- scripts run a short while after the analysis scripts to give them time to complete (a run of around 8 months worth of logs can take around 25 seconds to complete); the resulting reports will let you know how long analysis took and you can adjust your cron times accordingly.

    3.4.2. Multilingual Installation

    In order to deploy a multilingual version of DSpace you have to configure two parameters in [dspace-source]/config/dspace.cfg:

    default.locale, e. g. default.locale = en

    webui.supported locales, e. g. webui.supported.locales = en, de

    The Locales might have the form country, country_language, country_language_variant.

    Accoding to the languages you wish to support, you have to make sure, that all the i18n related files are available see the Multilingual User Interface Configuring MultiLingual Support section for the JSPUI or the Multilingual Support for XMLUI in the configuration documentation.

    3.4.3. DSpace over HTTPS

    If your DSpace is configured to have users login with a username and password (as opposed to, say, client Web certificates), then you should consider using HTTPS. Whenever a user logs in with the Web form (e.g. dspace.myuni.edu/dspace/password-login) their DSpace password is exposed in plain text on the network. This is a very serious security risk since network traffic monitoring is very common, especially at universities. If the risk seems minor, then consider that your DSpace administrators also login this way and they have ultimate control over the archive.

    The solution is to use HTTPS (HTTP over SSL, i.e. Secure Socket Layer, an encrypted transport), which protects your passwords against being captured. You can configure DSpace to require SSL on all "authenticated" transactions so it only accepts passwords on SSL connections.

    The following sections show how to set up the most commonly-used Java Servlet containers to support HTTP over SSL.

    3.4.3.1. To enable the HTTPS support in Tomcat 5.0:

    1. For Production use: Follow this procedure to set up SSL on your server. Using a "real" server certificate ensures your users' browsers will accept it without complaints.

      In the examples below, $CATALINA_BASE is the directory under which your Tomcat is installed.

      1. Create a Java keystore for your server with the password changeit, and install your server certificate under the alias "tomcat". This assumes the certificate was put in the file server.pem:

        $JAVA_HOME/bin/keytool -import -noprompt -v -storepass changeit
        +0 2 * * * [dspace]/bin/stat-report-monthly

        Obviously, you should choose execution times which are most useful to you, and you should ensure that the -report- scripts run a short while after the analysis scripts to give them time to complete (a run of around 8 months worth of logs can take around 25 seconds to complete); the resulting reports will let you know how long analysis took and you can adjust your cron times accordingly.

      3.4.2. Multilingual Installation

      In order to deploy a multilingual version of DSpace you have to configure two parameters in [dspace-source]/config/dspace.cfg:

      default.locale, e. g. default.locale = en

      webui.supported locales, e. g. webui.supported.locales = en, de

      The Locales might have the form country, country_language, country_language_variant.

      Accoding to the languages you wish to support, you have to make sure, that all the i18n related files are available see the Multilingual User Interface Configuring MultiLingual Support section for the JSPUI or the Multilingual Support for XMLUI in the configuration documentation.

      3.4.3. DSpace over HTTPS

      If your DSpace is configured to have users login with a username and password (as opposed to, say, client Web certificates), then you should consider using HTTPS. Whenever a user logs in with the Web form (e.g. dspace.myuni.edu/dspace/password-login) their DSpace password is exposed in plain text on the network. This is a very serious security risk since network traffic monitoring is very common, especially at universities. If the risk seems minor, then consider that your DSpace administrators also login this way and they have ultimate control over the archive.

      The solution is to use HTTPS (HTTP over SSL, i.e. Secure Socket Layer, an encrypted transport), which protects your passwords against being captured. You can configure DSpace to require SSL on all "authenticated" transactions so it only accepts passwords on SSL connections.

      The following sections show how to set up the most commonly-used Java Servlet containers to support HTTP over SSL.

      3.4.3.1. To enable the HTTPS support in Tomcat 5.0:

      1. For Production use: Follow this procedure to set up SSL on your server. Using a "real" server certificate ensures your users' browsers will accept it without complaints.

        In the examples below, $CATALINA_BASE is the directory under which your Tomcat is installed.

        1. Create a Java keystore for your server with the password changeit, and install your server certificate under the alias "tomcat". This assumes the certificate was put in the file server.pem:

          $JAVA_HOME/bin/keytool -import -noprompt -v -storepass changeit
           	-keystore $CATALINA_BASE/conf/keystore -alias tomcat -file
           	myserver.pem
        2. Install the CA (Certifying Authority) certificate for the CA that granted your server cert, if necessary. This assumes the server CA certificate is in ca.pem:

           $JAVA_HOME/bin/keytool -import -noprompt -storepass changeit
           	-trustcacerts -keystore $CATALINA_BASE/conf/keystore -alias ServerCA
          @@ -116,7 +137,7 @@ $JAVA_HOME/bin/keytool -genkey -alias tomcat -keyalg RSA -keysize
            $JAVA_HOME/bin/keytool -import -noprompt -storepass changeit
           	-trustcacerts -keystore $CATALINA_BASE/conf/keystore  -alias client1
           	-file client1.pem
          -
        3. Follow the procedure in the section above to add another Connector tag, for the HTTPS port, to your server.xml file.

      3.4.3.2. To use SSL on Apache HTTPD with mod_jk:

      If you choose Apache HTTPD as your primary HTTP server, you can have it forward requests to the Tomcat servlet container via Apache Jakarta Tomcat Connector. This can be configured to work over SSL as well. First, you must configure Apache for SSL; for Apache 2.0 see Apache SSL/TLS Encryption for information about using mod_ssl.

      +

    2. Follow the procedure in the section above to add another Connector tag, for the HTTPS port, to your server.xml file.

    3.4.3.2. To use SSL on Apache HTTPD with mod_jk:

    If you choose Apache HTTPD as your primary HTTP server, you can have it forward requests to the Tomcat servlet container via Apache Jakarta Tomcat Connector. This can be configured to work over SSL as well. First, you must configure Apache for SSL; for Apache 2.0 see Apache SSL/TLS Encryption for information about using mod_ssl.

    If you are using X.509 Client Certificates for authentication: add these configuration options to the appropriate httpd configuration file, e.g. ssl.conf, and be sure they are in force for the virtual host and namespace locations dedicated to DSpace:

             ##  SSLVerifyClient can be "optional" or
    @@ -127,23 +148,36 @@ $JAVA_HOME/bin/keytool -genkey -alias tomcat -keyalg RSA -keysize
     	path-to-your-client-CA-certificate
             SSLOptions StdEnvVars ExportCertData
        
    -

    Now consult the Apache Jakarta Tomcat Connector documentation to configure the mod_jk (note: NOTmod_jk2) module. Select the AJP 1.3 connector protocol. Also follow the instructions there to configure your Tomcat server to respond to AJP.

    To use SSL on Apache HTTPD with mod_webapp consult the DSpace 1.3.2 documentation. Apache have deprecated the mod_webapp connector and recommend using mod_jk.

    To use Jetty's HTTPS support consult the documentation for the relevant tool.

    3.4.4. The Handle Server

    First a few facts to clear up some common misconceptions:

    • You don't have to use CNRI's Handle system. At the moment, you need to change the code a little to use something else (e.g PURLs) but that should change soon.

    • You'll notice that while you've been playing around with a test server, DSpace has apparently been creating handles for you looking like hdl:123456789/24 and so forth. These aren't really Handles, since the global Handle system doesn't actually know about them, and lots of other DSpace test installs will have created the same IDs.

      They're only really Handles once you've registered a prefix with CNRI (see below) and have correctly set up the Handle server included in the DSpace distribution. This Handle server communicates with the rest of the global Handle infrastructure so that anyone that understands Handles can find the Handles your DSpace has created.

    If you want to use the Handle system, you'll need to set up a Handle server. This is included with DSpace. Note that this is not required in order to evaluate DSpace; you only need one if you are running a production service. You'll need to obtain a Handle prefix from the central CNRI Handle site.

    A Handle server runs as a separate process that receives TCP requests from other Handle servers, and issues resolution requests to a global server or servers if a Handle entered locally does not correspond to some local content. The Handle protocol is based on TCP, so it will need to be installed on a server that can broadcast and receive TCP on port 2641.

    1. To configure your DSpace installation to run the handle server, run the following command:

      [dspace]/bin/dspace make-handle-config

      Ensure that [dspace]/handle-server matches whatever you have in dspace.cfg for the handle.dir property.

    2. Edit the resulting [dspace]/handle-server/config.dct file to include the following lines in the "server_config" clause:

      "storage_type" = "CUSTOM"
      +

      Now consult the Apache Jakarta Tomcat Connector documentation to configure the mod_jk (note: NOTmod_jk2) module. Select the AJP 1.3 connector protocol. Also follow the instructions there to configure your Tomcat server to respond to AJP.

      To use SSL on Apache HTTPD with mod_webapp consult the DSpace 1.3.2 documentation. Apache have deprecated the mod_webapp connector and recommend using mod_jk.

      To use Jetty's HTTPS support consult the documentation for the relevant tool.

    3.4.4. The Handle Server

    First a few facts to clear up some common misconceptions:

    • You don't have to use CNRI's Handle system. At the moment, you need to change the code a little to use something else (e.g PURLs) but that should change soon.

    • You'll notice that while you've been playing around with a test server, DSpace has apparently been creating handles for you looking like hdl:123456789/24 and so forth. These aren't really Handles, since the global Handle system doesn't actually know about them, and lots of other DSpace test installs will have created the same IDs.

      They're only really Handles once you've registered a prefix with CNRI (see below) and have correctly set up the Handle server included in the DSpace distribution. This Handle server communicates with the rest of the global Handle infrastructure so that anyone that understands Handles can find the Handles your DSpace has created.

    If you want to use the Handle system, you'll need to set up a Handle server. This is included with DSpace. Note that this is not required in order to evaluate DSpace; you only need one if you are running a production service. You'll need to obtain a Handle prefix from the central CNRI Handle site.

    A Handle server runs as a separate process that receives TCP requests from other Handle servers, and issues resolution requests to a global server or servers if a Handle entered locally does not correspond to some local content. The Handle protocol is based on TCP, so it will need to be installed on a server that can broadcast and receive TCP on port 2641.

    1. To configure your DSpace installation to run the handle server, run the following command:

      [dspace]/bin/dspace make-handle-config

      Ensure that [dspace]/handle-server matches whatever you have in dspace.cfg for the handle.dir property.

    2. Edit the resulting [dspace]/handle-server/config.dct file to include the following lines in the "server_config" clause:

      "storage_type" = "CUSTOM"
       "storage_class" = "org.dspace.handle.HandlePlugin"
      -

      This tells the Handle server to get information about individual Handles from the DSpace code.

    3. Once the configuration file has been generated, you will need to go to http://hdl.handle.net/4263537/5014 to upload the generated sitebndl.zip file. The upload page will ask you for your contact information. An administrator will then create the naming authority/prefix on the root service (known as the Global Handle Registry), and notify you when this has been completed. You will not be able to continue the handle server installation until you receive further information concerning your naming authority.

    4. When CNRI has sent you your naming authority prefix, you will need to edit the config.dct file. The file will be found in /[dspace]/handle-server.

      Look for "300:0.NA/YOUR_NAMING_AUTHORITY"

      Replace YOUR_NAMING_AUTHORITY with the assigned naming authority prefix sent to you.

    5. Now start your handle server (as the dspace user):

      [dspace]/bin/start-handle-server

    Note that since the DSpace code manages individual Handles, administrative operations such as Handle creation and modification aren't supported by DSpace's Handle server.

    3.4.4.1. Updating Existing Handle Prefixes

    If you need to update the handle prefix on items created before the CNRI registration process you can run the [dspace]/bin/update-handle-prefix script. You may need to do this if you loaded items prior to CNRI registration (e.g. setting up a demonstration system prior to migrating it to production). The script takes the current and new prefix as parameters. For example:

    [dspace]/bin/update-handle-prefix 123456789 1303
    -                

    This script will change any handles currently assigned prefix 123456789 to prefix 1303, so for example handle 123456789/23 will be updated to 1303/23 in the database.

    3.4.5. Google and HTML sitemaps

    To aid web crawlers index the content within your repository, you can make use of sitemaps. There are currently two forms of sitemaps included in DSpace; Google sitemaps and HTML sitemaps.

    Sitemaps allow DSpace to expose it's content without the crawlers having to index every page. HTML sitemaps provide a list of all items, collections and communities in HTML format, whilst Google sitemaps provide the same information in gzipped XML format.

    To generate the sitemaps, you need to run [dspace]/bin/generate-sitemaps This creates the sitemaps in [dspace]/sitemaps/

    The sitemaps can be accessed from the following URLs:

    • http://dspace.example.com/dspace/sitemap - Index sitemap

    • http://dspace.example.com/dspace/sitemap?map=0 - First list of items (up to 50,000)

    • http://dspace.example.com/dspace/sitemap?map=n - Subsequent lists of items (e.g. 50,0001 to 100,000) etc...

    HTML sitemaps follow the same procedure:

    • http://dspace.example.com/dspace/htmlmap - Index sitemap

    • etc...

    When running [dspace]/bin/generate-sitemaps the script informs Google that the sitemaps have been updated. For this update to register correctly, you must first register your Google sitemap index page (/dspace/sitemap) with Google at http://www.google.com/webmasters/sitemaps/. If your DSpace server requires the use of a HTTP proxy to connect to the Internet, ensure that you have set http.proxy.host and http.proxy.port in [dspace]/config/dspace.cfg

    The URL for pinging Google, and in future, other search engines, is configured in [dspace-space]/config/dspace.cfg using the sitemap.engineurls setting where you can provide a comma-separated list of URLs to 'ping'.

    You can generate the sitemaps automatically every day using an additional cron job:

    +

    This tells the Handle server to get information about individual Handles from the DSpace code.

  • Once the configuration file has been generated, you will need to go to http://hdl.handle.net/4263537/5014 to upload the generated sitebndl.zip file. The upload page will ask you for your contact information. An administrator will then create the naming authority/prefix on the root service (known as the Global Handle Registry), and notify you when this has been completed. You will not be able to continue the handle server installation until you receive further information concerning your naming authority.

  • When CNRI has sent you your naming authority prefix, you will need to edit the config.dct file. The file will be found in /[dspace]/handle-server.

    Look for "300:0.NA/YOUR_NAMING_AUTHORITY"

    Replace YOUR_NAMING_AUTHORITY with the assigned naming authority prefix sent to you.

  • Now start your handle server (as the dspace user):

    [dspace]/bin/start-handle-server
  • Note that since the DSpace code manages individual Handles, administrative operations such as Handle creation and modification aren't supported by DSpace's Handle server.

    3.4.4.1. Updating Existing Handle Prefixes

    If you need to update the handle prefix on items created before the CNRI registration process you can run the [dspace]/bin/update-handle-prefix script. You may need to do this if you loaded items prior to CNRI registration (e.g. setting up a demonstration system prior to migrating it to production). The script takes the current and new prefix as parameters. For example:

    [dspace]/bin/update-handle-prefix 123456789 1303
    +                

    This script will change any handles currently assigned prefix 123456789 to prefix 1303, so for example handle 123456789/23 will be updated to 1303/23 in the database.

    3.4.5. Google and HTML sitemaps

    To aid web crawlers index the content within your repository, you can make use of sitemaps. There are currently two forms of sitemaps included in DSpace; Google sitemaps and HTML sitemaps.

    Sitemaps allow DSpace to expose it's content without the crawlers having to index every page. HTML sitemaps provide a list of all items, collections and communities in HTML format, whilst Google sitemaps provide the same information in gzipped XML format.

    To generate the sitemaps, you need to run [dspace]/bin/generate-sitemaps This creates the sitemaps in [dspace]/sitemaps/

    The sitemaps can be accessed from the following URLs:

    • http://dspace.example.com/dspace/sitemap - Index sitemap

    • http://dspace.example.com/dspace/sitemap?map=0 - First list of items (up to 50,000)

    • http://dspace.example.com/dspace/sitemap?map=n - Subsequent lists of items (e.g. 50,0001 to 100,000) etc...

    HTML sitemaps follow the same procedure:

    • http://dspace.example.com/dspace/htmlmap - Index sitemap

    • etc...

    When running [dspace]/bin/generate-sitemaps the script informs Google that the sitemaps have been updated. For this update to register correctly, you must first register your Google sitemap index page (/dspace/sitemap) with Google at http://www.google.com/webmasters/sitemaps/. If your DSpace server requires the use of a HTTP proxy to connect to the Internet, ensure that you have set http.proxy.host and http.proxy.port in [dspace]/config/dspace.cfg

    The URL for pinging Google, and in future, other search engines, is configured in [dspace-space]/config/dspace.cfg using the sitemap.engineurls setting where you can provide a comma-separated list of URLs to 'ping'.

    You can generate the sitemaps automatically every day using an additional cron job:

     # Generate sitemaps
     
     
     0 6 * * * [dspace]/bin/generate-sitemaps
            
    -

    3.5. Windows Installation

    3.5.1. Pre-requisite Software

    You'll need to install this pre-requisite software:

    • +

    3.4.6. DSpace Statisics

    DSpace uses the Apache Solr application underlaying the statistics. There is no need to download any separate software. All the necessary software is included. To understand all of the configuration property keys, the user should refer to 5.2.35 DSpace Statistic Configuration for detailed information.

    1. DSpace Configuration for Accessing SOLR. In the dspace.cfg file review the following fields to make sure they are uncommented:

      solr.log.server = ${dspace.baseUrl}/solr/statistics
      +solr.spidersfile = ${dspace.dir}/config/spiders.txt
      +solr.dbfile = ${dspace.dir}/config/GeoLiteCity.dat
      +useProxies = true
    2. DSpace configuration for fields indexed into Solr Event records for search. In the dspace.cfg file, review the following property keys to make sure they are uncommented:

      statistics.items.dc.1=dc.identifier
      +statistics.items.dc.2=dc.date.accessioned
      +statistics.items.type.1=dcinput
      +statistics.items.type.2=date
      +statistics.default.start.datepick = 01/01/1977
    3. Configuration Control. In the dspace.cfg set the following property key:

      statistics.item.authorization.admin=true

      This will require the user to sign on to see that statistics. Setting the statistics to "false" will make them publicly available.

    4. Final steps.

      • Perform the following step:

        +cd [dspace-source]/dspace
        +mvn package
        +cd [dspace-source]/dspace/target/dspace-<version>-build.dir
        +ant -Dconfig=[dspace]/config/dspace.cfg update
        +cp -R [dspace]/webapps/* [TOMCAT]/webapps
        +

        If you only need to build the statistics, and don't make any changes to other web applications, you can replace the copy step above with:

        cp -R [dspace]/webapps/solr [TOMCAT]/webapps

      • Restart your webapps (Tomcat/Jetty/Resin)

    3.5. Windows Installation

    3.5.1. Pre-requisite Software

    You'll need to install this pre-requisite software:

    3.5.2. Installation Steps

    1. Download the DSpace source from SourceForge and untar it (WinZip will do this)

    2. Ensure the PostgreSQL service is running, and then run pgAdmin III (Start -> PostgreSQL 8.0 -> pgAdmin III). Connect to the local database as the postgres user and:

      • Create a 'Login Role' (user) called dspace with the password dspace

      • Create a database called dspace owned by the user dspace, with UTF-8 encoding

    3. Update paths in [dspace-source]\dspace\config\dspace.cfg. Note: Use forward slashes / for path separators, though you can still use drive letters, e.g.:

      +

    3.5.2. Installation Steps

    1. Download the DSpace source from SourceForge and untar it (WinZip will do this)

    2. Ensure the PostgreSQL service is running, and then run pgAdmin III (Start -> PostgreSQL 8.0 -> pgAdmin III). Connect to the local database as the postgres user and:

      • Create a 'Login Role' (user) called dspace with the password dspace

      • Create a database called dspace owned by the user dspace, with UTF-8 encoding

    3. Update paths in [dspace-source]\dspace\config\dspace.cfg. Note: Use forward slashes / for path separators, though you can still use drive letters, e.g.:

      dspace.dir = C:/DSpace

      Make sure you change all of the parameters with file paths to suit, specifically:

               dspace.dir
      @@ -175,7 +209,7 @@ ant help
       <Context path="/oai" docBase="[dspace]\webapps\oai" debug="0"
       	reloadable="true" cachingAllowed="false"
       	allowLinking="true"/>
      -
  • Start the Tomcat service

  • Browse to either http://localhost:8080/jspui or http://localhost:8080/xmlui. You should see the DSpace home page for either the JSPUI or XMLUI, respectively.

  • 3.6. Checking Your Installation

    TODO

    3.7. Known Bugs

    In any software project of the scale of DSpace, there will be bugs. Sometimes, a stable version of DSpace includes known bugs. We do not always wait until every known bug is fixed before a release. If the software is sufficiently stable and an improvement on the previous release, and the bugs are minor and have known workarounds, we release it to enable the community to take advantage of those improvements.

    The known bugs in a release are documented in the KNOWN_BUGS file in the source package.

    Please see the DSpace bug tracker for further information on current bugs, and to find out if the bug has subsequently been fixed. This is also where you can report any further bugs you find.

    3.8. Common Problems

    In an ideal world everyone would follow the above steps and have a fully functioning DSpace. Of couse, in the real world it doesn't always seem to work out that way. This section lists common problems that people encounter when installing DSpace, and likely causes and fixes. This is likely to grow over time as we learn about users' experiences.

    Database errors occur when you run ant fresh_install

    There are two common errors that occur. If your error looks like this--

    [java] 2004-03-25 15:17:07,730 INFO 
    +
  • Start the Tomcat service

  • Browse to either http://localhost:8080/jspui or http://localhost:8080/xmlui. You should see the DSpace home page for either the JSPUI or XMLUI, respectively.

  • 3.6. Checking Your Installation

    The administrator needs to check the installation to make sure all components are working. Here is list of checks to be performed. In brackets after each item, it the associated component or components that might be the issue needing resolution.

    • System is up and running.

      User can see the DSpace home page. [Tomcat/Jetty, firewall, IP assignment, DNS]

    • Database is running and working correctly.

      Attempt to create a user, community or collection [PostgreSQL, Oracle]

      Run the test database command to see if other issues are being report:

      [dspace]/bin/dspace test-database

    • Email subsystem is running.

      The user can issue the following command to test the email system. t attempts to send a test email to the email address that is set in dspace.cfg (mail.admin). If it fails, you will get messages informing you as to why, will refer you to the DSpace documentation.

      [dspace]/bin/test-email

    3.7. Known Bugs

    In any software project of the scale of DSpace, there will be bugs. Sometimes, a stable version of DSpace includes known bugs. We do not always wait until every known bug is fixed before a release. If the software is sufficiently stable and an improvement on the previous release, and the bugs are minor and have known workarounds, we release it to enable the community to take advantage of those improvements.

    The known bugs in a release are documented in the KNOWN_BUGS file in the source package.

    Please see the DSpace bug tracker for further information on current bugs, and to find out if the bug has subsequently been fixed. This is also where you can report any further bugs you find.

    3.8. Common Problems

    In an ideal world everyone would follow the above steps and have a fully functioning DSpace. Of couse, in the real world it doesn't always seem to work out that way. This section lists common problems that people encounter when installing DSpace, and likely causes and fixes. This is likely to grow over time as we learn about users' experiences.

    Database errors occur when you run ant fresh_install

    There are two common errors that occur. If your error looks like this--

    [java] 2004-03-25 15:17:07,730 INFO 
     	    org.dspace.storage.rdbms.InitializeDatabase @ Initializing Database
     [java] 2004-03-25 15:17:08,816 FATAL
     	    org.dspace.storage.rdbms.InitializeDatabase @ Caught exception:
    @@ -199,11 +233,10 @@ psql -U dspace -W -h localhost

    Enter the dspace

    This means that the PostgreSQL JDBC driver is not present in [dspace-source]/lib. See above.

    Tomcat doesn't shut down

    If you're trying to tweak Tomcat's configuration but nothing seems to make a difference to the error you're seeing, you might find that Tomcat hasn't been shutting down properly, perhaps because it's waiting for a stale connection to close gracefully which won't happen. To see if this is the case, try:

     ps -ef | grep java

    and look for Tomcat's Java processes. If they stay arround after running Tomcat's shutdown.sh script, trying killing them (with -9 if necessary), then starting Tomcat again.

    Database connections don't work, or accessing DSpace takes forever

    If you find that when you try to access a DSpace Web page and your browser sits there connecting, or if the database connections fail, you might find that a 'zombie' database connection is hanging around preventing normal operation. To see if this is the case, try:

    ps -ef | grep postgres

    You might see some processes like this

    dspace 16325  1997  0  Feb 14  ?         0:00 postgres: dspace dspace
     	    127.0.0.1 idle in transaction

    This is normal--DSpace maintains a 'pool' of open database connections, which are re-used to avoid the overhead of constantly opening and closing connections. If they're 'idle' it's OK; they're waiting to be used. However sometimes, if something went wrong, they might be stuck in the middle of a query, which seems to prevent other connections from operating, e.g.:

    dspace 16325  1997  0  Feb 14  ?         0:00 postgres: dspace dspace
    -	    127.0.0.1 SELECT

    This means the connection is in the middle of a SELECT operation, and if you're not using DSpace right that instant, it's probably a 'zombie' connection. If this is the case, try killing the process, and stopping and restarting Tomcat.


    This means the connection is in the middle of a SELECT operation, and if you're not using DSpace right that instant, it's probably a 'zombie' connection. If this is the case, try killing the process, and stopping and restarting Tomcat.


    \ No newline at end of file +

    Licensed under a Creative Commons Attribution 3.0 United States License

    \ No newline at end of file diff --git a/dspace/docs/html/ch04.html b/dspace/docs/html/ch04.html index 28de1611b9..8711cb8acc 100644 --- a/dspace/docs/html/ch04.html +++ b/dspace/docs/html/ch04.html @@ -1,4 +1,4 @@ -Chapter 4. DSpace System Documentation: Upgrading a DSpace Installation

    Chapter 4. DSpace System Documentation: Upgrading a DSpace Installation

    This section describes how to upgrade a DSpace installation from one version to the next. Details of the differences between the functionality of each version are given in the Version History section.

    4.1. Upgrading from 1.5.x to 1.6

    In the notes below [dspace] refers to the install directory for your existing DSpace installation, and [dspace-source] to the source directory for DSpace 1.5. Whenever you see these path references, be sure to replace them with the actual path names on your local system.

    1. Backup Your DSpace. First, and foremost, make a complete backup of your system, including:

      • A snapshot of the database. To have a "snapshot" of the PostgreSQL database, you need to shut it down during the backup. You should also have your regular Postgresql Backup output.

      • The asset store ([dspace]/assetstore by default)

      • Your configuration files and customizations to DSpace (including any customized scripts).

    2. Download DSpace 1.6. Retrieve the new DSpace 1.6 source code either as a download from SourceForge or check it out directly from the SVN code repository. If you downloaded DSpace do not unpack it on top of your existing installation.

      Refer to Chapter 3.3.3 Installation, Step 3 for unpacking directives.

    3. Stop Tomcat. Take down your servlet container. For Tomcat, use the $CATALINA/shutdown.sh script. (Many installations will have a startup/shutdown script in the /etc/init.d or /etc/rc.d directories.

    4. Apply any customizations. If you have made any local customizations to your DSpace installation they will need to be migrated over to the new DSpace. These are housed in one of the following places:

      JSPUI modifications: [dspace-source]/dspace-jspui/dspace-jspui-webapp/src/main/webapp/

      XMLUI modificaitons: [dspace-source]/dspace-xmlui/dspace-xmlui-webbapp/src/main/webbapp

    5. Update Configuration Files. Some of the parameters have change and some are new. Changes will be noted below:

      • The base url and oai urls property keys are set differently **CHANGE**

        # DSpace host name - should match base URL.  Do not include port number
        +Chapter 4. DSpace System Documentation: Upgrading a DSpace Installation

        Chapter 4. DSpace System Documentation: Upgrading a DSpace Installation

        This section describes how to upgrade a DSpace installation from one version to the next. Details of the differences between the functionality of each version are given in the Version History section.

        [Warning]

        It is always recommended that when performing an upgrade that the user should use a Development or Test instance or server in order to minimize downtime. You should note any problems you have encountered (and also how to resolve them) before attempting to upgrade your production instance or server. It also gives you a chance to "practice" at the upgrade. (And practice makes perfect.)

        4.1. Upgrading from 1.5.x to 1.6

        In the notes below [dspace] refers to the install directory for your existing DSpace installation, and [dspace-source] to the source directory for DSpace 1.5. Whenever you see these path references, be sure to replace them with the actual path names on your local system.

        1. Backup Your DSpace. First, and foremost, make a complete backup of your system, including:

          • A snapshot of the database. To have a "snapshot" of the PostgreSQL database, you need to shut it down during the backup. You should also have your regular Postgresql Backup output (using pg_dump commands).

          • The asset store ([dspace]/assetstore by default)

          • Your configuration files and customizations to DSpace (including any customized scripts).

        2. Download DSpace 1.6. Retrieve the new DSpace 1.6 source code either as a download from SourceForge or check it out directly from the SVN code repository. If you downloaded DSpace do not unpack it on top of your existing installation.

          Refer to Chapter 3.3.3 Installation, Step 3 for unpacking directives.

        3. Stop Tomcat. Take down your servlet container. For Tomcat, use the $CATALINA/shutdown.sh script. (Many installations will have a startup/shutdown script in the /etc/init.d or /etc/rc.d directories.

        4. Apply any customizations. If you have made any local customizations to your DSpace installation they will need to be migrated over to the new DSpace. These are housed in one of the following places:

          JSPUI modifications: [dspace-source]/dspace/modules/jspui/src/main/webapp/

          XMLUI modificaitons: [dspace-source]/dspace/modules/xmlui/src/main/webbapp

        5. Update Configuration Files. Some of the parameters have change and some are new. Changes will be noted below:

          • **CHANGE** The base url and oai urls property keys are set differently

            # DSpace host name - should match base URL.  Do not include port number
             dspace.hostname = localhost
             
             # DSpace base host URL.  Include port number etc.
            @@ -11,23 +11,24 @@ dspace.baseUrl = http://localhost:8080
             dspace.url = ${dspace.baseUrl}/xmlui
             
             # The base URL of the OAI webapp (do not include /request).
            -dspace.oai.url = ${dspace.baseUrl}/oai
          • The PostgreSQL database property key has changed **CHANGE**

            # URL for connecting to database
            -#db.url = ${default.db.url}
            -db.url = jdbc:postgresql://localhost:5432/dspace-services
          • New email options:

            # A comma separated list of hostnames that are allowed to refer browsers to email forms.
            -# Default behaviour is to accept referrals only from dspace.hostname
            +dspace.oai.url = ${dspace.baseUrl}/oai
          • **NEW** New email options (Add these at the end of the "Email Settings" sub-section):

            # A comma separated list of hostnames that are allowed to refer browsers to
            +# email forms. Default behaviour is to accept referrals only from
            +# dspace.hostname
             #mail.allowed.referrers = localhost
             
            -# Pass extra settings to the Java mail library. Comma separated, equals sign between
            -# the key and the value.
            +# Pass extra settings to the Java mail library. Comma separated, equals sign
            +# between the key and the value.
             #mail.extraproperties = mail.smtp.socketFactory.port=465, \
            -#                       mail.smtp.socketFactory.class=javax.net.ssl.SSLSocketFactory, \
            -#                       mail.smtp.socketFactory.fallback=false
            +#                mail.smtp.socketFactory.class=javax.net.ssl.SSLSocketFactory, \
            +#                mail.smtp.socketFactory.fallback=false
             
            -# An option is added to disable the mailserver. By default, this property is set to false
            -# By setting mail.server.disabled = true, DSpace will not send out emails.
            -# It will instead log the subject of the email which should have been sent
            -# This is especially useful for development and test environments where production data is used when testing functionality.
            -#mail.server.disabled = false
          • New Authorization levels and parameters. See Section 5.2.45 in Configuration for further information.

            ##### Authorization system configuration - Delegate ADMIN #####
            +# An option is added to disable the mailserver. By default, this property is
            +# set to false. By setting mail.server.disabled = true, DSpace will not send 
            +# out emails. It will instead log the subject of the email which should have 
            +# been sent. This is especially useful for development and test environments 
            +# where production data is used when testing functionality.
            +#mail.server.disabled = false
            +
          • **NEW**New Authorization levels and parameters. See Section 5.2.45 in Configuration for further information.

            ##### Authorization system configuration - Delegate ADMIN #####
             
             # COMMUNITY ADMIN configuration
             # subcommunities and collections
            @@ -73,7 +74,7 @@ db.url = jdbc:postgresql://localhost:5432/dspace-serv
             # also bundle...
             #core.authorization.item-admin.create-bitstream = true
             #core.authorization.item-admin.delete-bitstream = true
            -#core.authorization.item-admin.cc-license = true
          • METS ingester has been revised. **CHANGE**

            # Option to make use of collection templates when using the METS ingester (default is false)
            +#core.authorization.item-admin.cc-license = true
          • **CHANGE** METS ingester has been revised. (Modify In "Crosswalk and Pacakger Plugin Settings")

            # Option to make use of collection templates when using the METS ingester (default is false)
             mets.submission.useCollectionTemplate = false
             
             # Crosswalk Plugins:
            @@ -96,14 +97,14 @@ plugin.named.org.dspace.content.crosswalk.DisseminationCrosswalk = \
               org.dspace.content.crosswalk.METSDisseminationCrosswalk = mets \
               org.dspace.content.crosswalk.OREDisseminationCrosswalk = ore \
               org.dspace.content.crosswalk.QDCCrosswalk = qdc \
            -  org.dspace.content.crosswalk.DIMDisseminationCrosswalk = dim
          • Event Settings have had the following revision with the addition of 'harvester': **CHANGE**

            #### Event System Configuration ####
            +  org.dspace.content.crosswalk.DIMDisseminationCrosswalk = dim
          • **CHANGE** Event Settings have had the following revision with the addition of 'harvester' (modify in "Event System Configuration"):

            #### Event System Configuration ####
             
             # default synchronous dispatcher (same behavior as traditional DSpace)
             event.dispatcher.default.class = org.dspace.event.BasicDispatcher
             event.dispatcher.default.consumers = search, browse, eperson, harvester

            also:

            # consumer to clean up harvesting data
             event.consumer.harvester.class = org.dspace.harvest.HarvestConsumer
             event.consumer.harvester.filters = Item+Delete
            -
          • New option for the Embargo of Thesis and Disserations.

            #### Embargo Settings ####
            +
          • **NEW** New option for the Embargo of Thesis and Dissertations.

            #### Embargo Settings ####
             # DC metadata field to hold the user-supplied embargo terms
             embargo.field.terms = SCHEMA.ELEMENT.QUALIFIER
             
            @@ -113,11 +114,15 @@ embargo.field.lift = SCHEMA.ELEMENT.QUALIFIER
             # string in terms field to indicate indefinite embargo
             embargo.terms.open = forever
             
            -# implementation of embargo setter plugin - replace with local implementation if applicable
            -plugin.single.org.dspace.embargo.EmbargoSetter = org.dspace.embargo.DefaultEmbargoSetter
            +# implementation of embargo setter plugin--replace with local implementation if
            +# applicable
            +plugin.single.org.dspace.embargo.EmbargoSetter = \
            +				org.dspace.embargo.DefaultEmbargoSetter
             
            -# implementation of embargo lifter plugin - - replace with local implementation if applicable
            -plugin.single.org.dspace.embargo.EmbargoLifter = org.dspace.embargo.DefaultEmbargoLifter
          • New option for using the Batch Editing capabilities. See Section 5.2.46 in Configuration and also 8.10 in System Administration

            ### Bulk metadata editor settings ###
            +# implementation of embargo lifter plugin--replace with local implementation if 
            +# applicable
            +plugin.single.org.dspace.embargo.EmbargoLifter = \
            +				org.dspace.embargo.DefaultEmbargoLifter
          • **NEW** New option for using the Batch Editing capabilities. See Section 5.2.46 in Configuration and also 8.10 in System Administration

            ### Bulk metadata editor settings ###
             # The delimiter used to separate values within a single field (defaults to a double pipe ||)
             # bulkedit.valueseparator = ||
             
            @@ -128,10 +133,10 @@ plugin.single.org.dspace.embargo.EmbargoLifter = org.dspace.embargo.DefaultEmbar
             # (does not apply to the command line version)
             # bulkedit.gui-item-limit = 20
             
            -# Metadata elements to exclude when exporting via the user interfaces, or when using the
            -# command line version and not using the -a (all) option.
            +# Metadata elements to exclude when exporting via the user interfaces, or when 
            +# using the command line version and not using the -a (all) option.
             # bulkedit.ignore-on-export = dc.date.accessioned, dc.date.available, \
            -#                             dc.date.updated, dc.description.provenance
          • Ability to hide metadata fields is now available.

            ##### Hide Item Metadata Fields  #####
            +#                             dc.date.updated, dc.description.provenance
          • **NEW** Ability to hide metadata fields is now available. (Look for "JSPUI & XMLUI Configurations" Section)

            ##### Hide Item Metadata Fields  #####
             # Fields named here are hidden in the following places UNLESS the
             # logged-in user is an Administrator:
             #  1. XMLUI metadata XML view, and Item splash pages (long and short views).
            @@ -145,7 +150,7 @@ plugin.single.org.dspace.embargo.EmbargoLifter = org.dspace.embargo.DefaultEmbar
             # since that usually contains email addresses which ought to be kept
             # private and is mainly of interest to administrators:
             metadata.hide.dc.description.provenance = true
            -
          • New Choice Control and Authority Control options are available

            ## example of authority-controlled browse category - see authority control config
            +
          • **NEW**Choice Control and Authority Control options are available (Look for "JSPUI & XMLUI Configurations" Section):

            ## example of authority-controlled browse category--see authority control config
             #webui.browse.index.5 = lcAuthor:metadataAuthority:dc.contributor.author:authority
             

            And also:

            #####  Authority Control Settings  #####
             
            @@ -211,7 +216,7 @@ authority.minconfidence = ambiguous
             # choices.presentation.dc.language.iso = select
             
             # Change number of choices shown in the select in Choices lookup popup
            -#xmlui.lookup.select.size = 12
          • RSS Feeds now support Atom 1.0

            #### Syndication Feed (RSS) Settings ######
            +#xmlui.lookup.select.size = 12
          • **REPLACE** RSS Feeds now support Atom 1.0. Replace its previous configuration with the one below:

            #### Syndication Feed (RSS) Settings ######
             
             # enable syndication feeds - links display on community and collection home pages
             # (This setting is not used by XMLUI, as you enable feeds in your theme)
            @@ -254,8 +259,8 @@ webui.feed.item.date = dc.date.issued
             #        "metadata.dc.contributor.author"
             #        "metadata.dc.date.issued"
             webui.feed.item.description = dc.title, dc.contributor.author, \
            -                                                          dc.contributor.editor, dc.description.abstract, \
            -                                                          dc.description
            +               dc.contributor.editor, dc.description.abstract, \
            +               dc.description
             # name of field to use for authors (Atom only) - repeatable
             webui.feed.item.author = dc.contributor.author
             
            @@ -272,7 +277,7 @@ webui.feed.item.author = dc.contributor.author
             
             # Customize the image icon included with the site-wide feeds:
             # Must be an absolute URL, e.g.
            -## webui.feed.logo.url = ${dspace.url}/themes/mysite/images/mysite-logo.png
          • Opensearch Feature is new to DSpace

            #### OpenSearch Settings ####
            +## webui.feed.logo.url = ${dspace.url}/themes/mysite/images/mysite-logo.png
          • **NEW** Opensearch Feature is new to DSpace

            #### OpenSearch Settings ####
             # NB: for result data formatting, OpenSearch uses Syndication Feed Settings
             # so even if Syndication Feeds are not enabled, they must be configured
             # enable open search
            @@ -301,14 +306,14 @@ websvc.opensearch.tags = IR DSpace
             # result formats offered - use 1 or more comma-separated from: html,atom,rss
             # NB: html is required for autodiscovery in browsers to function,
             # and must be the first in the list if present
            -websvc.opensearch.formats = html,atom,rss
          • Exposure of METS metadata can be now hidden.

            # When exposing METS/MODS via OAI-PMH all metadata that can be mapped to MODS
            +websvc.opensearch.formats = html,atom,rss
          • **NEW** Exposure of METS metadata can be now hidden. (See "OAI-PMH SPECIFIC CONFIGURATIONS" in the dspace.cfg file)

            # When exposing METS/MODS via OAI-PMH all metadata that can be mapped to MODS
             # is exported. This includes description.provenance which can contain personal
             # email addresses and other information not intended for public consumption. To
             # hide this information set the following property to true
             oai.mets.hide-provenance = true
            -
          • SWORD has added the following to accept MIME/types.

            # A comma separated list of MIME types that SWORD will accept
            +
          • **NEW** SWORD has added the following to accept MIME/types. (See "SWORD Specific Configurations" Section)

            # A comma separated list of MIME types that SWORD will accept
             sword.accepts = application/zip
            -
          • New OAI Harvesting Configuration settings are now available.

            #---------------------------------------------------------------#
            +
          • **NEW** New OAI Harvesting Configuration settings are now available. (See "OAI Harvesting Configurations"

            #---------------------------------------------------------------#
             #--------------OAI HARVESTING CONFIGURATIONS--------------------#
             #---------------------------------------------------------------#
             # These configs are only used by the OAI-ORE related functions  #
            @@ -322,15 +327,33 @@ harvester.oai.metadataformats.dc = http://www.openarchives.org/OAI/2.0/oai_dc/,
             harvester.oai.metadataformats.qdc = http://purl.org/dc/terms/, Qualified Dublin Core
             harvester.oai.metadataformats.dim = http://www.dspace.org/xmlns/dspace/dim, DSpace Intermediate Metadata
             
            +# This field works in much the same way as harvester.oai.metadataformats.PluginName
            +# The {name} must correspond to a declared ingestion crosswalk, while the
            +# {namespace} must be supported by the target OAI-PMH provider when harvesting content.
            +# harvester.oai.oreSerializationFormat.{name} = {namespace}
            +
             # Determines whether the harvester scheduling process should be started
             # automatically when the DSpace webapp is deployed.
             # default: false
             harvester.autoStart=false
             
            +# Amount of time subtracted from the from argument of the PMH request to account 
            +# for the time taken to negotiate a connection. Measured in seconds. Default value is 120.
            +#harvester.timePadding = 120
            +
             # How frequently the harvest scheduler checks the remote provider for updates,
             # messured in minutes. The default vaule is 12 hours (or 720 minutes)
             #harvester.harvestFrequency = 720
             
            +# The heartbeat is the frequency at which the harvest scheduler queries the local 
            +# database to determine if any collections are due for a harvest cycle (based on 
            +# the harvestFrequency) value. The scheduler is optimized to then sleep until the 
            +# next collection is actually ready to be harvested. The minHeartbeat and 
            +# maxHeartbeat are the lower and upper bounds on this timeframe. Measured in seconds. 
            +# Default minHeartbeat is 30.  Default maxHeartbeat is 3600.
            +#harvester.minHeartbeat = 30
            +#harvester.maxHeartbeat = 3600
            +
             # How many harvest process threads the scheduler can spool up at once. Default value is 3.
             #harvester.maxThreads = 3
             
            @@ -347,6 +370,31 @@ harvester.autoStart=false
             harvester.unknownField  = add
             harvester.unknownSchema = fail
             
            +# The webapp responsible for minting the URIs for ORE Resource Maps.
            +# If using oai, the dspace.oai.uri config value must be set.
            +# The URIs generated for ORE ReMs follow the following convention for both cases.
            +# format: [baseURI]/metadata/handle/[theHandle]/ore.xml
            +# Default value is oai
            +#ore.authoritative.source = oai
            +
            +# A harvest process will attempt to scan the metadata of the incoming items
            +# (dc.identifier.uri field, to be exact) to see if it looks like a handle.
            +# If so, it matches the pattern against the values of this parameter.
            +# If there is a match the new item is assigned the handle from the metadata value
            +# instead of minting a new one. Default value: hdl.handle.net
            +#harvester.acceptedHandleServer = hdl.handle.net, handle.myu.edu
            +
            +# Pattern to reject as an invalid handle prefix (known test string, for example)
            +# when attempting to find the handle of harvested items. If there is a match with
            +# this config parameter, a new handle will be minted instead. Default value: 123456789.
            +#harvester.rejectedHandlePrefix = 123456789, myTestHandle
            +						
          • **NEW** SOLR Statistics Configurations.

            For a little more detailed information regarding the configuration, please refer to Section 5.2.35 DSpace Statistics; or, for installation procedures, refer to Section 3.4.6 Dspace Statistcs.

            +#---------------------------------------------------------------#
            +#--------------SOLR STATISTICS CONFIGURATIONS-------------------#
            +#---------------------------------------------------------------#
            +# These configs are only used by the SOLR interface/webapp to   #
            +# track usage statistics.                                       #
            +#---------------------------------------------------------------#
             
             ##### Usage Logging #####
             solr.log.server = ${dspace.baseUrl}/solr/statistics
            @@ -360,12 +408,14 @@ statistics.items.type.1=dcinput
             statistics.items.type.2=date
             statistics.default.start.datepick = 01/01/1977
             
            -statistics.item.authorization.admin=true
        6. Apply any Customizations. If you have made any local customizations to your DSpace installation they will need to be migrated over to the new DSpace. Commonly these are customizations to the JSPUI or Manakin (XMLUI) interface pages.

        7. Build DSpace. Run the following commands to compile DSpace.:

          cd /[dspace-source]/dspace/
          -mv package

          You will find the result in [dspace-source]/dspace/target/dspace-[version]-build.dir . Inside this directory is the compiled binary distribution of DSpace.

        8. Update the database. The database schema needs to be updated to accommodate changes to the database. SQL files contain the relevant updates are provided. Please note that if you have made any local customizations to the database schema, you should consult these updates and make sure they will work for you.

          • For PostgreSQL:

            psql -U [dspace-user] -f [dspace-source]/dspace/etc/postgres/schema_15_16.sql

          • For Oracle:

            Execute the upgrade script, e.g. with sqlplus, recording the output:

            1. Start SQL*Plus with "sqlplus [connect args]"

            2. Record the ouput:

              SQL> spool 'upgrade.lst'

            3. Run the upgrade script

              SQL> @[dspace-source]/dspace/etc/oracle/database_schema_15_16.sql

              SQL> spool off

            4. Please note: The final few statements WILL FAIL. That is because you have run some queries and use the results to construct the statements to remove the constraints, manually—Oracle doesn't have any easy way to automate this (unless you know PL/SQL). So, look for the coment line beginning:

              "--You need to remove the already in place constraints"
              +statistics.item.authorization.admin=true
        9. Build DSpace. Run the following commands to compile DSpace.:

          cd /[dspace-source]/dspace/
          +mvn -U clean package

          You will find the result in [dspace-source]/dspace/target/dspace-[version]-build.dir . Inside this directory is the compiled binary distribution of DSpace.

          [Note]

          Before rebuilding DSpace, the above command will clean out any previously compiled code ('clean') and ensure that your local DSpace JAR files are updated from the remote maven respository.

        10. Update the database. The database schema needs to be updated to accommodate changes to the database. SQL files contain the relevant updates are provided. Please note that if you have made any local customizations to the database schema, you should consult these updates and make sure they will work for you.

          • For PostgreSQL:

            psql -U [dspace-user] -f [dspace-source]/dspace/etc/postgres/schema_15_16.sql [database name] (Your database name is by default 'dspace'). Example:

            psql -U dspace -f /dspace-1.6-rc1-src-release/dspace/etc/postgres/schema_15_16.sql dspace

          • For Oracle:

            Execute the upgrade script, e.g. with sqlplus, recording the output:

            1. Start SQL*Plus with "sqlplus [connect args]"

            2. Record the ouput:

              SQL> spool 'upgrade.lst'

            3. Run the upgrade script

              SQL> @[dspace-source]/dspace/etc/oracle/database_schema_15_16.sql

              SQL> spool off

            4. Please note: The final few statements WILL FAIL. That is because you have run some queries and use the results to construct the statements to remove the constraints, manually—Oracle doesn't have any easy way to automate this (unless you know PL/SQL). So, look for the coment line beginning:

              "--You need to remove the already in place constraints"
               and follow the instructions in the actual SQL file.
               Refer to the contents of the spool file "upgrade.lst" for
               the output of the queries you'll need.
        11. Update DSpace. Update the DSpace installed directory with the new code and libraries. Issue the following commands:

          cd [dspace-source]/dspace/target/dspace-[version]-build.dir
          -ant -Dconfig=[dspace]/config/dspace.cfg update
        12. Generate Browse and Search Indexes. It makes good policy to rebuild your search and browse indexes when upgrading to a new release. Almost every release has database changes and indexes can be affected by this. In the DSpace 1.6 release there is Authority Control features and those will need the indexes to be regenerated. To do this, run the following command from your DSpace install directory (as the dspace user):

          [dspace]/bin/dspace index-init

        13. Deploy Web Applications. Copy the web applications files from your [dspace]/webapps directory to the subdirectory of your servlet container (e.g. tomcat):

          cp -R [dspace]/webapps/* [tomcat]/webapps/

        4.2. Upgrading From 1.5 or 1.5.1 to 1.5.2

        The changes in DSpace 1.5.2 do not include any database schema upgrades, and the upgrade should be straightforward.

        In the notes below [dspace] refers to the install directory for your existing DSpace installation, and [dspace-source] to the source directory for DSpace 1.5. Whenever you see these path references, be sure to replace them with the actual path names on your local system.

        1. Backup your DSpace First and foremost, make a complete backup of your system, including:

          • A snapshot of the database

          • The asset store ([dspace]/assetstore by default)

          • Your configuration files and customizations to DSpace

          • Your statistics scripts ([dspace]/bin/stat*) which contain customizable dates

        2. Download DSpace 1.5.2 Get the new DSpace 1.5.2 source code either as a download from SourceForge or check it out directly from the SVN code repository. If you downloaded DSpace do not unpack it on top of your existing installation.

        3. Build DSpace Run the following commands to compile DSpace.

          +ant -Dconfig=[dspace]/config/dspace.cfg update
        4. Rolling Log Aappender Upgrade. You will want to upgrade your logs to the new format to use the SOLR Statistics now included with DSpace. While the commands for this are cound in Chapter 8, here is the steps needed to be performed.

          [dspace]/bin/dspace log-converter -i input file name -o output file name -m (if you have more than one dspace.log file)
          +[dspace]/bin/dspace log-importer -i input file name (probably the output name from above) -m 
          +

          The user is highly recommend to see DSpace Log Converter.

        5. Generate Browse and Search Indexes. It makes good policy to rebuild your search and browse indexes when upgrading to a new release. Almost every release has database changes and indexes can be affected by this. In the DSpace 1.6 release there is Authority Control features and those will need the indexes to be regenerated. To do this, run the following command from your DSpace install directory (as the dspace user):

          [dspace]/bin/dspace index-init

        6. Deploy Web Applications. Copy the web applications files from your [dspace]/webapps directory to the subdirectory of your servlet container (e.g. tomcat):

          cp -R [dspace]/webapps/* [tomcat]/webapps/

        7. Restart servlet. Now restart your Tomcat/Jetty/Resin server program and test out the upgrade.

        4.2. Upgrading From 1.5 or 1.5.1 to 1.5.2

        The changes in DSpace 1.5.2 do not include any database schema upgrades, and the upgrade should be straightforward.

        In the notes below [dspace] refers to the install directory for your existing DSpace installation, and [dspace-source] to the source directory for DSpace 1.5. Whenever you see these path references, be sure to replace them with the actual path names on your local system.

        1. Backup your DSpace First and foremost, make a complete backup of your system, including:

          • A snapshot of the database

          • The asset store ([dspace]/assetstore by default)

          • Your configuration files and customizations to DSpace

          • Your statistics scripts ([dspace]/bin/stat*) which contain customizable dates

        2. Download DSpace 1.5.2 Get the new DSpace 1.5.2 source code either as a download from SourceForge or check it out directly from the SVN code repository. If you downloaded DSpace do not unpack it on top of your existing installation.

        3. Build DSpace Run the following commands to compile DSpace.

             cd [dspace-source]/dspace/
             mvn package
           

          You will find the result in [dspace-source]/dspace/target/dspace-1.5.2-build.dir/; inside this directory is the compiled binary distribution of DSpace.

        4. Stop Tomcat Take down your servlet container, for Tomcat use the bin/shutdown.sh script.

        5. Apply any customizations If you have made any local customizations to your DSpace installation they will need to be migrated over to the new DSpace. Commonly these modifications are made to "JSP" pages located inside the [dspace 1.4.2]/jsp/local directory. These should be moved [dspace-source]/dspace/modules/jspui/src/main/webapp/ in the new build structure. See Customizing the JSP Pages for more information.

        6. Update DSpace Update the DSpace installed directory with new code and libraries. Inside the [dspace-source]/dspace/target/dspace-1.5-build.dir/ directory run:

          @@ -743,7 +793,7 @@ plugin.named.org.dspace.sword.SWORDIngester = \
             org.dspace.sword.SWORDMETSIngester =
           http://purl.org/net/sword-types/METSDSpaceSIP \
             org.dspace.sword.SimpleFileIngester = SimpleFileIngester
          -
    6. Restart Tomcat Restart your servlet container, for Tomcat use the bin/startup.sh script.

    4.3. Upgrading From 1.4.2 to 1.5

    The changes in DSpace 1.5 are significant and wide spread involving database schema upgrades, code restructuring, completely new user and programatic interfaces, and new build system.

    In the notes below [dspace] refers to the install directory for your existing DSpace installation, and [dspace-source] to the source directory for DSpace 1.5. Whenever you see these path references, be sure to replace them with the actual path names on your local system.

    1. Backup your DSpace First and foremost, make a complete backup of your system, including:

      • A snapshot of the database

      • The asset store ([dspace]/assetstore by default)

      • Your configuration files and customizations to DSpace

      • Your statistics scripts ([dspace]/bin/stat*) which contain customizable dates

    2. Download DSpace 1.5 Get the new DSpace 1.5 source code either as a download from SourceForge or check it out directly from the SVN code repository. If you downloaded DSpace do not unpack it on top of your existing installation.

    3. Build DSpace The build process has radically changed for DSpace 1.5. With this new release the build system has moved to a maven-based system enabling the various projects (JSPUI, XMLUI, OAI, and Core API) into separate projects. See the Installation section for more information on building DSpace using the new maven-based build system. Run the following commands to compile DSpace.

      +
  • Restart Tomcat Restart your servlet container, for Tomcat use the bin/startup.sh script.

  • 4.3. Upgrading From 1.4.2 to 1.5

    The changes in DSpace 1.5 are significant and wide spread involving database schema upgrades, code restructuring, completely new user and programatic interfaces, and new build system.

    In the notes below [dspace] refers to the install directory for your existing DSpace installation, and [dspace-source] to the source directory for DSpace 1.5. Whenever you see these path references, be sure to replace them with the actual path names on your local system.

    1. Backup your DSpace First and foremost, make a complete backup of your system, including:

      • A snapshot of the database

      • The asset store ([dspace]/assetstore by default)

      • Your configuration files and customizations to DSpace

      • Your statistics scripts ([dspace]/bin/stat*) which contain customizable dates

    2. Download DSpace 1.5 Get the new DSpace 1.5 source code either as a download from SourceForge or check it out directly from the SVN code repository. If you downloaded DSpace do not unpack it on top of your existing installation.

    3. Build DSpace The build process has radically changed for DSpace 1.5. With this new release the build system has moved to a maven-based system enabling the various projects (JSPUI, XMLUI, OAI, and Core API) into separate projects. See the Installation section for more information on building DSpace using the new maven-based build system. Run the following commands to compile DSpace.

         cd [dspace-source]/dspace/;
         mvn package
       

      You will find the result in [dspace-source]/dspace/target/dspace-1.5-build.dir/; inside this directory is the compiled binary distribution of DSpace.

    4. Stop Tomcat Take down your servlet container, for Tomcat use the bin/shutdown.sh script.

    5. Update dspace.cfg Serveral new parameters need to be added to your [dspace]/config/dspace.cfg. While it is advisable to start with a fresh DSpace 1.5 dspace.cfg configuration file here are the minimum set of parameters that need to be added to an old DSpace 1.4.2 configuration.

      @@ -876,7 +926,7 @@ cp [dspace-source]/dspace/config/registries/sword-metadata.xml
       					start.month = 1
       				

      Replace '2005' and '1' as with the values you noted down.

      dstat.cfg also used to contain the hostname and service name as displayed at the top of the statistics. These values are now taken from dspace.cfg so you can remove host.name and host.url from dstat.cfg if you wish. The values now used are dspace.hostname and dspace.name from dspace.cfg

    6. Deploy webapplications Copy the webapplications files from your [dspace]/webapps directory to the subdirectory of your servlet container (e.g. Tomcat):

       cp [dspace]/webapps/* [tomcat]/webapps/
      -
    7. Restart Tomcat Restart your servlet container, for Tomcat use the bin/startup.sh script.

    4.4. Upgrading From 1.4.1 to 1.4.2

    See Upgrading From 1.4 to 1.4.x; the same instructions apply.

    4.5. Upgrading From 1.4 to 1.4.x

    The changes in 1.4.x releases are only code and configuration changes so the update is simply a matter of rebuilding the wars and slight changes to your config file.

    In the notes below [dspace] refers to the install directory for your existing DSpace installation, and [dspace-1.4.x-source] to the source directory for DSpace 1.4.x. Whenever you see these path references, be sure to replace them with the actual path names on your local system.

    1. Get the new DSpace 1.4.x source code from the DSpace page on SourceForge and unpack it somewhere. Do not unpack it on top of your existing installation!!

    2. Copy the PostgreSQL driver JAR to the source tree. For example:

      +
    3. Restart Tomcat Restart your servlet container, for Tomcat use the bin/startup.sh script.

    4.4. Upgrading From 1.4.1 to 1.4.2

    See Upgrading From 1.4 to 1.4.x; the same instructions apply.

    4.5. Upgrading From 1.4 to 1.4.x

    The changes in 1.4.x releases are only code and configuration changes so the update is simply a matter of rebuilding the wars and slight changes to your config file.

    In the notes below [dspace] refers to the install directory for your existing DSpace installation, and [dspace-1.4.x-source] to the source directory for DSpace 1.4.x. Whenever you see these path references, be sure to replace them with the actual path names on your local system.

    1. Get the new DSpace 1.4.x source code from the DSpace page on SourceForge and unpack it somewhere. Do not unpack it on top of your existing installation!!

    2. Copy the PostgreSQL driver JAR to the source tree. For example:

       cd  [dspace]/lib
       cp postgresql.jar  [dspace-1.4.x-source]/lib
       
    3. Note: Licensing conditions for the handle.jar file have changed. As a result, the latest version of the handle.jar file is not included in this distribution. It is recommended you read the new license conditions and decide whether you wish to update your installation's handle.jar. If you decide to update, you should replace the existing handle.jar in [dspace-1.4.x-source]/lib with the new version.

    4. Take down Tomcat (or whichever servlet container you're using).

    5. A new configuration item webui.html.max-depth-guess has been added to avoid infinite URL spaces. Add the following to the dspace.cfg file:

      @@ -904,7 +954,7 @@ ant -Dconfig= [dspace]/config/dspace.cfg
       
    6. Copy the .war Web application files in [dspace-1.4.x-source]/build to the webapps sub-directory of your servlet container (e.g. Tomcat). e.g.:

       cp  [dspace-1.4.x-source]/build/*.war 
       	[tomcat]/webapps
      -

      If you're using Tomcat, you need to delete the directories corresponding to the old .war files. For example, if dspace.war is installed in [tomcat]/webapps/dspace.war, you should delete the [tomcat]/webapps/dspace directory. Otherwise, Tomcat will continue to use the old code in that directory.

    7. Restart Tomcat.

    4.6. Upgrading From 1.3.2 to 1.4.x

    1. First and foremost, make a complete backup of your system, including:

      • A snapshot of the database

      • The asset store ([dspace]/assetstore by default)

      • Your configuration files and localized JSPs

    2. Download the latest DSpace 1.4.x source bundle and unpack it in a suitable location (not over your existing DSpace installation or source tree!)

    3. Copy the PostgreSQL driver JAR to the source tree. For example:

      +

      If you're using Tomcat, you need to delete the directories corresponding to the old .war files. For example, if dspace.war is installed in [tomcat]/webapps/dspace.war, you should delete the [tomcat]/webapps/dspace directory. Otherwise, Tomcat will continue to use the old code in that directory.

    4. Restart Tomcat.

    4.6. Upgrading From 1.3.2 to 1.4.x

    1. First and foremost, make a complete backup of your system, including:

      • A snapshot of the database

      • The asset store ([dspace]/assetstore by default)

      • Your configuration files and localized JSPs

    2. Download the latest DSpace 1.4.x source bundle and unpack it in a suitable location (not over your existing DSpace installation or source tree!)

    3. Copy the PostgreSQL driver JAR to the source tree. For example:

       cd  [dspace]/lib
       cp postgresql.jar  [dspace-1.4.x-source]/lib
       
    4. Note: Licensing conditions for the handle.jar file have changed. As a result, the latest version of the handle.jar file is not included in this distribution. It is recommended you read the new license conditions and decide whether you wish to update your installation's handle.jar. If you decide to update, you should replace the existing handle.jar in [dspace-1.4.x-source]/lib with the new version.

    5. Take down Tomcat (or whichever servlet container you're using).

    6. Your DSpace configuration will need some updating:

      • In dspace.cfg, paste in the following lines for the new stackable authentication feature, the new method for managing Media Filters, and the Checksum Checker.

        @@ -997,7 +1047,7 @@ ant -Dconfig= [dspace]/config/dspace.cfg
         				

      • Copy the .war Web application files in [dspace-1.4-source]/build to the webapps sub-directory of your servlet container (e.g. Tomcat). e.g.:

         cp  [dspace-1.4-source]/build/*.war 
         	[tomcat]/webapps
        -

        If you're using Tomcat, you need to delete the directories corresponding to the old .war files. For example, if dspace.war is installed in [tomcat]/webapps/dspace.war, you should delete the [tomcat]/webapps/dspace directory. Otherwise, Tomcat will continue to use the old code in that directory.

      • Restart Tomcat.

    4.7. Upgrading From 1.3.1 to 1.3.2

    The changes in 1.3.2 are only code changes so the update is simply a matter of rebuilding the wars.

    In the notes below [dspace] refers to the install directory for your existing DSpace installation, and [dspace-1.3.2-source] to the source directory for DSpace 1.3.2. Whenever you see these path references, be sure to replace them with the actual path names on your local system.

    1. Get the new DSpace 1.3.2 source code from the DSpace page on SourceForge and unpack it somewhere. Do not unpack it on top of your existing installation!!

    2. Copy the PostgreSQL driver JAR to the source tree. For example:

      +

      If you're using Tomcat, you need to delete the directories corresponding to the old .war files. For example, if dspace.war is installed in [tomcat]/webapps/dspace.war, you should delete the [tomcat]/webapps/dspace directory. Otherwise, Tomcat will continue to use the old code in that directory.

    3. Restart Tomcat.

    4.7. Upgrading From 1.3.1 to 1.3.2

    The changes in 1.3.2 are only code changes so the update is simply a matter of rebuilding the wars.

    In the notes below [dspace] refers to the install directory for your existing DSpace installation, and [dspace-1.3.2-source] to the source directory for DSpace 1.3.2. Whenever you see these path references, be sure to replace them with the actual path names on your local system.

    1. Get the new DSpace 1.3.2 source code from the DSpace page on SourceForge and unpack it somewhere. Do not unpack it on top of your existing installation!!

    2. Copy the PostgreSQL driver JAR to the source tree. For example:

       cd  [dspace]/lib
       cp postgresql.jar  [dspace-1.3.2-source]/lib
       
    3. Take down Tomcat (or whichever servlet container you're using).

    4. Your 'localized' JSPs (those in jsp/local) now need to be maintained in the source directory. If you have locally modified JSPs in your [dspace]/jsp/local directory, you will need to merge the changes in the new 1.3.2 versions into your locally modified ones. You can use the diff command to compare the 1.3.1 and 1.3.2 versions to do this.

    5. In [dspace-1.3.2-source] run:

      @@ -1005,7 +1055,7 @@ ant -Dconfig= [dspace]/config/dspace.cfg
       
    6. Copy the .war Web application files in [dspace-1.3.2-source]/build to the webapps sub-directory of your servlet container (e.g. Tomcat). e.g.:

       cp  [dspace-1.3.2-source]/build/*.war 
       	[tomcat]/webapps
      -

      If you're using Tomcat, you need to delete the directories corresponding to the old .war files. For example, if dspace.war is installed in [tomcat]/webapps/dspace.war, you should delete the [tomcat]/webapps/dspace directory. Otherwise, Tomcat will continue to use the old code in that directory.

    7. Restart Tomcat.

    4.8. Upgrading From 1.2.x to 1.3.x

    In the notes below [dspace] refers to the install directory for your existing DSpace installation, and [dspace-1.3.x-source] to the source directory for DSpace 1.3.x. Whenever you see these path references, be sure to replace them with the actual path names on your local system.

    1. Step one is, of course, to back up all your data before proceeding!! Include all of the contents of [dspace] and the PostgreSQL database in your backup.

    2. Get the new DSpace 1.3.x source code from the DSpace page on SourceForge and unpack it somewhere. Do not unpack it on top of your existing installation!!

    3. Copy the PostgreSQL driver JAR to the source tree. For example:

      +

      If you're using Tomcat, you need to delete the directories corresponding to the old .war files. For example, if dspace.war is installed in [tomcat]/webapps/dspace.war, you should delete the [tomcat]/webapps/dspace directory. Otherwise, Tomcat will continue to use the old code in that directory.

    4. Restart Tomcat.

    4.8. Upgrading From 1.2.x to 1.3.x

    In the notes below [dspace] refers to the install directory for your existing DSpace installation, and [dspace-1.3.x-source] to the source directory for DSpace 1.3.x. Whenever you see these path references, be sure to replace them with the actual path names on your local system.

    1. Step one is, of course, to back up all your data before proceeding!! Include all of the contents of [dspace] and the PostgreSQL database in your backup.

    2. Get the new DSpace 1.3.x source code from the DSpace page on SourceForge and unpack it somewhere. Do not unpack it on top of your existing installation!!

    3. Copy the PostgreSQL driver JAR to the source tree. For example:

      cd [dspace]/lib

      cp postgresql.jar [dspace-1.2.2-source]/lib @@ -1040,7 +1090,7 @@ report.dir = /dspace/reports/ [dspace]/bin/index-all

    4. Copy the .war Web application files in [dspace-1.3.x-source]/build to the webapps sub-directory of your servlet container (e.g. Tomcat). e.g.:

      cp [dspace-1.3.x-source]/build/*.war [tomcat]/webapps -

    5. Restart Tomcat.

    4.9. Upgrading From 1.2.1 to 1.2.2

    The changes in 1.2.2 are only code and config changes so the update should be fairly simple.

    In the notes below [dspace] refers to the install directory for your existing DSpace installation, and [dspace-1.2.2-source] to the source directory for DSpace 1.2.2. Whenever you see these path references, be sure to replace them with the actual path names on your local system.

    1. Get the new DSpace 1.2.2 source code from the DSpace page on SourceForge and unpack it somewhere. Do not unpack it on top of your existing installation!!

    2. Copy the PostgreSQL driver JAR to the source tree. For example:

      +				

    3. Restart Tomcat.

    4.9. Upgrading From 1.2.1 to 1.2.2

    The changes in 1.2.2 are only code and config changes so the update should be fairly simple.

    In the notes below [dspace] refers to the install directory for your existing DSpace installation, and [dspace-1.2.2-source] to the source directory for DSpace 1.2.2. Whenever you see these path references, be sure to replace them with the actual path names on your local system.

    1. Get the new DSpace 1.2.2 source code from the DSpace page on SourceForge and unpack it somewhere. Do not unpack it on top of your existing installation!!

    2. Copy the PostgreSQL driver JAR to the source tree. For example:

       cd  [dspace]/lib
       cp postgresql.jar  [dspace-1.2.2-source]/lib
       
    3. Take down Tomcat (or whichever servlet container you're using).

    4. Your 'localized' JSPs (those in jsp/local) now need to be maintained in the source directory. If you have locally modified JSPs in your [dspace]/jsp/local directory, you might like to merge the changes in the new 1.2.2 versions into your locally modified ones. You can use the diff command to compare the 1.2.1 and 1.2.2 versions to do this. Also see the version history for a list of modified JSPs.

    5. You need to add a new parameter to your [dspace]/dspace.cfg for configurable fulltext indexing

      @@ -1056,7 +1106,7 @@ ant -Dconfig= [dspace]/config/dspace.cfg
       
    6. Copy the .war Web application files in [dspace-1.2.2-source]/build to the webapps sub-directory of your servlet container (e.g. Tomcat). e.g.:

       cp  [dspace-1.2.2-source]/build/*.war 
       	[tomcat]/webapps
      -

      If you're using Tomcat, you need to delete the directories corresponding to the old .war files. For example, if dspace.war is installed in [tomcat]/webapps/dspace.war, you should delete the [tomcat]/webapps/dspace directory. Otherwise, Tomcat will continue to use the old code in that directory.

    7. To finialise the install of the new configurable submission forms you need to copy the file [dspace-1.2.2-source]/config/input-forms.xml into [dspace]/config.

    8. Restart Tomcat.

    4.10. Upgrading From 1.2 to 1.2.1

    The changes in 1.2.1 are only code changes so the update should be fairly simple.

    In the notes below [dspace] refers to the install directory for your existing DSpace installation, and [dspace-1.2.1-source] to the source directory for DSpace 1.2.1. Whenever you see these path references, be sure to replace them with the actual path names on your local system.

    1. Get the new DSpace 1.2.1 source code from the DSpace page on SourceForge and unpack it somewhere. Do not unpack it on top of your existing installation!!

    2. Copy the PostgreSQL driver JAR to the source tree. For example:

      +

      If you're using Tomcat, you need to delete the directories corresponding to the old .war files. For example, if dspace.war is installed in [tomcat]/webapps/dspace.war, you should delete the [tomcat]/webapps/dspace directory. Otherwise, Tomcat will continue to use the old code in that directory.

    3. To finialise the install of the new configurable submission forms you need to copy the file [dspace-1.2.2-source]/config/input-forms.xml into [dspace]/config.

    4. Restart Tomcat.

    4.10. Upgrading From 1.2 to 1.2.1

    The changes in 1.2.1 are only code changes so the update should be fairly simple.

    In the notes below [dspace] refers to the install directory for your existing DSpace installation, and [dspace-1.2.1-source] to the source directory for DSpace 1.2.1. Whenever you see these path references, be sure to replace them with the actual path names on your local system.

    1. Get the new DSpace 1.2.1 source code from the DSpace page on SourceForge and unpack it somewhere. Do not unpack it on top of your existing installation!!

    2. Copy the PostgreSQL driver JAR to the source tree. For example:

       cd  [dspace]/lib
       cp postgresql.jar  [dspace-1.2.1-source]/lib
       
    3. Take down Tomcat (or whichever servlet container you're using).

    4. Your 'localized' JSPs (those in jsp/local) now need to be maintained in the source directory. If you have locally modified JSPs in your [dspace]/jsp/local directory, you might like to merge the changes in the new 1.2.1 versions into your locally modified ones. You can use the diff command to compare the 1.2 and 1.2.1 versions to do this. Also see the version history for a list of modified JSPs.

    5. You need to add a few new parameters to your [dspace]/dspace.cfg for browse/search and item thumbnails display, and for configurable DC metadata fields to be indexed.

      @@ -1107,7 +1157,7 @@ ant -Dconfig= [dspace]/config/dspace.cfg
       
    6. Copy the .war Web application files in [dspace-1.2.1-source]/build to the webapps sub-directory of your servlet container (e.g. Tomcat). e.g.:

       cp  [dspace-1.2.1-source]/build/*.war 
       	[tomcat]/webapps
      -

      If you're using Tomcat, you need to delete the directories corresponding to the old .war files. For example, if dspace.war is installed in [tomcat]/webapps/dspace.war, you should delete the [tomcat]/webapps/dspace directory. Otherwise, Tomcat will continue to use the old code in that directory.

    7. Restart Tomcat.

    4.11. Upgrading From 1.1 (or 1.1.1) to 1.2

    The process for upgrading to 1.2 from either 1.1 or 1.1.1 is the same. If you are running DSpace 1.0 or 1.0.1, you need to follow the instructions for upgrading from 1.0.1 to 1.1 to before following these instructions.

    Note also that if you've substantially modified DSpace, these instructions apply to an unmodified 1.1.1 DSpace instance, and you'll need to adapt the process to any modifications you've made.

    This document refers to the install directory for your existing DSpace installation as [dspace], and to the source directory for DSpace 1.2 as [dspace-1.2-source]. Whenever you see these path references below, be sure to replace them with the actual path names on your local system.

    1. Step one is, of course, to back up all your data before proceeding!! Include all of the contents of [dspace] and the PostgreSQL database in your backup.

    2. Get the new DSpace 1.2 source code from the DSpace page on SourceForge and unpack it somewhere. Do not unpack it on top of your existing installation!!

    3. Copy the required Java libraries that we couldn't include in the bundle to the source tree. For example:

      +

      If you're using Tomcat, you need to delete the directories corresponding to the old .war files. For example, if dspace.war is installed in [tomcat]/webapps/dspace.war, you should delete the [tomcat]/webapps/dspace directory. Otherwise, Tomcat will continue to use the old code in that directory.

    4. Restart Tomcat.

    4.11. Upgrading From 1.1 (or 1.1.1) to 1.2

    The process for upgrading to 1.2 from either 1.1 or 1.1.1 is the same. If you are running DSpace 1.0 or 1.0.1, you need to follow the instructions for upgrading from 1.0.1 to 1.1 to before following these instructions.

    Note also that if you've substantially modified DSpace, these instructions apply to an unmodified 1.1.1 DSpace instance, and you'll need to adapt the process to any modifications you've made.

    This document refers to the install directory for your existing DSpace installation as [dspace], and to the source directory for DSpace 1.2 as [dspace-1.2-source]. Whenever you see these path references below, be sure to replace them with the actual path names on your local system.

    1. Step one is, of course, to back up all your data before proceeding!! Include all of the contents of [dspace] and the PostgreSQL database in your backup.

    2. Get the new DSpace 1.2 source code from the DSpace page on SourceForge and unpack it somewhere. Do not unpack it on top of your existing installation!!

    3. Copy the required Java libraries that we couldn't include in the bundle to the source tree. For example:

       cd  [dspace]/lib
       cp activation.jar servlet.jar mail.jar 
       	[dspace-1.2-source]/lib
      @@ -1148,7 +1198,7 @@ cp  [dspace-1.2-source]/build/*.war  [dspace]/bin/filter-media
       

      You might also wish to run it now to generate thumbnails and index full text for the content already in your system.

    4. Note 1: This update process has effectively 'touched' all of your items. Although the dates in the Dublin Core metadata won't have changed (accession date and so forth), the 'last modified' date in the database for each will have been changed.

      This means the e-mail subscription tool may be confused, thinking that all items in the archive have been deposited that day, and could thus send a rather long email to lots of subscribers. So, it is recommended that you turn off the e-mail subscription feature for the next day, by commenting out the relevant line in DSpace's cron job, and then re-activating it the next day.

      Say you performed the update on 08-June-2004 (UTC), and your e-mail subscription cron job runs at 4am (UTC). When the subscription tool runs at 4am on 09-June-2004, it will find that everything in the system has a modification date in 08-June-2004, and accordingly send out huge emails. So, immediately after the update, you would edit DSpace's 'crontab' and comment out the /dspace/bin/subs-daily line. Then, after 4am on 09-June-2004 you'd 'un-comment' it out, so that things proceed normally.

      Of course this means, any real new deposits on 08-June-2004 won't get e-mailed, however if you're updating the system it's likely to be down for some time so this shouldn't be a big problem.

    5. - Note 2: After consulation with the OAI community, various OAI-PMH changes have occurred:

      • The OAI-PMH identifiers have changed (they're now of the form oai:hostname:handle as opposed to just Handles)

      • The set structure has changed, due to the new sub-communities feature.

      • The default base URL has changed

      • As noted in note 1, every item has been 'touched' and will need re-harvesting.

      The above means that, if already registered and harvested, you will need to re-register your repository, effectively as a 'new' OAI-PMH data provider. You should also consider posting an announcement to the OAI implementers e-mail list so that harvesters know to update their systems.

      Also note that your site may, over the next few days, take quite a big hit from OAI-PMH harvesters. The resumption token support should alleviate this a little, but you might want to temporarily whack up the database connection pool parameters in [dspace]/config/dspace.cfg. See the dspace.cfg distributed with the source code to see what these parameters are and how to use them. (You need to stop and restart Tomcat after changing them.)

      I realize this is not ideal; for discussion as to the reasons behind this please see relevant posts to the OAI community: post one, post two, as well as this post to the dspace-tech mailing list.

      If you really can't live with updating the base URL like this, you can fairly easily have thing proceed more-or-less as they are, by doing the following:

      • Change the value of OAI_ID_PREFIX at the top of the org.dspace.app.oai.DSpaceOAICatalog class to hdl:

      • Change the servlet mapping for the OAIHandler servlet back to / (from /request)

      • Rebuild and deploy oai.war

      However, note that in this case, all the records will be re-harvested by harvesters anyway, so you still need to brace for the associated DB activity; also note that the set spec changes may not be picked up by some harvesters. It's recommended you read the above-linked mailing list posts to understand why the change was made.

    Now, you should be finished!

    4.12. Upgrading From 1.1 to 1.1.1

    Fortunately the changes in 1.1.1 are only code changes so the update is fairly simple.

    In the notes below [dspace] refers to the install directory for your existing DSpace installation, and [dspace-1.1.1-source] to the source directory for DSpace 1.1.1. Whenever you see these path references, be sure to replace them with the actual path names on your local system.

    1. Take down Tomcat.

    2. It would be a good idea to update any of the third-party tools used by DSpace at this point (e.g. PostgreSQL), following the instructions provided with the relevant tools.

    3. In [dspace-1.1.1-source] run:

      +					Note 2: After consulation with the OAI community, various OAI-PMH changes have occurred:

      • The OAI-PMH identifiers have changed (they're now of the form oai:hostname:handle as opposed to just Handles)

      • The set structure has changed, due to the new sub-communities feature.

      • The default base URL has changed

      • As noted in note 1, every item has been 'touched' and will need re-harvesting.

      The above means that, if already registered and harvested, you will need to re-register your repository, effectively as a 'new' OAI-PMH data provider. You should also consider posting an announcement to the OAI implementers e-mail list so that harvesters know to update their systems.

      Also note that your site may, over the next few days, take quite a big hit from OAI-PMH harvesters. The resumption token support should alleviate this a little, but you might want to temporarily whack up the database connection pool parameters in [dspace]/config/dspace.cfg. See the dspace.cfg distributed with the source code to see what these parameters are and how to use them. (You need to stop and restart Tomcat after changing them.)

      I realize this is not ideal; for discussion as to the reasons behind this please see relevant posts to the OAI community: post one, post two, as well as this post to the dspace-tech mailing list.

      If you really can't live with updating the base URL like this, you can fairly easily have thing proceed more-or-less as they are, by doing the following:

      • Change the value of OAI_ID_PREFIX at the top of the org.dspace.app.oai.DSpaceOAICatalog class to hdl:

      • Change the servlet mapping for the OAIHandler servlet back to / (from /request)

      • Rebuild and deploy oai.war

      However, note that in this case, all the records will be re-harvested by harvesters anyway, so you still need to brace for the associated DB activity; also note that the set spec changes may not be picked up by some harvesters. It's recommended you read the above-linked mailing list posts to understand why the change was made.

    Now, you should be finished!

    4.12. Upgrading From 1.1 to 1.1.1

    Fortunately the changes in 1.1.1 are only code changes so the update is fairly simple.

    In the notes below [dspace] refers to the install directory for your existing DSpace installation, and [dspace-1.1.1-source] to the source directory for DSpace 1.1.1. Whenever you see these path references, be sure to replace them with the actual path names on your local system.

    1. Take down Tomcat.

    2. It would be a good idea to update any of the third-party tools used by DSpace at this point (e.g. PostgreSQL), following the instructions provided with the relevant tools.

    3. In [dspace-1.1.1-source] run:

       ant -Dconfig= [dspace]/config/dspace.cfg update
       
    4. If you have locally modified JSPs of the following JSPs in your [dspace]/jsp/local directory, you might like to merge the changes in the new 1.1.1 versions into your locally modified ones. You can use the diff command to compare the 1.1 and 1.1.1 versions to do this. The changes are quite minor.

       collection-home.jsp
      @@ -1156,7 +1206,7 @@ admin/authorize-collection-edit.jsp
       admin/authorize-community-edit.jsp
       admin/authorize-item-edit.jsp
       admin/eperson-edit.jsp
      -
    5. Restart Tomcat.

    4.13. Upgrading From 1.0.1 to 1.1

    To upgrade from DSpace 1.0.1 to 1.1, follow the steps below. Your dspace.cfg does not need to be changed. In the notes below [dspace] refers to the install directory for your existing DSpace installation, and [dspace-1.1-source] to the source directory for DSpace 1.1. Whenever you see these path references, be sure to replace them with the actual path names on your local system.

    1. Take down Tomcat (or whichever servlet container you're using).

    2. We recommend that you upgrage to the latest version of PostgreSQL (7.3.2). Included are some notes to help you do this. Note you will also have to upgrade Ant to version 1.5 if you do this.

    3. Make the necessary changes to the DSpace database. These include a couple of minor schema changes, and some new indices which should improve performance. Also, the names of a couple of database views have been changed since the old names were so long they were causing problems. First run psql to access your database (e.g. psql -U dspace -W and then enter the password), and enter these SQL commands:

      +
    4. Restart Tomcat.

    4.13. Upgrading From 1.0.1 to 1.1

    To upgrade from DSpace 1.0.1 to 1.1, follow the steps below. Your dspace.cfg does not need to be changed. In the notes below [dspace] refers to the install directory for your existing DSpace installation, and [dspace-1.1-source] to the source directory for DSpace 1.1. Whenever you see these path references, be sure to replace them with the actual path names on your local system.

    1. Take down Tomcat (or whichever servlet container you're using).

    2. We recommend that you upgrage to the latest version of PostgreSQL (7.3.2). Included are some notes to help you do this. Note you will also have to upgrade Ant to version 1.5 if you do this.

    3. Make the necessary changes to the DSpace database. These include a couple of minor schema changes, and some new indices which should improve performance. Also, the names of a couple of database views have been changed since the old names were so long they were causing problems. First run psql to access your database (e.g. psql -U dspace -W and then enter the password), and enter these SQL commands:

       ALTER TABLE bitstream ADD store_number INTEGER;
       UPDATE bitstream SET store_number = 0;
       
      @@ -1221,11 +1271,10 @@ Identify.deletedRecord=persistent
        [dspace]/bin/index-all
       
    4. Restart Tomcat. Tomcat should be run with the following environment variable set, to ensure that Unicode is handled properly. Also, the default JVM memory heap sizes are rather small. Adjust -Xmx512M (512Mb maximum heap size) and -Xms64M (64Mb Java thread stack size) to suit your hardware.

       JAVA_OPTS="-Xmx512M -Xms64M -Dfile.encoding=UTF-8"
      -


    \ No newline at end of file +

    Licensed under a Creative Commons Attribution 3.0 United States License

    \ No newline at end of file diff --git a/dspace/docs/html/ch05.html b/dspace/docs/html/ch05.html index d74aa2dc47..3377515323 100644 --- a/dspace/docs/html/ch05.html +++ b/dspace/docs/html/ch05.html @@ -1,10 +1,10 @@ -Chapter 5. DSpace System Documentation: Configuration

    Chapter 5. DSpace System Documentation: Configuration

    Table of Contents

    5.1. General Configuration
    5.1.1. Input Conventions
    5.1.2. Update Reminder
    5.2. The dspace.cfg Configuration Properties File
    5.2.1. The dspace.cfg file
    5.2.2. Main DSpace Configurations
    5.2.3. DSpace Database Configuration
    5.2.4. DSpace Email Settings
    5.2.4.1. Wording of E-mail Messages
    5.2.5. File Storage
    5.2.6. SRB (Storage Resource Brokerage) File Storage
    5.2.7. Handle Server Configuration
    5.2.8. Stackable Authentication Method(s)
    5.2.8.1. Authentication by Password
    5.2.8.2. X.509 Certificate Authentication
    5.2.8.3. Example of a Custom Authentication Method
    5.2.8.4. Configuring IP Authentication
    5.2.8.5. Configuring LDAP Authentication
    5.2.9. Shibboleth Authentication Configuration Settings
    5.2.10. Logging Configuration
    5.2.11. Configuring Lucene Search Indexes
    5.2.12. Proxy Settings
    5.2.13. Configuring Media Filters
    5.2.14. Configurable MODS Dissemination Crosswalk
    5.2.15. XSLT-based Crosswalks
    5.2.15.1. Testing XSLT Crosswalks
    5.2.16. Configurable Qualified Dublin Core (QDC) dissemination crosswalk
    5.2.17. Configuring Crosswalk Plugins
    5.2.18. Configuring Packager Plugins
    5.2.19. Event System Configuration
    5.2.20. Checksum Checker Settings
    5.2.21. Item Export and Download Settings
    5.2.22. Subscription Emails
    5.2.23. Settings for the Submission Process
    5.2.24. Configuring Creative Commons License
    5.2.25. WEB User Interface Configurations
    5.2.26. Browse Index Configuration
    5.2.26.1. Defining the Indexes.
    5.2.26.2. Defining Sort Options
    5.2.26.3. Browse Index Normalization Rule Configuration
    5.2.26.4. Other Browse Options
    5.2.27. Author (Multiple metadata value) Display
    5.2.28. Links to Other Browse Contexts
    5.2.29. Recent Submissions
    5.2.30. Syndication Feed (RSS) Settings
    5.2.31. Content Inline Disposition Threshold
    5.2.32. Multi-file HTML Document/Site Settings
    5.2.33. Sitemap Settings
    5.2.34. Upload File Settings
    5.2.35. Statistical Report Configuration Setting
    5.2.36. JSP Web Interface (JSPUI) Settings
    5.2.37. Configuring Multilingual Support
    5.2.37.1. Setting the Default Language for the Application
    5.2.37.2. Supporting More Than One Language
    Changes in dspace.cfg
    Related Files
    5.2.38. Item Mapper
    5.2.39. Display of Group Membership
    5.2.40. SFX Server
    5.2.41. Item Recommendation Setting
    5.2.42. Controlled Vocabulary Settings
    5.2.43. XMLUI Specific Configuration
    5.2.44. OAI-PMH Configuration and Activation
    5.2.44.1. OAI-PMH Configuration
    5.2.44.2. Activating Additional OAI-PMH Crosswalks
    DIDL
    5.2.45. Delegation Administration
    5.2.46. Batch Metadata Editing
    5.2.47. Hiding Metadata
    5.3. Optional or Advanced Configuration Settings
    5.3.1. The Metadata Format and Bitstream Format Registries
    5.3.1.1. Metadata Format Registries
    5.3.1.2. Bitstream Format Registry
    5.3.2. XPDF Filter
    5.3.2.1. Installation
    5.3.2.2. Install XPDF Tools
    5.3.2.3. Installation within DSpace
    - Fetch and install jai_imageio JAR -
    Edit DSpace Configuration
    Build and Install
    5.3.3. Creating a new Media/Format Filter
    5.3.3.1. Creating a simple Media Filter
    5.3.3.2. Creating a Dynamic or "Self-Named" Format Filter
    5.3.4. Configuration Files for Other Applications
    5.3.5. - Configuring Usage Instrumentation Plugins
    5.3.5.1. - The Passive Plugin
    5.3.5.2. - The Tab File Logger Plugin
    5.3.5.3. - The XML Logger Plugin
    5.3.6. SWORD Configuration
    5.3.7. OpenSearch Support
    5.3.8. Embargo

    There are a numbers of ways in which DSpace may be configured and/or customized. This chapter of the documentation will discuss the configuration of the software and will also reference customizations that may be performed in the chapter following.

    For ease of use, the Configuration documentation is broken into several parts:

    • Section 5.1 addresses general conventions used with configuring not only the dspace.cfg file, but other configuration files which use similar conventions.

    • Section 5.2 specifies the basic dspace.cfg file settings

    • Section 5.3 contain other more advanced settings that are optional in the dspace.cfg configuration file.

    5.1. General Configuration

    In the following sections you will learn about the different configuration files that you will need to edit so that you may make your DSpace installation work. Of the several configuration files which you will work with, it is the dspace.cfg file you need to learn to configure first and foremost.

    In general, most of the configuration files, namely dspace.cfg and xmlui.xconf will provide a good source of information not only with configuration but also with customization (cf. Customization chapter)

    5.1.1. Input Conventions

    We will use the dspace.cfg as our example for input conventions used through out the system. It is a basic Java properties file, where lines are either comments, starting with a '#', blank lines, or property/value pairs of the form:

    +Chapter 5. DSpace System Documentation: Configuration

    Chapter 5. DSpace System Documentation: Configuration

    Table of Contents

    5.1. General Configuration
    5.1.1. Input Conventions
    5.1.2. Update Reminder
    5.2. The dspace.cfg Configuration Properties File
    5.2.1. The dspace.cfg file
    5.2.2. Main DSpace Configurations
    5.2.3. DSpace Database Configuration
    5.2.4. DSpace Email Settings
    5.2.4.1. Wording of E-mail Messages
    5.2.5. File Storage
    5.2.6. SRB (Storage Resource Brokerage) File Storage
    5.2.7. Handle Server Configuration
    5.2.8. Stackable Authentication Method(s)
    5.2.8.1. Authentication by Password
    5.2.8.2. X.509 Certificate Authentication
    5.2.8.3. Example of a Custom Authentication Method
    5.2.8.4. Configuring IP Authentication
    5.2.8.5. Configuring LDAP Authentication
    5.2.9. Shibboleth Authentication Configuration Settings
    5.2.10. Logging Configuration
    5.2.11. Configuring Lucene Search Indexes
    5.2.12. Proxy Settings
    5.2.13. Configuring Media Filters
    5.2.14. Configurable MODS Dissemination Crosswalk
    5.2.15. XSLT-based Crosswalks
    5.2.15.1. Testing XSLT Crosswalks
    5.2.16. Configurable Qualified Dublin Core (QDC) dissemination crosswalk
    5.2.17. Configuring Crosswalk Plugins
    5.2.18. Configuring Packager Plugins
    5.2.19. Event System Configuration
    5.2.20. Checksum Checker Settings
    5.2.21. Item Export and Download Settings
    5.2.22. Subscription Emails
    5.2.23. Settings for the Submission Process
    5.2.24. Configuring Creative Commons License
    5.2.25. WEB User Interface Configurations
    5.2.26. Browse Index Configuration
    5.2.26.1. Defining the Indexes.
    5.2.26.2. Defining Sort Options
    5.2.26.3. Browse Index Normalization Rule Configuration
    5.2.26.4. Other Browse Options
    5.2.26.5. Browse Index Authority Control Configuration
    5.2.27. Author (Multiple metadata value) Display
    5.2.28. Links to Other Browse Contexts
    5.2.29. Recent Submissions
    5.2.30. Syndication Feed (RSS) Settings
    5.2.31. Content Inline Disposition Threshold
    5.2.32. Multi-file HTML Document/Site Settings
    5.2.33. Sitemap Settings
    5.2.34. Upload File Settings
    5.2.35. DSpace Statistics Configuration
    5.2.36. JSP Web Interface (JSPUI) Settings
    5.2.37. Configuring Multilingual Support
    5.2.37.1. Setting the Default Language for the Application
    5.2.37.2. Supporting More Than One Language
    Changes in dspace.cfg
    Related Files
    5.2.38. Item Mapper
    5.2.39. Display of Group Membership
    5.2.40. SFX Server
    5.2.41. Item Recommendation Setting
    5.2.42. Controlled Vocabulary Settings
    5.2.43. XMLUI Specific Configuration
    5.2.44. OAI-PMH Configuration and Activation
    5.2.44.1. OAI-PMH Configuration
    5.2.44.2. Activating Additional OAI-PMH Crosswalks
    DIDL
    5.2.45. OAI-ORE Harvester Configuration
    5.2.45.1. OAI-ORE Configuration
    5.2.46. Delegation Administration
    5.2.47. Batch Metadata Editing
    5.2.48. Hiding Metadata
    5.3. Optional or Advanced Configuration Settings
    5.3.1. The Metadata Format and Bitstream Format Registries
    5.3.1.1. Metadata Format Registries
    5.3.1.2. Bitstream Format Registry
    5.3.2. XPDF Filter
    5.3.2.1. Installation Overview
    5.3.2.2. Install XPDF Tools
    5.3.2.3. + Fetch and install jai_imageio JAR +
    5.3.2.4. Edit DSpace Configuration
    5.3.2.5. Build and Install
    5.3.3. Creating a new Media/Format Filter
    5.3.3.1. Creating a simple Media Filter
    5.3.3.2. Creating a Dynamic or "Self-Named" Format Filter
    5.3.4. Configuration Files for Other Applications
    5.3.5. + Configuring Usage Instrumentation Plugins
    5.3.5.1. + The Passive Plugin
    5.3.5.2. + The Tab File Logger Plugin
    5.3.5.3. + The XML Logger Plugin
    5.3.6. SWORD Configuration
    5.3.7. OpenSearch Support
    5.3.8. Embargo

    There are a numbers of ways in which DSpace may be configured and/or customized. This chapter of the documentation will discuss the configuration of the software and will also reference customizations that may be performed in the chapter following.

    For ease of use, the Configuration documentation is broken into several parts:

    • Section 5.1 addresses general conventions used with configuring not only the dspace.cfg file, but other configuration files which use similar conventions.

    • Section 5.2 specifies the basic dspace.cfg file settings

    • Section 5.3 contain other more advanced settings that are optional in the dspace.cfg configuration file.

    5.1. General Configuration

    In the following sections you will learn about the different configuration files that you will need to edit so that you may make your DSpace installation work. Of the several configuration files which you will work with, it is the dspace.cfg file you need to learn to configure first and foremost.

    In general, most of the configuration files, namely dspace.cfg and xmlui.xconf will provide a good source of information not only with configuration but also with customization (cf. Customization chapter)

    5.1.1. Input Conventions

    We will use the dspace.cfg as our example for input conventions used through out the system. It is a basic Java properties file, where lines are either comments, starting with a '#', blank lines, or property/value pairs of the form:

    property.name = property value

    Some property defaults are "commented out". That is, they have a "#" proceeding them, and the DSpace software ignores the config property. This may cause the feature not to be enabled, or, cause a default property to be used when the software is compiled and updated.

    The property value may contain references to other configuration properties, in the form ${property.name}. This follows the ant convention of allowing references in property files. A property may not refer to itself. Examples:

    @@ -13,10 +13,10 @@ property2.name = ${dspace.dir}/rest/of/path
     

    [Tip]

    Property values can include other, previously defined values, by enclosing the property name in ${...}. For example, if your dspace.cfg contains:

    dspace.dir = /dspace
     dspace.history = ${dspace.dir}/history
    -

    Then the value of dspace.history property is expanded to be /dspace/history. This method is especially useful for handling commonly used file paths.

    5.1.2. Update Reminder

    Things you should know about editing dspace.cfg files.

    It is important to rememeber that there are two dspace.cfg files after an installation of DSpace.

    1. The "source" file that is found in [dspace-source]/dspace/config/dspace.cfg

    2. The "runtime" file that is found in [dspace]/config/dspace.cfg

    The runtime file is supposed to be the copy of the source file, which is considered the master version. However, the DSpace server and command programs only look at the runtime configuration file, so when you are revising your configuration values, it is tempting to only edit the runtime file. DO NOT do this. Always make the same changes to the source version of dspace.cfg in addition to the runtime file. The two files should always be identical, since the source dspace.cfg will be the basis of your next upgrade.

    To keep the two files in synchronization, you can edit your files in [dspace-source]/dspace/config/ and then you would run the following commands:

    +

    Then the value of dspace.history property is expanded to be /dspace/history. This method is especially useful for handling commonly used file paths.

    5.1.2. Update Reminder

    Things you should know about editing dspace.cfg files.

    It is important to rememeber that there are two dspace.cfg files after an installation of DSpace.

    1. The "source" file that is found in [dspace-source]/dspace/config/dspace.cfg

    2. The "runtime" file that is found in [dspace]/config/dspace.cfg

    The runtime file is supposed to be the copy of the source file, which is considered the master version. However, the DSpace server and command programs only look at the runtime configuration file, so when you are revising your configuration values, it is tempting to only edit the runtime file. DO NOT do this. Always make the same changes to the source version of dspace.cfg in addition to the runtime file. The two files should always be identical, since the source dspace.cfg will be the basis of your next upgrade.

    To keep the two files in synchronization, you can edit your files in [dspace-source]/dspace/config/ and then you would run the following commands:

     cd /[dspace-source]/dspace/target/dspace-<version>-build.dir
     ant update_configs
    -

    This will copy the source dspace.cfg (along with other configuration files) into the runtime (/[dspace]/config) directory.

    [Note]

    You should remember that after editing your configuration file(s), and you are done and wish to implement the changes, you will need to:

    • To run ant -Dconfig=/[dspace]/config/dspace.cfg update if you are updating your dspace.cfg file and wish to see the changes appear. Follow the usual sequence with copying your webapps.

    • If you edit dspace.cfg in [dspace-source]/dspace/config/, you should then run 'ant init_configs' in the directory [dspace-source]/dspace/target/dspace-1.5.2-build.dir so that any changes you may have made are reflected in the configuration files of other applications, for example Apache. You may then need to restart those applications, depending on what you changed.

    5.2. The dspace.cfg Configuration Properties File

    The primary way of configuring DSpace is to edit the dspace.cfg. You will definitely have to do this before you can run DSpace properly. dspace.cfg contains basic information about a DSpace installation, including system path information, network host information, and other like items. To assist you in this endeavor, below is a place for you to write down some of the preliminary data so that you may facilitate faster configuration.
    Server IP: +

    This will copy the source dspace.cfg (along with other configuration files) into the runtime (/[dspace]/config) directory.

    [Note]

    You should remember that after editing your configuration file(s), and you are done and wish to implement the changes, you will need to:

    • To run ant -Dconfig=/[dspace]/config/dspace.cfg update if you are updating your dspace.cfg file and wish to see the changes appear. Follow the usual sequence with copying your webapps.

    • If you edit dspace.cfg in [dspace-source]/dspace/config/, you should then run 'ant init_configs' in the directory [dspace-source]/dspace/target/dspace-1.5.2-build.dir so that any changes you may have made are reflected in the configuration files of other applications, for example Apache. You may then need to restart those applications, depending on what you changed.

    5.2. The dspace.cfg Configuration Properties File

    The primary way of configuring DSpace is to edit the dspace.cfg. You will definitely have to do this before you can run DSpace properly. dspace.cfg contains basic information about a DSpace installation, including system path information, network host information, and other like items. To assist you in this endeavor, below is a place for you to write down some of the preliminary data so that you may facilitate faster configuration.
    Server IP: ______________________________
    Host Name (Server name) ______________________________ @@ -30,7 +30,7 @@ ant update_configs ______________________________
    SMTP server: ______________________________ -

    5.2.1. The dspace.cfg file

    Below is a brief "Properties" table for the dspace.cfg file and the documented details are referenced. Please refer to those sections for the complete details of the parameter

    Table 5.1. The dspace.cfg Main Properties

    +

    5.2.1. The dspace.cfg file

    Below is a brief "Properties" table for the dspace.cfg file and the documented details are referenced. Please refer to those sections for the complete details of the parameter

    Table 5.1. The dspace.cfg Main Properties

    Property Ref. Sect. @@ -270,7 +270,7 @@ recent.submissions.count 5.2.29
    Syndication Feed (RSS) Settings
    webui.feed.enable
     webui.feed.items
    -webui.feed.cache.size 
    +webui.feed.cache.size
     webui.cache.age
     webui.feed.formats
     webui.feed.localresolve
    @@ -320,7 +320,7 @@ xmlui.bitstream.mets
     xmlui.google.analytics.key
     xmlui.controlpanel.activity.max
     xmlui.controlpanel.activity.ipheader
    -
    5.2.43

    5.2.2. Main DSpace Configurations

    Property: + 5.2.43

    5.2.2. Main DSpace Configurations

    Property: dspace.dir
    Example Value: /dspace @@ -334,14 +334,14 @@ xmlui.controlpanel.activity.ipheader dspace.name
    Example Value: dspace.name = DSpace at My University -
    Informational Note:Short and sweet site name, used throughout Web UI, e-mails and elsewhere (such as OAI protocol)

    5.2.3. DSpace Database Configuration

    Many of the database configurations are software-dependent. That is, it will be based on the choice of database software being used. Documentation is below shows PostgreSQL and Oracle examples.

    Property: +
    Informational Note:Short and sweet site name, used throughout Web UI, e-mails and elsewhere (such as OAI protocol)

    5.2.3. DSpace Database Configuration

    Many of the database configurations are software-dependent. That is, it will be based on the choice of database software being used. Documentation is below shows PostgreSQL and Oracle examples.

    Property: db.name
    Example Value: db.name = postgres
    Informational Note:In dspace.cfg you choose either postgres or oracle.
     
    Property: db.url
    Example Value: - db.url = dbc:postgresql://localhost:5432/dspace-services
    Informational Note:The above value is the default value when configuring with PostgreSQL. When using Oracle, use this value: jbdc.oracle.thin:@//host:port/dspace
     
    Property: + db.url = jdbc:postgresql://localhost:5432/dspace-services
    Informational Note:The above value is the default value when configuring with PostgreSQL. When using Oracle, use this value: jbdc.oracle.thin:@//host:port/dspace
     
    Property: db.username
    Example Value: db.username = dspace @@ -373,7 +373,7 @@ xmlui.controlpanel.activity.ipheader db.poolname
    Example Value: db.poolname = dspacepool -
    Informational Note:Specify a name for the connection pool. This is useful if you have multiple applications sharing Tomcat's database connection pool. If nothing is specified, it will default to 'dspacepool'

    5.2.4. DSpace Email Settings

    The configuration of email is simple and provides a mechanism to alert the person(s) responsible for different features of the DSpace software.

    Property: +
    Informational Note:Specify a name for the connection pool. This is useful if you have multiple applications sharing Tomcat's database connection pool. If nothing is specified, it will default to 'dspacepool'

    5.2.4. DSpace Email Settings

    The configuration of email is simple and provides a mechanism to alert the person(s) responsible for different features of the DSpace software.

    Property: mail.server
    Example Value: mail.server = smtp.my.edu @@ -413,13 +413,13 @@ mypassword mail.charset = UTF8
    Informational Note:Set the default mail character set. This may be over-ridden by providing a line inside the email template "charset: <encoding>", otherwise this default is used.
     
    Property:mail.allowed.referrers
    Example Value:mail.allowed.referrers = localhost
    Informational Note:A comma separated list of hostnames that are allowed to refer browsers to email forms. Default behaviour is to accept referrals only from dspace.hostname
     
    Property:mail.extraproperties
    Example Value:
    mail.extraproperties = mail.smtp.socketFactory.port=465, \
    -	                   mail.smtp.socketFactory.class=javax.net.ssl.SSLSocketFactory, \
    -	                   mail.smtp.socketFactory.fallback=false
    -
    Informational Note:If you need to pass extra settings to the Java mail library. Comma separated, equals sign between the key and the value. By default, commented out.
     
    Property:mail.server.disabled
    Example Vavlue:mail.server.disabled = false
    Informational Note:An option is added to disable the mailserver. By default, this property is set to false. By setting value to 'true', DSpace will not send out emails. It will instead log the subject of the email which should have been sent. This is especially useful for development and test environments where production data is used when testing functionality.

    5.2.4.1. Wording of E-mail Messages

    Sometimes DSpace automatically sends e-mail messages to users, for example to inform them of a new work flow task, or as a subscription e-mail alert. The wording of emails can be changed by editing the relevant file in [dspace]/config/emails. Each file is commented. Be careful to keep the right number 'placeholders' (e.g.{2}).

    Note: You should replace the contact-information "dspace-help@myu.edu or call us at xxx-555-xxxx" with your own contact details in:

    + mail.smtp.socketFactory.class=javax.net.ssl.SSLSocketFactory, \ + mail.smtp.socketFactory.fallback=false +
    Informational Note:If you need to pass extra settings to the Java mail library. Comma separated, equals sign between the key and the value. By default, commented out.
     
    Property:mail.server.disabled
    Example Vavlue:mail.server.disabled = false
    Informational Note:An option is added to disable the mailserver. By default, this property is set to false. By setting value to 'true', DSpace will not send out emails. It will instead log the subject of the email which should have been sent. This is especially useful for development and test environments where production data is used when testing functionality.

    5.2.4.1. Wording of E-mail Messages

    Sometimes DSpace automatically sends e-mail messages to users, for example to inform them of a new work flow task, or as a subscription e-mail alert. The wording of emails can be changed by editing the relevant file in [dspace]/config/emails. Each file is commented. Be careful to keep the right number 'placeholders' (e.g.{2}).

    Note: You should replace the contact-information "dspace-help@myu.edu or call us at xxx-555-xxxx" with your own contact details in:

    config/emails/change_password
    config/emails/register -

    5.2.5. File Storage

    This is the default "technique" that is used by DSpace to store the bitstreams. DSpace can also use SRB (Storage Resource Brokerage) as an alternative. See section 5.2.6 for details regarding SRB.

    Property: +

    5.2.5. File Storage

    This is the default "technique" that is used by DSpace to store the bitstreams. DSpace can also use SRB (Storage Resource Brokerage) as an alternative. See section 5.2.6 for details regarding SRB.

    Property: assetstore.dir
    Example Value: assetstore.dir = ${dspace.dir}/assetstore @@ -440,7 +440,7 @@ assetstore.dir.2 = /third/assetstore
    assetstore.incoming = 1

    Please Note: When adding additional storage configuration, you will then need to uncomment and declare assestore.incoming = 1 -

    5.2.6. SRB (Storage Resource Brokerage) File Storage

    An alternate to using the default storage framework is to use Storage Resource Brokerage (SRB). This can provide a different level of storage and disaster recovery. (Storage can take place on storage that is off-site.) Refer to http://www.sdsc.edu/srb/index.php/Main_Page for complete details regarding SRB.

    The same framework is used to configure SRB storage. That is, the asset store number (0..n) can reference a file system directory as above or it can reference a set of SRB account parameters. But any particular asset store number can reference one or the other but not both. This way traditional and SRB storage can both be used but with different asset store numbers. The same cautions mentioned above apply to SRB asset stores as well. The particular asset store a bitstream is stored in is held in the database, so don't move bitstreams between asset stores, and do not renumber them.

    Property: +

    5.2.6. SRB (Storage Resource Brokerage) File Storage

    An alternate to using the default storage framework is to use Storage Resource Brokerage (SRB). This can provide a different level of storage and disaster recovery. (Storage can take place on storage that is off-site.) Refer to http://www.sdsc.edu/srb/index.php/Main_Page for complete details regarding SRB.

    The same framework is used to configure SRB storage. That is, the asset store number (0..n) can reference a file system directory as above or it can reference a set of SRB account parameters. But any particular asset store number can reference one or the other but not both. This way traditional and SRB storage can both be used but with different asset store numbers. The same cautions mentioned above apply to SRB asset stores as well. The particular asset store a bitstream is stored in is held in the database, so don't move bitstreams between asset stores, and do not renumber them.

    Property: srb.hosts.1
    Example value: srb.hosts.1 = mysrbmcathost.myu.edu @@ -477,7 +477,7 @@ assetstore.dir.2 = /third/assetstore srb.parentdir.1
    Example value: srb.parentdir.1 = mysrbdspaceassetstore -
    Informational Note:Several of the terms, such as mcatzone, have meaning only in the SRB context and will be familiar to SRB users. The last, srb.paratdir.n, can be used for additional (SRB) upper directory structure within an SRB account. This property value could be blank as well.

    The 'assetstore.incoming' property is an integer that references where new bitstreams will be stored. The default (say the starting reference) is zero. The value will be used to identify the storage where all new bitstreams will be stored until this number is changed. This number is stored in the Bitstream table (store_number column) in the DSpace database, so older bitstreams that may have been stored when 'asset.incoming' had a different value can be found.

    In the simple case in which DSpace uses local (or mounted) storage the number can refer to different directories (or partitions). This gives DSpace some level of scalability. The number links to another set of properties 'assetstore.dir', 'assetstore.dir.1' (remember zero is default), assetstore.dir.2', etc., where the values are directories.

    To support the use of SRB DSpace uses the same scheme but broaden to support:

    • using SRB instead of the local file system

    • using the local file system (native DSpace)

    • using a mix of SRB and local file system

    in this broadened use of the 'asset.incoming' integer will refer to one of the following storage locations:

    • a local file system directory (native DSpace)

    • a set of SRB account parameters (host, port, zone, domain, username, password, home directory, and resource

    Should the be any conflict, like '2' referring to a local directory and to a set of SRB parameters, the program will select the local directory.

    If SRB is chosen from the first install of DSpace, it is suggested that 'assetstore.dir' (no integer appended) be retained to reference a local directory (as above under File Storage) because build.xml uses this value to do a mkdir. In this case, 'assetstore.incoming' can be set to 1 (i.e. uncomment the line in File Storage above) and the 'assetstore.dir' will not be used.

    5.2.7. Handle Server Configuration

    Property: +
    Informational Note:Several of the terms, such as mcatzone, have meaning only in the SRB context and will be familiar to SRB users. The last, srb.paratdir.n, can be used for additional (SRB) upper directory structure within an SRB account. This property value could be blank as well.

    The 'assetstore.incoming' property is an integer that references where new bitstreams will be stored. The default (say the starting reference) is zero. The value will be used to identify the storage where all new bitstreams will be stored until this number is changed. This number is stored in the Bitstream table (store_number column) in the DSpace database, so older bitstreams that may have been stored when 'asset.incoming' had a different value can be found.

    In the simple case in which DSpace uses local (or mounted) storage the number can refer to different directories (or partitions). This gives DSpace some level of scalability. The number links to another set of properties 'assetstore.dir', 'assetstore.dir.1' (remember zero is default), assetstore.dir.2', etc., where the values are directories.

    To support the use of SRB DSpace uses the same scheme but broaden to support:

    • using SRB instead of the local file system

    • using the local file system (native DSpace)

    • using a mix of SRB and local file system

    in this broadened use of the 'asset.incoming' integer will refer to one of the following storage locations:

    • a local file system directory (native DSpace)

    • a set of SRB account parameters (host, port, zone, domain, username, password, home directory, and resource

    Should the be any conflict, like '2' referring to a local directory and to a set of SRB parameters, the program will select the local directory.

    If SRB is chosen from the first install of DSpace, it is suggested that 'assetstore.dir' (no integer appended) be retained to reference a local directory (as above under File Storage) because build.xml uses this value to do a mkdir. In this case, 'assetstore.incoming' can be set to 1 (i.e. uncomment the line in File Storage above) and the 'assetstore.dir' will not be used.

    5.2.7. Handle Server Configuration

    Property: handle.prefix
    Example Value handle.prefix = 1234.56789 @@ -485,13 +485,13 @@ assetstore.dir.2 = /third/assetstore handle.dir
    Example Value: handle.dir = ${dspace.dir}/handle-server -
    Informational Note:The default files, as shown in the Example Value is where DSpace will install the files used for the Handle Server.

    For complete information regarding the Handle server, the user should consult 3.3.4. The Handle Server section of Installing DSpace.

    5.2.8. Stackable Authentication Method(s)

    (formally Custom Authentication)

    Since many institutions and organizations have existing authentication systems, DSpace has been designed to allow these to be easily integrated into an existing authentication infrastructure. It keeps a series, or "stack", of authentication methods, so each one can be tried in turn. This makes it easy to add new authentication methods or rearrange the order without changing any existing code. You can also share authentication code with other sites.

    Property: +
    Informational Note:The default files, as shown in the Example Value is where DSpace will install the files used for the Handle Server.

    For complete information regarding the Handle server, the user should consult 3.3.4. The Handle Server section of Installing DSpace.

    5.2.8. Stackable Authentication Method(s)

    (formally Custom Authentication)

    Since many institutions and organizations have existing authentication systems, DSpace has been designed to allow these to be easily integrated into an existing authentication infrastructure. It keeps a series, or "stack", of authentication methods, so each one can be tried in turn. This makes it easy to add new authentication methods or rearrange the order without changing any existing code. You can also share authentication code with other sites.

    Property: plugin.sequence.org.dspace.authenticate.AuthenticationMethod
    Example Value: -
    plugin.sequence.org.dspace.authenticate.AuthenticationMethod = \ 
    +								
    plugin.sequence.org.dspace.authenticate.AuthenticationMethod = \
               org.dspace.authenticate.PasswordAuthentication
    -

    The configuration property plugin.sequence.org.dspace.authenticate.AuthenticationMethod defines the authentication stack. It is a comma-separated list of class names. Each of these classes implements a different authentication method, or way of determining the identity of the user. They are invoked in the order specified until one succeeds.

    An authentication method is a class that implements the interface org.dspace.authenticate.AuthenticationMethod. It authenticates a user by evaluating the credentials (e.g. username and password) he or she presents and checking that they are valid.

    The basic authentication procedure in the DSpace Web UI is this:

    1. A request is received from an end-user's browser that, if fulfilled, would lead to an action requiring authorization taking place.

    2. If the end-user is already authenticated:

      • If the end-user is allowed to perform the action, the action proceeds

      • If the end-user is NOT allowed to perform the action, an authorization error is displayed.

      • If the end-user is NOT authenticated, i.e. is accessing DSpace anonymously:

    3. The parameters etc. of the request are stored

    4. The Web UI's startAuthentication method is invoked.

    5. First it tries all the authentication methods which do implicit authentication (i.e. they work with just the information already in the Web request, such as an X.509 client certificate). If one of these succeeds, it proceeds from Step 2 above.

    6. If none of the implicit methods succeed, the UI responds by putting up a "login" page to collect credentials for one of the explicit authentication methods in the stack. The servlet processing that page then gives the proffered credentials to each authentication method in turn until one succeeds, at which point it retries the original operation from Step 2 above.

    Please see the source files AuthenticationManager.java and AuthenticationMethod.java for more details about this mechanism.

    5.2.8.1. Authentication by Password

    The default method org.dspace.authenticate.PasswordAuthentication has the following properties:

    • Use of inbuilt e-mail address/password-based log-in. This is achieved by forwarding a request that is attempting an action requiring authorization to the password log-in servlet, /password-login. The password log-in servlet (org.dspace.app.webui.servlet.PasswordServlet contains code that will resume the original request if authentication is successful, as per step 3. described above.

    • Users can register themselves (i.e. add themselves as e-people without needing approval from the administrators), and can set their own passwords when they do this

    • Users are not members of any special (dynamic) e-person groups

    • You can restrict the domains from which new users are able to register. To enable this feature, uncomment the following line from dspace.cfg: authentication.password.domain.valid = example.com Example options might be '@example.com' to restrict registration to users with addresses ending in @example.com, or '@example.com, .ac.uk' to restrict registration to users with addresses ending in @example.com or with addresses in the .ac.uk domain.

    5.2.8.2. X.509 Certificate Authentication

    The X.509 authentication method uses an X.509 certificate sent by the client to establish his/her identity. It requires the client to have a personal Web certificate installed on their browser (or other client software) which is issued by a Certifying Authority (CA) recognized by the web server.

    1. See the HTTPS installation instructions to configure your Web server. If you are using HTTPS with Tomcat, note that the <Connector> tag must include the attribute clientAuth="true" so the server requests a personal Web certificate from the client.

    2. Add the org.dspace.authenticate.X509Authentication plugin first to the list of stackable authentication methods in the value of the configuration key plugin.sequence.org.dspace.authenticate.AuthenticationMethod - e.g.:

          
      +							

    The configuration property plugin.sequence.org.dspace.authenticate.AuthenticationMethod defines the authentication stack. It is a comma-separated list of class names. Each of these classes implements a different authentication method, or way of determining the identity of the user. They are invoked in the order specified until one succeeds.

    An authentication method is a class that implements the interface org.dspace.authenticate.AuthenticationMethod. It authenticates a user by evaluating the credentials (e.g. username and password) he or she presents and checking that they are valid.

    The basic authentication procedure in the DSpace Web UI is this:

    1. A request is received from an end-user's browser that, if fulfilled, would lead to an action requiring authorization taking place.

    2. If the end-user is already authenticated:

      • If the end-user is allowed to perform the action, the action proceeds

      • If the end-user is NOT allowed to perform the action, an authorization error is displayed.

      • If the end-user is NOT authenticated, i.e. is accessing DSpace anonymously:

    3. The parameters etc. of the request are stored

    4. The Web UI's startAuthentication method is invoked.

    5. First it tries all the authentication methods which do implicit authentication (i.e. they work with just the information already in the Web request, such as an X.509 client certificate). If one of these succeeds, it proceeds from Step 2 above.

    6. If none of the implicit methods succeed, the UI responds by putting up a "login" page to collect credentials for one of the explicit authentication methods in the stack. The servlet processing that page then gives the proffered credentials to each authentication method in turn until one succeeds, at which point it retries the original operation from Step 2 above.

    Please see the source files AuthenticationManager.java and AuthenticationMethod.java for more details about this mechanism.

    5.2.8.1. Authentication by Password

    The default method org.dspace.authenticate.PasswordAuthentication has the following properties:

    • Use of inbuilt e-mail address/password-based log-in. This is achieved by forwarding a request that is attempting an action requiring authorization to the password log-in servlet, /password-login. The password log-in servlet (org.dspace.app.webui.servlet.PasswordServlet contains code that will resume the original request if authentication is successful, as per step 3. described above.

    • Users can register themselves (i.e. add themselves as e-people without needing approval from the administrators), and can set their own passwords when they do this

    • Users are not members of any special (dynamic) e-person groups

    • You can restrict the domains from which new users are able to register. To enable this feature, uncomment the following line from dspace.cfg: authentication.password.domain.valid = example.com Example options might be '@example.com' to restrict registration to users with addresses ending in @example.com, or '@example.com, .ac.uk' to restrict registration to users with addresses ending in @example.com or with addresses in the .ac.uk domain.

    5.2.8.2. X.509 Certificate Authentication

    The X.509 authentication method uses an X.509 certificate sent by the client to establish his/her identity. It requires the client to have a personal Web certificate installed on their browser (or other client software) which is issued by a Certifying Authority (CA) recognized by the web server.

    1. See the HTTPS installation instructions to configure your Web server. If you are using HTTPS with Tomcat, note that the <Connector> tag must include the attribute clientAuth="true" so the server requests a personal Web certificate from the client.

    2. Add the org.dspace.authenticate.X509Authentication plugin first to the list of stackable authentication methods in the value of the configuration key plugin.sequence.org.dspace.authenticate.AuthenticationMethod + e.g.:

                                   plugin.sequence.org.dspace.authenticate.AuthenticationMethod = \
                                    org.dspace.authenticate.X509Authentication, \
                                    org.dspace.authenticate.PasswordAuthentication
      @@ -499,13 +499,13 @@ assetstore.dir.2 = /third/assetstore
      authentication.x509.keystore.path = path to Java keystore file authentication.x509.keystore.password = password to access the keystore

      ...or the separate CA certificate file (in PEM or DER format):

      authentication.x509.ca.cert =  path to certificate file for CA
      -                                          whose client certs to accept. 
    3. Choose whether to enable auto-registration: If you want users who authenticate successfully to be automatically registered as new E-Persons if they are not already, set the authentication.x509.autoregister configuration property to true. This lets you automatically accept all users with valid personal certificates. The default is false.

    5.2.8.3. Example of a Custom Authentication Method

    Also included in the source is an implementation of an authentication method used at MIT, edu.mit.dspace.MITSpecialGroup. This does not actually authenticate a user, it only adds the current user to a special (dynamic) group called 'MIT Users' (which must be present in the system!). This allows us to create authorization policies for MIT users without having to manually maintain membership of the MIT users group.

    By keeping this code in a separate method, we can customize the authentication process for MIT by simply adding it to the stack in the DSpace configuration. None of the code has to be touched.

    You can create your own custom authentication method and add it to the stack. Use the most similar existing method as a model, e.g. org.dspace.authenticate.PasswordAuthentication for an "explicit" method (with credentials entered interactively) or org.dspace.authenticate.X509Authentication for an implicit method.

    5.2.8.4. Configuring IP Authentication

    You can enable IP authentication by adding its method to the stack in the DSpace configuration, e.g.:

     plugin.sequence.org.dspace.authenticate.AuthenticationMethod =
    +                                          whose client certs to accept. 
  • Choose whether to enable auto-registration: If you want users who authenticate successfully to be automatically registered as new E-Persons if they are not already, set the authentication.x509.autoregister configuration property to true. This lets you automatically accept all users with valid personal certificates. The default is false.

  • 5.2.8.3. Example of a Custom Authentication Method

    Also included in the source is an implementation of an authentication method used at MIT, edu.mit.dspace.MITSpecialGroup. This does not actually authenticate a user, it only adds the current user to a special (dynamic) group called 'MIT Users' (which must be present in the system!). This allows us to create authorization policies for MIT users without having to manually maintain membership of the MIT users group.

    By keeping this code in a separate method, we can customize the authentication process for MIT by simply adding it to the stack in the DSpace configuration. None of the code has to be touched.

    You can create your own custom authentication method and add it to the stack. Use the most similar existing method as a model, e.g. org.dspace.authenticate.PasswordAuthentication for an "explicit" method (with credentials entered interactively) or org.dspace.authenticate.X509Authentication for an implicit method.

    5.2.8.4. Configuring IP Authentication

    You can enable IP authentication by adding its method to the stack in the DSpace configuration, e.g.:

     plugin.sequence.org.dspace.authenticate.AuthenticationMethod =
                                   org.dspace.authenticate.IPAuthentication 

    You are than able to map DSpace groups to IP's in dspace.cfg by setting authentication.ip.GROUPNAME = iprange[, iprange ...], e.g:

      authentication.ip.MY_UNIVERSITY = 10.1.2.3, \            # Full IP
                                        13.5, \                # Partial IP
                                        11.3.4.5/24, \         # with CIDR
                                        12.7.8.9/255.255.128.0 # with netmask
    - 

    Negative matches can be set by prepending the entry with a '-'. For example if you want to include all of a class B network except for users of a contained class c network, you could use: 111.222,-111.222.333.

    Note: if the Groupname contains blanks you must escape the, e.g. Department\ of\ Statistics

    5.2.8.5. Configuring LDAP Authentication

    You can enable LDAP authentication by adding its method to the stack in the DSpace configuration, e.g.

    + 

    Negative matches can be set by prepending the entry with a '-'. For example if you want to include all of a class B network except for users of a contained class c network, you could use: 111.222,-111.222.333.

    Note: if the Groupname contains blanks you must escape the, e.g. Department\ of\ Statistics

    5.2.8.5. Configuring LDAP Authentication

    You can enable LDAP authentication by adding its method to the stack in the DSpace configuration, e.g.

                     plugin.sequence.org.dspace.authenticate.AuthenticationMethod =
                          org.dspace.authenticate.LDAPAuthentication
                               

    If LDAP is enabled in the dspace.cfg file, then new users will be able to register by entering their username and password without being sent the registration token. If users do not have a username and password, then they can still register and login with just their email address the same way they do now.

    If you want to give any special privileges to LDAP users, create a stackable authentication method to automatically put people who have a netid into a special group. You might also want to give certain email addresses special privileges. Refer to the Custom Authentication Code section above for more information about how to do this.

    Here is an explanation of what each of the different configuration parameters are for:

    Standard LDAP Configuration
    Property: @@ -571,7 +571,7 @@ ldap.search.password = password
    Example Value: ldap.netid_email_domain = @example.com
    Informational Note:If your LDAP server does not hold an email address for a user, you can use the following field to specify your email domain. This value is appended to the netid in order to make an email address. E.g. a netid of 'user' and ldap.netid_email_domain as @example.com would set the email of the user to be user@example.com -

    5.2.9. Shibboleth Authentication Configuration Settings

    Detailed instructions for installing Shibboleth on DSpace may be found athttps://mams.melcoe.mq.edu.au/zope/mams/pub/Installation/dspace15.

    DSpace requires email as the user's credentials. There are two ways of providing email to DSpace:

    1. By explicitly specifying to the user which attribute (header) carries the email address.

    2. By turning on the user-email-using-tomcat=true which means the software will attempt to acquire the user's email from Tomcat.

    The first option takes Precedence when specified. both options can be enabled to allow for fallback.

    Property: +

    5.2.9. Shibboleth Authentication Configuration Settings

    Detailed instructions for installing Shibboleth on DSpace may be found athttps://mams.melcoe.mq.edu.au/zope/mams/pub/Installation/dspace15.

    DSpace requires email as the user's credentials. There are two ways of providing email to DSpace:

    1. By explicitly specifying to the user which attribute (header) carries the email address.

    2. By turning on the user-email-using-tomcat=true which means the software will attempt to acquire the user's email from Tomcat.

    The first option takes Precedence when specified. both options can be enabled to allow for fallback.

    Property: authentication.shib.email-header
    Example Value: authentication.shib.email-header = MAIL @@ -606,17 +606,17 @@ authentication.shib.role.Librarian
    Example Value:
    authentication.shib.role.Senior\ Researcher = Researcher, Staff
     authentication.shib.role.Librarian = Administrator
    -
    Informational Note:The following mappings specify role mapping between IdP and Dspace. The left side of the entry is IdP's role (prefixed with "authentication.shib.role.") which will be mapped to the right entry from DSpace. DSpace's group as indicated on the right entry has to EXIST in DSpace, otherwise user will be identified as 'anonymous'. Multiple values on the right entry should be separated by comma. The values are CASE-Sensitive. Heuristic one-to-one mapping will be done when the IdP groups entry are not listed below (i.e. if "X" group in IdP is not specified here, then it will be mapped to "X" group in DSpace if it exists, otherwise it will be mapped to simply 'anonymous'). Given sufficient demand, future release could support regex for the mapping special characters need to be escaped by '\'
     

    5.2.10. Logging Configuration

    The following settings are currently not used by XMLUI. XMLUI writes its logs to [dspace-xmlui]/WEB-INF-logs/ in the actual XMLUI web application.

    Property: +
    Informational Note:The following mappings specify role mapping between IdP and Dspace. The left side of the entry is IdP's role (prefixed with "authentication.shib.role.") which will be mapped to the right entry from DSpace. DSpace's group as indicated on the right entry has to EXIST in DSpace, otherwise user will be identified as 'anonymous'. Multiple values on the right entry should be separated by comma. The values are CASE-Sensitive. Heuristic one-to-one mapping will be done when the IdP groups entry are not listed below (i.e. if "X" group in IdP is not specified here, then it will be mapped to "X" group in DSpace if it exists, otherwise it will be mapped to simply 'anonymous'). Given sufficient demand, future release could support regex for the mapping special characters need to be escaped by '\'
     

    5.2.10. Logging Configuration

    Property: log.init.config
    Example Value: log.init.config = ${dspace.dir}/config/log4j.properties -
    Informational Note:This is where your configure file is located. You may override default log4j configuration by provided your own configurations. Existing alternatives are:
    -log.init.config = ${dspace.dir}/config/log4j.xml
    -log.init.config = ${dspace.dir}/config/log4j-console.properties
     
    Property: +
    Informational Note:This is where your logging configuration file is located. You may override the default log4j configuration by providing your own. Existing alternatives are:
    +log.init.config = ${dspace.dir}/config/log4j.properties
    +log.init.config = ${dspace.dir}/config/log4j-console.properties
     
    Property: log.dir -
    Example value: +
    Example value: log.dir = ${dspace.dir}/log -
    Informational Note:This is where to put the logs. (This is used for initial configuration only)

    5.2.11. Configuring Lucene Search Indexes

    Search indexes can be configured and customized easily in the dspace.cfg file. This allows institutions to choose which DSpace metadata fields are indexed by Lucene.

    Property: +
    Informational Note:This is where to put the logs. (This is used for initial configuration only)

    Previous releases of DSpace provided an example ${dspace.dir}/config/log4j.xml as an alternative to log4j.properties. This caused some confusion and has been removed. log4j continues to support both Properties and XML forms of configuration, and you may continue (or begin) to use any form that log4j supports.

    5.2.11. Configuring Lucene Search Indexes

    Search indexes can be configured and customized easily in the dspace.cfg file. This allows institutions to choose which DSpace metadata fields are indexed by Lucene.

    Property: search.dir
    Example Value: search.dir = ${dspace.dir}/search @@ -670,7 +670,7 @@ search.index.11 = language:dc.language.iso <metadata field> is the DSpace metadata field to be indexed.

    In the example above, search.index.1 and search.index.2 and search.index.3 are configured as the author search field. The author index is created by Lucene indexing all dc.contributor.*, dc.creator.* and description.statementofresponsibility metadata fields.

    After changing the configuration run /[dspace]/bin/index-init to regenerate the indexes.

    [Note]

    While the indexes are created, this only affects the search results and has no effect on the search components of the user interface. One will need to customize the user interface to reflect the changes, for example, to add the a new search category to the Advanced Search.

    [Tip]

    In the above examples, notice the asterisk (*). The metadata field (at least for Dublin Core) is made up of the "element" and the "qualifier". The asterisk is used as the "wildcard". So, for example, keyword.dc.subject.* will index all subjects regardless if the term resides in a qualified field. (subject versus subject.lcsh). One could customize the search and only index LCSH (Library of Congress Subject Headings) with the following entry keyword:dc.subject.lcsh instead of keyword:dc.subject.* -

    5.2.12. Proxy Settings

    These settings for proxy are commented out by default. Uncomment and specify both properties if proxy server is required for external http requests. Use regular host name without port number.

    Property: +

    Authority Control Note:

    Although DSIndexer automatically builds a separate index for the authority keys of any index that contains authority-controlled metadata fields, the "Advanced Search" UIs does not allow direct access to it. Perhaps it will be added in the future. Fortunately, the OpenSearch API lets you submit a query directly to the Lucene search engine, and this may include the authority-controlled indexes.

    5.2.12. Proxy Settings

    These settings for proxy are commented out by default. Uncomment and specify both properties if proxy server is required for external http requests. Use regular host name without port number.

    Property: http.proxy.host
    Example Value http.proxy.host = proxy.myu.edu @@ -678,7 +678,7 @@ search.index.11 = language:dc.language.iso http.proxy.port
    Example Value http.proxy.port = 2048 -
    Informational NoteEnter the port number for the proxy server.

    5.2.13. Configuring Media Filters

    Media or Format Filters are classes used to generate derivative or alternative versions of content or bitstreams within DSpace. For example, the PDF Media Filter will extract textual content from PDF bitstreams, the JPEG Media Filter can create thumbnails from image bitstreams.

    Media Filters are configured as Named Plugins, with each filter also having a separate configuration setting (in dspace.cfg) indicating which formats it can process. The default configuration is shown below.

    Property: +
    Informational NoteEnter the port number for the proxy server.

    5.2.13. Configuring Media Filters

    Media or Format Filters are classes used to generate derivative or alternative versions of content or bitstreams within DSpace. For example, the PDF Media Filter will extract textual content from PDF bitstreams, the JPEG Media Filter can create thumbnails from image bitstreams.

    Media Filters are configured as Named Plugins, with each filter also having a separate configuration setting (in dspace.cfg) indicating which formats it can process. The default configuration is shown below.

    Property: filter.plugins
    Example Value:(See example below)
    @@ -705,7 +705,7 @@ filter.org.dspace.app.mediafilter.BrandedPreviewJPEGFilter.inputFormats
    filter.org.dspace.app.mediafilter.PDFFilter.inputFormats = Adobe PDF
     filter.org.dspace.app.mediafilter.HTMLFilter.inputFormats = HTML, Text
     filter.org.dspace.app.mediafilter.WordFilter.inputFormats = Microsoft Word
    -filter.org.dspace.app.mediafilter.JPEGFilter.inputFormats = BMP, GIF, JPEG, \ 
    +filter.org.dspace.app.mediafilter.JPEGFilter.inputFormats = BMP, GIF, JPEG, \
                                                                 image/png
     filter.org.dspace.app.mediafilter.BrandedPreviewJPEGFilter.inputFormats = BMP, \
                                                        GIF, JPEG, image/png
    @@ -719,7 +719,7 @@ filter.org.dspace.app.mediafilter.BrandedPreviewJPEGFilter.inputFormats = BMP, \ pdffilter.skiponmemoryexception = true
    Informational Note:If this value is set for "true", PDFs which still result in an "Out of Memory" error from PDFBox are skipped over. These problematic PDFs will never be indexed until memory usage can be decreased in the PDFBox software.

    Names are assigned to each filter using the plugin.named.org.dspace.app.mediafilter.FormatFilter field (e.g. by default the PDFilter is named "PDF Text Extractor".

    Finally, the appropriate filter.<class path>.inputFormats defines the valid input formats which each filter can be applied. These format names must match the short description field of the Bitstream Format Registry.

    You can also implement more dynamic or configurable Media/Format Filters which extend SelfNamedPlugin -

    5.2.14. Configurable MODS Dissemination Crosswalk

    The MODS crosswalk is a self-named plugin. To configure an instance of the MODS crosswalk, add a property to the DSpace configuration starting with "crosswalk.mods.properties."; the final word of the property name becomes the plugin's name. For example, a property name crosswalk.mods.properties.MODS defines a crosswalk plugin named "MODS".

    The value of this property is a path to a separate properties file containing the configuration for this crosswalk. The pathname is relative to the DSpace configuration directory, i.e. the config subdirectory of the DSpace install directory. Example from the dspace.cfgfile:

    Properties: +

    5.2.14. Configurable MODS Dissemination Crosswalk

    The MODS crosswalk is a self-named plugin. To configure an instance of the MODS crosswalk, add a property to the DSpace configuration starting with "crosswalk.mods.properties."; the final word of the property name becomes the plugin's name. For example, a property name crosswalk.mods.properties.MODS defines a crosswalk plugin named "MODS".

    The value of this property is a path to a separate properties file containing the configuration for this crosswalk. The pathname is relative to the DSpace configuration directory, i.e. the config subdirectory of the DSpace install directory. Example from the dspace.cfgfile:

    Properties:
    crosswalk.mods.properties.MODS
     crosswalk.mods.properties.mods
    Example Values: @@ -727,7 +727,7 @@ crosswalk.mods.properties.mods crosswalk.mods.properties.mods = crosswalks/mods.properties
    Informational Note:This defines a crosswalk named MODS whose configuration comes from the file [dspace]/config/crosswalks/mods.properties. (In the above example, the lower-case name was added for OAI-PMH)

    The MODS crosswalk properties file is a list of properties describing how DSpace metadata elements are to be turned into elements of the MODS XML output document. The property name is a concatenation of the metadata schema, element name, and optionally the qualifier. For example, the contributor.author element in the native Dublin Core schema would be: dc.contributor.author. The value of the property is a line containing two segments separated by the vertical bar ("|"): The first part is an XML fragment which is copied into the output document. The second is an XPath expression describing where in that fragment to put the value of the metadata element. For example, in this property:

     dc.contributor.author = <mods:name><mods:role><mods:roleTerm
    -	                    type="text">author</mods:roleTerm>
    +                            type="text">author</mods:roleTerm>
                             </mods:role><mods:namePart>%s</mods:;
                             <mods:namePart>%s</mods:namePart></mods:name> |
                             mods:namePart/text() 

    Some of the examples include the string "%s" in the prototype XML where the text value is to be inserted, but don't pay any attention to it, it is an artifact that the crosswalk ignores. For example, given an author named Jack Florey, the crosswalk will insert

    @@ -736,7 +736,7 @@ dc.contributor.author = <mods:name><mods:role><mods:roleTerm
          <mods:roleTerm type="text">author</mods:roleTerm>
        </mods:role>
        <mods:namePart>  Jack Florey</mods:namePart>
    -</mods:name>

    into the output document. Read the example configuration file for more details.

    5.2.15. XSLT-based Crosswalks

    The XSLT crosswalks use XSL stylesheet transformation (XSLT) to transform an XML-based external metadata format to or from DSpace's internal metadata. XSLT crosswalks are much more powerful and flexible than the configurable MODS and QDC crosswalks, but they demand some esoteric knowledge (XSL stylesheets). Given that, you can create all the crosswalks you need just by adding stylesheets and configuration lines, without touching any of the Java code.

    The default settings in the dspace.cfg file for submission crosswalk:

    Properties: +</mods:name>

    into the output document. Read the example configuration file for more details.

    5.2.15. XSLT-based Crosswalks

    The XSLT crosswalks use XSL stylesheet transformation (XSLT) to transform an XML-based external metadata format to or from DSpace's internal metadata. XSLT crosswalks are much more powerful and flexible than the configurable MODS and QDC crosswalks, but they demand some esoteric knowledge (XSL stylesheets). Given that, you can create all the crosswalks you need just by adding stylesheets and configuration lines, without touching any of the Java code.

    The default settings in the dspace.cfg file for submission crosswalk:

    Properties: crosswalk.submission.MODS.stylesheet
    Example Value: crosswalk.submission.MODS.stylesheet = crosswalks/mods-submission.xsl @@ -751,13 +751,13 @@ dc.contributor.author = <mods:name><mods:role><mods:roleTerm crosswalk.submission.MyFormat.stylesheet = crosswalks/myformat.xslt crosswalk.submission.almost_DC.stylesheet = crosswalks/myformat.xslt

    The dissemination crosswalk must also be configured with an XML Namespace (including prefix and URI) and an XML schema for its output format. This is configured on additional properties in the DSpace configuration:

          crosswalk.dissemination.PluginName.namespace.Prefix = namespace-URI
    -     crosswalk.dissemination.PluginName.schemaLocation = schemaLocation value 
    +     crosswalk.dissemination.PluginName.schemaLocation = schemaLocation value
     

    For example:

          crosswalk.dissemination.qdc.namespace.dc = http://purl.org/dc/elements/1.1/
          crosswalk.dissemination.qdc.namespace.dcterms = http://purl.org/dc/terms/
          crosswalk.dissemination.qdc.schemalocation = http://purl.org/dc/elements/1.1/ \
    -     http://dublincore.org/schemas/xmls/qdc/2003/04/02/qualifieddc.xsd

    5.2.15.1. Testing XSLT Crosswalks

    The XSLT crosswalks will automatically reload an XSL stylesheet that has been modified, so you can edit and test stylesheets without restarting DSpace. You can test a dissemination crosswalk by hooking it up to an OAI-PMH crosswalk and using an OAI request to get the metadata for a known item.

    Testing the submission crosswalk is more difficult, so we have supplied a command-line utility to help. It calls the crosswalk plugin to translate an XML document you submit, and displays the resulting intermediate XML (DIM). Invoke it with:

    [dspace]/bin/dsrun
    -     org.dspace.content.crosswalk.XSLTIngestionCrosswalk [-l] plugin input-file

    where plugin is the name of the crosswalk plugin to test (e.g. "LOM"), and input-file is a file containing an XML document of metadata in the appropriate format.

    Add the -l option to pass the ingestion crosswalk a list of elements instead of a whole document, as if the List form of the ingest() method had been called. This is needed to test ingesters for formats like DC that get called with lists of elements instead of a root element.

    5.2.16. Configurable Qualified Dublin Core (QDC) dissemination crosswalk

    The QDC crosswalk is a self-named plugin. To configure an instance of the QDC crosswalk, add a property to the DSpace configuration starting with "crosswalk.qdc.properties."; the final word of the property name becomes the plugin's name. For example, a property name crosswalk.qdc.properties.QDC defines a crosswalk plugin named "QDC".

    The following is from dspace.cfg file:

    Properties: + http://dublincore.org/schemas/xmls/qdc/2003/04/02/qualifieddc.xsd

    5.2.15.1. Testing XSLT Crosswalks

    The XSLT crosswalks will automatically reload an XSL stylesheet that has been modified, so you can edit and test stylesheets without restarting DSpace. You can test a dissemination crosswalk by hooking it up to an OAI-PMH crosswalk and using an OAI request to get the metadata for a known item.

    Testing the submission crosswalk is more difficult, so we have supplied a command-line utility to help. It calls the crosswalk plugin to translate an XML document you submit, and displays the resulting intermediate XML (DIM). Invoke it with:

    [dspace]/bin/dsrun
    +     org.dspace.content.crosswalk.XSLTIngestionCrosswalk [-l] plugin input-file

    where plugin is the name of the crosswalk plugin to test (e.g. "LOM"), and input-file is a file containing an XML document of metadata in the appropriate format.

    Add the -l option to pass the ingestion crosswalk a list of elements instead of a whole document, as if the List form of the ingest() method had been called. This is needed to test ingesters for formats like DC that get called with lists of elements instead of a root element.

    5.2.16. Configurable Qualified Dublin Core (QDC) dissemination crosswalk

    The QDC crosswalk is a self-named plugin. To configure an instance of the QDC crosswalk, add a property to the DSpace configuration starting with "crosswalk.qdc.properties."; the final word of the property name becomes the plugin's name. For example, a property name crosswalk.qdc.properties.QDC defines a crosswalk plugin named "QDC".

    The following is from dspace.cfg file:

    Properties: crosswalk.qdc.namspace.qdc.dc
    Example Value: crosswalk.qdc.namspace.qdc.dc = http://purl.org/dc/elements/1.1 @@ -778,7 +778,7 @@ dc.contributor.author = <mods:name><mods:role><mods:roleTerm crosswalk.qdc.properties.QDC = crosswalks/QDC.properties
    Informational Note:Configuration of the QDC Crosswalk dissemination plugin for Qualified DC. (Add lower-case name for OAI-PMH. That is, change QDC to qdc.)

    In the property key "crosswalk.qdc.properties.QDC" the value of this property is a path to a separate properties file containing the configuration for this crosswalk. The pathname is relative to the DSpace configuration directory /[dspace]/config - . Referring back to the "Example Value" for this property key, one has crosswalks/qdc.properties which defines a crosswalk named QDC whose configuration comes from the file [dspace]/config/crosswalks/qdc.properties.

    You will also need to configure the namespaces and schema location strings for the XML output generated by this crosswalk. The namespaces properties names are formatted:

    crosswalk.qdc.namespace.prefix = uri

    where prefix is the namespace prefix and uri is the namespace URI. See the above Property and Example Value keys as the default dspace.cfg has been configured.

    The QDC crosswalk properties file is a list of properties describing how DSpace metadata elements are to be turned into elements of the Qualified DC XML output document. The property name is a concatenation of the metadata schema, element name, and optionally the qualifier. For example, the contributor.author element in the native Dublin Core schema would be: dc.contributor.author. The value of the property is an XML fragment, the element whose value will be set to the value of the metadata field in the property key.

    For example, in this property:

         dc.coverage.temporal = <dcterms:temporal />

    the generated XML in the output document would look like, e.g.:

         <dcterms:temporal>Fall, 2005</dcterms:temporal>

    5.2.17. Configuring Crosswalk Plugins

    Ingestion crosswalk plugins are configured as named or self-named plugins for the interface org.dspace.content.crosswalk.IngestionCrosswalk. Dissemination crosswalk plugins are configured as named or self-named plugins for the interface org.dspace.content.crosswalk.DisseminationCrosswalk.

    You can add names for existing crosswalks, add new plugin classes, and add new configurations for the configurable crosswalks as noted below.

    5.2.18. Configuring Packager Plugins

    Package ingester plugins are configured as named or self-named plugins for the interface org.dspace.content.packager.PackageIngester. Package disseminator plugins are configured as named or self-named plugins for the interface org.dspace.content.packager.PackageDisseminator.

    You can add names for the existing plugins, and add new plugins, by altering these configuration properties. See the Plugin Manager architecture for more information about plugins.

    5.2.19. Event System Configuration

    Properties: + . Referring back to the "Example Value" for this property key, one has crosswalks/qdc.properties which defines a crosswalk named QDC whose configuration comes from the file [dspace]/config/crosswalks/qdc.properties.

    You will also need to configure the namespaces and schema location strings for the XML output generated by this crosswalk. The namespaces properties names are formatted:

    crosswalk.qdc.namespace.prefix = uri

    where prefix is the namespace prefix and uri is the namespace URI. See the above Property and Example Value keys as the default dspace.cfg has been configured.

    The QDC crosswalk properties file is a list of properties describing how DSpace metadata elements are to be turned into elements of the Qualified DC XML output document. The property name is a concatenation of the metadata schema, element name, and optionally the qualifier. For example, the contributor.author element in the native Dublin Core schema would be: dc.contributor.author. The value of the property is an XML fragment, the element whose value will be set to the value of the metadata field in the property key.

    For example, in this property:

         dc.coverage.temporal = <dcterms:temporal />

    the generated XML in the output document would look like, e.g.:

         <dcterms:temporal>Fall, 2005</dcterms:temporal>

    5.2.17. Configuring Crosswalk Plugins

    Ingestion crosswalk plugins are configured as named or self-named plugins for the interface org.dspace.content.crosswalk.IngestionCrosswalk. Dissemination crosswalk plugins are configured as named or self-named plugins for the interface org.dspace.content.crosswalk.DisseminationCrosswalk.

    You can add names for existing crosswalks, add new plugin classes, and add new configurations for the configurable crosswalks as noted below.

    5.2.18. Configuring Packager Plugins

    Package ingester plugins are configured as named or self-named plugins for the interface org.dspace.content.packager.PackageIngester. Package disseminator plugins are configured as named or self-named plugins for the interface org.dspace.content.packager.PackageDisseminator.

    You can add names for the existing plugins, and add new plugins, by altering these configuration properties. See the Plugin Manager architecture for more information about plugins.

    5.2.19. Event System Configuration

    Properties:
    event.dispatcher.default.class
      event.dispatcher.default.consumers
    Example Value: @@ -823,7 +823,7 @@ event.consumer.test.filters = All+All testConsumer.verbose
    Example Value: testConsumer.verbose = true -
    Informational Note:Set this to true to enable testConsumer messages to standard output. Commented out by default.

    5.2.20. Checksum Checker Settings

    DSpace now comes with a Checksum Checker script ([dspace]/bin/checker) which can be scheduled to verify the checksum of every item within DSpace. Since DSpace calculates and records the checksum of every file submitted to it, this script is able to determine whether or not a file has been changed (either manually or by some sort of corruption or virus). The idea being that the earlier you can identify a file has changed, the more likely you'd be able to recover it (assuming it was not a wanted change).

    Property: +
    Informational Note:Set this to true to enable testConsumer messages to standard output. Commented out by default.

    5.2.20. Checksum Checker Settings

    DSpace now comes with a Checksum Checker script ([dspace]/bin/checker) which can be scheduled to verify the checksum of every item within DSpace. Since DSpace calculates and records the checksum of every file submitted to it, this script is able to determine whether or not a file has been changed (either manually or by some sort of corruption or virus). The idea being that the earlier you can identify a file has changed, the more likely you'd be able to recover it (assuming it was not a wanted change).

    Property: plugin.single.org.dspace.checker.BitstreamDispatcher
    Example Value: plugin.single.org.dspace.checker.BitstreamDispatcher = org.dspace.checker.SimpleDispatcher @@ -835,7 +835,7 @@ event.consumer.test.filters = All+All checker.retention.CHECKSUM_MATCH
    Example Value: checker.retention.CHECKSUM_MATCH = 8w -
    Informational Note:This option specifies the time frame after which a successful “match” will be removed from your DSpace database (defaults to 8 weeks). This means that after 8 weeks, all successful matches are automatically deleted from your database (in order to keep that database table from growing too large).

    5.2.21. Item Export and Download Settings

    It is possible for an authorized user to request a complete export and download of a DSpace item in a compressed zip file. This zip file may contain the following:

    dublin_core.xml
    license.txt
    contents (listing of the contents)
    handle
    +
    Informational Note:This option specifies the time frame after which a successful “match” will be removed from your DSpace database (defaults to 8 weeks). This means that after 8 weeks, all successful matches are automatically deleted from your database (in order to keep that database table from growing too large).

    5.2.21. Item Export and Download Settings

    It is possible for an authorized user to request a complete export and download of a DSpace item in a compressed zip file. This zip file may contain the following:

    dublin_core.xml
    license.txt
    contents (listing of the contents)
    handle
    file itself and the extract file if available

    The configuration settings control several aspects of this feature:

    Property: org.dspace.app.itemexport.work.dir @@ -853,11 +853,11 @@ event.consumer.test.filters = All+All org.dspace.app.itemexport.max.size
    Example Value: org.dspace.app.itemexport.max.size = 200 -
    Informational NoteThe maximum size in Megabytes (Mb) that the export should be. This is enforced before the compression. Each bitstream's size in each item being exported is added up, if their cumulative sizes are more than this entry the export is not kicked off.

    5.2.22. Subscription Emails

    DSpace, through some advanced installation and setup, is able to send out an email to collections that a user has subscribed. The user who is subscribed to a collection is emailed each time an item id added or modified. The following property key controls whether or not a user should be notified of a modification.

    Property: +
    Informational NoteThe maximum size in Megabytes (Mb) that the export should be. This is enforced before the compression. Each bitstream's size in each item being exported is added up, if their cumulative sizes are more than this entry the export is not kicked off.

    5.2.22. Subscription Emails

    DSpace, through some advanced installation and setup, is able to send out an email to collections that a user has subscribed. The user who is subscribed to a collection is emailed each time an item id added or modified. The following property key controls whether or not a user should be notified of a modification.

    Property: eperson.subscription.onlynew
    Example Value: eperson.subscription.onlynew = true -
    Informational Note:For backwards compatibility, the subscription emails by default include any modified items. The property key is COMMENTED OUT by default.

    5.2.23. Settings for the Submission Process

    These settings control two aspects of the submission process: thesis submission permission and whether or not a bitstream file is required when submitting to a collection.

    Property: +
    Informational Note:For backwards compatibility, the subscription emails by default include any modified items. The property key is COMMENTED OUT by default.

    5.2.23. Settings for the Submission Process

    These settings control two aspects of the submission process: thesis submission permission and whether or not a bitstream file is required when submitting to a collection.

    Property: webui.submit.blocktheses
    Example Value: webui.submit.blocktheses = false @@ -865,13 +865,13 @@ event.consumer.test.filters = All+All webui.submit.upload.required
    Example Value: webui.submit.upload.required = true -
    Informational Note:Whether or not a file is required to be uploaded during the "Upload" step in the submission process. The default is true. If set to "false", then the submitter (human being) has the option to skip the uploading of a file.

    5.2.24. Configuring Creative Commons License

    This enables the Creative Commons license step in the submission process of the JSP User Interface (JSPUI). Submitters are given an opportunity to select a Creative Common license to accompany the item. Creative Commons license govern the use of the content. For further details, refer to the Creative Commons website at http://creativecommons.org .

    Property: +
    Informational Note:Whether or not a file is required to be uploaded during the "Upload" step in the submission process. The default is true. If set to "false", then the submitter (human being) has the option to skip the uploading of a file.

    5.2.24. Configuring Creative Commons License

    This enables the Creative Commons license step in the submission process of the JSP User Interface (JSPUI). Submitters are given an opportunity to select a Creative Common license to accompany the item. Creative Commons license govern the use of the content. For further details, refer to the Creative Commons website at http://creativecommons.org .

    Property: webui.submit.enable-cc
    Example Value: webui.submit.enable-cc = false
    Informational Note: Set key to "false" if you are not using CC License. Set key to "true" if you are using CC License. -

    5.2.25. WEB User Interface Configurations

    General Web User Interface Configurations

    In this section of Configuration, we address the agnostic WEB User Interface that is used for JSP UI and XML UI. Some of the configurations will give information towards customization or refer you to the appropriate documentation.

    Property: +

    5.2.25. WEB User Interface Configurations

    General Web User Interface Configurations

    In this section of Configuration, we address the agnostic WEB User Interface that is used for JSP UI and XML UI. Some of the configurations will give information towards customization or refer you to the appropriate documentation.

    Property: webui.browse.thubnail.show
    Example Value: webui.browse.thubnail.show = true @@ -931,7 +931,7 @@ webui.preview.brand.fontpoint = 12 webui.strengths.cache
    Example Value: webui.strengths.cache = false -
    Informational Note:When showing the strengths, should they be counted in real time, or fetched from the cache. Counts fetched in real time will perform an actual count of the database contents every time a page with this feature is requested, which will not scale. If you set the property key is set to cache ("true") you must run the following command periodically to update the count: /[dspace]/bin/dsrun org.dspace.browse.ItemCounter. The default is to count in real time (set to "false").

    5.2.26. Browse Index Configuration

    The browse indexes for DSpace can be extensively configured. This section of the configuration allows you to take control of the indexes you wish to browse, and how you wish to present the results. The configuration is broken into several parts: defining the indexes, defining the fields upon which users can sort results, defining truncation for potentially long fields (e.g. authors), setting cross-links between different browse contexts (e.g. from an author's name to a complete list of their items), how many recent submissions to display, and configuration for item mapping browse.

    Property: +
    Informational Note:When showing the strengths, should they be counted in real time, or fetched from the cache. Counts fetched in real time will perform an actual count of the database contents every time a page with this feature is requested, which will not scale. If you set the property key is set to cache ("true") you must run the following command periodically to update the count: /[dspace]/bin/dsrun org.dspace.browse.ItemCounter. The default is to count in real time (set to "false").

    5.2.26. Browse Index Configuration

    The browse indexes for DSpace can be extensively configured. This section of the configuration allows you to take control of the indexes you wish to browse, and how you wish to present the results. The configuration is broken into several parts: defining the indexes, defining the fields upon which users can sort results, defining truncation for potentially long fields (e.g. authors), setting cross-links between different browse contexts (e.g. from an author's name to a complete list of their items), how many recent submissions to display, and configuration for item mapping browse.

    Property: webui.browse.index.<n>
    Example Value: webui.browse.index.1 = dateissued:metadata:dc.date.issued:date:full @@ -939,7 +939,7 @@ webui.preview.brand.fontpoint = 12 webui.itemlist.sort-option.<n>
    Example Value: webui.itemlist.sort-option.1 = title:dc.title:title -
    Informational Note:This is an example of how one "Defines the Sort Options". See Defining Sort Options in the following sub-section.

    5.2.26.1. Defining the Indexes.

    DSpace arrives with four default indexes already defined: author, title, date issued, and subjects. Users may also define additional indexes or re-configure the current indexes for different levels of specificity. For example, the default entries that appear in the dspace.cfg as default installation:

    webui.browse.index.1 = dateissued:metadata:dc.date.issued:date:full
    +							
    Informational Note:This is an example of how one "Defines the Sort Options". See Defining Sort Options in the following sub-section.

    5.2.26.1. Defining the Indexes.

    DSpace arrives with four default indexes already defined: author, title, date issued, and subjects. Users may also define additional indexes or re-configure the current indexes for different levels of specificity. For example, the default entries that appear in the dspace.cfg as default installation:

    webui.browse.index.1 = dateissued:metadata:dc.date.issued:date:full
     webui.browse.index.2 = author:metadata:dc.contributor.*:text
     webui.browse.index.3 = title:metadata:dc.title:title:full
     webui.browse.index.4 = subject:metadata:dc.subject.*:text
    @@ -967,7 +967,7 @@ webui.browse.index.4 = subject:metadata:dc.subject.*:text
     											title the index type will be treated like a title, which will include a link to the item page 
    text the index type will be treated as plain text. If single mode is specified then this will link to the full mode list
    <index display> - Choose full or single. This refers to the way that the index will be displayed in the browse listing. "Full" will be the full item list as specified by webui.itemlist.columns ; "single" will be a single list of only the indexed term.

    If you are customizing this list beyond the default, you will need to insert the text you wish to appear in the navigation and on link and buttons. You need to edit the Messages.properties file. The form of the parameter(s) in the file:

         browse.type.<index name>

    5.2.26.2. Defining Sort Options

    Sort options will be available when browsing a list of items (i.e. only in "full" mode, not "single" mode). You can define an arbitrary number of fields to sort on, irrespective of which fields you display using web.itemlist.columns. For example, the default entries that appear in the dspace.cfg as default installation:

    webui.itemlist.sort-option.1 = title:dc.title:title
    +								
    Choose full or single. This refers to the way that the index will be displayed in the browse listing. "Full" will be the full item list as specified by webui.itemlist.columns ; "single" will be a single list of only the indexed term.

    If you are customizing this list beyond the default, you will need to insert the text you wish to appear in the navigation and on link and buttons. You need to edit the Messages.properties file. The form of the parameter(s) in the file:

         browse.type.<index name>

    5.2.26.2. Defining Sort Options

    Sort options will be available when browsing a list of items (i.e. only in "full" mode, not "single" mode). You can define an arbitrary number of fields to sort on, irrespective of which fields you display using web.itemlist.columns. For example, the default entries that appear in the dspace.cfg as default installation:

    webui.itemlist.sort-option.1 = title:dc.title:title
     webui.itemlist.sort-option.2 = dateissued:dc.date.issued:date
     webui.itemlist.sort-option.3 = dateaccessioned:dc.date.accessioned:date

    The format of each entry isweb.browse.sort-option.<n> = <option name>:<schema prefix>.<element>.<qualifier>:<datatype>. Please notice the punctuation used between the different elements. The following table explains the each element:

    Element @@ -990,11 +990,11 @@ webui.itemlist.sort-option.3 = dateaccessioned:dc.date.accessioned:date

    date

    the sort type will be treated as a date object
    text - the sort type will be treated as plain text.

    5.2.26.3. Browse Index Normalization Rule Configuration

    Normalization Rules are those rules that make it possible for the indexes to intermix entries without regard to case sensitivity. By default, the display of metadata in the browse indexes are case-sensitive. In the example below, you retrieve separate entries:

    Twain, Mark
    twain, mark
    TWAIN, MARK

    However, clicking through from either of these will result in the same set of items (i.e., any item that contains either representation in the correct field).

    Property: + the sort type will be treated as plain text.

    5.2.26.3. Browse Index Normalization Rule Configuration

    Normalization Rules are those rules that make it possible for the indexes to intermix entries without regard to case sensitivity. By default, the display of metadata in the browse indexes are case-sensitive. In the example below, you retrieve separate entries:

    Twain, Mark
    twain, mark
    TWAIN, MARK

    However, clicking through from either of these will result in the same set of items (i.e., any item that contains either representation in the correct field).

    Property: webui.browse.metadata.case-insensitive
    Example Value: webui.browse.metadata.case-insensitive = true -
    Informational Note:This controls the normalization of the index entry. Uncommenting the option (which is commented out by default) will make the metadata items case-insensitive. This will result in a single entry in the example above. However, the value displayed may be any one of the above—depending on what representation was present in the first item indexed.

    At the present time, you would need to edit your metadata to clean up the index presentation.

    5.2.26.4. Other Browse Options

    We set other browse values in the following section.

    Property:webui.browse.value_columns.max
    Example Value:webui.browse.value_columns.max = 500
    Informational Note:This sets the options for the size (number of characters) of the fields stored in the database. The default is 0, which is unlimited size for fields holding indexed data. Some database implementations (e.g. Oracle) will enforce their own limit on this field size. Reducing the field size will decrease the potential size of your database and increase the speed of the browse, but it will also increase the chance of mis-ordering of similar fields. The values are commented out, but proposed values for reasonably performance versus result quality. This affects the size of field for the browse value (this will affect display, and value sorting )
     
    Property:webui.browse.sort_columns.max
    Example Value:webui.browse.sort_columns.max = 200
    Informational Note:Size of field for hidden sort columns (this will affect only sorting, not display). Commented out as default.
     
    Property:webui.browse.value_columns.omission_mark
    Example Value:webui.browse.value_columns.omission_mark = ...
    Informational Note:Omission mark to be placed after truncated strings in display. The default is "...".
     
    Property:plugin.named.org.dspace.sort.OrderFormatDelegate
    Example Value: +
    Informational Note:This controls the normalization of the index entry. Uncommenting the option (which is commented out by default) will make the metadata items case-insensitive. This will result in a single entry in the example above. However, the value displayed may be any one of the above—depending on what representation was present in the first item indexed.

    At the present time, you would need to edit your metadata to clean up the index presentation.

    5.2.26.4. Other Browse Options

    We set other browse values in the following section.

    Property:webui.browse.value_columns.max
    Example Value:webui.browse.value_columns.max = 500
    Informational Note:This sets the options for the size (number of characters) of the fields stored in the database. The default is 0, which is unlimited size for fields holding indexed data. Some database implementations (e.g. Oracle) will enforce their own limit on this field size. Reducing the field size will decrease the potential size of your database and increase the speed of the browse, but it will also increase the chance of mis-ordering of similar fields. The values are commented out, but proposed values for reasonably performance versus result quality. This affects the size of field for the browse value (this will affect display, and value sorting )
     
    Property:webui.browse.sort_columns.max
    Example Value:webui.browse.sort_columns.max = 200
    Informational Note:Size of field for hidden sort columns (this will affect only sorting, not display). Commented out as default.
     
    Property:webui.browse.value_columns.omission_mark
    Example Value:webui.browse.value_columns.omission_mark = ...
    Informational Note:Omission mark to be placed after truncated strings in display. The default is "...".
     
    Property:plugin.named.org.dspace.sort.OrderFormatDelegate
    Example Value:
    plugin.named.org.dspace.sort.OrderFormatDelegate = \
     org.dspace.sort.OrderFormatTitleMarc21=title
    Informational Note: @@ -1004,34 +1004,39 @@ title = org.dspace.sort.OrderFormatTitle text = org.dspace.sort.OrderFormatText

    If you redefine a default datatype here, the configuration will be used in preferences to the default. However, if you do not explicitly redefine a datatype, then the default will still be used in addition to the datatypes you do specify.

    As of DSpace release 1.5.2, the multi-lingual MARC21 title ordering is configured as default, as shown in the example above. To use the previous title ordering (before release 1.5.2), comment out the configuration in your dspace.cfg file.

    -

    5.2.27. Author (Multiple metadata value) Display

    [Note]

    This section actually applies to any field with multiple values, but authors are the define case and example here.

    Property:webui.browse.author-field
    Example Value:webui.browse.author-field = dc.contributor.*
    Informational Note:This defines which field is the author/editor, etc. listing.

    Replace dc.contributor.* with another field if appropriate. The field should be listed in the configuration for webui.itemlist.columns, otherwise you will not see its effect. It must also be defined in webui.itemlist.columns as being of the datatype text otherwise the functionality will be overridden by the specific data type feature. (This setting is not used by the XMLUI as it is controlled by your theme).

    Now that we know which field is our author or other multiple metadata value field we can provide the option to truncate the number of values displayed by default. We replace the remaining list of values with "et al" or the language pack specific alternative. Note that this is just for the default, and users will have the option of changing the number displayed when they browse the results. See the following table:

    Property:webui.browse.author-limit
    Example Value:webui.browse.author-limit = <n>
    Informational Note:Where <n> is an integer number of values to be displayed. Use -1 for unlimited (the default value).

    5.2.28. Links to Other Browse Contexts

    We can define which fields link to other browse listings. This is useful, for example, to link an author's name to a list of just that author's items. The effect this has is to create links to browse views for the item clicked on. If it is a "single" type, it will link to a view of all the items which share that metadata element in common (i.e. all the papers by a single author). If it is a "full" type, it will link to a view of the standard full browse page, starting with the value of the link clicked on.

    Property:webui.browse.link.<n>
    Example Value:webui.browse.link.1 = author:dc.contributor.*
    Informational Note:This is used to configure which fields should link to other browse listings. This should be associated with the name of one of the browse indexes (webui.browse.index.n) with a metadata field listed in webui.itemlist.columns above. If this condition is not fulfilled, cross-linking will not work. Note also that crosslinking only works for metadata fields not tagged as title in webui.itemlist.columns.

    The format of the property key is webui.browse.link.<n> = <index name>:<display column metadata> Please notice the punctuation used between the elements.

    +

    5.2.26.5. Browse Index Authority Control Configuration

    Property:webui.browse.index.n
    Example Value:webui.browse.index.5 = lcAuthor:metadataAuthority:dc.contributor.author:authority
    Informational Note:Yet to be written.

    5.2.27. Author (Multiple metadata value) Display

    [Note]

    This section actually applies to any field with multiple values, but authors are the define case and example here.

    Property:webui.browse.author-field
    Example Value:webui.browse.author-field = dc.contributor.*
    Informational Note:This defines which field is the author/editor, etc. listing.

    Replace dc.contributor.* with another field if appropriate. The field should be listed in the configuration for webui.itemlist.columns, otherwise you will not see its effect. It must also be defined in webui.itemlist.columns as being of the datatype text otherwise the functionality will be overridden by the specific data type feature. (This setting is not used by the XMLUI as it is controlled by your theme).

    Now that we know which field is our author or other multiple metadata value field we can provide the option to truncate the number of values displayed by default. We replace the remaining list of values with "et al" or the language pack specific alternative. Note that this is just for the default, and users will have the option of changing the number displayed when they browse the results. See the following table:

    Property:webui.browse.author-limit
    Example Value:webui.browse.author-limit = <n>
    Informational Note:Where <n> is an integer number of values to be displayed. Use -1 for unlimited (the default value).

    5.2.28. Links to Other Browse Contexts

    We can define which fields link to other browse listings. This is useful, for example, to link an author's name to a list of just that author's items. The effect this has is to create links to browse views for the item clicked on. If it is a "single" type, it will link to a view of all the items which share that metadata element in common (i.e. all the papers by a single author). If it is a "full" type, it will link to a view of the standard full browse page, starting with the value of the link clicked on.

    Property:webui.browse.link.<n>
    Example Value:webui.browse.link.1 = author:dc.contributor.*
    Informational Note:This is used to configure which fields should link to other browse listings. This should be associated with the name of one of the browse indexes (webui.browse.index.n) with a metadata field listed in webui.itemlist.columns above. If this condition is not fulfilled, cross-linking will not work. Note also that crosslinking only works for metadata fields not tagged as title in webui.itemlist.columns.

    The format of the property key is webui.browse.link.<n> = <index name>:<display column metadata> Please notice the punctuation used between the elements.

    Element Definition and Options (if available) -
    webui.browse.link.nn is an arbitrary number you choose
    <index name>This need to match your entry for the index name from webui.browse.index property key.
    <display column metadata>Use the DC element (and qualifier)

    Examples of some browse links used in a real DSpace installation instance:

    webui.browse.link.1 = author:dc.contributor.* Creates a link for all types of contributors (authors, editors, illustrators, others, etc.)webui.browse.link.2 = subject:dc.subject.lcsh Creates a link to subjects that are Library of Congress only. In this case, you have a browse index that contains only LC Subject Headings
    webui.browse.link.3 = series:dc.relation.ispartofseries Creates a link for the browse index "Series". Please note this is again, a customized browse index and not part of the DSpace distributed release. 

    5.2.29. Recent Submissions

    This allows us to define which index to base Recent Submission display on, and how many we should show at any one time. This uses the PluginManager to automatically load the relevant plugin for the Community and Collection home pages. Values given in examples are the defaults supplied in dspace.cfg

    Property:recent.submission.sort-option
    Example Value:recent.submission.sort-option = dateaccessioned
    Informational Note:First is to define the sort name (from webui.browse.sort-options) to use for displaying recent submissions.
     
    Property:recent.submissions.count
    Example Value:recent.submissions.count = 5
    Informational Note:Defines how many recent submissions should be displayed at any one time.

    There will be the need to set up the processors that the PluginManager will load to actually perform the recent submissions query on the relevant pages. This is already configured by default dspace.cfg so there should be no need for the administrator/programmer to worry about this.

    +							
    webui.browse.link.nn is an arbitrary number you choose
    <index name>This need to match your entry for the index name from webui.browse.index property key.
    <display column metadata>Use the DC element (and qualifier)

    Examples of some browse links used in a real DSpace installation instance:

    webui.browse.link.1 = author:dc.contributor.* Creates a link for all types of contributors (authors, editors, illustrators, others, etc.)webui.browse.link.2 = subject:dc.subject.lcsh Creates a link to subjects that are Library of Congress only. In this case, you have a browse index that contains only LC Subject Headings
    webui.browse.link.3 = series:dc.relation.ispartofseries Creates a link for the browse index "Series". Please note this is again, a customized browse index and not part of the DSpace distributed release. 

    5.2.29. Recent Submissions

    This allows us to define which index to base Recent Submission display on, and how many we should show at any one time. This uses the PluginManager to automatically load the relevant plugin for the Community and Collection home pages. Values given in examples are the defaults supplied in dspace.cfg

    Property:recent.submission.sort-option
    Example Value:recent.submission.sort-option = dateaccessioned
    Informational Note:First is to define the sort name (from webui.browse.sort-options) to use for displaying recent submissions.
     
    Property:recent.submissions.count
    Example Value:recent.submissions.count = 5
    Informational Note:Defines how many recent submissions should be displayed at any one time.

    There will be the need to set up the processors that the PluginManager will load to actually perform the recent submissions query on the relevant pages. This is already configured by default dspace.cfg so there should be no need for the administrator/programmer to worry about this.

     plugin.sequence.org.dspace.plugin.CommunityHomeProcessor = \
             org.dspace.app.webui.components.RecentCommunitySubmissions
     
     plugin.sequence.org.dspace.plugin.CollectionHomeProcessor = \
             org.dspace.app.webui.components.RecentCollectionSubmissions
    -

    5.2.30. Syndication Feed (RSS) Settings

    This will enable syndication feeds—links display on community and collection home pages. This setting is not used by the XMLUI, as you enable feeds in your theme.

    Property:webui.feed.enable
    Example Value:webui.feed.enable = false
    Informational Note:By default, RSS feeds are set to false (off). Change key to "true" to enable.
     
    Property:webui.feed.items
    Example Value:webui.feed.items = 4
    Informational Note:Defines the number of DSpace items per feed (the most recent submissions)
     
    Property:webui.feed.cache.size
    Example Value:webui.feed.cache.size = 100
    Informational Note:Defines the maximum number of feeds in memory cache. Value of "0" will disable caching.
     
    Property:webui.feed.cache.age
    Example Value:webui.feed.cache.age = 48
    Informational Note:Defines the number of hours to keep cached feeds before checking currency. The value of "0" will force a check with each request.
     
    Property:webui.feed.formats
    Example Value:webui.feed.formats = rss_1.0,rss_2.0,atom_1.0
    Informational Note:Defines which syndication formats to offer. You can use more than one; use a comma-separated list. The following list are the available values: rss_0.90, rss_0.91, rss_0.92, rss_0.93, rss_0.94, rss_1.0, rss_2.0, atom_1.0.
     
    Property:webui.feed.localresolve
    Example Value:webui.feed.localresolve = false
    Informational Note:By default, (set to false), URLs returned by the feed will point at the global handle resolver (e.g. http://hdl.handle.net/123456789/1). If set to true the local server URLs are used (e.g. http://myserver.myorg/handle/123456789/1).
     
    Property: -
    webui.feed.item.title
    +

    5.2.30. Syndication Feed (RSS) Settings

    This will enable syndication feeds—links display on community and collection home pages. This setting is not used by the XMLUI, as you enable feeds in your theme.

    Property:webui.feed.enable
    Example Value:webui.feed.enable = true
    Informational Note:By default, RSS feeds are set to true (on). Change key to "false" to disable.
     
    Property:webui.feed.items
    Example Value:webui.feed.items = 4
    Informational Note:Defines the number of DSpace items per feed (the most recent submissions)
     
    Property:webui.feed.cache.size
    Example Value:webui.feed.cache.size = 100
    Informational Note:Defines the maximum number of feeds in memory cache. Value of "0" will disable caching.
     
    Property:webui.feed.cache.age
    Example Value:webui.feed.cache.age = 48
    Informational Note:Defines the number of hours to keep cached feeds before checking currency. The value of "0" will force a check with each request.
     
    Property:webui.feed.formats
    Example Value:webui.feed.formats = rss_1.0,rss_2.0,atom_1.0
    Informational Note:Defines which syndication formats to offer. You can use more than one; use a comma-separated list. The following list are the available values: rss_0.90, rss_0.91, rss_0.92, rss_0.93, rss_0.94, rss_1.0, rss_2.0, atom_1.0.
     
    Property:webui.feed.localresolve
    Example Value:webui.feed.localresolve = false
    Informational Note:By default, (set to false), URLs returned by the feed will point at the global handle resolver (e.g. http://hdl.handle.net/123456789/1). If set to true the local server URLs are used (e.g. http://myserver.myorg/handle/123456789/1).
     
    Property: +
    webui.feed.item.title
     webui.feed.item.date
    Example Value:
    webui.feed.item.title = dc.title
     webui.feed.item.date = dc.date.issued
    -
    Informational Note:This set of keys customize each single-value field displayed in the feed information for each item. Each of the fields takes a *single* metadata field. The form of the key is <scheme prefix>.<element>.<qualifier> In place of the qualifier, one may leave it blank to exclude any qualifiers or use the wildcard "*" to include all qualifiers for a particular element.
     
    Property:webui.feed.item.description
    Example Value:(See example below)
    +
    Informational Note:This set of keys customize each single-value field displayed in the feed information for each item. Each of the fields takes a *single* metadata field. The form of the key is <scheme prefix>.<element>.<qualifier> In place of the qualifier, one may leave it blank to exclude any qualifiers or use the wildcard "*" to include all qualifiers for a particular element.
     
    Property:webui.feed.item.description
    Example Value:(See example below)
    webui.feed.item.description = dc.title, dc.contributor.author, \
                dc.contributor.editor, dc.description.abstract, \
                dc.description
    -
    Informational Note:

    One can customize the metadata fields to show in the feed for each item's description. Elements are displayed in the order they are specified in dspace.cfg.

    -

    Like other property keys, the format of this property key is: webui.feed.item.description = <scheme prefix>.<element>.<qualifier>. In place of the qualifier, one may leave it blank to exclude any qualifiers or use the wildcard "*" to include all qualifiers for a particular element.

    -
     
    Property:webui.feed.item.author
    Example Value:webui.feed.item.author = dc.contributor.author
    Informational Note:The name of field to use for authors (Atom only); repeatable.
     
    Property:webui.feed.logo.url
    Example Value:webui.feed.logo.url = ${dspace.url}/themes/mysite/images/mysite-logo.png
    Informational Note:Customize the image icon included with the site-wide feeds. This must be an absolute URL
     
    Property:
    webui.feed.item.dc.creator
    +							
    Informational Note: +

    One can customize the metadata fields to show in the feed for each item's description. Elements are displayed in the order they are specified in dspace.cfg.

    +

    Like other property keys, the format of this property key is: webui.feed.item.description = <scheme prefix>.<element>.<qualifier>. In place of the qualifier, one may leave it blank to exclude any qualifiers or use the wildcard "*" to include all qualifiers for a particular element.

    +
     
    Property:webui.feed.item.author
    Example Value:webui.feed.item.author = dc.contributor.author
    Informational Note:The name of field to use for authors (Atom only); repeatable.
     
    Property:webui.feed.logo.url
    Example Value:webui.feed.logo.url = ${dspace.url}/themes/mysite/images/mysite-logo.png
    Informational Note:Customize the image icon included with the site-wide feeds. This must be an absolute URL
     
    Property: +
    webui.feed.item.dc.creator
     webui.feed.item.dc.date
     webui.feed.item.dc.description
    -						
    Example Value:
    webui.feed.item.dc.creator = dc.contributor.author
    +                                                
    +
    Example Value: +
    webui.feed.item.dc.creator = dc.contributor.author
     webui.feed.item.dc.date = dc.date.issued
    -webui.feed.item.dc.description = dc.description.abstract
    Informational Note:These optional properties add structured DC elements as XML elements to the feed description. They are not the same thing as, for example, webui.feed.item.description. Useful when a program or stylesheet will be transforming a feed and wants separate author, description, date, etc.

    5.2.31. Content Inline Disposition Threshold

    The following configuration is used to change the disposition behavior of the browser. That is, when the browser will attempt to open the file or download it to the user's specified location. For example, the default size is 8Mb. When an item being viewed is larger than 8MB, the browser will download the file to the desktop (or wherever you have it set to download) and the user will have to open it manually.

    Property:webui.content_disposition_threshold
    Example value:webui.content_disposition_threshold = 8388608
    Informational Note:The default value is set to 8Mb. This property key applies to the JSPUI interface.
     
    Property:xmlui.content_disposition_threshold
    Example Value:xmlui.content_disposition_threshold = 8388608
    Informational Note:The default value is set to 8Mb. This property key applies to the XMLUI (Manakin) interface.

    Other values are possible:

    4 MB = 4194304
    8 MB = 8388608
    16 MB = 16777216

    5.2.32. Multi-file HTML Document/Site Settings

    The setting is used to configure the "depth" of request for html documents bearing the same name.

    Property: +webui.feed.item.dc.description = dc.description.abstract +
    Informational Note:These optional properties add structured DC elements as XML elements to the feed description. They are not the same thing as, for example, webui.feed.item.description. Useful when a program or stylesheet will be transforming a feed and wants separate author, description, date, etc.

    5.2.31. Content Inline Disposition Threshold

    The following configuration is used to change the disposition behavior of the browser. That is, when the browser will attempt to open the file or download it to the user's specified location. For example, the default size is 8Mb. When an item being viewed is larger than 8MB, the browser will download the file to the desktop (or wherever you have it set to download) and the user will have to open it manually.

    Property:webui.content_disposition_threshold
    Example value:webui.content_disposition_threshold = 8388608
    Informational Note:The default value is set to 8Mb. This property key applies to the JSPUI interface.
     
    Property:xmlui.content_disposition_threshold
    Example Value:xmlui.content_disposition_threshold = 8388608
    Informational Note:The default value is set to 8Mb. This property key applies to the XMLUI (Manakin) interface.

    Other values are possible:

    4 MB = 4194304
    8 MB = 8388608
    16 MB = 16777216

    5.2.32. Multi-file HTML Document/Site Settings

    The setting is used to configure the "depth" of request for html documents bearing the same name.

    Property:
     webui.html.max-depth-guess
     xmlui.html.max-depth-guess
    @@ -1039,10 +1044,10 @@ xmlui.html.max-depth-guess
     webui.html.max-depth-guess = 3
     xmlui.html.max-depth-guess = 3
    -
    Informational Note:When serving up composite HTML items, how deep can the request be for us to serve up a file with the same name? For example, if one receives a request for "foo/bar/index.html" and one has a bitstream called just "index.html", DSpace will serve up the former bitstream (foo/bar/index.html) for the request if webui.html.max-depth-guess is 2 or greater. If webui.html.max-depth-guess is 1 or less, then DSpace would not serve that bitstream, as the depth of the file is greater. If webui.html.max-depth-guess is zero, the request filename and path must always exactly match the bitstream name. The default is set to 3.

    5.2.33. Sitemap Settings

    To aid web crawlers index the content within your repository, you can make use of sitemaps.

    Property:sitemap.dir
    Example Value:sitemap.dir = ${dspace.dir}/sitemaps
    Informational Note:The directory where the generate sitemaps are stored.
     
    Property:sitemap.engineurls
    Example Value:sitemap.engineurls = http://www.google.com/webmasters/sitemaps/ping?sitemap=
    Informational Note: +
    Informational Note:When serving up composite HTML items, how deep can the request be for us to serve up a file with the same name? For example, if one receives a request for "foo/bar/index.html" and one has a bitstream called just "index.html", DSpace will serve up the former bitstream (foo/bar/index.html) for the request if webui.html.max-depth-guess is 2 or greater. If webui.html.max-depth-guess is 1 or less, then DSpace would not serve that bitstream, as the depth of the file is greater. If webui.html.max-depth-guess is zero, the request filename and path must always exactly match the bitstream name. The default is set to 3.

    5.2.33. Sitemap Settings

    To aid web crawlers index the content within your repository, you can make use of sitemaps.

    Property:sitemap.dir
    Example Value:sitemap.dir = ${dspace.dir}/sitemaps
    Informational Note:The directory where the generate sitemaps are stored.
     
    Property:sitemap.engineurls
    Example Value:sitemap.engineurls = http://www.google.com/webmasters/sitemaps/ping?sitemap=
    Informational Note:

    Comma-separated list of search engine URLs to 'ping' when a new Sitemap has been created. Include everything except the Sitemap UL itself (which will be URL-encoded and appended to form the actual URL 'pinged').

    Add the following to the above parameter if you have an application ID with Yahoo: http://search.yahooapis.com/SiteExplorererService/V1/updateNotification?appid=REPLACE_ME?url=. (Replace the component REPLACE_ME with your application ID). There is no known 'ping' URL for MSN/Live search.

    -

    5.2.34. Upload File Settings

    Property:upload.temp.dir
    Example Value:upload.temp.dir = ${dspace.dir}/upload
    Informational Note:Where to temporarily store uploaded files.
     
    Property:upload.max
    Example Value:upload.max = 536870912
    Informational Note:Maximum size of uploaded files in bytes. A negative setting will result in no limit being set. The default is set for 512Mb.

    5.2.35. Statistical Report Configuration Setting

    Property:report.public
    Example Value:report.public = false
    Informational Note:Controls whether or not the stats can be publicly available. Set it to false (the default) if you only want administrators to access the stats, or you do not intended to generate any statistics.
     
    Property:report.dir
    Example Value:report.dir = ${dspace.dir}/reports
    Informational Note:Directory where the live reports are stored.

    5.2.36. JSP Web Interface (JSPUI) Settings

    The following section is limited to JSPUI. If the user wishes to use XMLUI settings, please refer to Chapter 7: XMLUI Configuration and Customization.

    Property:webui.licence_bundle.show
    Example Value:webui.licence_bundle.show = false
    Informational Note:Sets whether to display the contents of the license bundle (often just the deposit license in the standard DSpace installation).
     
    Property:webui.itemdisplay.default
    Example Value:(See example below)
    +

    5.2.34. Upload File Settings

    Property:upload.temp.dir
    Example Value:upload.temp.dir = ${dspace.dir}/upload
    Informational Note:Where to temporarily store uploaded files.
     
    Property:upload.max
    Example Value:upload.max = 536870912
    Informational Note:Maximum size of uploaded files in bytes. A negative setting will result in no limit being set. The default is set for 512Mb.

    5.2.35. DSpace Statistics Configuration

    Property:solr.log.server
    Example Value:solr.log.server = ${dspace.baseUrl}/solr/statistics
    Informational Note:Is used by the SolrLogger Client class to connect tot the Solr server over http and perform updates and queries.
     
    Property:solr.spidersfile
    Example Value:solr.spidersfile = ${dspace.dir}/config/spiders.txt
    Informational Note:Spiders file is utilized by the SolrLogger, this will be populated by running the following command:dsrun org.dspace.statistics.util.SpiderDetector -i <httpd log file>
     
    Property:solr.dbfile
    Example Value:solr.dbfile = ${dspace.dir}/config/GeoLiteCity.dat
    Informational Note:The following referes to the GeoLiteCity database file utilized by the LocationUtils to calculate the location of client requests based on IP address. During the Ant build process (both fresh_install and update) this file will be downloaded from http://www.maxmind.com/app/geolitecity if a new version has been published or it is absent from your [dspace]/config directory.
     
    Property:useProxies
    Example Value:useProxies = true
    Informational Note:Will cause Statistics logging to look for X-Forward URI to detect clients IP that have accessed it through a Proxy service. Allows detection of client IP when accessing DSpace.
     
    Property:statistics.item.authorization.admin
    Example Value:statistics.item.authorization.admin = true
    Informational Note:Enables access control restriction on DSpace Statistics pages, Restrictions are based on access rights to Community, Collection and Item Pages. This will require the user to sign on to see that statistics. Setting the statistics to "false" will make them publicly available.

    5.2.36. JSP Web Interface (JSPUI) Settings

    The following section is limited to JSPUI. If the user wishes to use XMLUI settings, please refer to Chapter 7: XMLUI Configuration and Customization.

    Property:webui.licence_bundle.show
    Example Value:webui.licence_bundle.show = false
    Informational Note:Sets whether to display the contents of the license bundle (often just the deposit license in the standard DSpace installation).
     
    Property:webui.itemdisplay.default
    Example Value:(See example below)
    webui.itemdisplay.default = dc.title, dc.title.alternative, \
                dc.contributor.*, dc.subject, dc.data.issued(date), \
                dc.publisher, dc.identifier.citation, \
    @@ -1095,15 +1100,14 @@ webui.itemlist.browse.<index name>.sort.<sort name>.columns
     webui.itemlist.sort.<sort name>.columns
     webui.itemlist.browse.<browse name>.columns
     webui.itemlist.<sort or index name>.columns
    -
    Example Value: -
    Informational Note: +
    Example Value:
    Informational Note:

    You can override the DC fields used on the listing page for a given browse index and/or sort option. As a sort option or index may be defined on a field that isn't normally included in the list, this allows you to display the fields that have been indexed/sorted on.

    There are a number of forms the configuration can take, and the order in which they are listed below is the priority in which they will be used (so a combination of an index name and sort name will take precedence over just the browse name).

    In the last case, a sort option name will always take precedence over a browse index name. Note also, that for any additional columns you list, you will need to ensure there is an itemlist.<field name> entry in the messages file.

    -
     
    Property:webui.itemlist.dateaccessioned.columns
    Example Value:webui.itemlist.dateaccessioned.columns = thumbnail, dc.date.accessioned(date), dc.title, dc.contributor.*
    Informational Note:This would display the date of the accession in place f the issue date whenever the dateaccessioned browsed index or sort option is selected. Just like webui.itemlist.columns, you will need to include a 'thumbnail' entry to display the thumbnails in the item list.
     
    Property:webui.itemlist.dateaccessioned.widths
    Example Value:webui.itemlist.dateaccessioned.widths = *, 130, 60%, 40%
    Informational Note:As in the aforementioned property key, you can customize the width of the columns for each configured column list, substituting '.widths' for '.columns' in the property name. See the setting for webui.itemlist.widthsfor more information.
     
    Property:webui.itemlist.tablewidth
    Example Value:webui.itemlist.tablewidth = 100%
    Informational Note:You can also set the overall size of the item list table with the following setting. It can lead to faster table rendering when used with the column widths above, but not generally recommended.

    5.2.37. Configuring Multilingual Support

    5.2.37.1. Setting the Default Language for the Application

    Property:default.locale
    Example Value:default.locale = en
    Informational Note: +
     
    Property:webui.itemlist.dateaccessioned.columns
    Example Value:webui.itemlist.dateaccessioned.columns = thumbnail, dc.date.accessioned(date), dc.title, dc.contributor.*
    Informational Note:This would display the date of the accession in place f the issue date whenever the dateaccessioned browsed index or sort option is selected. Just like webui.itemlist.columns, you will need to include a 'thumbnail' entry to display the thumbnails in the item list.
     
    Property:webui.itemlist.dateaccessioned.widths
    Example Value:webui.itemlist.dateaccessioned.widths = *, 130, 60%, 40%
    Informational Note:As in the aforementioned property key, you can customize the width of the columns for each configured column list, substituting '.widths' for '.columns' in the property name. See the setting for webui.itemlist.widthsfor more information.
     
    Property:webui.itemlist.tablewidth
    Example Value:webui.itemlist.tablewidth = 100%
    Informational Note:You can also set the overall size of the item list table with the following setting. It can lead to faster table rendering when used with the column widths above, but not generally recommended.

    5.2.37. Configuring Multilingual Support

    5.2.37.1. Setting the Default Language for the Application

    Property:default.locale
    Example Value:default.locale = en
    Informational Note:

    The default language for the application is set with this property key. This is a locale according to i18n and might consist of country, country_language or country_language_variant. If no default locale is defined, then the server default locale will be used.

    The format of a local specifier is described here: http://java.sun.com/j2se/1.4.2/docs/api/java/util/Locale.html

    -

    5.2.37.2.  Supporting More Than One Language

    Changes in dspace.cfg
    Property:webui.supported.locale
    Example Value:webui.supported.locale = en, de or perhapswebui.supported.locals = en, en_ca, de
    Informational Note:All the locales that are supported by this instance of DSpace. Comma separated list.

    The table above, if needed and is used will result in:

    • a language switch in the default header

    • the user will be enabled to choose his/her preferred language, this will be part of his/her profile

    • wording of emails

      • mails to registered users, e.g. alerting service will use the preferred language of the user

      • mails to unregistered users, e.g. suggest an item will use the language of the session

    • according to the language selected for the session, using dspace-admin Edit News will edit the news file of the language according to session

    Related Files

    If you set webui.supported.locales make sure that all the related additional files for each language are available. LOCALE should correspond to the locale set in webui.supported.locales, e. g.: for webui.supported.locales = en, de, fr, there should be:

    • [dspace-source]/dspace/modules/jspui/src/main/resources/Messages.properties

    • +

    5.2.37.2.  Supporting More Than One Language

    Changes in dspace.cfg
    Property:webui.supported.locale
    Example Value:webui.supported.locale = en, de or perhapswebui.supported.locals = en, en_ca, de
    Informational Note:All the locales that are supported by this instance of DSpace. Comma separated list.

    The table above, if needed and is used will result in:

    • a language switch in the default header

    • the user will be enabled to choose his/her preferred language, this will be part of his/her profile

    • wording of emails

      • mails to registered users, e.g. alerting service will use the preferred language of the user

      • mails to unregistered users, e.g. suggest an item will use the language of the session

    • according to the language selected for the session, using dspace-admin Edit News will edit the news file of the language according to session

    Related Files

    If you set webui.supported.locales make sure that all the related additional files for each language are available. LOCALE should correspond to the locale set in webui.supported.locales, e. g.: for webui.supported.locales = en, de, fr, there should be:

    • [dspace-source]/dspace/modules/jspui/src/main/resources/Messages.properties

    • [dspace-source]/dspace/modules/jspui/src/main/resources/Messages_en.properties

    • [dspace-source]/dspace/modules/jspui/src/main/resources/Messages_de.properties @@ -1147,10 +1151,10 @@ webui.itemlist.<sort or index name>.columns

    • [dspace]/webapps/jspui/help/site-admin_LOCALE.html must be copied to [dspace-source]/dspace/modules/jspui/src/main/webapp/help -

    5.2.38. Item Mapper

    Because the item mapper requires a primitive implementation of the browse system to be present, we simply need to tell that system which of our indexes defines the author browse (or equivalent) so that the mapper can list authors' items for mapping

    Define the index name (from webui.browse.index) to use for displaying items by author.

    Property:itemmap.author.index
    Example Value:itemmap.author.index = author
    Informational Note:If you change the name of your author browse field, you will also need to update this property key.

    5.2.39. Display of Group Membership

    Property:webui.mydspace.showgroupmembership
    Example Value:webui.mydspace.showgroupmembership = false
    Informational Note:To display group membership set to "true". If omitted, the default behavior is false.

    5.2.40. SFX Server

    SFX Server is an OpenURL Resolver.

    Property:sfx.server.url
    Example Value:sfx.server.url = http://sfx.myu.edu:8888/sfx?
    Informational Note:SFX query is appended to this URL. If this property is commented out or omitted, SFX support is switched off.

    5.2.41. Item Recommendation Setting

    Property:webui.suggest.enable
    Example Value:webui.suggest.enable = true
    Informational Note:Show a link to the item recommendation page from item display page.
     
    Property:webui.suggest.loggedinusers.only
    Example Value:webui.suggest.loggedinusers.only = true
    Informational Note:Enable only if the user is logged in. If this key commented out, the default value is false.

    5.2.42. Controlled Vocabulary Settings

    DSpace now supports controlled vocabularies to confine the set of keywords that users can use while describing items.

    Property:webui.controlledvocabulary.enable
    Example Value:webui.controlledvocabulary.enable = true
    Informational Note:Enable or disable the controlled vocabulary add-on. WARNING: This feature is not compatible with WAI (it requires javascript to function).

    The need for a limited set of keywords is important since it eliminates the ambiguity of a free description system, consequently simplifying the task of finding specific items of information.

    The controlled vocabulary add-on allows the user to choose from a defined set of keywords organized in an tree (taxonomy) and then use these keywords to describe items while they are being submitted.

    We have also developed a small search engine that displays the classification tree (or taxonomy) allowing the user to select the branches that best describe the information that he/she seeks.

    The taxonomies are described in XML following this (very simple) structure:

    +

    5.2.38. Item Mapper

    Because the item mapper requires a primitive implementation of the browse system to be present, we simply need to tell that system which of our indexes defines the author browse (or equivalent) so that the mapper can list authors' items for mapping

    Define the index name (from webui.browse.index) to use for displaying items by author.

    Property:itemmap.author.index
    Example Value:itemmap.author.index = author
    Informational Note:If you change the name of your author browse field, you will also need to update this property key.

    5.2.39. Display of Group Membership

    Property:webui.mydspace.showgroupmembership
    Example Value:webui.mydspace.showgroupmembership = false
    Informational Note:To display group membership set to "true". If omitted, the default behavior is false.

    5.2.40. SFX Server

    SFX Server is an OpenURL Resolver.

    Property:sfx.server.url
    Example Value:sfx.server.url = http://sfx.myu.edu:8888/sfx?
    Informational Note:SFX query is appended to this URL. If this property is commented out or omitted, SFX support is switched off.

    5.2.41. Item Recommendation Setting

    Property:webui.suggest.enable
    Example Value:webui.suggest.enable = true
    Informational Note:Show a link to the item recommendation page from item display page.
     
    Property:webui.suggest.loggedinusers.only
    Example Value:webui.suggest.loggedinusers.only = true
    Informational Note:Enable only if the user is logged in. If this key commented out, the default value is false.

    5.2.42. Controlled Vocabulary Settings

    DSpace now supports controlled vocabularies to confine the set of keywords that users can use while describing items.

    Property:webui.controlledvocabulary.enable
    Example Value:webui.controlledvocabulary.enable = true
    Informational Note:Enable or disable the controlled vocabulary add-on. WARNING: This feature is not compatible with WAI (it requires javascript to function).

    The need for a limited set of keywords is important since it eliminates the ambiguity of a free description system, consequently simplifying the task of finding specific items of information.

    The controlled vocabulary add-on allows the user to choose from a defined set of keywords organized in an tree (taxonomy) and then use these keywords to describe items while they are being submitted.

    We have also developed a small search engine that displays the classification tree (or taxonomy) allowing the user to select the branches that best describe the information that he/she seeks.

    The taxonomies are described in XML following this (very simple) structure:

     <node id="acmccs98" label="ACMCCS98">
    -    <isComposedBy> 
    +    <isComposedBy>
             <node id="A." label="General Literature">
                 <isComposedBy>
                     <node id="A.0" label="GENERAL"/>
    @@ -1175,14 +1179,26 @@ webui.itemlist.<sort or index name>.columns
    <required></required> <vocabulary [closed="false"]>nsi</vocabulary> </field> -

    The vocabulary element has an optional boolean attribute closed that can be used to force input only with the javascript of controlled-vocabulary add-on. The default behavior (i.e. without this attribute) is as set closed="false". This allow the user also to enter the value in free way.

    The following vocabularies are currently available by default:

    5.2.43. XMLUI Specific Configuration

    The DSpace digital repository supports two user interfaces: one based upon JSP technologies and the other based upon the Apache Cocoon framework. This section describes those configurations settings which are specific to the XMLUI interface based upon the Cocoon framework. (Prior to DSpace Release 1.5.1 XMLUI was referred to Manakin. You may still see references to "Manakin")

    Property:xmlui.supported.locales
    Example Value:xmlui.supported.locales = en, de
    Informational Note:A list of supported locales for Manakin. Manakin will look at a user's browser configuration for the first language that appears in this list to make available to in the interface. This parameter is a comma separated list of Locales. All types of Locales country, country_language, country_language_variant. Note that if the appropriate files are not present (i.e. Messages_XX_XX.xml) then Manakin will fall back through to a more general language.
     
    Property:xmlui.force.ssl
    Example Value:xmlui.force.ssl = true
    Informational Note:Force all authenticated connections to use SSL, only non-authenticated connections are allowed over plain http. If set to true, then you need to ensure that the 'dspace.hostname' parameter is set to the correctly.
     
    Property:xmlui.user.registration
    Example Value:xmlui.user.registration = true
    Informational Note:Determine if new users should be allowed to register. This parameter is useful in conjunction with Shibboleth where you want to disallow registration because Shibboleth will automatically register the user. Default value is true.
     
    Property:xmlui.user.editmetadata
    Example Value:xmlui.user.editmetadata = true
    Informational Note:Determines if users should be able to edit their own metadata. This parameter is useful in conjunction with Shibboleth where you want to disable the user's ability to edit their metadata because it came from Shibboleth. Default value is true.
     
    Property:xmlui.user.assumelogon
    Example Value:xmlui.user.assumelogon = true
    Informational Note:Determine if super administrators (those whom are in the Administrators group) can login as another user from the "edit eperson" page. This is useful for debugging problems in a running dspace instance, especially in the workflow process. The default value is false, i.e., no one may assume the login of another user.
     
    Property:xmlui.user.loginredirect
    Example Value:xmlui.user.loginredirect = /profile
    Informational Note:After a user has logged into the system, which url should they be directed? Leave this parameter blank or undefined to direct users to the homepage, or /profile for the user's profile, or another reasonable choice is /submissions to see if the user has any tasks awaiting their attention. The default is the repository home page.
     
    Property:xmlui.theme.allowoverrides
    Example Value:xmlui.theme.allowoverrides = false
    Informational Note:Allow the user to override which theme is used to display a particular page. When submitting a request add the HTTP parameter "themepath" which corresponds to a particular theme, that specified theme will be used instead of the any other configured theme. Note that this is a potential security hole allowing execution of unintended code on the server, this option is only for development and debugging it should be turned off for any production repository. The default value unless otherwise specified is "false".
     
    Property:xmlui.bundle.upload
    Example Value:xmlui.bundle.upload = ORIGINAL, METADATA, THUMBNAIL, LICENSE, CC_LICENSE
    Informational Note:Determine which bundles administrators and collection administrators may upload into an existing item through the administrative interface. If the user does not have the appropriate privileges (add and write) on the bundle then that bundle will not be shown to the user as an option.
     
    Property:xmlui.community-list.render.full
    Example Value:xmlui.community-list.render.full = true
    Informational Note:On the community-list page should all the metadata about a community/collection be available to the theme. This parameter defaults to true, but if you are experiencing performance problems on the community-list page you should experiment with turning this option off.
     
    Property:xmlui.community-list.cache
    Example Value:xmlui.community-list.cache = 12 hours
    Informational Note:Normally, Manakin will fully verify any cache pages before using a cache copy. This means that when the community-list page is viewed the database is queried for each community/collection to see if their metadata has been modified. This can be expensive for repositories with a large community tree. To help solve this problem you can set the cache to be assumed valued for a specific set of time. The downside of this is that new or editing communities/collections may not show up the website for a period of time.
     
    Property:xmlui.bistream.mods
    Example Value:xmlui.bistream.mods = true
    Informational Note:Optionally, you may configure Manakin to take advantage of metadata stored as a bitstream. The MODS metadata file must be inside the "METADATA" bundle and named MODS.xml. If this option is set to 'true' and the bitstream is present then it is made available to the theme for display.
     
    Property:xmlui.bitstream.mets
    Example Value:xmlui.bitstream.mets = true
    Informational Note:Optionally, you may configure Manakin to take advantage of metadata stored as a bitstream. The METS metadata file must be inside the "METADATA" bundle and named METS.xml. If this optino is set to "true" and the bitstream is present then it is made available to the theme for display.
     
    Property:xmlui.google.analytics.key
    Example Value:xmlui.google.analytics.key = UA-XXXXXX-X
    Informational Note:If you would like to use google analytics to track general website statistics then use the following parameter to provide your analytics key. First sign up for an account at http://analytics.google.com, then create an entry for your repositories website. Google Analytics will give you a snipit of javascript code to place on your site, inside that snip it is your google analytics key usually found in the line: _uacct = "UA-XXXXXXX-X" Take this key (just the UA-XXXXXX-X part) and place it here in this parameter.
     
    Property:xmlui.controlpanel.activity.max
    Example Value:xmlui.controlpanel.activity.max = 250
    Informational Note:Assign how many page views will be recorded and displayed in the control panel's activity viewer. The activity tab allows an administrator to debug problems in a running DSpace by understanding who and how their dspace is currently being used. The default value is 250.
     
    Property:xmlui.controlpanel.activity.ipheader
    Example Value:xmlui.controlpanel.activity.ipheader = X-Forward-For
    Informational Note:Determine where the control panel's activity viewer recieves an events IP address from. If your DSpace is in a load balanced enviornment or otherwise behind a context-switch then you will need to set the paramater to the HTTP parameter that records the original IP address.

    5.2.44. OAI-PMH Configuration and Activation

    In the following sections, you will learn how to configure OAI-PMH and activate additional OAI-PMH crosswalks. The user is also referred to 9.2OAI-PMH Data Provider for greater depth details of the program.

    5.2.44.1. OAI-PMH Configuration

    Property:oai.didl.maxresponse
    Example Value:oai.didle.maxresponse = 0
    Informational Note: +

    The vocabulary element has an optional boolean attribute closed that can be used to force input only with the javascript of controlled-vocabulary add-on. The default behavior (i.e. without this attribute) is as set closed="false". This allow the user also to enter the value in free way.

    The following vocabularies are currently available by default:

    • nsi - nsi.xml - The Norwegian Science Index

    • srsc - srsc.xml - Swedish Research Subject Categories

    5.2.43. XMLUI Specific Configuration

    The DSpace digital repository supports two user interfaces: one based upon JSP technologies and the other based upon the Apache Cocoon framework. This section describes those configurations settings which are specific to the XMLUI interface based upon the Cocoon framework. (Prior to DSpace Release 1.5.1 XMLUI was referred to Manakin. You may still see references to "Manakin")

    Property:xmlui.supported.locales
    Example Value:xmlui.supported.locales = en, de
    Informational Note:A list of supported locales for Manakin. Manakin will look at a user's browser configuration for the first language that appears in this list to make available to in the interface. This parameter is a comma separated list of Locales. All types of Locales country, country_language, country_language_variant. Note that if the appropriate files are not present (i.e. Messages_XX_XX.xml) then Manakin will fall back through to a more general language.
     
    Property:xmlui.force.ssl
    Example Value:xmlui.force.ssl = true
    Informational Note:Force all authenticated connections to use SSL, only non-authenticated connections are allowed over plain http. If set to true, then you need to ensure that the 'dspace.hostname' parameter is set to the correctly.
     
    Property:xmlui.user.registration
    Example Value:xmlui.user.registration = true
    Informational Note:Determine if new users should be allowed to register. This parameter is useful in conjunction with Shibboleth where you want to disallow registration because Shibboleth will automatically register the user. Default value is true.
     
    Property:xmlui.user.editmetadata
    Example Value:xmlui.user.editmetadata = true
    Informational Note:Determines if users should be able to edit their own metadata. This parameter is useful in conjunction with Shibboleth where you want to disable the user's ability to edit their metadata because it came from Shibboleth. Default value is true.
     
    Property:xmlui.user.assumelogon
    Example Value:xmlui.user.assumelogon = true
    Informational Note:Determine if super administrators (those whom are in the Administrators group) can login as another user from the "edit eperson" page. This is useful for debugging problems in a running dspace instance, especially in the workflow process. The default value is false, i.e., no one may assume the login of another user.
     
    Property:xmlui.user.loginredirect
    Example Value:xmlui.user.loginredirect = /profile
    Informational Note:After a user has logged into the system, which url should they be directed? Leave this parameter blank or undefined to direct users to the homepage, or /profile for the user's profile, or another reasonable choice is /submissions to see if the user has any tasks awaiting their attention. The default is the repository home page.
     
    Property:xmlui.theme.allowoverrides
    Example Value:xmlui.theme.allowoverrides = false
    Informational Note:Allow the user to override which theme is used to display a particular page. When submitting a request add the HTTP parameter "themepath" which corresponds to a particular theme, that specified theme will be used instead of the any other configured theme. Note that this is a potential security hole allowing execution of unintended code on the server, this option is only for development and debugging it should be turned off for any production repository. The default value unless otherwise specified is "false".
     
    Property:xmlui.bundle.upload
    Example Value:xmlui.bundle.upload = ORIGINAL, METADATA, THUMBNAIL, LICENSE, CC_LICENSE
    Informational Note:Determine which bundles administrators and collection administrators may upload into an existing item through the administrative interface. If the user does not have the appropriate privileges (add and write) on the bundle then that bundle will not be shown to the user as an option.
     
    Property:xmlui.community-list.render.full
    Example Value:xmlui.community-list.render.full = true
    Informational Note:On the community-list page should all the metadata about a community/collection be available to the theme. This parameter defaults to true, but if you are experiencing performance problems on the community-list page you should experiment with turning this option off.
     
    Property:xmlui.community-list.cache
    Example Value:xmlui.community-list.cache = 12 hours
    Informational Note:Normally, Manakin will fully verify any cache pages before using a cache copy. This means that when the community-list page is viewed the database is queried for each community/collection to see if their metadata has been modified. This can be expensive for repositories with a large community tree. To help solve this problem you can set the cache to be assumed valued for a specific set of time. The downside of this is that new or editing communities/collections may not show up the website for a period of time.
     
    Property:xmlui.bistream.mods
    Example Value:xmlui.bistream.mods = true
    Informational Note:Optionally, you may configure Manakin to take advantage of metadata stored as a bitstream. The MODS metadata file must be inside the "METADATA" bundle and named MODS.xml. If this option is set to 'true' and the bitstream is present then it is made available to the theme for display.
     
    Property:xmlui.bitstream.mets
    Example Value:xmlui.bitstream.mets = true
    Informational Note:Optionally, you may configure Manakin to take advantage of metadata stored as a bitstream. The METS metadata file must be inside the "METADATA" bundle and named METS.xml. If this optino is set to "true" and the bitstream is present then it is made available to the theme for display.
     
    Property:xmlui.google.analytics.key
    Example Value:xmlui.google.analytics.key = UA-XXXXXX-X
    Informational Note:If you would like to use google analytics to track general website statistics then use the following parameter to provide your analytics key. First sign up for an account at http://analytics.google.com, then create an entry for your repositories website. Google Analytics will give you a snipit of javascript code to place on your site, inside that snip it is your google analytics key usually found in the line: _uacct = "UA-XXXXXXX-X" Take this key (just the UA-XXXXXX-X part) and place it here in this parameter.
     
    Property:xmlui.controlpanel.activity.max
    Example Value:xmlui.controlpanel.activity.max = 250
    Informational Note:Assign how many page views will be recorded and displayed in the control panel's activity viewer. The activity tab allows an administrator to debug problems in a running DSpace by understanding who and how their dspace is currently being used. The default value is 250.
     
    Property:xmlui.controlpanel.activity.ipheader
    Example Value:xmlui.controlpanel.activity.ipheader = X-Forward-For
    Informational Note:Determine where the control panel's activity viewer recieves an events IP address from. If your DSpace is in a load balanced enviornment or otherwise behind a context-switch then you will need to set the paramater to the HTTP parameter that records the original IP address.

    5.2.44. OAI-PMH Configuration and Activation

    In the following sections, you will learn how to configure OAI-PMH and activate additional OAI-PMH crosswalks. The user is also referred to 9.2OAI-PMH Data Provider for greater depth details of the program.

    5.2.44.1. OAI-PMH Configuration

    Property:oai.didl.maxresponse
    Example Value:oai.didle.maxresponse = 0
    Informational Note:

    Max response size for DIDL. This is the maximum size in bytes of the files you wish to enclose Base64 encoded in your responses, remember that the base64 encoding process uses a lot of memory. We recommend at most 200000 for answers of 30 records each on a 1 Gigabyte machine. Ultimately this will change to a streaming model and remove this restriction. Also please remember to allocate plenty of memory, at least 512 MB to your Tomcat.

    Optional: DSpace uses 100 records as the limit for the oai responses. You can alter this by changing /[dspace-source]/dspace-oai/dspace-oai-api/src/main/java/org/dspace/app/oai/DSpaceOAICatalog.java to codify the declaration: private final int MAX_RECORDS = 100 to private final int MAX_RECORDS = 30

    -

    5.2.44.2. Activating Additional OAI-PMH Crosswalks

    DSpace comes with an unqualified DC Crosswalk used in the default OAI-PMH data provider. There are also other Crosswalks bundled with the DSpace distribution which can be activated by editing one or more configuration files. How to do this for each available Crosswalk is described below. The DSpace source includes the following crosswalk plugins available for use with OAI-PMH:

    • mets - The manifest document from a DSpace METS SIP.

    • mods - MODS metadata, produced by the table-driven MODS dissemination crosswalk.

    • qdc - Qualfied Dublin Core, produced by the configurable QDC crosswalk. Note that this QDC does not include all of the DSpace "dublin core" metadata fields, since the XML standard for QDC is defined for a different set of elements and qualifiers.

    OAI-PMH crosswalks based on Crosswalk Plugins are activated as follows:

    1. Ensure the crosswalk plugin has a lower-case name (possibly in addition to its upper-case name) in the plugin configuration.

    2. Add a line to the file config/templates/oaicat.properties of the form:

      +

    5.2.44.2. Activating Additional OAI-PMH Crosswalks

    DSpace comes with an unqualified DC Crosswalk used in the default OAI-PMH data provider. There are also other Crosswalks bundled with the DSpace distribution which can be activated by editing one or more configuration files. How to do this for each available Crosswalk is described below. The DSpace source includes the following crosswalk plugins available for use with OAI-PMH:

    • mets - The manifest document from a DSpace METS SIP.

    • mods - MODS metadata, produced by the table-driven MODS dissemination crosswalk.

    • qdc - Qualfied Dublin Core, produced by the configurable QDC crosswalk. Note that this QDC does not include all of the DSpace "dublin core" metadata fields, since the XML standard for QDC is defined for a different set of elements and qualifiers.

    OAI-PMH crosswalks based on Crosswalk Plugins are activated as follows:

    1. Ensure the crosswalk plugin has a lower-case name (possibly in addition to its upper-case name) in the plugin configuration.

    2. Add a line to the file config/templates/oaicat.properties of the form:

      Crosswalks. plugin_name =org.dspace.app.oai.PluginCrosswalk -

      substituting the plugin's name, e.g. "mets" or "qdc"for plugin_name.

    3. Run the bin/install-configs script

    4. Restart your servlet container, e.g. Tomcat, for the change to take effect.

    DIDL

    By activating the DIDL provider, DSpace items are represented as MPEG-21 DIDL objects. These DIDL objects are XML documents that wrap both the Dublin Core metadata that describes the DSpace item and its actual bitstreams. A bitstream is provided inline in the DIDL object in a base64 encoded manner, and/or by means of a pointer to the bitstream. The data provider exposes DIDL objects via the metadataPrefix didl.

    The crosswalk does not deal with special characters and purposely skips dissemination of the license.txt file awaiting a better understanding on how to map DSpace rights information to MPEG21-DIDL.

    The DIDL Crosswalk can be activated as follows:

    1. Uncomment the oai.didl.maxresponse item in dspace.cfg

    2. Uncomment the DIDL Crosswalk entry from the config/templates/oaicat.properties file

    3. Run the bin/install-configs script

    4. Restart Tomcat

    5. Verify the Crosswalk is activated by accessing a URL such as http://mydspace/oai/request?verb=ListRecords&metadataPrefix=didl

    5.2.45. Delegation Administration

    (Authorization System Configuration)

    Property:core.authorization.community-admin.create-subelement
    Example Value:core.authorization.community-admin.create-subelement = true
    Informational Note: +

    substituting the plugin's name, e.g. "mets" or "qdc"for plugin_name.

  • Run the bin/install-configs script

  • Restart your servlet container, e.g. Tomcat, for the change to take effect.

  • DIDL

    By activating the DIDL provider, DSpace items are represented as MPEG-21 DIDL objects. These DIDL objects are XML documents that wrap both the Dublin Core metadata that describes the DSpace item and its actual bitstreams. A bitstream is provided inline in the DIDL object in a base64 encoded manner, and/or by means of a pointer to the bitstream. The data provider exposes DIDL objects via the metadataPrefix didl.

    The crosswalk does not deal with special characters and purposely skips dissemination of the license.txt file awaiting a better understanding on how to map DSpace rights information to MPEG21-DIDL.

    The DIDL Crosswalk can be activated as follows:

    1. Uncomment the oai.didl.maxresponse item in dspace.cfg

    2. Uncomment the DIDL Crosswalk entry from the config/templates/oaicat.properties file

    3. Run the bin/install-configs script

    4. Restart Tomcat

    5. Verify the Crosswalk is activated by accessing a URL such as http://mydspace/oai/request?verb=ListRecords&metadataPrefix=didl

    5.2.45. OAI-ORE Harvester Configuration

    This section describes the parameters used in configuring the OAI-ORE harvester.

    5.2.45.1. OAI-ORE Configuration

    There are many possible configuration options for the OAI harvester. Most of them are technical and therefore omitted from the dspace.cfg file itself, using hard-coded deafults instead. However, should you wish to modify those values, including them in dspace.cfg will override the system defaults.

    Property:harvester.eperson
    Example Value:harvester.eperson = admin@myu.edu
    Informational Note:The EPerson under whose authorization automatic harvesting will be performed. This field does not have a default value and must be specified in order to use the harvest scheduling system. This will most likely be the DSpace admin account created during installation.
     
    Property:dspace.oai.url
    Example Value:dspace.oai.url = http://myu.edu:8080/oai
    Informational Note:The base url of the OAI-PMH disseminator webapp (i.e. do not include the /request on the end). This is necessary in order to mint URIs for ORE Resource Maps. The default value of http://${dspace.hostname}:8080/oai will work for a typical installation, but should be changed if appropriate.
     
    Property:ore.authoritative.source
    Example Value:ore.authoritative.source = oai | xmlui
    Informational Note: +

    The webapp responsible for minting the URIs for ORE Resource Maps. If using oai, the dspace.oai.uri config value must be set. The URIs generated for ORE ReMs follow the following convention for both cases.

    +

    baseURI/metadata/handle/theHandle/ore.xml

    +
     
    Property:harvester.autoStart
    Example Value:harvester.autoStart = false
    Informational Note:Determines whether the harvest scheduler process starts up automatically when the XMLUI webapp is redeployed.
     
    Property:harvester.oai.metadataformats.PluginName
    Example Value: +
    harvester.oai.metadataformats.PluginName = \
    +http://www.openarchives.org/OAI/2.0/oai_dc/, Simple Dublin Core
    +
    Informational Note:This field can be repeated and serves as a link between the metadata formats supported by the local repository and those supported by the remote OAI-PMH provider. It follows the form harvester.oai.metadataformats.PluginName = NamespaceURI,Optional Display Name . The pluginName designates the metadata schemas that the harvester "knows" the local DSpace repository can support. Consequently, the PluginName must correspond to a previously declared ingestion crosswalk. The namespace value is used during negotiation with the remote OAI-PMH provider, matching it against a list returned by the ListMetadataFormats request, and resolving it to whatever metadataPrefix the remote provider has assigned to that namespace. Finally, the optinal display name is the string that will be displayed to the user when setting up a collection for harvesting. If omitted, the PluginName:NamespaceURI combo will be displayed instead.
     
    Property:harvester.oai.oreSerializationFormat.OREPrefix
    Example Value: +
    harvester.oai.oreSerializationFormat.OREPrefix = \
    +http://www.w3.org/2005/Atom
    +
    Informational Note:This field works in much the same way as harvester.oai.metadataformats.PluginName . The OREPrefix must correspond to a declared ingestion crosswalk, while the Namespace must be supported by the target OAI-PMH provider when harvesting content.
     
    Property:harvester.timePadding
    Example Value:harvester.timePadding = 120
    Informational Note:Amount of time subtracted from the from argument of the PMH request to account for the time taken to negotiate a connection. Measured in seconds. Default value is 120.
     
    Property:harvester.harvestFrequency
    Example Value:harvester.harvestFrequency = 720
    Informational Note:How frequently the harvest scheduler checks the remote provider for updates. Should always be longer than timePadding . Measured in minutes. Default value is 720.
     
    Property:harvester.minHeartbeat
    Example Value:harvester.minHeartbeat = 30
    Informational Note:The heartbeat is the frequency at which the harvest scheduler queries the local database to determine if any collections are due for a harvest cycle (based on the harvestFrequency) value. The scheduler is optimized to then sleep until the next collection is actually ready to be harvested. The minHeartbeat and maxHeartbeat are the lower and upper bounds on this timeframe. Measured in seconds. Default value is 30.
     
    Property:harvester.maxHeartbeat
    Example Value:harvester.maxHeartbeat = 3600
    Informational Note:The heartbeat is the frequency at which the harvest scheduler queries the local database to determine if any collections are due for a harvest cycle (based on the harvestFrequency) value. The scheduler is optimized to then sleep until the next collection is actually ready to be harvested. The minHeartbeat and maxHeartbeat are the lower and upper bounds on this timeframe. Measured in seconds. Default value is 3600 (1 hour).
     
    Property:harvester.maxThreads
    Example Value:harvester.maxThreads = 3
    Informational Note:How many harvest process threads the scheduler can spool up at once. Default value is 3.
     
    Property:harvester.threadTimeout
    Example Value:harvester.threadTimeout = 24
    Informational Note:How much time passess before a harvest thread is terminated. The termination process waits for the current item to complete ingest and saves progress made up to that point. Measured in hours. Default value is 24.
     
    Property:harvester.unknownField
    Example Value:harvester.unkownField = fail | add | ignore
    Informational Note:You have three (3) choices. When a harvest process completes for a single item and it has been passed through ingestion crosswalks for ORE and its chosen descriptive metadata format, it might end up with DIM values that have not been defined in the local repository. This setting determines what should be done in the case where those DIM values belong to an already declared schema. Fail will terminate the harvesting task and generate an error. Ignore will quietly omit the unknown fields. Add will add the missing field to the local repository's metadata registry. Default value: fail.
     
    Property:harvester.unknownSchema
    Example Value:harvester.unknownSchema = fail | add | ignore
    Informational Note:When a harvest process completes for a single item and it has been passed through ingestion crosswalks for ORE and its chosen descriptive metadata format, it might end up with DIM values that have not been defined in the local repository. This setting determines what should be done in the case where those DIM values belong to an unknown schema. Fail will terminate the harvesting task and generate an error. Ignore will quietly omit the unknown fields. Add will add the missing schema to the local repository's metadata registry, using the schema name as the prefix and "unknown" as the namespace. Default value: fail.
     
    Property:harvester.acceptedHandleServer
    Example Value: +
    harvester.acceptedHandleServer = \
    +hdl.handle.net, handle.test.edu
    +
    Informational Note:A harvest process will attempt to scan the metadata of the incoming items (identifier.uri field, to be exact) to see if it looks like a handle. If so, it matches the pattern against the values of this parameter. If there is a match the new item is assigned the handle from the metadata value instead of minting a new one. Default value: hdl.handle.net.
     
    Property:harvester.rejectedHandlePrefix
    Example Value:harvester.rejectedHandlePrefix = 123456789, myeduHandle
    Informational Note:Pattern to reject as an invalid handle prefix (known test string, for example) when attempting to find the handle of harvested items. If there is a match with this config parameter, a new handle will be minted instead. Default value: 123456789.

    5.2.46. Delegation Administration

    (Authorization System Configuration)

    Property:core.authorization.community-admin.create-subelement
    Example Value:core.authorization.community-admin.create-subelement = true
    Informational Note:

    It is now possible to delegate the administration of Communities and Collections without the need of the Administrator Superuser. The delegation uses an "inherited" technique. A community admin will be a collection admin for all the collections within the community and a collection admin will be always an item admin for all the item owned by the collection. All the functions that are allowed to user with WRITE permission on an object will always allowed to be the ADMIN of the object (e.g. community/collection/admin will be always allowed to edit metadata of the object). The default will be "on" for all the configurations.

    Community Administration: subcommunities and collections
    core.authorization.community-admin.create-subelement
    @@ -1212,46 +1228,52 @@ core.authorization.collection-admin.item.policies
    And also these bundles: core.authorization.collection-admin.item.delete-bitstream core.authorization.collection-admin.item-admin.cc-license
    Item Administration:
    core.authorization.item-admin.policies
    And also these bundles:
    core.authorization.item-admin.create-bitstream
     core.authorization.item-admin.delete-bitstream
    -core.authorization.item-admin.cc-license
    [Note]

    Oracle users should consult Chapter 4 Updating a DSpace Installation regarding the necessary database changes that need to take place.

    5.2.46. Batch Metadata Editing

    The following configurations allow the adminstrator extract from the DSpace database a set of records for editing by a metadata export. It provides an easier way of editing large collections.

    Property:bulkedit.valueseparator
    Example Value:bulkedit.valueseparator = ||
    Informational noteThe delimiter used to separate values within a single field. For example, this will place the double pipe between multiple authors appearing in one record (Smith, William || Johannsen, Susan). This applies to any metadata field that appears more than once in a record. The user can change this to another character.
     
    Property:bulkedit.fieldseparator
    Example Value:bulkedit.fieldseparator = ,
    Informational noteThe delimiter used to serarate fields (defaults to a comma for CSV). Again, the user could change it something like '$'. If you wish to use a tab, semicolon, or hash (#) sign as the delimiter, set the value to be tab, semicolon or hash.
    bulkedit.fieldseparator = tab
     
    Property:bulkedit.gui-item-limit
    Example Value:bulkedit.gui-item-limit = 20
    Informational noteWhen using the WEBUI, this sets the limit of the number of items allowed to be edited in one processing. There is no limit when using the CLI.
     
    Property:bulkedit.ignore-on-export
    Example Value: +core.authorization.item-admin.cc-license
    [Note]

    Oracle users should consult Chapter 4 Updating a DSpace Installation regarding the necessary database changes that need to take place.

    5.2.47. Batch Metadata Editing

    The following configurations allow the adminstrator extract from the DSpace database a set of records for editing by a metadata export. It provides an easier way of editing large collections.

    Property:bulkedit.valueseparator
    Example Value:bulkedit.valueseparator = ||
    Informational noteThe delimiter used to separate values within a single field. For example, this will place the double pipe between multiple authors appearing in one record (Smith, William || Johannsen, Susan). This applies to any metadata field that appears more than once in a record. The user can change this to another character.
     
    Property:bulkedit.fieldseparator
    Example Value:bulkedit.fieldseparator = ,
    Informational noteThe delimiter used to serarate fields (defaults to a comma for CSV). Again, the user could change it something like '$'. If you wish to use a tab, semicolon, or hash (#) sign as the delimiter, set the value to be tab, semicolon or hash.
    bulkedit.fieldseparator = tab
     
    Property:bulkedit.gui-item-limit
    Example Value:bulkedit.gui-item-limit = 20
    Informational noteWhen using the WEBUI, this sets the limit of the number of items allowed to be edited in one processing. There is no limit when using the CLI.
     
    Property:bulkedit.ignore-on-export
    Example Value:
    bulkedit.ignore-on-export = dc.date.accessioned, \
                                 dc.date.available, \
                                 dc.date.updated, dc.description.provenance
    -
    Informational noteMetadata elements to exclude when exporting via the user interfaces, or when using the command line version and not using the -a (all) option.

    5.2.47. Hiding Metadata

    It is now possible to hide metadata from public consumption that is only avaialable to the Administrator.

    Property:metadata.hide.dc.description.provenance
    Example Value:metadata.hide.dc.description.provenance = true
    Informational Note: +
    Informational noteMetadata elements to exclude when exporting via the user interfaces, or when using the command line version and not using the -a (all) option.

    5.2.48. Hiding Metadata

    It is now possible to hide metadata from public consumption that is only avaialable to the Administrator.

    Property:metadata.hide.dc.description.provenance
    Example Value:metadata.hide.dc.description.provenance = true
    Informational Note:

    Hides the metadata in the property key above except to the administrator.

    Fields named here are hidden in the following places UNLESS the logged-in user is an Administrator:

    1. XMLUI metadata XML view, and Item splash pages (long and short views).

    2. JSPUI Item splash pages

    3. OAI-PMH server, "oai_dc" format. (Note: Other formats are **not** affected.)

    To designate a field as hidden, add a property here in the form:

    metadata.hide.SCHEMA.ELEMENT.QUALIFIER = true

    This default configuration hides the dc.description.provenance field, since that usually contains email addresses which ought to be kept private and is mainly of interest to administrators.

    -

    5.3. Optional or Advanced Configuration Settings

    The following section explains how to configure either optional features or advanced features that are not necessary to make DSpace "out-of-the-box"

    5.3.1. The Metadata Format and Bitstream Format Registries

    The [dspace]/config/registries directory contains three XML files. These are used to load the initial contents of the Dublin Core Metadata registry and Bitstream Format registry and SWORD metadata registry. After the initial loading (performed by ant fresh_install above), the registries reside in the database; the XML files are not updated.

    In order to change the registries, you may adjust the XML files before the first installation of DSpace. On an already running instance it is recommended to change bitstream registries via DSpace admin UI, but the metadata registries can be loaded again at any time from the XML files without difficult. The changes made via admin UI are not reflected in the XML files.

    5.3.1.1. Metadata Format Registries

    The default metadata schema is Dublin Core, so DSpace is distributed with a default Dublin Core Metadata Registry. Currently, the system requires that every item have a Dublin Core record.

    There is a set of Dublin Core Elements, which is used by the system and should not be removed or moved to another schema, see Appendix: Default Dublin Core Metadata registry.

    Note: altering a Metadata Registry has no effect on corresponding parts, e.g. item submission interface, item display, item import and vice versa. Every metadata element used in submission interface or item import must be registered before using it.

    Note also that deleting a metadata element will delete all its corresponding values.

    If you wish to add more metadata elements, you can do this in one of two ways. Via the DSpace admin UI you may define new metadata elements in the different available schemas. But you may also modify the XML file (or provide an additional one), and re-import the data as follows:

    [dspace]/bin/dsrun org.dspace.administer.MetadataImporter -f [xml file]

    The XML file should be structured as follows:

    <dspace-dc-types>
    +							

    5.3. Optional or Advanced Configuration Settings

    The following section explains how to configure either optional features or advanced features that are not necessary to make DSpace "out-of-the-box"

    5.3.1. The Metadata Format and Bitstream Format Registries

    The [dspace]/config/registries directory contains three XML files. These are used to load the initial contents of the Dublin Core Metadata registry and Bitstream Format registry and SWORD metadata registry. After the initial loading (performed by ant fresh_install above), the registries reside in the database; the XML files are not updated.

    In order to change the registries, you may adjust the XML files before the first installation of DSpace. On an already running instance it is recommended to change bitstream registries via DSpace admin UI, but the metadata registries can be loaded again at any time from the XML files without difficult. The changes made via admin UI are not reflected in the XML files.

    5.3.1.1. Metadata Format Registries

    The default metadata schema is Dublin Core, so DSpace is distributed with a default Dublin Core Metadata Registry. Currently, the system requires that every item have a Dublin Core record.

    There is a set of Dublin Core Elements, which is used by the system and should not be removed or moved to another schema, see Appendix: Default Dublin Core Metadata registry.

    Note: altering a Metadata Registry has no effect on corresponding parts, e.g. item submission interface, item display, item import and vice versa. Every metadata element used in submission interface or item import must be registered before using it.

    Note also that deleting a metadata element will delete all its corresponding values.

    If you wish to add more metadata elements, you can do this in one of two ways. Via the DSpace admin UI you may define new metadata elements in the different available schemas. But you may also modify the XML file (or provide an additional one), and re-import the data as follows:

    [dspace]/bin/dsrun org.dspace.administer.MetadataImporter -f [xml file]

    The XML file should be structured as follows:

    <dspace-dc-types>
         <dc-type>
             <schema>dc</schema>
             <element>contributor</element>
             <qualifier>advisor</qualifier>
             <scope_note>Use primarily for thesis advisor.</scope_note>
         </dc-type>
    -</dspace-dc-types>

    5.3.1.2. Bitstream Format Registry

    The bitstream formats recognized by the system and levels of support are similarly stored in the bitstream format registry. This can also be edited at install-time via [dspace]/config/registries/bitstream-formats.xml or by the administation Web UI. The contents of the bitstream format registry are entirely up to you, though the system requires that the following two formats are present:

    • +</dspace-dc-types>

    5.3.1.2. Bitstream Format Registry

    The bitstream formats recognized by the system and levels of support are similarly stored in the bitstream format registry. This can also be edited at install-time via [dspace]/config/registries/bitstream-formats.xml or by the administation Web UI. The contents of the bitstream format registry are entirely up to you, though the system requires that the following two formats are present:

    • Unknown

    • License -

    Deleting a format will cause any existing bitstreams of this format to be reverted to the unknown bitstream format.

    5.3.2. XPDF Filter

    These filters handle PDF resources with more sophisticated tools that can produce thumbnail images of PDF and 3D PDF files, and do much faster (and more complete) text extraction as well.

    5.3.2.1. Installation

    The following instructions are the "quick and dirty" method for installing the XPDF filter. It does not address any issues that may be affectively needed for Maven Modules or and POMs. This method below does not take into account the maintaining the DSpace installation or upgrading.

    1. Obtain a source distribution of DSpace 1.6, configure, and build it.

    2. Edit configuration lines in dspace.cfg

    3. Add -Pxpdf-mediafilter-support to maven build

    4. Build and install.

    5.3.2.2. Install XPDF Tools

    First, download the XPDF suite found at:http://www.foolabs.com/xpdf and install it on your server under /usr/local/bin.

    The only tools you really need are:

    • pdftoppm

    • pdfinfo

    • pdftotext

    5.3.2.3. Installation within DSpace

    The user will be using Java™ Advanced Imaging Image I/O Tools.

    [Caution]

    For AIX, Sun support has the following: "JAI has native acceleration for the above but it also works in pure Java mode. So as long as you have an appropriate JDK for AIX (1.3 or later, I believe), you should be able to use it. You can download any of them, extract just the jars, and put those in your $CLASSPATH."

    - Fetch and install jai_imageio JAR -

    Download the jai_imageio library version 1.0_01 or 1.1 found athttps://jai-imageio.dev.java.net/binary-builds.html#Stable_builds .

    Install it in your local Maven repository with the command (assuming the library is installed locally at /opt/facade/lib/jai_imageio.jar):

    -        mvn install:install-file  \
    -         -Dfile=/opt/facade/lib/jai_imageio.jar               \
    -         -DgroupId=com.sun.media                              \
    -         -DartifactId=jai_imageio                             \
    -         -Dversion=1.0_01                                     \
    -         -Dpackaging=jar                                      \
    -         -DgeneratePom=true
    -	
    Edit DSpace Configuration

    First, be sure there is a value for thumbnail.maxwidth and that it corresponds to the size you want for preview images for the UI, e.g.: (NOTE: this code doesn't pay any attention to thumbnail.maxheight but it's best to set it too so the other thumbnail filters make square images.)

    +						

    Deleting a format will cause any existing bitstreams of this format to be reverted to the unknown bitstream format.

    5.3.2. XPDF Filter

    This is an alternative suite of MediaFilter plugins that offers faster and more reliable text extraction from PDF Bitstreams, as well as thumbnail image generation. It replaces the built-in default PDF MediaFilter.

    If this filter is so much better, why isn't it the default? The answer is that it relies on external executable programs which must be obtained and installed for your server platform. This would add too much complexity to the installation process, so it left out as an optional "extra" step.

    5.3.2.1. Installation Overview

    Here are the steps required to install and configure the filters:

    1. Install the xpdf tools for your platform, from the downloads at http://www.foolabs.com/xpdf

    2. Acquire the Sun Java Advanced Imaging Tools and create a local Maven package.

    3. Edit DSpace configuration properties to add location of xpdf executables, reconfigure MediaFilter plugins.

    4. Build and install DSpace, adding -Pxpdf-mediafilter-support to Maven invocation.

    5.3.2.2. Install XPDF Tools

    First, download the XPDF suite found at: http://www.foolabs.com/xpdf and install it on your server. The executables can be located anywhere, but make a note of the full path to each command.

    You may be able to download a binary distribution for your platform, which simplifies installation. Xpdf is readily available for Linux, Solaris, MacOSX, Windows, NetBSD, HP-UX, AIX, and OpenVMS, and is reported to work on AIX, OS/2, and many other systems.

    The only tools you really need are:

    • pdfinfo - displays properties and Info dict

    • pdftotext - extracts text from PDF

    • pdftoppm - images PDF for thumbnails

    5.3.2.3.  + Fetch and install jai_imageio JAR +

    Fetch and install the Java™ Advanced Imaging Image I/O Tools.

    [Caution]

    For AIX, Sun support has the following: "JAI has native acceleration for the above but it also works in pure Java mode. So as long as you have an appropriate JDK for AIX (1.3 or later, I believe), you should be able to use it. You can download any of them, extract just the jars, and put those in your $CLASSPATH."

    Download the jai_imageio library version 1.0_01 or 1.1 found at: https://jai-imageio.dev.java.net/binary-builds.html#Stable_builds .

    [Note]

    For these filters you do NOT have to worry about the native code, just the JAR, so choose a download for any platform.

    +curl -O http://download.java.net/media/jai-imageio/builds/release/1.1/jai_imageio-1_1-lib-linux-i586.tar.gz
    +tar xzf jai_imageio-1_1-lib-linux-i586.tar.gz
    +

    The preceding example leaves the JAR in jai_imageio-1_1/lib/jai_imageio.jar . Now install it in your local Maven repository, e.g.: (changing the path after file= if necessary)

    +       mvn install:install-file                       \
    +          -Dfile=jai_imageio-1_1/lib/jai_imageio.jar  \
    +          -DgroupId=com.sun.media                     \
    +          -DartifactId=jai_imageio                    \
    +          -Dversion=1.0_01                            \
    +          -Dpackaging=jar                             \
    +          -DgeneratePom=true
    +

    You may have to repeat this procedure for the jai_core.jar library, as well, if it is not available in any of the public Maven repositories. Once acquired, this command installs it locally:

    +mvn install:install-file -Dfile=jai_core-1.1.2_01.jar  \
    +    -DgroupId=javax.media -DartifactId=jai_core -Dversion=1.1.2_01 -Dpackaging=jar -DgeneratePom=true
    +

    5.3.2.4. Edit DSpace Configuration

    First, be sure there is a value for thumbnail.maxwidth and that it corresponds to the size you want for preview images for the UI, e.g.: (NOTE: this code doesn't pay any attention to thumbnail.maxheight but it's best to set it too so the other thumbnail filters make square images.)

             # maximum width and height of generated thumbnails
             thumbnail.maxwidth  300
             thumbnail.maxheight 300
    -        

    Now, add the absolute paths of the XPDF tools you installed:

    -        xpdf.path.pdftotext = /var/local/bin/pdftotext
    -        xpdf.path.pdftoppm = /var/local/bin/pdftoppm
    -        xpdf.path.pdfinfo = /var/local/bin/pdfinfo
    -	

    Also be sure the mediafilter configuration includes the new filters, e.g: (New sections are in bold)

    +        

    Now, add the absolute paths to the XPDF tools you installed. In this example they are installed under /usr/local/bin (a logical place on Linux and MacOSX), but they may be anywhere.

    +        xpdf.path.pdftotext = /usr/local/bin/pdftotext
    +        xpdf.path.pdftoppm = /usr/local/bin/pdftoppm
    +        xpdf.path.pdfinfo = /usr/local/bin/pdfinfo
    +        

    Change the MediaFilter plugin configuration to remove the old org.dspace.app.mediafilter.PDFFilter and add the new filters, e.g: (New sections are in bold)

             filter.plugins = \
              PDF Text Extractor, \
              PDF Thumbnail, \
    @@ -1265,77 +1287,79 @@ core.authorization.item-admin.cc-license

    #Configure each filter's input format(s)

    +        

    Then add the input format configuration properties for each of the new filters, e.g.:

               filter.org.dspace.app.mediafilter.XPDF2Thumbnail.inputFormats = Adobe PDF
               filter.org.dspace.app.mediafilter.XPDF2Text.inputFormats = Adobe PDF
    -          Add -Pxpdf-mediafilter-support to maven build
    -        

    Edit the POM for the dspace-api module. Within the <dependencies> element, add this new element:

    -	%mvn -Pxpdf-mediafilter-support package
    -	
    Build and Install

    Follow the usual DSpace installation/update procedure (mvn package and then ant -Dconfig=etc. ...)

    These instructions were retrieved from "http://libstaff.mit.edu/facade/index.php/DSpace_PDF_Media_Filters"

    5.3.3. Creating a new Media/Format Filter

    5.3.3.1. Creating a simple Media Filter

    New Media Filters must implement the org.dspace.app.mediafilter.FormatFilter interface. More information on the methods you need to implement is provided in the FormatFilter.java source file. For example:

    +        

    Finally, if you want PDF thumbnail images, don't forget to add that filter name to the filter.plugins property, e.g.:

    +          filter.plugins = PDF Thumbnail,  PDF Text Extractor, ...
    +        

    5.3.2.5. Build and Install

    Follow your usual DSpace installation/update procedure, only add -Pxpdf-mediafilter-support to the Maven invocation:

    +        mvn -Pxpdf-mediafilter-support package
    +        ant -Dconfig=etc. ...
    +        

    5.3.3. Creating a new Media/Format Filter

    5.3.3.1. Creating a simple Media Filter

    New Media Filters must implement the org.dspace.app.mediafilter.FormatFilter interface. More information on the methods you need to implement is provided in the FormatFilter.java source file. For example:

     
                  public class MySimpleMediaFilter implements
    -	FormatFilter
    +        FormatFilter
     
               

    Alternatively, you could extend the org.dspace.app.mediafilter.MediaFilter class, which just defaults to performing no pre/post-processing of bitstreams before or after filtering.

     
                  public class MySimpleMediaFilter extends
    -	MediaFilter
    +        MediaFilter
     
               

    You must give your new filter a "name", by adding it and its name to the plugin.named.org.dspace.app.mediafilter.FormatFilter field in dspace.cfg. In addition to naming your filter, make sure to specify its input formats in the filter.<class path>.inputFormats config item. Note the input formats must match the short description field in the Bitstream Format Registry (i.e. bitstreamformatregistry table).

     
                  plugin.named.org.dspace.app.mediafilter.FormatFilter = \
    -	org.dspace.app.mediafilter.MySimpleMediaFilter = My Simple Text
    -	Filter, \ ...
    -	filter.org.dspace.app.mediafilter.MySimpleMediaFilter.inputFormats =
    -	Text
    +        org.dspace.app.mediafilter.MySimpleMediaFilter = My Simple Text
    +        Filter, \ ...
    +        filter.org.dspace.app.mediafilter.MySimpleMediaFilter.inputFormats =
    +        Text
     
               

    WARNING: If you neglect to define the inputFormats for a particular filter, the MediaFilterManager will never call that filter, since it will never find a bitstream which has a format matching that filter's input format(s). -

    If you have a complex Media Filter class, which actually performs different filtering for different formats (e.g. conversion from Word to PDF and conversion from Excel to CSV), you should define this as a Dynamic / Self-Named Format Filter.

    5.3.3.2. Creating a Dynamic or "Self-Named" Format Filter

    If you have a more complex Media/Format Filter, which actually performs multiple filtering or conversions for different formats (e.g. conversion from Word to PDF and conversion from Excel to CSV), you should have define a class which implements the FormatFilter interface, while also extending the +

    If you have a complex Media Filter class, which actually performs different filtering for different formats (e.g. conversion from Word to PDF and conversion from Excel to CSV), you should define this as a Dynamic / Self-Named Format Filter.

    5.3.3.2. Creating a Dynamic or "Self-Named" Format Filter

    If you have a more complex Media/Format Filter, which actually performs multiple filtering or conversions for different formats (e.g. conversion from Word to PDF and conversion from Excel to CSV), you should have define a class which implements the FormatFilter interface, while also extending the SelfNamedPlugin class. For example:

     
                  public class MyComplexMediaFilter extends
    -	SelfNamedPlugin implements FormatFilter
    +        SelfNamedPlugin implements FormatFilter
     
               

    Since SelfNamedPlugins are self-named (as stated), they must provide the various names the plugin uses by defining a getPluginNames() method. Generally speaking, each "name" the plugin uses should correspond to a different type of filter it implements (e.g. "Word2PDF" and "Excel2CSV" are two good names for a complex media filter which performs both Word to PDF and Excel to CSV conversions).

    Self-Named Media/Format Filters are also configured differently in dspace.cfg. Below is a general template for a Self Named Filter (defined by an imaginary MyComplexMediaFilter class, which can perform both Word to PDF and Excel to CSV conversions):

     
                  #Add to a list of all Self Named filters
    -	plugin.selfnamed.org.dspace.app.mediafilter.FormatFilter = \
    -	org.dspace.app.mediafilter.MyComplexMediaFilter #Define input formats
    -	for each "named" plugin this filter implements
    -	filter.org.dspace.app.mediafilter.MyComplexMediaFilter.Word2PDF.inputF
    +        plugin.selfnamed.org.dspace.app.mediafilter.FormatFilter = \
    +        org.dspace.app.mediafilter.MyComplexMediaFilter #Define input formats
    +        for each "named" plugin this filter implements
    +        filter.org.dspace.app.mediafilter.MyComplexMediaFilter.Word2PDF.inputF
     ormats = Microsoft Word
    -	filter.org.dspace.app.mediafilter.MyComplexMediaFilter.Excel2CSV.input
    +        filter.org.dspace.app.mediafilter.MyComplexMediaFilter.Excel2CSV.input
     Formats = Microsoft Excel
     
               

    As shown above, each Self-Named Filter class must be listed in the plugin.selfnamed.org.dspace.app.mediafilter.FormatFilter item in dspace.cfg. In addition, each Self-Named Filter must define the input formats for each named plugin defined by that filter. In the above example the MyComplexMediaFilter class is assumed to have defined two named plugins, Word2PDF and Excel2CSV. So, these two valid plugin names ("Word2PDF" and "Excel2CSV") must be returned by the getPluginNames() method of the MyComplexMediaFilter class.

    These named plugins take different input formats as defined above (see the corresponding inputFormats setting). WARNING: If you neglect to define the inputFormats for a particular named plugin, the MediaFilterManager will never call that plugin, since it will never find a bitstream which has a format matching that plugin's input format(s).

    For a particular Self-Named Filter, you are also welcome to define additional configuration settings in dspace.cfg. To continue with our current example, each of our imaginary plugins actually results in a different output format (Word2PDF creates "Adobe PDF", while Excel2CSV creates "Comma Separated Values"). To allow this complex Media Filter to be even more configurable (especially across institutions, with potential different "Bitstream Format Registries"), you may wish to allow for the output format to be customizable for each named plugin. For example:

     
                  #Define output formats for each named plugin
    -	filter.org.dspace.app.mediafilter.MyComplexMediaFilter.Word2PDF.output
    +        filter.org.dspace.app.mediafilter.MyComplexMediaFilter.Word2PDF.output
     Format = Adobe PDF
    -	filter.org.dspace.app.mediafilter.MyComplexMediaFilter.Excel2CSV.outpu
    +        filter.org.dspace.app.mediafilter.MyComplexMediaFilter.Excel2CSV.outpu
     tFormat = Comma Separated Values
     
               

    Any custom configuration fields in dspace.cfg defined by your filter are ignored by the MediaFilterManager, so it is up to your custom media filter class to read those configurations and apply them as necessary. For example, you could use the following sample Java code in your MyComplexMediaFilter class to read these custom outputFormat configurations from dspace.cfg :

     
                  //get "outputFormat" configuration from dspace.cfg
    -	String outputFormat =
    -	ConfigurationManager.getProperty(MediaFilterManager.FILTER_PREFIX +
    -	"." + MyComplexMediaFilter.class.getName() + "." +
    -	this.getPluginInstanceName() + ".outputFormat");
    +        String outputFormat =
    +        ConfigurationManager.getProperty(MediaFilterManager.FILTER_PREFIX +
    +        "." + MyComplexMediaFilter.class.getName() + "." +
    +        this.getPluginInstanceName() + ".outputFormat");
     
    -          

    5.3.4. Configuration Files for Other Applications

    To ease the hassle of keeping configuration files for other applications involved in running a DSpace site, for example Apache, in sync, the DSpace system can automatically update them for you when the main DSpace configuration is changed. This feature of the DSpace system is entirely optional, but we found it useful.

    The way this is done is by placing the configuration files for those applications in [dspace]/config/templates, and inserting special values in the configuration file that will be filled out with appropriate DSpace configuration properties. Then, tell DSpace where to put filled-out, 'live' version of the configuration by adding an appropriate property to dspace.cfg, and run [dspace]/bin/install-configs.

    Take the apache13.conf file as an example. This contains plenty of Apache-specific stuff, but where it uses a value that should be kept in sync across DSpace and associated applications, a 'placeholder' value is written. For example, the host name:

    +          

    5.3.4. Configuration Files for Other Applications

    To ease the hassle of keeping configuration files for other applications involved in running a DSpace site, for example Apache, in sync, the DSpace system can automatically update them for you when the main DSpace configuration is changed. This feature of the DSpace system is entirely optional, but we found it useful.

    The way this is done is by placing the configuration files for those applications in [dspace]/config/templates, and inserting special values in the configuration file that will be filled out with appropriate DSpace configuration properties. Then, tell DSpace where to put filled-out, 'live' version of the configuration by adding an appropriate property to dspace.cfg, and run [dspace]/bin/install-configs.

    Take the apache13.conf file as an example. This contains plenty of Apache-specific stuff, but where it uses a value that should be kept in sync across DSpace and associated applications, a 'placeholder' value is written. For example, the host name:

     ServerName @@dspace.hostname@@
     

    The text @@dspace.hostname@@ will be filled out with the value of the dspace.hostname property in dspace.cfg. Then we decide where we want the 'live' version, that is, the version actually read in by Apache when it starts up, will go.

    Let's say we want the live version to be located at /opt/apache/conf/dspace-httpd.conf. To do this, we add the following property to dspace.cfg so DSpace knows where to put it:

     config.template.apache13.conf = /opt/apache/conf/dspace-httpd.conf
     

    Now, we run [dspace]/bin/install-configs. This reads in [dspace]/config/templates/apache13.conf, and places a copy at /opt/apache/conf/dspace-httpd.conf with the placeholders filled out.

    So, in /opt/apache/conf/dspace-httpd.conf, there will be a line like:

     ServerName dspace.myu.edu
    -

    The advantage of this approach is that if a property like the hostname changes, you can just change it in dspace.cfg and run install-configs, and all of your tools' configuration files will be updated.

    However, take care to make all your edits to the versions in [dspace]/config/templates! It's a wise idea to put a big reminder at the top of each file, since someone might unwittingly edit a 'live' configuration file which would later be overwritten.

    5.3.5.  - Configuring Usage Instrumentation Plugins

    A usage instrumentation plugin is configured as a singleton plugin for the abstract class org.dspace.app.statistics.AbstractUsageEvent.

    5.3.5.1.  - The Passive Plugin

    The Passive plugin is provided as the class org.dspace.app.statistics.PassiveUsageEvent. It absorbs events without effect. Use the Passive plugin when you have no use for usage event postings. This is the default if no plugin is configured.

    5.3.5.2.  - The Tab File Logger Plugin

    The Tab File Logger plugin is provided as the class org.dspace.app.statistics.UsageEventTabFileLogger. It writes event records to a file in tab-separated column format. If left unconfigured, an error will be noted in the DSpace log and no file will be produced. To specify the file path, provide an absolute path as the value for usageEvent.tabFileLogger.file in dspace.cfg.

    5.3.5.3.  - The XML Logger Plugin

    The XML Logger plugin is provided as the class org.dspace.app.statistics.UsageEventXMLLogger. It writes event records to a file in a simple XML-like format. If left unconfigured, an error will be noted in the DSpace log and no file will be produced. To specify the file path, provide an absolute path as the value for usageEvent.xmlLogger.file in dspace.cfg.

    5.3.6. SWORD Configuration

    SWORD (Simple Web-service Offering Repository Deposit) is a protocol that allows the remote deposit of items into repositories. DSpace implements the SWORD protocol via the 'sword' web application. The version of SWORD currently supported by DSpace is 1.3. The specification and further information can be downloaded fromhttp://swordapp.org.

    SWORD is based on the Atom Publish Protocol and allows service documents to be requested which describe the structure of the repository, and packages to be deposited.

    Properties:sword.mets-ingester.package-ingester
    Example Value:sword.mets-ingester.package-ingester = METS
    Informational Note: +

    The advantage of this approach is that if a property like the hostname changes, you can just change it in dspace.cfg and run install-configs, and all of your tools' configuration files will be updated.

    However, take care to make all your edits to the versions in [dspace]/config/templates! It's a wise idea to put a big reminder at the top of each file, since someone might unwittingly edit a 'live' configuration file which would later be overwritten.

    5.3.5.  + Configuring Usage Instrumentation Plugins

    A usage instrumentation plugin is configured as a singleton plugin for the abstract class org.dspace.app.statistics.AbstractUsageEvent.

    5.3.5.1.  + The Passive Plugin

    The Passive plugin is provided as the class org.dspace.app.statistics.PassiveUsageEvent. It absorbs events without effect. Use the Passive plugin when you have no use for usage event postings. This is the default if no plugin is configured.

    5.3.5.2.  + The Tab File Logger Plugin

    The Tab File Logger plugin is provided as the class org.dspace.app.statistics.UsageEventTabFileLogger. It writes event records to a file in tab-separated column format. If left unconfigured, an error will be noted in the DSpace log and no file will be produced. To specify the file path, provide an absolute path as the value for usageEvent.tabFileLogger.file in dspace.cfg.

    5.3.5.3.  + The XML Logger Plugin

    The XML Logger plugin is provided as the class org.dspace.app.statistics.UsageEventXMLLogger. It writes event records to a file in a simple XML-like format. If left unconfigured, an error will be noted in the DSpace log and no file will be produced. To specify the file path, provide an absolute path as the value for usageEvent.xmlLogger.file in dspace.cfg.

    5.3.6. SWORD Configuration

    SWORD (Simple Web-service Offering Repository Deposit) is a protocol that allows the remote deposit of items into repositories. DSpace implements the SWORD protocol via the 'sword' web application. The version of SWORD currently supported by DSpace is 1.3. The specification and further information can be downloaded fromhttp://swordapp.org.

    SWORD is based on the Atom Publish Protocol and allows service documents to be requested which describe the structure of the repository, and packages to be deposited.

    Properties:sword.mets-ingester.package-ingester
    Example Value:sword.mets-ingester.package-ingester = METS
    Informational Note:

    The property key tell the SWORD METS implementation which package ingester to use to install deposited content. This should refer to one of the classes configured for:

    @@ -1366,11 +1390,10 @@ plugin.named.org.dspace.sword.SWORDingester
    plugin.named.org.dspace.sword.SWORDIngester = \ org.dspace.sword.SWORDMETSIngester = http://purl.org/net/sword-types/METSDSpaceSIP \ org.dspace.sword.SimpleFileIngester = SimpleFileIngester -
    Informational Note:Configure the plugins to process incoming packages. The form of this configuration is as per the Plugin Manager's Named Plugin documentation: plugin.named.[interface] = [implementation] = [package format identifier] \ . Package ingesters should implement the SWORDIngester interface, and will be loaded when a package of the format specified above in: sword.accept-packaging.[package format].identifier = [package format identifier] is received. In the event that this is a simple file deposit, with no package format, then the class named by "SimpleFileIngester" will be loaded and executed where appropriate. This case will only occur when a single file is being deposited into an existing DSpace Item.
     
    Properties:sword.accepts
    Example Value:sword.accepts = application/zip, foo/bar
    Informational Note:A comma separated list of MIME types that SWORD will accept.

    5.3.7. OpenSearch Support

    OpenSearch is a small set of conventions and documents for describing and using "serach enginges", meaning any service that returns a set of results for a query. See extensive description in the Business Layer section of the documentation.

    Please note that for result data formatting, OpenSearch uses Syndication Feed Settings (RSS). So, even if Syndication Feeds are not enable, they must be configured to enable OpenSearch. OpenSearch uses all the configuration properties for DSpace RSS to determine the mapping of metadata fields to feed fields. Note that a new field for authors has been added (used in Atom format only).

    Property:websvc.opensearch.enable
    Example Value:websvc.opensearch.enable = false
    Informational Note:Whether or not OpenSearch is enabled. By default, the feature is disabled. Change the property key to 'ture' to enable.
     
    Property:websvc.opensearch.uicontext
    Example Value:websvc.opensearch.uicontext = simple-search
    Informational Note:Context for HTML request URLs. Change only for non-standard servlet mapping.
     
    Property:websvc.opensearch.svccontext
    Example Value:websvc.opensearch.svccontext = open-search/
    Informational Note:Context for RSS/Atom request URLs. Change only for non-standard servlet mapping.
     
    Property:websvc.opensearch.autolink
    Example Value:websvc.opensearch.autolink = true
    Informational Note:Present autodiscovery link in every page head.
     
    Property:websvc.opensearch.validity
    Example Value:websvc.opensearch.validity = 48
    Informational Note:Number of hours to retain results before recalculating. This applies to the Manakin interface only.
     
    Property:websvc.opensearch.shortname
    Example Value:websvc.opensearch.shortname = DSpace
    Informational Note:A short name used in browsers for search service. It should be sixteen (16) or fewer characters.
     
    Property:websvc.opensearch.longname
    Example Value:websvc.opensearch.longname = ${dspace.name}
    Informational Note:A longer name up to 48 characters.
     
    Property:websvc.opensearch.description
    Example Value:websvc.opensearch.description = ${dspace.name} DSpace repository
    Informational Note:Brief service description
     
    Property:websvc.opensearch.faviconurl
    Example Value:websvc.opensearch.faviconurl = http://www.dspace.org/images/favicon.ico
    Informational Note:Location of favicon for service, if any. They must by 16 x 16 pixels. You can profide your own local favicon instead of the default.
     
    Property:websvc.opensearch.samplequery
    Example Value:websvc.opensearch.samplequery = photosynthesis
    Informational Note:Sample query. This should return results. You can replace the sample query with search terms that should actually yield results in your repository.
     
    Property:websvc.opensearch.tags
    Example Value:websc.opensearch.tags = IR DSpace
    Informational Note:Tags used to describe search service.
     
    Property:websvc.opensearch.formats
    Example Value:websvc.opensearch.formats = html,atom,rss
    Informational Note:Result formats offered. Use one or more comma-separated from the list: html, atom, rss. Please note that html is requred for autodiscovery in browsers to function, and must be the first in the list if present.

    5.3.8. Embargo

    It is possible now to configure a DSpace instance to have an "Embargo" feature uses for thesis and dissertations.

    Property:embargo.field.terms
    Example Value:embargo.field.terms = SCHEMA.ELEMENT.QUALIFIER
    Informational Note:DC metadata field to hold the user-supplied embargo terms
     
    Property:embargo.field.lift
    Example Value:embargo.field.lift = SCHEMA.ELEMENT.QUALIFIER
    Informational Note:DC metadata field to hold computed "lift date" of embargo
     
    Property:embargo.terms.open
    Example Value:embargo.terms.open = forever
    Informational Note:The string in terms field to indicate indefinite embargo
     
    Property:plugin.single.org.dspace.embargo.EmbargoSetter
    Example Value:plugin.single.org.dspace.embargo.EmbargoSetter = CLASSNAME
    Informational Note:Implementation of embargo setter plugin
    Property:plugin.single.org.dspace.embargo.EmbargoLifter
    Example Value:plugin.single.org.dspace.embargo.EmbargoLifter = org.dspace.embargo.DefaultEm
    Informational Note:Implementation of embargo lifter plugin

    Remember that you need to replace SCHEMA.ELEMENT.QUALIFIER with a real metadata field. Additionally, you need to replace the CLASSNAME with a properly impleented plugin.


    Informational Note:Configure the plugins to process incoming packages. The form of this configuration is as per the Plugin Manager's Named Plugin documentation: plugin.named.[interface] = [implementation] = [package format identifier] \ . Package ingesters should implement the SWORDIngester interface, and will be loaded when a package of the format specified above in: sword.accept-packaging.[package format].identifier = [package format identifier] is received. In the event that this is a simple file deposit, with no package format, then the class named by "SimpleFileIngester" will be loaded and executed where appropriate. This case will only occur when a single file is being deposited into an existing DSpace Item.
     
    Properties:sword.accepts
    Example Value:sword.accepts = application/zip, foo/bar
    Informational Note:A comma separated list of MIME types that SWORD will accept.

    5.3.7. OpenSearch Support

    OpenSearch is a small set of conventions and documents for describing and using "serach enginges", meaning any service that returns a set of results for a query. See extensive description in the Business Layer section of the documentation.

    Please note that for result data formatting, OpenSearch uses Syndication Feed Settings (RSS). So, even if Syndication Feeds are not enable, they must be configured to enable OpenSearch. OpenSearch uses all the configuration properties for DSpace RSS to determine the mapping of metadata fields to feed fields. Note that a new field for authors has been added (used in Atom format only).

    Property:websvc.opensearch.enable
    Example Value:websvc.opensearch.enable = false
    Informational Note:Whether or not OpenSearch is enabled. By default, the feature is disabled. Change the property key to 'ture' to enable.
     
    Property:websvc.opensearch.uicontext
    Example Value:websvc.opensearch.uicontext = simple-search
    Informational Note:Context for HTML request URLs. Change only for non-standard servlet mapping.
     
    Property:websvc.opensearch.svccontext
    Example Value:websvc.opensearch.svccontext = open-search/
    Informational Note:Context for RSS/Atom request URLs. Change only for non-standard servlet mapping.
     
    Property:websvc.opensearch.autolink
    Example Value:websvc.opensearch.autolink = true
    Informational Note:Present autodiscovery link in every page head.
     
    Property:websvc.opensearch.validity
    Example Value:websvc.opensearch.validity = 48
    Informational Note:Number of hours to retain results before recalculating. This applies to the Manakin interface only.
     
    Property:websvc.opensearch.shortname
    Example Value:websvc.opensearch.shortname = DSpace
    Informational Note:A short name used in browsers for search service. It should be sixteen (16) or fewer characters.
     
    Property:websvc.opensearch.longname
    Example Value:websvc.opensearch.longname = ${dspace.name}
    Informational Note:A longer name up to 48 characters.
     
    Property:websvc.opensearch.description
    Example Value:websvc.opensearch.description = ${dspace.name} DSpace repository
    Informational Note:Brief service description
     
    Property:websvc.opensearch.faviconurl
    Example Value:websvc.opensearch.faviconurl = http://www.dspace.org/images/favicon.ico
    Informational Note:Location of favicon for service, if any. They must by 16 x 16 pixels. You can profide your own local favicon instead of the default.
     
    Property:websvc.opensearch.samplequery
    Example Value:websvc.opensearch.samplequery = photosynthesis
    Informational Note:Sample query. This should return results. You can replace the sample query with search terms that should actually yield results in your repository.
     
    Property:websvc.opensearch.tags
    Example Value:websc.opensearch.tags = IR DSpace
    Informational Note:Tags used to describe search service.
     
    Property:websvc.opensearch.formats
    Example Value:websvc.opensearch.formats = html,atom,rss
    Informational Note:Result formats offered. Use one or more comma-separated from the list: html, atom, rss. Please note that html is requred for autodiscovery in browsers to function, and must be the first in the list if present.

    5.3.8. Embargo

    It is possible now to configure a DSpace instance to have an "Embargo" feature uses for thesis and dissertations.

    Property:embargo.field.terms
    Example Value:embargo.field.terms = SCHEMA.ELEMENT.QUALIFIER
    Informational Note:DC metadata field to hold the user-supplied embargo terms
     
    Property:embargo.field.lift
    Example Value:embargo.field.lift = SCHEMA.ELEMENT.QUALIFIER
    Informational Note:DC metadata field to hold computed "lift date" of embargo. You may need to create a DC metadata field in your Metadata Format Registry if it does not already exist.
     
    Property:embargo.terms.open
    Example Value:embargo.terms.open = forever
    Informational Note:The string in terms field to indicate indefinite embargo
     
    Property:plugin.single.org.dspace.embargo.EmbargoSetter
    Example Value:plugin.single.org.dspace.embargo.EmbargoSetter = org.dspace.embargo.DefaultEmbargoSetter
    Informational Note:Implementation of embargo setter plugin
    Property:plugin.single.org.dspace.embargo.EmbargoLifter
    Example Value:plugin.single.org.dspace.embargo.EmbargoLifter = org.dspace.embargo.DefaultEmbargoLifter
    Informational Note:Implementation of embargo lifter plugin

    Remember that you need to replace SCHEMA.ELEMENT.QUALIFIER with a real metadata field. Additionally, you need to replace the CLASSNAME with a properly implemented plugin.


    - Licensed under a Creative Commons Attribution 3.0 United States License -

    \ No newline at end of file +

    Licensed under a Creative Commons Attribution 3.0 United States License

    \ No newline at end of file diff --git a/dspace/docs/html/ch06.html b/dspace/docs/html/ch06.html index 31fb9884a6..9fbf029a83 100644 --- a/dspace/docs/html/ch06.html +++ b/dspace/docs/html/ch06.html @@ -1,9 +1,8 @@ -Chapter 6. DSpace System Documentation: JPSUI Configuration and Customization

    Chapter 6. DSpace System Documentation: JPSUI Configuration and Customization

    Table of Contents

    6.1. Configuration
    6.2. Customizing the JSP pages

    The DSpace digital repository supports two user interfaces: one based on JavaServer Pages (JSP) technologies and one based upon the Apache Cocoon framework. This chapter describes those parameters which are specific to the JPSUI interface.

    6.1. Configuration

    The user will need to refer to the extensive WebUI/JSPUI configurations that are contained in 5.2.36 JSP Web Interface Settings.

    6.2. Customizing the JSP pages

    The JSPUI interface is implemented using Java Servlets which handle the business logic, and JavaServer Pages (JSPs) which produce the HTML pages sent to an end-user. Since the JSPs are much closer to HTML than Java code, altering the look and feel of DSpace is relatively easy.

    To make it even easier, DSpace allows you to 'override' the JSPs included in the source distribution with modified versions, that are stored in a separate place, so when it comes to updating your site with a new DSpace release, your modified versions will not be overwritten. It should be possible to dramatically change the look of DSpace to suit your organization by just changing the CSS style file and the site 'skin' or 'layout' JSPs in jsp/layout; if possible, it is recommended you limit local customizations to these files to make future upgrades easier.

    You can also easily edit the text that appears on each JSP page by editing the Messages.properties file. However, note that unless you change the entry in all of the different language message files, users of other languages will still see the default text for their language. See Internationalization in Application Layer.

    Note that the data (attributes) passed from an underlying Servlet to the JSP may change between versions, so you may have to modify your customized JSP to deal with the new data.

    Thus, if possible, it is recommended you limit your changes to the 'layout' JSPs and the stylesheet.

    The JSPs are available in one of two places:

    • [dspace-source]/dspace-jspui/dspace-jspui-webapp/src/main/webapp/ - Only exists if you downloaded the full Source Release of DSpace

    • [dspace-source]/dspace/target/dspace-[version].dir/webapps/dspace-jspui-webapp/ - The location where they are copied after first building DSpace.

    If you wish to modify a particular JSP, place your edited version in the [dspace-source]/dspace/modules/jspui/src/main/webapp/ directory (this is the replacement for the pre-1.5 /jsp/local directory), with the same path as the original. If they exist, these will be used in preference to the default JSPs. For example:

    DSpace defaultLocally-modified version -
    [jsp.dir]/community-list.jsp[jsp.custom-dir]/dspace/modules/jspui/src/main/webapp/community-list.jsp
    [jsp.dir]/mydspace/main.jsp[jsp.custom-dir]/dspace/modules/jspui/src/main/webapp/mydspace/main.jsp

    Heavy use is made of a style sheet, styles.css.jsp. If you make edits, copy the local version to [jsp.custom-dir]/dspace/modules/jspui/src/main/webapp/styles.css.jsp, and it will be used automatically in preference to the default, as described above.

    Fonts and colors can be easily changed using the stylesheet. The stylesheet is a JSP so that the user's browser version can be detected and the stylesheet tweaked accordingly.

    The 'layout' of each page, that is, the top and bottom banners and the navigation bar, are determined by the JSPs /layout/header-*.jsp and /layout/footer-*.jsp. You can provide modified versions of these (in [jsp.custom-dir]/dspace/modules/jspui/src/main/webapp/layout), or define more styles and apply them to pages by using the "style" attribute of the dspace:layout tag.

    1. Rebuild the DSpace installation package by running the following command from your [dspace-source]/dspace/ directory:

      mvn package
    2. Update all DSpace webapps to [dspace]/webapps by running the following command from your [dspace-source]/dspace/target/dspace-[version]-build.dir directory:

      ant -Dconfig=[dspace]/config/dspace.cfg update 
    3. Deploy the the new webapps:

      cp -R /[dspace]/webapps/* /[tomcat]/webapps

    4. Restart Tomcat

    When you restart the web server you should see your customized JSPs.


    Chapter 6. DSpace System Documentation: JPSUI Configuration and Customization

    Table of Contents

    6.1. Configuration
    6.2. Customizing the JSP pages

    The DSpace digital repository supports two user interfaces: one based on JavaServer Pages (JSP) technologies and one based upon the Apache Cocoon framework. This chapter describes those parameters which are specific to the JPSUI interface.

    6.1. Configuration

    The user will need to refer to the extensive WebUI/JSPUI configurations that are contained in 5.2.36 JSP Web Interface Settings.

    6.2. Customizing the JSP pages

    The JSPUI interface is implemented using Java Servlets which handle the business logic, and JavaServer Pages (JSPs) which produce the HTML pages sent to an end-user. Since the JSPs are much closer to HTML than Java code, altering the look and feel of DSpace is relatively easy.

    To make it even easier, DSpace allows you to 'override' the JSPs included in the source distribution with modified versions, that are stored in a separate place, so when it comes to updating your site with a new DSpace release, your modified versions will not be overwritten. It should be possible to dramatically change the look of DSpace to suit your organization by just changing the CSS style file and the site 'skin' or 'layout' JSPs in jsp/layout; if possible, it is recommended you limit local customizations to these files to make future upgrades easier.

    You can also easily edit the text that appears on each JSP page by editing the Messages.properties file. However, note that unless you change the entry in all of the different language message files, users of other languages will still see the default text for their language. See Internationalization in Application Layer.

    Note that the data (attributes) passed from an underlying Servlet to the JSP may change between versions, so you may have to modify your customized JSP to deal with the new data.

    Thus, if possible, it is recommended you limit your changes to the 'layout' JSPs and the stylesheet.

    The JSPs are available in one of two places:

    • [dspace-source]/dspace-jspui/dspace-jspui-webapp/src/main/webapp/ - Only exists if you downloaded the full Source Release of DSpace

    • [dspace-source]/dspace/target/dspace-[version].dir/webapps/dspace-jspui-webapp/ - The location where they are copied after first building DSpace.

    If you wish to modify a particular JSP, place your edited version in the [dspace-source]/dspace/modules/jspui/src/main/webapp/ directory (this is the replacement for the pre-1.5 /jsp/local directory), with the same path as the original. If they exist, these will be used in preference to the default JSPs. For example:

    DSpace defaultLocally-modified version +
    [jsp.dir]/community-list.jsp[jsp.custom-dir]/dspace/modules/jspui/src/main/webapp/community-list.jsp
    [jsp.dir]/mydspace/main.jsp[jsp.custom-dir]/dspace/modules/jspui/src/main/webapp/mydspace/main.jsp

    Heavy use is made of a style sheet, styles.css.jsp. If you make edits, copy the local version to [jsp.custom-dir]/dspace/modules/jspui/src/main/webapp/styles.css.jsp, and it will be used automatically in preference to the default, as described above.

    Fonts and colors can be easily changed using the stylesheet. The stylesheet is a JSP so that the user's browser version can be detected and the stylesheet tweaked accordingly.

    The 'layout' of each page, that is, the top and bottom banners and the navigation bar, are determined by the JSPs /layout/header-*.jsp and /layout/footer-*.jsp. You can provide modified versions of these (in [jsp.custom-dir]/dspace/modules/jspui/src/main/webapp/layout), or define more styles and apply them to pages by using the "style" attribute of the dspace:layout tag.

    1. Rebuild the DSpace installation package by running the following command from your [dspace-source]/dspace/ directory:

      mvn package
    2. Update all DSpace webapps to [dspace]/webapps by running the following command from your [dspace-source]/dspace/target/dspace-[version]-build.dir directory:

      ant -Dconfig=[dspace]/config/dspace.cfg update 
    3. Deploy the the new webapps:

      cp -R /[dspace]/webapps/* /[tomcat]/webapps

    4. Restart Tomcat

    When you restart the web server you should see your customized JSPs.


    - Licensed under a Creative Commons Attribution 3.0 United States License -

    \ No newline at end of file +

    Licensed under a Creative Commons Attribution 3.0 United States License

    \ No newline at end of file diff --git a/dspace/docs/html/ch07.html b/dspace/docs/html/ch07.html index 49d9298884..2cd328233e 100644 --- a/dspace/docs/html/ch07.html +++ b/dspace/docs/html/ch07.html @@ -1,15 +1,15 @@ -Chapter 7. DSpace System Documentation: Manakin [XMLUI] Configuration and Customization

    Chapter 7. DSpace System Documentation: Manakin [XMLUI] Configuration and Customization

    Table of Contents

    7.1. Manakin Configuration Property Keys
    7.2. Configuring Themes and Aspects
    7.2.1. Aspects
    7.2.2. Themes
    7.3. Multilingual Support
    7.4. Creating a New Theme
    7.5. Adding Static Content

    The DSpace digital repository supports two user interfaces: one based on JavaServer Pages (JSP) technologies and one based upon the Apache Cocoon framework. This chapter describes those parameters which are specific to the Manakin (XMLUI) interface based upon the Cocoon framework.

    7.1. Manakin Configuration Property Keys

    In an effort to save the programmer/administrator some time, the configuration table below is taken from 5.3.43. XMLUI Specific Configuration.

    Property:xmlui.supportedLocales
    Example Value:xmlui.supportedLocales = en, de
    Informational Note:A list of supported locales for Manakin. Manakin will look at a user's browser configuration for the first language that appears in this list to make available to in the interface. This parameter is a comma separated list of Locales. All types of Locales country, country_language, country_language_variant. Note that if the appropriate files are not present (i.e. Messages_XX_XX.xml) then Manakin will fall back through to a more general language.
     
    Property:xmlui.force.ssl
    Example Value:xmlui.force.ssl = true
    Informational Note:Force all authenticated connections to use SSL, only non-authenticated connections are allowed over plain http. If set to true, then you need to ensure that the 'dspace.hostname' parameter is set to the correctly.
     
    Property:xmlui.user.registration
    Example Value:xmlui.user.registration = true
    Informational Note:Determine if new users should be allowed to register. This parameter is useful in conjunction with Shibboleth where you want to disallow registration because Shibboleth will automatically register the user. Default value is true.
     
    Property:xmlui.user.editmetadata
    Example Value:xmlui.user.editmetadata = true
    Informational Note:Determines if users should be able to edit their own metadata. This parameter is useful in conjunction with Shibboleth where you want to disable the user's ability to edit their metadata because it came from Shibboleth. Default value is true.
     
    Property:xmlui.user.assumelogon
    Example Value:xmlui.user.assumelogon = true
    Informational Note:Determine if super administrators (those whom are in the Administrators group) can login as another user from the "edit eperson" page. This is useful for debugging problems in a running dspace instance, especially in the workflow process. The default value is false, i.e., no one may assume the login of another user.
     
    Property:xmlui.user.loginredirect
    Example Value:xmlui.user.loginredirect = /profile
    Informational Note:After a user has logged into the system, which url should they be directed? Leave this parameter blank or undefined to direct users to the homepage, or /profile for the user's profile, or another reasonable choice is /submissions to see if the user has any tasks awaiting their attention. The default is the repository home page.
     
    Property:xmlui.theme.allowoverrides
    Example Value:xmlui.theme.allowoverrides = false
    Informational Note:Allow the user to override which theme is used to display a particular page. When submitting a request add the HTTP parameter "themepath" which corresponds to a particular theme, that specified theme will be used instead of the any other configured theme. Note that this is a potential security hole allowing execution of unintended code on the server, this option is only for development and debugging it should be turned off for any production repository. The default value unless otherwise specified is "false".
     
    Property:xmlui.bundle.upload
    Example Value:xmlui.bundle.upload = ORIGINAL, METADATA, THUMBNAIL, LICENSE, CC_LICENSE
    Informational Note:Determine which bundles administrators and collection administrators may upload into an existing item through the administrative interface. If the user does not have the appropriate privileges (add and write) on the bundle then that bundle will not be shown to the user as an option.
     
    Property:xmlui.community-list.render.full
    Example Value:xmlui.community-list.render.full = true
    Informational Note:On the community-list page should all the metadata about a community/collection be available to the theme. This parameter defaults to true, but if you are experiencing performance problems on the community-list page you should experiment with turning this option off.
     
    Property:xmlui.community-list.cache
    Example Value:xmlui.community-list.cache = 12 hours
    Informational Note:Normally, Manakin will fully verify any cache pages before using a cache copy. This means that when the community-list page is viewed the database is queried for each community/collection to see if their metadata has been modified. This can be expensive for repositories with a large community tree. To help solve this problem you can set the cache to be assumed valued for a specific set of time. The downside of this is that new or editing communities/collections may not show up the website for a period of time.
     
    Property:xmlui.bistream.mods
    Example Value:xmlui.bistream.mods = true
    Informational Note:Optionally, you may configure Manakin to take advantage of metadata stored as a bitstream. The MODS metadata file must be inside the "METADATA" bundle and named MODS.xml. If this option is set to 'true' and the bitstream is present then it is made available to the theme for display.
     
    Property:xmlui.bitstream.mets
    Example Value:xmlui.bitstream.mets = true
    Informational Note:Optionally, you may configure Manakin to take advantage of metadata stored as a bitstream. The METS metadata file must be inside the "METADATA" bundle and named METS.xml. If this optino is set to "true" and the bitstream is present then it is made available to the theme for display.
     
    Property:xmlui.google.analytics.key
    Example Value:xmlui.google.analytics.key = UA-XXXXXX-X
    Informational Note:If you would like to use google analytics to track general website statistics then use the following parameter to provide your analytics key. First sign up for an account at http://analytics.google.com, then create an entry for your repositories website. Google Analytics will give you a snipit of javascript code to place on your site, inside that snip it is your google analytics key usually found in the line: _uacct = "UA-XXXXXXX-X" Take this key (just the UA-XXXXXX-X part) and place it here in this parameter.
     
    Property:xmlui.controlpanel.activity.max
    Example Value:xmlui.controlpanel.activity.max = 250
    Informational Note:Assign how many page views will be recorded and displayed in the control panel's activity viewer. The activity tab allows an administrator to debug problems in a running DSpace by understanding who and how their dspace is currently being used. The default value is 250.
     
    Property:xmlui.controlpanel.activity.ipheader
    Example Value:xmlui.controlpanel.activity.ipheader = X-Forward-For
    Informational Note:Determine where the control panel's activity viewer recieves an events IP address from. If your DSpace is in a load balanced enviornment or otherwise behind a context-switch then you will need to set the paramater to the HTTP parameter that records the original IP address.

    7.2. Configuring Themes and Aspects

    The Manakin user interface is composed of two distinct components: aspects and themes. Manakin aspects are like extensions or plugins for Manakin; they are interactive components that modify existing features or provide new features for the digital repository. Manakin themes stylize the look-and-feel of the repository, community, or collection.

    The repository administrator is able to define which aspects and themes are installed for the particular repository by editing the [dspace]/config/xmlui.xconf configuration file. The xmlui.xconf file consists of two major sections: Aspects and Themes.

    7.2.1. Aspects

    The <aspects> section defines the "Aspect Chain", or the linear set of aspects that are installed in the repository. For each aspect that is installed in the repository, the aspect makes available new features to the interface. For example, if the "submission" aspect were to be commented out or removed from the xmlui.xconf, then users would not be able to submit new items into the repository (even the links and language prompting users to submit items are removed). Each <aspect> element has two attributes, name and path. The name is used to identify the Aspect, while the path determines the directory where the aspect's code is located. Here is the default aspect configuration:

    +Chapter 7. DSpace System Documentation: Manakin [XMLUI] Configuration and Customization

    Chapter 7. DSpace System Documentation: Manakin [XMLUI] Configuration and Customization

    The DSpace digital repository supports two user interfaces: one based on JavaServer Pages (JSP) technologies and one based upon the Apache Cocoon framework. This chapter describes those parameters which are specific to the Manakin (XMLUI) interface based upon the Cocoon framework.

    7.1. Manakin Configuration Property Keys

    In an effort to save the programmer/administrator some time, the configuration table below is taken from 5.3.43. XMLUI Specific Configuration.

    Property:xmlui.supportedLocales
    Example Value:xmlui.supportedLocales = en, de
    Informational Note:A list of supported locales for Manakin. Manakin will look at a user's browser configuration for the first language that appears in this list to make available to in the interface. This parameter is a comma separated list of Locales. All types of Locales country, country_language, country_language_variant. Note that if the appropriate files are not present (i.e. Messages_XX_XX.xml) then Manakin will fall back through to a more general language.
     
    Property:xmlui.force.ssl
    Example Value:xmlui.force.ssl = true
    Informational Note:Force all authenticated connections to use SSL, only non-authenticated connections are allowed over plain http. If set to true, then you need to ensure that the 'dspace.hostname' parameter is set to the correctly.
     
    Property:xmlui.user.registration
    Example Value:xmlui.user.registration = true
    Informational Note:Determine if new users should be allowed to register. This parameter is useful in conjunction with Shibboleth where you want to disallow registration because Shibboleth will automatically register the user. Default value is true.
     
    Property:xmlui.user.editmetadata
    Example Value:xmlui.user.editmetadata = true
    Informational Note:Determines if users should be able to edit their own metadata. This parameter is useful in conjunction with Shibboleth where you want to disable the user's ability to edit their metadata because it came from Shibboleth. Default value is true.
     
    Property:xmlui.user.assumelogon
    Example Value:xmlui.user.assumelogon = true
    Informational Note:Determine if super administrators (those whom are in the Administrators group) can login as another user from the "edit eperson" page. This is useful for debugging problems in a running dspace instance, especially in the workflow process. The default value is false, i.e., no one may assume the login of another user.
     
    Property:xmlui.user.loginredirect
    Example Value:xmlui.user.loginredirect = /profile
    Informational Note:After a user has logged into the system, which url should they be directed? Leave this parameter blank or undefined to direct users to the homepage, or /profile for the user's profile, or another reasonable choice is /submissions to see if the user has any tasks awaiting their attention. The default is the repository home page.
     
    Property:xmlui.theme.allowoverrides
    Example Value:xmlui.theme.allowoverrides = false
    Informational Note:Allow the user to override which theme is used to display a particular page. When submitting a request add the HTTP parameter "themepath" which corresponds to a particular theme, that specified theme will be used instead of the any other configured theme. Note that this is a potential security hole allowing execution of unintended code on the server, this option is only for development and debugging it should be turned off for any production repository. The default value unless otherwise specified is "false".
     
    Property:xmlui.bundle.upload
    Example Value:xmlui.bundle.upload = ORIGINAL, METADATA, THUMBNAIL, LICENSE, CC_LICENSE
    Informational Note:Determine which bundles administrators and collection administrators may upload into an existing item through the administrative interface. If the user does not have the appropriate privileges (add and write) on the bundle then that bundle will not be shown to the user as an option.
     
    Property:xmlui.community-list.render.full
    Example Value:xmlui.community-list.render.full = true
    Informational Note:On the community-list page should all the metadata about a community/collection be available to the theme. This parameter defaults to true, but if you are experiencing performance problems on the community-list page you should experiment with turning this option off.
     
    Property:xmlui.community-list.cache
    Example Value:xmlui.community-list.cache = 12 hours
    Informational Note:Normally, Manakin will fully verify any cache pages before using a cache copy. This means that when the community-list page is viewed the database is queried for each community/collection to see if their metadata has been modified. This can be expensive for repositories with a large community tree. To help solve this problem you can set the cache to be assumed valued for a specific set of time. The downside of this is that new or editing communities/collections may not show up the website for a period of time.
     
    Property:xmlui.bistream.mods
    Example Value:xmlui.bistream.mods = true
    Informational Note:Optionally, you may configure Manakin to take advantage of metadata stored as a bitstream. The MODS metadata file must be inside the "METADATA" bundle and named MODS.xml. If this option is set to 'true' and the bitstream is present then it is made available to the theme for display.
     
    Property:xmlui.bitstream.mets
    Example Value:xmlui.bitstream.mets = true
    Informational Note:Optionally, you may configure Manakin to take advantage of metadata stored as a bitstream. The METS metadata file must be inside the "METADATA" bundle and named METS.xml. If this optino is set to "true" and the bitstream is present then it is made available to the theme for display.
     
    Property:xmlui.google.analytics.key
    Example Value:xmlui.google.analytics.key = UA-XXXXXX-X
    Informational Note:If you would like to use google analytics to track general website statistics then use the following parameter to provide your analytics key. First sign up for an account at http://analytics.google.com, then create an entry for your repositories website. Google Analytics will give you a snipit of javascript code to place on your site, inside that snip it is your google analytics key usually found in the line: _uacct = "UA-XXXXXXX-X" Take this key (just the UA-XXXXXX-X part) and place it here in this parameter.
     
    Property:xmlui.controlpanel.activity.max
    Example Value:xmlui.controlpanel.activity.max = 250
    Informational Note:Assign how many page views will be recorded and displayed in the control panel's activity viewer. The activity tab allows an administrator to debug problems in a running DSpace by understanding who and how their dspace is currently being used. The default value is 250.
     
    Property:xmlui.controlpanel.activity.ipheader
    Example Value:xmlui.controlpanel.activity.ipheader = X-Forward-For
    Informational Note:Determine where the control panel's activity viewer recieves an events IP address from. If your DSpace is in a load balanced enviornment or otherwise behind a context-switch then you will need to set the paramater to the HTTP parameter that records the original IP address.

    7.2. Configuring Themes and Aspects

    The Manakin user interface is composed of two distinct components: aspects and themes. Manakin aspects are like extensions or plugins for Manakin; they are interactive components that modify existing features or provide new features for the digital repository. Manakin themes stylize the look-and-feel of the repository, community, or collection.

    The repository administrator is able to define which aspects and themes are installed for the particular repository by editing the [dspace]/config/xmlui.xconf configuration file. The xmlui.xconf file consists of two major sections: Aspects and Themes.

    7.2.1. Aspects

    The <aspects> section defines the "Aspect Chain", or the linear set of aspects that are installed in the repository. For each aspect that is installed in the repository, the aspect makes available new features to the interface. For example, if the "submission" aspect were to be commented out or removed from the xmlui.xconf, then users would not be able to submit new items into the repository (even the links and language prompting users to submit items are removed). Each <aspect> element has two attributes, name and path. The name is used to identify the Aspect, while the path determines the directory where the aspect's code is located. Here is the default aspect configuration:

         <aspects>
             <aspect name="Artifact Browser" path="resource://aspects/ArtifactBrowser/" />
             <aspect name="Administration"	path="resource://aspects/Administrative/" />
             <aspect name="E-Person" path="resource://aspects/EPerson/"	/>
             <aspect name="Submission and Workflow" path="resource://aspects/Submission/" />
    -    </aspects>

    A standard distribution of Manakin/DSpace includes four "core" aspects:

    • Artifact Browser

      The Artifact Browser Aspect is responsible for browsing communities, collections, items and bitstreams, viewing an individual item and searching the repository.

    • E-Person

      The E-Person Aspect is responsible for logging in, logging out, registering new users, dealing with forgotten passwords, editing profiles and changing passwords.

    • Submission

      The Submission Aspect is responsible for submitting new items to DSpace, determining the workflow process and ingesting the new items into the DSpace repository.

    • Administrative

      The Administrative Aspect is responsible for administrating DSpace, such as creating, modifying and removing all communities, collections, e-persons, groups, registries and authorizations.

    7.2.2. Themes

    The <themes> section defines a set of "rules" that determine where themes are installed in the repository. Each rule is processed in the order that it appears, and the first rule that matches determines the theme that is applied (so order is important). Each rule consists of a <theme> element with several possible attributes:

    • name (always required)

      The name attribute is used to document the theme's name.

    • path (always required)

      The path attribute determines where the theme is located relative to the themes/ directory and must either contain a trailing slash or point directly to the theme's sitemap.xmap file.

    • regex (either regex and/or handle is required)

      The regex attribute determines which URLs the theme should apply to.

    • handle (either regex and/or handle is required)

      The handle attribute determines which community, collection, or item the theme should apply to.

    If you use the "handle" attribute, the effect is cascading, meaning if a rule is established for a community then all collections and items within that community will also have this theme apply to them as well. Here is an example configuration:

    +    </aspects>

    A standard distribution of Manakin/DSpace includes four "core" aspects:

    • Artifact Browser

      The Artifact Browser Aspect is responsible for browsing communities, collections, items and bitstreams, viewing an individual item and searching the repository.

    • E-Person

      The E-Person Aspect is responsible for logging in, logging out, registering new users, dealing with forgotten passwords, editing profiles and changing passwords.

    • Submission

      The Submission Aspect is responsible for submitting new items to DSpace, determining the workflow process and ingesting the new items into the DSpace repository.

    • Administrative

      The Administrative Aspect is responsible for administrating DSpace, such as creating, modifying and removing all communities, collections, e-persons, groups, registries and authorizations.

    7.2.2. Themes

    The <themes> section defines a set of "rules" that determine where themes are installed in the repository. Each rule is processed in the order that it appears, and the first rule that matches determines the theme that is applied (so order is important). Each rule consists of a <theme> element with several possible attributes:

    • name (always required)

      The name attribute is used to document the theme's name.

    • path (always required)

      The path attribute determines where the theme is located relative to the themes/ directory and must either contain a trailing slash or point directly to the theme's sitemap.xmap file.

    • regex (either regex and/or handle is required)

      The regex attribute determines which URLs the theme should apply to.

    • handle (either regex and/or handle is required)

      The handle attribute determines which community, collection, or item the theme should apply to.

    If you use the "handle" attribute, the effect is cascading, meaning if a rule is established for a community then all collections and items within that community will also have this theme apply to them as well. Here is an example configuration:

         <themes>
             <theme name="Theme 1" handle="123456789/23" path="theme1/"/>
             <theme name="Theme 2" regex="community-list"	path="theme2/"/>
             <theme name="Reference Theme" regex=".*" path="Reference/"/>
    -    </themes>

    In the example above three themes are configured: "Theme 1", "Theme 2", and the "Reference Theme". The first rule specifies that "Theme 1" will apply to all communities, collections, or items that are contained under the parent community "123456789/23". The next rule specifies any URL containing the string "community-list" will get "Theme 2". The final rule, using the regular expression ".*", will match anything, so all pages which have not matched one of the preceding rules will be matched to the Reference Theme.

    7.3. Multilingual Support

    The XMLUI user interface supports multiple languages through the use of internationalization catalogues as defined by the Cocoon Internationalization Transformer. Each catalog contains the translation of all user-displayed strings into a particular language or variant. Each catalog is a single xml file whose name is based upon the language it is designated for, thus:

    messages_language_country_variant.xml

    messages_language_country.xml

    messages_language.xml

    messages.xml

    The interface will automatically determine which file to select based upon the user's browser and system configuration. For example, if the user's browser is set to Australian English then first the system will check if messages_en_au.xml is available. If this translation is not available it will fall back to messages_en.xml, and finally if that is not available, messages.xml.

    Manakin supplies an English only translation of the interface. In order to add other translations to the system, locate the [dspace-source]/dspace/modules/xmlui/src/main/webapp/i18n/ directory. By default this directory will be empty; to add additional translations add alternative versions of the messages.xml file in specific language and country variants as needed for your installation.

    To set a language other than English as the default language for the repository's interface, simply name the translation catalogue for the new default language "messages.xml"

    7.4. Creating a New Theme

    Manakin themes stylize the look-and-feel of the repository, community, or collection and are distributed as self-contained packages. A Manakin/DSpace installation may have multiple themes installed and available to be used in different parts of the repository. The central component of a theme is the sitemap.xmap, which defines what resources are available to the theme such as XSL stylesheets, CSS stylesheets, images, or multimedia files.

    + </themes>

    In the example above three themes are configured: "Theme 1", "Theme 2", and the "Reference Theme". The first rule specifies that "Theme 1" will apply to all communities, collections, or items that are contained under the parent community "123456789/23". The next rule specifies any URL containing the string "community-list" will get "Theme 2". The final rule, using the regular expression ".*", will match anything, so all pages which have not matched one of the preceding rules will be matched to the Reference Theme.

    7.3. Multilingual Support

    The XMLUI user interface supports multiple languages through the use of internationalization catalogues as defined by the Cocoon Internationalization Transformer. Each catalog contains the translation of all user-displayed strings into a particular language or variant. Each catalog is a single xml file whose name is based upon the language it is designated for, thus:

    messages_language_country_variant.xml

    messages_language_country.xml

    messages_language.xml

    messages.xml

    The interface will automatically determine which file to select based upon the user's browser and system configuration. For example, if the user's browser is set to Australian English then first the system will check if messages_en_au.xml is available. If this translation is not available it will fall back to messages_en.xml, and finally if that is not available, messages.xml.

    Manakin supplies an English only translation of the interface. In order to add other translations to the system, locate the [dspace-source]/dspace/modules/xmlui/src/main/webapp/i18n/ directory. By default this directory will be empty; to add additional translations add alternative versions of the messages.xml file in specific language and country variants as needed for your installation.

    To set a language other than English as the default language for the repository's interface, simply name the translation catalogue for the new default language "messages.xml"

    7.4. Creating a New Theme

    Manakin themes stylize the look-and-feel of the repository, community, or collection and are distributed as self-contained packages. A Manakin/DSpace installation may have multiple themes installed and available to be used in different parts of the repository. The central component of a theme is the sitemap.xmap, which defines what resources are available to the theme such as XSL stylesheets, CSS stylesheets, images, or multimedia files.

    1) Create theme skeleton

    Most theme developers do not create a new theme from scratch; instead they start from the standard theme template, which defines a skeleton structure for a theme. The template is located at: [dspace-source]/dspace-xmlui/dspace-xmlui-webbapp/src/main/webbapp/themes/template. To start your new theme simply copy the theme template into your locally defined modules directory, [dspace-source]/dspace/modules/xmlui/src/main/webbapp/themes/[your theme's directory]/.

    2) Modify theme variables @@ -21,14 +21,50 @@ 3) Add your CSS stylesheets

    The base theme template will produce a repository interface without any style - just plain XHTML with no color or formatting. To make your theme useful you will need to supply a CSS Stylesheet that creates your desired look-and-feel. Add your new CSS stylesheets:

    [your theme's directory]/lib/style.css (The base style sheet used for all browsers)

    [your theme's directory]/lib/style-ie.css (Specific stylesheet used for internet explorer)

    4) Install theme and rebuild DSpace -

    Next rebuild and deploy Dspace (replace <version> with the your current release):

    1. Rebuild the DSpace installation package by running the following command from your [dspace-source]/dspace/ directory:

      mvn package
    2. Update all DSpace webapps to [dspace]/webapps by running the following command from your [dspace-source]/dspace/target/dspace-[version]-build.dir directory:

      ant -Dconfig=[dspace]/config/dspace.cfg update 
    3. Deploy the the new webapps:

      cp -R /[dspace]/webapps/* /[tomcat]/webapps

    4. Restart Tomcat

    This will ensure the theme has been installed as described in the previous section "Configuring Themes and Aspects".

    7.5. Adding Static Content

    The XMLUI user interface supports the addition of globally static content (as well as static content within individual themes).

    Globally static content can be placed in the [dspace-source]/dspace/modules/xmlui/src/main/webapp/static/ directory. By default this directory only contains the default robots.txt file, which provides helpful site information to web spiders/crawlers. However, you may also add static HTML (*.html) content to this directory, as needed for your installation.

    Any static HTML content you add to this directory may also reference static content (e.g. CSS, Javascript, Images, etc.) from the same [dspace-source]/dspace/modules/xmlui/src/main/webapp/static/ directory. You may reference other static content from your static HTML files similar to the following:

    +        

    Next rebuild and deploy Dspace (replace <version> with the your current release):

    1. Rebuild the DSpace installation package by running the following command from your [dspace-source]/dspace/ directory:

      mvn package
    2. Update all DSpace webapps to [dspace]/webapps by running the following command from your [dspace-source]/dspace/target/dspace-[version]-build.dir directory:

      ant -Dconfig=[dspace]/config/dspace.cfg update 
    3. Deploy the the new webapps:

      cp -R /[dspace]/webapps/* /[tomcat]/webapps

    4. Restart Tomcat

    This will ensure the theme has been installed as described in the previous section "Configuring Themes and Aspects".

    7.5. Customizing the News Document

    The XMLUI "news" document is only shown on the root page of your repository. It was intended to provide the title and introductory message, but you may use it for anything.

    The news document is located at [dspace]/dspace/config/news-xmlui.xml. There is only one version; it is localized by inserting "i18n" callouts into the text areas. It must be a complete and valid XML DRI document (see Chapter 15).

    Its (the News document) exact rendering in the XHTML UI depends, of course, on the theme. The default content is designed to operate with the reference themes, so when you modify it, be sure to preserve the tag structure and e.g. the exact attributes of the first DIV tag. Also note that the text is DRI, not HTML, so you must use only DRI tags, such as the XREF tag to construct a link.

    Example 1: a single language:

    <document>
    +      <body>
    +        <div id="file.news.div.news" n="news" rend="primary">
    +          <head> TITLE OF YOUR REPOSITORY HERE </head>
    +          <p>
    +            INTRO MESSAGE HERE
    +            Welcome to my wonderful repository etc etc ...
    +            A service of <xref target="http://myuni.edu/">My University</xref>
    +          </p>
    +        </div>
    +      </body>
    +      <options/>
    +      <meta>
    +        <userMeta/>
    +        <pageMeta/>
    +        <repositoryMeta/>
    +      </meta>
    +   </document>

    Example 2: all text replaced by references to localizable message keys:

    +<document>
    +      <body>
    +        <div id="file.news.div.news" n="news" rend="primary">
    +          <head><i18n:text>myuni.repo.title</i18n:text></head>
    +          <p>
    +            <i18n:text>myuni.repo.intro</i18n:text>
    +            <i18n:text>myuni.repo.a.service.of</i18n:text>
    +            <xref target="http://myuni.edu/"><i18n:text>myuni.name</i18n:text></xref>
    +          </p>
    +        </div>
    +      </body>
    +      <options/>
    +      <meta>
    +        <userMeta/>
    +        <pageMeta/>
    +        <repositoryMeta/>
    +      </meta>
    +    </document>
    +

    7.6. Adding Static Content

    The XMLUI user interface supports the addition of globally static content (as well as static content within individual themes).

    Globally static content can be placed in the [dspace-source]/dspace/modules/xmlui/src/main/webapp/static/ directory. By default this directory only contains the default robots.txt file, which provides helpful site information to web spiders/crawlers. However, you may also add static HTML (*.html) content to this directory, as needed for your installation.

    Any static HTML content you add to this directory may also reference static content (e.g. CSS, Javascript, Images, etc.) from the same [dspace-source]/dspace/modules/xmlui/src/main/webapp/static/ directory. You may reference other static content from your static HTML files similar to the following:

       <link href="./static/mystyle.css" rel="stylesheet" type="text/css"/>
       <img src="./static/images/static-image.gif" alt="Static image in /static/images/ directory"/>
    -  <img src="./static/static-image.jpg" alt="Static image in /static/ directory"/> 

    7.7. Enabling OAI-ORE Harvester using XMLUI

    This section will give the necessary steps to set up the OAI-ORE Harvester usig Manakin.

    Setting up a collection (Collection Edit Screen):

    1. Login and create a new collection.

    2. Go to the tab named "Content Source" that now appears next to "Edit Metadata" and "Assign Roles " in the collection edit screens.

    3. The two counter source options are standards (selected by default) and harvested. Select "harvests from external source" and click Save.

    4. A new set of menus appear to configure the harvesting settings:

      • "OAI Provide" is in the URL of the OAI-PMH provider that the content from this collection should be harvested from. The PMH provider deployed with DSpace typically has the form:

        "http://dspace.url/oai/reuqest". For this example use "http://web01.library.tamu.edu/oai-h151/request"

      • "OAI Set id" is the setSpec of the collection you wish to harvest from.

        Use "hdl_1969.1_5671" for this example.

      • "Metadata format" determines the format that the descriptive metdata will be harvested. Since DSpace stores metadata in its own internal format, not all metadata values might bet harvested if a specific format is specified. Select "DSpace Intermediate Metadata" if available and "Simple Dublin Core" otherwise.

      • Click the Test Settings button will verify the settings supplied in the previous steps and will usually let you know what, if anything is missing or does not match up.

    5. The list of radio buttons labeled "Content being harvested" allows you to select the harvest level. The first one requires no OAI-ORE support on the part of the provider and can be used to harvest metadata from any provider compliant with the OAI-PMH 2.0 specifications. The middle options will harvest the metadata and generate links to bitstreams stored remotely, while the last one will perform full local replication.

      Select the middle option and click Save

    At this point the settings are saved and the menu changes to provide three options:

    7.7.1. Automatic Harvesting (Scheduler)

    Setting up automatic harvesting in the Control Panel Screen.

    • A new tabl, Harvesting, has been added under Administrative —> Control Panel.

    • The panel offers the following information:

      • Available actions:

        • STart Harvester: starts the scheduler. From this point on, all properly configured collections (listed on the next line) will be harvested at regular intervals. This interval can be changed in the dspace.cfg using the "harvester.harvestFrequency" parameter.

        • Pause: the "nice" stop; waits for the active harvests to finish, saves the state/progress and pauses execution. Can be either resumed or stopped.

        • Stop: the "full stop"; waits for the current item to finish harvesting, and aborts further execution.

        • Reset Harvest Status: since stoppin in the middle of a harvest is likely to result in collections getting "stuck" in the queue, the button is available to clear all states.


    - Licensed under a Creative Commons Attribution 3.0 United States License -

    \ No newline at end of file +

    Licensed under a Creative Commons Attribution 3.0 United States License

    \ No newline at end of file diff --git a/dspace/docs/html/ch08.html b/dspace/docs/html/ch08.html index ffe12d1ab7..008df1a7ad 100644 --- a/dspace/docs/html/ch08.html +++ b/dspace/docs/html/ch08.html @@ -1,10 +1,10 @@ -Chapter 8. DSpace System Documentation: System Administration

    Chapter 8. DSpace System Documentation: System Administration

    Table of Contents

    8.1. Community and Collection Structure Importer
    8.1.1. Limitation
    8.2. Package Importer and Exporter
    8.2.1. Ingesting
    8.2.2. Disseminating
    8.2.3. METS packages
    8.3. Item Importer and Exporter
    8.3.1. DSpace Simple Archive Format
    8.3.2. Importing Items
    8.3.2.1. Adding Items to a Collection
    8.3.2.2. Replacing Items in Collection
    8.3.2.3. Deleting or Unimporting Items in a Collection
    8.3.2.4. Other Options
    8.3.3. Exporting Items
    8.4. Transferring Items Between DSpace Instances
    8.5. Item Update
    8.5.1. DSpace simple Archive Format
    8.5.2. ItemUpdate Commands
    8.5.3. CLI Examples
    8.6. Registering (Not Importing) Bitstreams
    8.6.1. Accessible Storage
    8.6.2. Registering Items Using the Item Importer
    8.6.3. Internal Identification and Retrieval of Registered Items
    8.6.4. Exporting Registered Items
    8.6.5. METS Export of Registered Items
    8.6.6. Deleting Registered Items
    8.7. METS Tools
    8.7.1. The Export Tool
    8.7.2. The AIP Format
    8.7.3. Limitations
    8.8. MediaFilters: Transforming DSpace Content
    8.9. Sub-Community Management
    8.10. Batch Metadata Editing
    8.10.1. Export Function
    8.10.1.1. Exporting Process
    8.10.2. Import Function
    8.10.2.1. Importing Process
    8.10.3. The CSV Files
    8.11. Checksum Checker
    8.11.1. Checker Execution Mode
    8.11.2. Checker Results Pruning
    8.11.3. Checker Reporting
    8.11.4. Cron or Automatic Execution of Checksum Checker
    8.11.5. Automated Checksum Checkers' Results
    8.12. Embargo
    8.13. Browse Index Creation
    8.13.1. Running the Indexing Programs
    8.13.2. Indexing Customization

    DSpace operates on several levels: as a Tomcat servlet, cron jobs, and on-demand operations. This section explains many of the on-demand operations. Some of the command operations may be also set up as cron jobs. Many of these operations are performed at the Command Line Interface (CLI) also known as the Unix prompt ($:) Future reference will use the term CLI when the use needs to be at the command line.

    Below is the "Command Help Table". This table explains what data is contained in the individual command/help tables in the sections that follow.

    Table 8.1. Command Help Table

    Command used: +Chapter 8. DSpace System Documentation: System Administration

    Chapter 8. DSpace System Documentation: System Administration

    Table of Contents

    8.1. Community and Collection Structure Importer
    8.1.1. Limitation
    8.2. Package Importer and Exporter
    8.2.1. Ingesting
    8.2.2. Disseminating
    8.2.3. METS packages
    8.3. Item Importer and Exporter
    8.3.1. DSpace Simple Archive Format
    8.3.2. Importing Items
    8.3.2.1. Adding Items to a Collection
    8.3.2.2. Replacing Items in Collection
    8.3.2.3. Deleting or Unimporting Items in a Collection
    8.3.2.4. Other Options
    8.3.3. Exporting Items
    8.4. Transferring Items Between DSpace Instances
    8.5. Item Update
    8.5.1. DSpace simple Archive Format
    8.5.2. ItemUpdate Commands
    8.5.3. CLI Examples
    8.6. Registering (Not Importing) Bitstreams
    8.6.1. Accessible Storage
    8.6.2. Registering Items Using the Item Importer
    8.6.3. Internal Identification and Retrieval of Registered Items
    8.6.4. Exporting Registered Items
    8.6.5. METS Export of Registered Items
    8.6.6. Deleting Registered Items
    8.7. METS Tools
    8.7.1. The Export Tool
    8.7.2. The AIP Format
    8.7.3. Limitations
    8.8. MediaFilters: Transforming DSpace Content
    8.9. Sub-Community Management
    8.10. Batch Metadata Editing
    8.10.1. Export Function
    8.10.1.1. Exporting Process
    8.10.2. Import Function
    8.10.2.1. Importing Process
    8.10.3. The CSV Files
    8.11. Checksum Checker
    8.11.1. Checker Execution Mode
    8.11.2. Checker Results Pruning
    8.11.3. Checker Reporting
    8.11.4. Cron or Automatic Execution of Checksum Checker
    8.11.5. Automated Checksum Checkers' Results
    8.12. Embargo
    8.13. Browse Index Creation
    8.13.1. Running the Indexing Programs
    8.13.2. Indexing Customization
    8.14. DSpace Log Converter
    8.15. Test Database

    DSpace operates on several levels: as a Tomcat servlet, cron jobs, and on-demand operations. This section explains many of the on-demand operations. Some of the command operations may be also set up as cron jobs. Many of these operations are performed at the Command Line Interface (CLI) also known as the Unix prompt ($:) Future reference will use the term CLI when the use needs to be at the command line.

    Below is the "Command Help Table". This table explains what data is contained in the individual command/help tables in the sections that follow.

    Table 8.1. Command Help Table

    Command used: The directory and where the command is to be found.
    Java class: The actual java program doing the work.
    Arguments: The required/mandatory or optional arguments available to the user. -

    DSpace Command Launcher. With DSpace Release 1.6, the many commands and scripts have been replaced with a simple [dspace]/bin/dspace <command> command. See Application Layer chapter for the details of the DSpace Command Launcher.

    8.1. Community and Collection Structure Importer

    This CLI tool gives you the ability to import acommunity and collection structure directory froma source XML file.

    Table 8.2. Structure Importer Command Table

    Command used:[dspace]/bin/dspace structure-builder
    Java class:org.dspace.administer.StructBuilder
    Argument: short and long (if available) forms:Description of the argument
    -fSource xml file.
    -oOutput xml file.
    -eEmail of DSpace Administrator.

    The administrator need to build the source xml document in the following format:

    <import_structure>
    +					

    DSpace Command Launcher. With DSpace Release 1.6, the many commands and scripts have been replaced with a simple [dspace]/bin/dspace <command> command. See Application Layer chapter for the details of the DSpace Command Launcher.

    8.1. Community and Collection Structure Importer

    This CLI tool gives you the ability to import acommunity and collection structure directory froma source XML file.

    Table 8.2. Structure Importer Command Table

    Command used:[dspace]/bin/dspace structure-builder
    Java class:org.dspace.administer.StructBuilder
    Argument: short and long (if available) forms:Description of the argument
    -fSource xml file.
    -oOutput xml file.
    -eEmail of DSpace Administrator.

    The administrator need to build the source xml document in the following format:

    <import_structure>
             <community>
                     <name>Community Name</name>
                     <description>Descriptive text</description>
    @@ -50,18 +50,18 @@
                        </collection>
             </community>
     </import_structure>
    -

    This command-line tool gives you the ability to import a community and collection structure directly from a source XML file. It is executed as follows:

    [dspace]/bin/dspace structure-builder -f /path/to/source.xml -o path/to/output.xml -e admin@user.com

    This will examine the contents of [source xml], import the structure into DSpace while logged in as the supplied administrator, and then output the same structure to the output file, but including the handle for each imported community and collection as an attribute.

    8.1.1. Limitation

    • Currently this does not export community and collection structures, although it should only be a small modification to make it do so

    8.2. Package Importer and Exporter

    This command-line tool gives you access to the Packager plugins. It can ingest a package to create a new DSpace Item, or disseminate an Item as a package.

    To see all the options, invoke it as:

    +

    This command-line tool gives you the ability to import a community and collection structure directly from a source XML file. It is executed as follows:

    [dspace]/bin/dspace structure-builder -f /path/to/source.xml -o path/to/output.xml -e admin@user.com

    This will examine the contents of [source xml], import the structure into DSpace while logged in as the supplied administrator, and then output the same structure to the output file, but including the handle for each imported community and collection as an attribute.

    8.1.1. Limitation

    • Currently this does not export community and collection structures, although it should only be a small modification to make it do so

    8.2. Package Importer and Exporter

    This command-line tool gives you access to the Packager plugins. It can ingest a package to create a new DSpace Item, or disseminate an Item as a package.

    To see all the options, invoke it as:

    [dspace] /bin/packager --help -

    This mode also displays a list of the names of package ingesters and disseminators that are available.

    8.2.1. Ingesting

    To ingest a package from a file, give the command:

    [dspace]/bin/packager -e  user -c  handle -t  packager path

    Where user is the e-mail address of the E-Person under whose authority this runs; handle is the Handle of the collection into which the Item is added, packager is the plugin name of the package ingester to use, and path is the path to the file to ingest (or "-" to read from the standard input).

    Here is an example that loads a PDF file with internal metadata as a package:

    +

    This mode also displays a list of the names of package ingesters and disseminators that are available.

    8.2.1. Ingesting

    To ingest a package from a file, give the command:

    [dspace]/bin/packager -e  user -c  handle -t  packager path

    Where user is the e-mail address of the E-Person under whose authority this runs; handle is the Handle of the collection into which the Item is added, packager is the plugin name of the package ingester to use, and path is the path to the file to ingest (or "-" to read from the standard input).

    Here is an example that loads a PDF file with internal metadata as a package:

    /dspace/bin/packager -e florey@mit.edu -c 1721.2/13 -t pdf thesis.pdf

    This example takes the result of retrieving a URL and ingests it:

    wget -O - http://alum.mit.edu/jarandom/my-thesis.pdf | \
    -/dspace/bin/packager -e florey@mit.edu -c 1721.2/13  -t pdf -

    8.2.2. Disseminating

    To disseminate an Item as a package, give the command:

    [dspace]/bin/packager -e  user -d -i  handle -t packager path

    Where user is the e-mail address of the E-Person under whose authority this runs; handle is the Handle of the Item to disseminate; packager is the plugin name of the package disseminator to use; and path is the path to the file to create (or "-" to write to the standard output). This example writes an Item out as a METS package in the file "454.zip":

    +/dspace/bin/packager -e florey@mit.edu -c 1721.2/13 -t pdf -

    8.2.2. Disseminating

    To disseminate an Item as a package, give the command:

    [dspace]/bin/packager -e  user -d -i  handle -t packager path

    Where user is the e-mail address of the E-Person under whose authority this runs; handle is the Handle of the Item to disseminate; packager is the plugin name of the package disseminator to use; and path is the path to the file to create (or "-" to write to the standard output). This example writes an Item out as a METS package in the file "454.zip":

    /dspace/bin/packager -e florey@mit.edu -d -i 1721.2/454 -t METS 454.zip -

    8.2.3. METS packages

    Since DSpace 1.4 release, the software includes a package disseminator and matching ingester for the DSpace METS SIP (Submission Information Package) format. They were created to help end users prepare sets of digital resources and metadata for submission to the archive using well-defined standards such as METS, MODS, and PREMIS. The plugin name is METS by default, and it uses MODS for descriptive metadata.

    The DSpace METS SIP profile is available at: - http://www.dspace.org/standards/METS/SIP/profilev1p0/metsipv1p0.pdf .

    8.3. Item Importer and Exporter

    DSpace has a set of command line tools for importing and exporting items in batches, using the DSpace simple archive format. The tools are not terribly robust, but are useful and are easily modified. They also give a good demonstration of how to implement your own item importer if desired.

    8.3.1. DSpace Simple Archive Format

    The basic concept behind the DSpace's simple archive format is to create an archive, which is directory full of items, with a subdirectory per item. Each item directory contains a file for the item's descriptive metadata, and the files that make up the item.

    +			

    8.2.3. METS packages

    Since DSpace 1.4 release, the software includes a package disseminator and matching ingester for the DSpace METS SIP (Submission Information Package) format. They were created to help end users prepare sets of digital resources and metadata for submission to the archive using well-defined standards such as METS, MODS, and PREMIS. The plugin name is METS by default, and it uses MODS for descriptive metadata.

    The DSpace METS SIP profile is available at: + http://www.dspace.org/standards/METS/SIP/profilev1p0/metsipv1p0.pdf .

    8.3. Item Importer and Exporter

    DSpace has a set of command line tools for importing and exporting items in batches, using the DSpace simple archive format. The tools are not terribly robust, but are useful and are easily modified. They also give a good demonstration of how to implement your own item importer if desired.

    8.3.1. DSpace Simple Archive Format

    The basic concept behind the DSpace's simple archive format is to create an archive, which is directory full of items, with a subdirectory per item. Each item directory contains a file for the item's descriptive metadata, and the files that make up the item.

     archive_directory/
         item_000/
             dublin_core.xml         -- qualified Dublin Core metadata for metadata fields belonging to the dc schema
    @@ -87,92 +87,90 @@ archive_directory/
             license
     

    Please notice that the license is optional, and if you wish to have one included, you can place the file in the .../item_001/ directory, for example.

    The bitstream name may optionally be followed by the sequence:

    \tbundle:bundlename -

    where '\t' is the tab character and 'bundlename' is replaced by the name of the bundle to which the bitstream should be added. If no bundle is specified, the bitstream will be added to the 'ORIGINAL' bundle.

    8.3.2. Importing Items

    [Note]

    Before running the item importer over items previously exported from a DSpace instance, please first refer to Transferring Items Between DSpace Instances.

    Table 8.3. Import Items Command Table

    Command used: +

    where '\t' is the tab character and 'bundlename' is replaced by the name of the bundle to which the bitstream should be added. If no bundle is specified, the bitstream will be added to the 'ORIGINAL' bundle.

    8.3.2. Importing Items

    [Note]

    Before running the item importer over items previously exported from a DSpace instance, please first refer to Transferring Items Between DSpace Instances.

    Table 8.3. Import Items Command Table

    Command used: [dspace] /bin/dspace import
    Java class: org.dspace.app.itemimport.ItemImport -
    Arguments short and (long) forms:Description
    -a or --addAdd items to DSpace ‡
    -r or --replaceReplace items listed in mapfile ‡
    -d or --deleteDelete items listed in mapfile ‡
    -s or --sourceSource of the items (directory)
    -c or --collectionDestination Collection by their Handle or database ID
    -m or --mapfileWhere the mapfile for items can be found (name and directory)
    -e or --epersonEmail of eperson doing the importing
    -w or --workflowSend submission through collection' workflow
    -n or --notifyKicks off the email alerting of the item(s) has(have) been imported
    -t or --testTest run—do not actually import items
    -p or --templateApply the collection template
    -R or --resumeResume a failed import (Used on Add only)
    -h or --helpCommand help

    ‡ These are mutually exclusive.

    The item importer is able to batch import unlimited numbers of items for a particular collection using a very simple CLI command and 'arguments' -

    8.3.2.1. Adding Items to a Collection

    To add items to a collection, you gather the following information:

    • eperson

    • Collection ID (either Handle (e.g. 123456789/14) or Database ID (e.g. 2)

    • Source directory where the items reside

    • Mapfile. Since you don't have one, you need to determine where it will be (e.g. /Import/Col_14/mapfile)

    At the command line:

    +

    Arguments short and (long) forms:Description
    -a or --addAdd items to DSpace ‡
    -r or --replaceReplace items listed in mapfile ‡
    -d or --deleteDelete items listed in mapfile ‡
    -s or --sourceSource of the items (directory)
    -c or --collectionDestination Collection by their Handle or database ID
    -m or --mapfileWhere the mapfile for items can be found (name and directory)
    -e or --epersonEmail of eperson doing the importing
    -w or --workflowSend submission through collection' workflow
    -n or --notifyKicks off the email alerting of the item(s) has(have) been imported
    -t or --testTest run—do not actually import items
    -p or --templateApply the collection template
    -R or --resumeResume a failed import (Used on Add only)
    -h or --helpCommand help

    ‡ These are mutually exclusive.

    The item importer is able to batch import unlimited numbers of items for a particular collection using a very simple CLI command and 'arguments'

    8.3.2.1. Adding Items to a Collection

    To add items to a collection, you gather the following information:

    • eperson

    • Collection ID (either Handle (e.g. 123456789/14) or Database ID (e.g. 2)

    • Source directory where the items reside

    • Mapfile. Since you don't have one, you need to determine where it will be (e.g. /Import/Col_14/mapfile)

    At the command line:

    [dspace]/bin/import --add --eperson=joe@user.com --collection=CollectionID --source=items_dir --mapfile=mapfile

    or by using the short form:

    [dspace]/bin/import -a -e joe@user.com -c CollectionID -s items_dir -m mapfile -

    The above command would cycle through the archive directory's items, import them, and then generate a map file which stores the mapping of item directories to item handles. SAVE THIS MAP FILE. Using the map file you can use it for replacing or deleting (unimporting) the file.

    Testing. You can add --test (or -t) to the command to simulate the entire import process without actually doing the import. This is extremely useful for verifying your import files before doing the actual import.

    8.3.2.2. Replacing Items in Collection

    Replacing existing items is relatively easy. Remember that mapfile you were supposed to save? Now you will use it. The command (in short form):

    +

    The above command would cycle through the archive directory's items, import them, and then generate a map file which stores the mapping of item directories to item handles. SAVE THIS MAP FILE. Using the map file you can use it for replacing or deleting (unimporting) the file.

    Testing. You can add --test (or -t) to the command to simulate the entire import process without actually doing the import. This is extremely useful for verifying your import files before doing the actual import.

    8.3.2.2. Replacing Items in Collection

    Replacing existing items is relatively easy. Remember that mapfile you were supposed to save? Now you will use it. The command (in short form):

    [dspace]/bin/import -r -e joe@user.com -c collectionID -s items_dir -m mapfile

    Long form:

    [dspace]/bin/import --replace --eperson=joe@user.com --collection=collectionID --source=items_dire --mapfile=mapfile -

    8.3.2.3. Deleting or Unimporting Items in a Collection

    You are able to unimport or delete items provided you have the mapfile. Remember that mapfile you were supposed to save? The command is (in short form):

    +

    8.3.2.3. Deleting or Unimporting Items in a Collection

    You are able to unimport or delete items provided you have the mapfile. Remember that mapfile you were supposed to save? The command is (in short form):

    [dspace]/bin/import -d -m mapfile

    In long form:

    [dspace/bin/import --delete --mapfile mapfile -

    8.3.2.4. Other Options

    Workflow. The importer usually bypasses any workflow assigned to a collection. But add the --workflow (-w) argument will route the imported items through the workflow system.

    Templates. If you have templates that have constant data and you wish to apply that data during batch importing, add the --template (-p) argument.

    Resume. If, during importing, you have an error and the import is aborted, you can use the --resume (-R) flag that you can try to resume the import where you left off after you fix the error.

    8.3.3. Exporting Items

    The item exporter can export a single item or a collection of items, and creates a DSpace simple archive for each item to be exported.

    Table 8.4. Export Items Command Table

    Command used: +

    8.3.2.4. Other Options

    Workflow. The importer usually bypasses any workflow assigned to a collection. But add the --workflow (-w) argument will route the imported items through the workflow system.

    Templates. If you have templates that have constant data and you wish to apply that data during batch importing, add the --template (-p) argument.

    Resume. If, during importing, you have an error and the import is aborted, you can use the --resume (-R) flag that you can try to resume the import where you left off after you fix the error.

    8.3.3. Exporting Items

    The item exporter can export a single item or a collection of items, and creates a DSpace simple archive for each item to be exported.

    Table 8.4. Export Items Command Table

    Command used: [dspace]/bin/dspace export
    Java class: org.dspace.app.itemexport.ItemExport -
    Arguments short and (long) forms:Description
    -t or --typeType of export. COLLECTION will inform the program you want the whole collection. ITEM will be only the specific item. (You will actually key in the keywords in all caps. See examples below.)
    -i or --edThe ID or Handle of the Collection or Item to export.
    -d or --destThe destination of where you want the file of items to be placed. You place the path if necessary.
    -n or --numberSequence number to begin export the items with. Whatever number you give, this will be the name of the first directory created for your export. The layout of the export is the same as you would set your layout for an Import.
    -m or --migrateExport the item/collection for migration. This will remove the handle and metadata that will be re-created in the new instance of DSpace.
    -h or --helpBrief Help.

    Exporting a Collection

    To export a collection's items you type at the CLI:

    [dspace]/bin/dspace export --type=COLLECTION --id=collID --dest=dest_dir --number=seq_num

    Short form:

    [dspace]/bin/dspace export -t COLLECTION -d CollID or Handle -d /path/to/destination -n Some_number

    Exporting a Single Item

    The keyword COLLECTION means that you intend to export an entire collection. The ID can either be the database ID or the handle. The exporter will begin numbering the simple archives with the sequence number that you supply. To export a single item use the keyword ITEM and give the item ID as an argument:

    [dspace]/bin/dspace export --type=ITEM --id=itemID --dest=dest_dir --number=seq_num

    Short form:

    [dspace]/bin/dspace export -t ITEM -i itemID or Handle -d /path/to/destination -n some_unumber

    Each exported item will have an additional file in its directory, named 'handle'. This will contain the handle that was assigned to the item, and this file will be read by the importer so that items exported and then imported to another machine will retain the item's original handle.

    The -m Arugment

    Using the -m argument will export the item/collection and also perform the migration step. It will perform the same process that the next section Transferring Items Between DSpace Instances performs. We recommend that the next section be read in conjunction with this flag being used.

    8.4. Transferring Items Between DSpace Instances

    Migration of Data

    Where items are to be moved between DSpace instances (for example from a test DSpace into a production DSpace) the item exporter and item importer can be used in conjunction with a script to assist in this process.

    After running the item exporter each dublin_core.xml file will contain metadata that was automatically added by DSpace. These fields are as follows:

    • date.accessioned

    • date.available

    • date.issued

    • description.provenance

    • format.extent

    • format.mimetype

    • identifier.uri

    In order to avoid duplication of this metadata, run

    dspace_migrate </path/to/exported item directory>

    prior to running the item importer. This will remove the above metadata items, except for date.issued - if the item has been published or publicly distributed before and identifier.uri - if it is not the handle, from the dublin_core.xml file and remove all handle files. It will then be safe to run the item exporter.

    8.5. Item Update

    ItemUpdate is a batch-mode command-line tool for altering the metadata and bitstream content of existing items in a DSpace instance. It is a companion tool to ItemImport and uses the DSpace simple archive format to specify changes in metadata and bitstream contents. Those familiar with generating the source trees for ItemImporter will find a similar environment in the use of this batch processing tool.

    For metadata, ItemUpdate can perform 'add' and 'delete' actions on specified metadta elements. For bitstreams, 'add' and 'delete' are similarly available. All these actions can be combined in a single batch run.

    ItemUpdate supports an undo feature for all actions except bitstream deletion. There is also a test mode, as with ItemImport. However, unlike ItemImport, there is no resume feature for incomplete processing. There is more extensive logging with a summary statement at the end with counts of successful and unsuccessful items processed.

    One probable scenario for using this tool is where there is an external primary data source for which the DSpace instance is a secondary or down-stream system. Metadata and/or bitstream content changes in the primary system can be exported to the simple archive format to be used by ItemUpdate to synchronize the changes.

    A note on terminology: item refers to a DSpace item. metadata element refers generally to a qualified or unqualified element in a schema in the form [schema].[element].[qualifier] or [schema].[element] and occasionally in a more specific way to the second part of that form. metadata field refers to a specific instance pairing a metadata element to a value.

    8.5.1. DSpace simple Archive Format

    As with ItemImporter, the idea behind the DSpace's simple archive format is to create an archive directory with a subdirectory per item. There are a few additional features added to this format specifically for ItemUpdate. Note that in the simple archive format, the item directories are merely local references and only used by ItemUpdate in the log output.

    The user is referred to the previous section DSpace Simple Archive Format.

    Additionally, the use of a delete_contents is now available. This file lists the bitstreams to be deleted, one bitstream ID per line. Currently, no other identifiers for bitstreams are usable for this function. This file is an addition to the Archive format specifically for ItemUpdate.

    The optional suppress_undo file is a flag to indicate that the 'undo archive' should not be written to disk. This file is usually written by the application in an undo archive to prevent a recursive undo. This file is an addition to the Archive format specifically for ItemUpdate.

    8.5.2. ItemUpdate Commands

    Table 8.5. ItemUpdate Command Table

    Command used: +
    Arguments short and (long) forms:Description
    -t or --typeType of export. COLLECTION will inform the program you want the whole collection. ITEM will be only the specific item. (You will actually key in the keywords in all caps. See examples below.)
    -i or --edThe ID or Handle of the Collection or Item to export.
    -d or --destThe destination of where you want the file of items to be placed. You place the path if necessary.
    -n or --numberSequence number to begin export the items with. Whatever number you give, this will be the name of the first directory created for your export. The layout of the export is the same as you would set your layout for an Import.
    -m or --migrateExport the item/collection for migration. This will remove the handle and metadata that will be re-created in the new instance of DSpace.
    -h or --helpBrief Help.

    Exporting a Collection

    To export a collection's items you type at the CLI:

    [dspace]/bin/dspace export --type=COLLECTION --id=collID --dest=dest_dir --number=seq_num

    Short form:

    [dspace]/bin/dspace export -t COLLECTION -d CollID or Handle -d /path/to/destination -n Some_number

    Exporting a Single Item

    The keyword COLLECTION means that you intend to export an entire collection. The ID can either be the database ID or the handle. The exporter will begin numbering the simple archives with the sequence number that you supply. To export a single item use the keyword ITEM and give the item ID as an argument:

    [dspace]/bin/dspace export --type=ITEM --id=itemID --dest=dest_dir --number=seq_num

    Short form:

    [dspace]/bin/dspace export -t ITEM -i itemID or Handle -d /path/to/destination -n some_unumber

    Each exported item will have an additional file in its directory, named 'handle'. This will contain the handle that was assigned to the item, and this file will be read by the importer so that items exported and then imported to another machine will retain the item's original handle.

    The -m Arugment

    Using the -m argument will export the item/collection and also perform the migration step. It will perform the same process that the next section Transferring Items Between DSpace Instances performs. We recommend that the next section be read in conjunction with this flag being used.

    8.4. Transferring Items Between DSpace Instances

    Migration of Data

    Where items are to be moved between DSpace instances (for example from a test DSpace into a production DSpace) the item exporter and item importer can be used in conjunction with a script to assist in this process.

    After running the item exporter each dublin_core.xml file will contain metadata that was automatically added by DSpace. These fields are as follows:

    • date.accessioned

    • date.available

    • date.issued

    • description.provenance

    • format.extent

    • format.mimetype

    • identifier.uri

    In order to avoid duplication of this metadata, run

    dspace_migrate </path/to/exported item directory>

    prior to running the item importer. This will remove the above metadata items, except for date.issued - if the item has been published or publicly distributed before and identifier.uri - if it is not the handle, from the dublin_core.xml file and remove all handle files. It will then be safe to run the item exporter.

    8.5. Item Update

    ItemUpdate is a batch-mode command-line tool for altering the metadata and bitstream content of existing items in a DSpace instance. It is a companion tool to ItemImport and uses the DSpace simple archive format to specify changes in metadata and bitstream contents. Those familiar with generating the source trees for ItemImporter will find a similar environment in the use of this batch processing tool.

    For metadata, ItemUpdate can perform 'add' and 'delete' actions on specified metadta elements. For bitstreams, 'add' and 'delete' are similarly available. All these actions can be combined in a single batch run.

    ItemUpdate supports an undo feature for all actions except bitstream deletion. There is also a test mode, as with ItemImport. However, unlike ItemImport, there is no resume feature for incomplete processing. There is more extensive logging with a summary statement at the end with counts of successful and unsuccessful items processed.

    One probable scenario for using this tool is where there is an external primary data source for which the DSpace instance is a secondary or down-stream system. Metadata and/or bitstream content changes in the primary system can be exported to the simple archive format to be used by ItemUpdate to synchronize the changes.

    A note on terminology: item refers to a DSpace item. metadata element refers generally to a qualified or unqualified element in a schema in the form [schema].[element].[qualifier] or [schema].[element] and occasionally in a more specific way to the second part of that form. metadata field refers to a specific instance pairing a metadata element to a value.

    8.5.1. DSpace simple Archive Format

    As with ItemImporter, the idea behind the DSpace's simple archive format is to create an archive directory with a subdirectory per item. There are a few additional features added to this format specifically for ItemUpdate. Note that in the simple archive format, the item directories are merely local references and only used by ItemUpdate in the log output.

    The user is referred to the previous section DSpace Simple Archive Format.

    Additionally, the use of a delete_contents is now available. This file lists the bitstreams to be deleted, one bitstream ID per line. Currently, no other identifiers for bitstreams are usable for this function. This file is an addition to the Archive format specifically for ItemUpdate.

    The optional suppress_undo file is a flag to indicate that the 'undo archive' should not be written to disk. This file is usually written by the application in an undo archive to prevent a recursive undo. This file is an addition to the Archive format specifically for ItemUpdate.

    8.5.2. ItemUpdate Commands

    Table 8.5. ItemUpdate Command Table

    Command used: [dspace] /bin/dspace itemupdate
    Java class: org.dspace.app.itemimport.ItemUpdate -
    Arguments short and (long) forms:Description
    -a or --addmetadata [metadata element]Repeatable for multiple elements. The metadata element should be in the form dc.x or dc.x.y. The mandatory argument indicates the metadata fields in the dublin_core.xml file to be added unless already present. However, duplicate fields will not be added to the item metadata without warning or error.
    -d or --deletemetadata [metadata element]Repeatable for multiple elements. All metadata fields matching the element will be deleted.
    -A or --addbitstreamAdds bitstreams listed in the contents file with the bistream metadata cited there.
    -D or --deletebitstream [filter plug classname or alis]Not repeatable. With no argument, this operation deletes bistreams listed in the deletes_contents file. Only bitstream ids are recognized identifiers for this operatiotn. The optional filter argument is the classname of an implementation of org.dspace.app.itemdupate.BitstreamFilter class to identify files for deletion or one of the aliases (ORIGINAL, ORIGINAL_AND_DERIVATIVES, TEXT, THUMBNAIL) which reference existing filters based on membership in a bundle of that name. IN this case, the delete_contents file is not required for any item. The filter properties file will contains properties pertinent to the particular filer used. Multiple filters are not allowed.
    -h or --helpDisplays brief command line help.
    -e or --epersonEmail address of the person or the user's database ID (Required)
    -s or --sourceDirectory archive to process (Required)
    -i or --itemidentifierSpecifies an alternate metadata field (not a handle) used to hold an identifier used to match the DSpace item with that in the archive. If omitted, the item handle is expected to be located in the dc.identifier.uri field. (Optional)
    -t or --testRuns the process in test mode with logging but no changes applied to the DSpace instance. (Optional)
    -P or --alterprovenancePrevents any changes to the provenance field to represent changes in the bitstream content resulting from an Add or Delete. No provenance statements are written for thumbnails or text derivative bitstreams, un keepin with the practice of MediaFilterManager. (Optional)
    -F or --filterpropertiesThe filter properties files to be used by the delete bitstreams action (Optional)

    8.5.3. CLI Examples

    Adding Metadata:

    [dspace]/bin/dspace updateitem -e joe@user.com -s [path/to/archive] -a dc.description

    This will add from your archive the dc element description based on the handle from the URI (since the -i argument wasn't used).

    8.6. Registering (Not Importing) Bitstreams

    Registration is an alternate means of incorporating items, their metadata, and their bitstreams into DSpace by taking advantage of the bitstreams already being in storage accessible to DSpace. An example might be that there is a repository for existing digital assets. Rather than using the normal interactive ingest process or the batch import to furnish DSpace the metadata and to upload bitstreams, registration provides DSpace the metadata and the location of the bitstreams. DSpace uses a variation of the import tool to accomplish registration.

    8.6.1. Accessible Storage

    To register an item its bitstreams must reside on storage accessible to DSpace and therefore referenced by an asset store number in dspace.cfg. The configuration file dspace.cfg establishes one or more asset stores through the use of an integer asset store number. This number relates to a directory in the DSpace host's file system or a set of SRB account parameters. This asset store number is described in The dspace.cfg Configuration Properties File section and in the dspace.cfg file itself. The asset store number(s) used for registered items should generally not be the value of the assetstore.incoming property since it is unlikely that you will want to mix the bitstreams of normally ingested and imported items and registered items.

    8.6.2. Registering Items Using the Item Importer

    DSpace uses the same import tool that is used for batch import except that several variations are employed to support registration. The discussion that follows assumes familiarity with the import tool.

    The archive format for registration does not include the actual content files (bitstreams) being registered. The format is however a directory full of items to be registered, with a subdirectory per item. Each item directory contains a file for the item's descriptive metadata (dublin_core.xml) and a file listing the item's content files (contents), but not the actual content files themselves.

    The dublin_core.xml file for item registration is exactly the same as for regular item import.

    The contents file, like that for regular item import, lists the item's content files, one content file per line, but each line has the one of the following formats:

    -r -s n -f filepath
    +							
    Arguments short and (long) forms:Description
    -a or --addmetadata [metadata element]Repeatable for multiple elements. The metadata element should be in the form dc.x or dc.x.y. The mandatory argument indicates the metadata fields in the dublin_core.xml file to be added unless already present. However, duplicate fields will not be added to the item metadata without warning or error.
    -d or --deletemetadata [metadata element]Repeatable for multiple elements. All metadata fields matching the element will be deleted.
    -A or --addbitstreamAdds bitstreams listed in the contents file with the bistream metadata cited there.
    -D or --deletebitstream [filter plug classname or alis]Not repeatable. With no argument, this operation deletes bistreams listed in the deletes_contents file. Only bitstream ids are recognized identifiers for this operatiotn. The optional filter argument is the classname of an implementation of org.dspace.app.itemdupate.BitstreamFilter class to identify files for deletion or one of the aliases (ORIGINAL, ORIGINAL_AND_DERIVATIVES, TEXT, THUMBNAIL) which reference existing filters based on membership in a bundle of that name. IN this case, the delete_contents file is not required for any item. The filter properties file will contains properties pertinent to the particular filer used. Multiple filters are not allowed.
    -h or --helpDisplays brief command line help.
    -e or --epersonEmail address of the person or the user's database ID (Required)
    -s or --sourceDirectory archive to process (Required)
    -i or --itemidentifierSpecifies an alternate metadata field (not a handle) used to hold an identifier used to match the DSpace item with that in the archive. If omitted, the item handle is expected to be located in the dc.identifier.uri field. (Optional)
    -t or --testRuns the process in test mode with logging but no changes applied to the DSpace instance. (Optional)
    -P or --alterprovenancePrevents any changes to the provenance field to represent changes in the bitstream content resulting from an Add or Delete. No provenance statements are written for thumbnails or text derivative bitstreams, un keepin with the practice of MediaFilterManager. (Optional)
    -F or --filterpropertiesThe filter properties files to be used by the delete bitstreams action (Optional)

    8.5.3. CLI Examples

    Adding Metadata:

    [dspace]/bin/dspace updateitem -e joe@user.com -s [path/to/archive] -a dc.description

    This will add from your archive the dc element description based on the handle from the URI (since the -i argument wasn't used).

    8.6. Registering (Not Importing) Bitstreams

    Registration is an alternate means of incorporating items, their metadata, and their bitstreams into DSpace by taking advantage of the bitstreams already being in storage accessible to DSpace. An example might be that there is a repository for existing digital assets. Rather than using the normal interactive ingest process or the batch import to furnish DSpace the metadata and to upload bitstreams, registration provides DSpace the metadata and the location of the bitstreams. DSpace uses a variation of the import tool to accomplish registration.

    8.6.1. Accessible Storage

    To register an item its bitstreams must reside on storage accessible to DSpace and therefore referenced by an asset store number in dspace.cfg. The configuration file dspace.cfg establishes one or more asset stores through the use of an integer asset store number. This number relates to a directory in the DSpace host's file system or a set of SRB account parameters. This asset store number is described in The dspace.cfg Configuration Properties File section and in the dspace.cfg file itself. The asset store number(s) used for registered items should generally not be the value of the assetstore.incoming property since it is unlikely that you will want to mix the bitstreams of normally ingested and imported items and registered items.

    8.6.2. Registering Items Using the Item Importer

    DSpace uses the same import tool that is used for batch import except that several variations are employed to support registration. The discussion that follows assumes familiarity with the import tool.

    The archive format for registration does not include the actual content files (bitstreams) being registered. The format is however a directory full of items to be registered, with a subdirectory per item. Each item directory contains a file for the item's descriptive metadata (dublin_core.xml) and a file listing the item's content files (contents), but not the actual content files themselves.

    The dublin_core.xml file for item registration is exactly the same as for regular item import.

    The contents file, like that for regular item import, lists the item's content files, one content file per line, but each line has the one of the following formats:

    -r -s n -f filepath
     -r -s n -f filepath\tbundle:bundlename
     -r -s n -f filepath\tbundle:bundlename\tpermissions: -[r|w] 'group name'
    --r -s n -f filepath\tbundle:bundlename\tpermissions: -[r|w] 'group	name'\tdescription: some text

    where

    • -r indicates this is a file to be registered

    • -s n indicates the asset store number (n)

    • -f filepath indicates the path and name of the content file to be registered (filepath)

    • \t is a tab character

    • bundle:bundlename is an optional bundle name

    • permissions: -[r|w] 'group name' is an optional read or write permission that can be attached to the bitstream

    • description: some text is an optional description field to add to the file

    The bundle, that is everything after the filepath, is optional and is normally not used.

    The command line for registration is just like the one for regular import:

    [dspace]/bin/dspace import -a -e joe@user.com -c collectionID -s items_dir -m mapfile

    (or by using the long form)

    [dspace]/bin/dspace import --add -eperson=joe@user.com --collection=collectionID --source=items_dir --map=mapfile

    The --workflow and --test flags will function as described in Importing Items.

    The --delete flag will function as described in Importing Items but the registered content files will not be removed from storage. See Deleting Registered Items.

    The --replace flag will function as described in Importing Items but care should be taken to consider different cases and implications. With old items and new items being registered or ingested normally, there are four combinations or cases to consider. Foremost, an old registered item deleted from DSpace using --replace will not be removed from the storage. See Deleting Registered Items. where is resides. A new item added to DSpace using --replace will be ingested normally or will be registered depending on whether or not it is marked in the contents files with the -r.

    8.6.3. Internal Identification and Retrieval of Registered Items

    Once an item has been registered, superficially it is indistinguishable from items ingested interactively or by batch import. But internally there are some differences:

    First, the randomly generated internal ID is not used because DSpace does not control the file path and name of the bitstream. Instead, the file path and name are that specified in the contents file.

    Second, the store_number column of the bitstream database row contains the asset store number specified in the contents file.

    Third, the internal_id column of the bitstream database row contains a leading flag (-R) followed by the registered file path and name. For example, -Rfilepath where filepath is the file path and name relative to the asset store corresponding to the asset store number. The asset store could be traditional storage in the DSpace server's file system or an SRB account.

    Fourth, an MD5 checksum is calculated by reading the registered file if it is in local storage. If the registerd file is in remote storage (say, SRB) a checksum is calculated on just the file name! This is an efficiency choice since registering a large number of large files that are in SRB would consume substantial network resources and time. A future option could be to have an SRB proxy process calculate MD5s and store them in SRB's metadata catalog (MCAT) for rapid retrieval. SRB offers such an option but it's not yet in production release.

    Registered items and their bitstreams can be retrieved transparently just like normally ingested items.

    8.6.4. Exporting Registered Items

    Registered items may be exported as described in Exporting Items. If so, the export directory will contain actual copies of the files being exported but the lines in the contents file will flag the files as registered. This means that if DSpace items are "round tripped" (see Transferring Items Between DSpace Instances) using the exporter and importer, the registered files in the export directory will again registered in DSpace instead of being uploaded and ingested normally.

    8.6.5. METS Export of Registered Items

    The METS Export Tool can also be used but note the cautions described in that section and note that MD5 values for items in remote storage are actually MD5 values on just the file name.

    8.6.6. Deleting Registered Items

    If a registered item is deleted from DSpace, either interactively or by using the --delete or --replace flags described in Importing Items, the item will disappear from DSpace but it's registered content files will remain in place just as they were prior to registration. Bitstreams not registered but added by DSpace as part of registration, such as license.txt files, will be deleted.

    8.7. METS Tools

    The experimental (incomplete) METS export tool writes DSpace items to a filesystem with the metadata held in a more standard format based on METS.

    8.7.1. The Export Tool

    This tool is obsolete, and does not export a complete AIP. It's use is strongly deprecated.

    Table 8.6. Mets Export Command table

    Command used: +-r -s n -f filepath\tbundle:bundlename\tpermissions: -[r|w] 'group name'\tdescription: some text

    where

    • -r indicates this is a file to be registered

    • -s n indicates the asset store number (n)

    • -f filepath indicates the path and name of the content file to be registered (filepath)

    • \t is a tab character

    • bundle:bundlename is an optional bundle name

    • permissions: -[r|w] 'group name' is an optional read or write permission that can be attached to the bitstream

    • description: some text is an optional description field to add to the file

    The bundle, that is everything after the filepath, is optional and is normally not used.

    The command line for registration is just like the one for regular import:

    [dspace]/bin/dspace import -a -e joe@user.com -c collectionID -s items_dir -m mapfile

    (or by using the long form)

    [dspace]/bin/dspace import --add -eperson=joe@user.com --collection=collectionID --source=items_dir --map=mapfile

    The --workflow and --test flags will function as described in Importing Items.

    The --delete flag will function as described in Importing Items but the registered content files will not be removed from storage. See Deleting Registered Items.

    The --replace flag will function as described in Importing Items but care should be taken to consider different cases and implications. With old items and new items being registered or ingested normally, there are four combinations or cases to consider. Foremost, an old registered item deleted from DSpace using --replace will not be removed from the storage. See Deleting Registered Items. where is resides. A new item added to DSpace using --replace will be ingested normally or will be registered depending on whether or not it is marked in the contents files with the -r.

    8.6.3. Internal Identification and Retrieval of Registered Items

    Once an item has been registered, superficially it is indistinguishable from items ingested interactively or by batch import. But internally there are some differences:

    First, the randomly generated internal ID is not used because DSpace does not control the file path and name of the bitstream. Instead, the file path and name are that specified in the contents file.

    Second, the store_number column of the bitstream database row contains the asset store number specified in the contents file.

    Third, the internal_id column of the bitstream database row contains a leading flag (-R) followed by the registered file path and name. For example, -Rfilepath where filepath is the file path and name relative to the asset store corresponding to the asset store number. The asset store could be traditional storage in the DSpace server's file system or an SRB account.

    Fourth, an MD5 checksum is calculated by reading the registered file if it is in local storage. If the registerd file is in remote storage (say, SRB) a checksum is calculated on just the file name! This is an efficiency choice since registering a large number of large files that are in SRB would consume substantial network resources and time. A future option could be to have an SRB proxy process calculate MD5s and store them in SRB's metadata catalog (MCAT) for rapid retrieval. SRB offers such an option but it's not yet in production release.

    Registered items and their bitstreams can be retrieved transparently just like normally ingested items.

    8.6.4. Exporting Registered Items

    Registered items may be exported as described in Exporting Items. If so, the export directory will contain actual copies of the files being exported but the lines in the contents file will flag the files as registered. This means that if DSpace items are "round tripped" (see Transferring Items Between DSpace Instances) using the exporter and importer, the registered files in the export directory will again registered in DSpace instead of being uploaded and ingested normally.

    8.6.5. METS Export of Registered Items

    The METS Export Tool can also be used but note the cautions described in that section and note that MD5 values for items in remote storage are actually MD5 values on just the file name.

    8.6.6. Deleting Registered Items

    If a registered item is deleted from DSpace, either interactively or by using the --delete or --replace flags described in Importing Items, the item will disappear from DSpace but it's registered content files will remain in place just as they were prior to registration. Bitstreams not registered but added by DSpace as part of registration, such as license.txt files, will be deleted.

    8.7. METS Tools

    The experimental (incomplete) METS export tool writes DSpace items to a filesystem with the metadata held in a more standard format based on METS.

    8.7.1. The Export Tool

    This tool is obsolete, and does not export a complete AIP. It's use is strongly deprecated.

    Table 8.6. Mets Export Command table

    Command used: [dspace] /bin/dspace mets-export -
    Java class:org.dspace.app.mets.METSExport
    Arguments short and (long) forms:Description
    -a or --allExport all items in the archive.
    -c or --collectionHandle of the collection to export.
    -d or --destinationDestination directory.
    -i or --itemHandle of the item to export.
    -h or --helpHelp

    The following are examples of the types of process the METS tool can provide.

    Exporting an individual item. From the CLI:

    [dspace]/bin/dspace mets-export -i [handle] -d /path/to/destination

    Exporting a collection. From the CLI:

    [dspace]/bin/dspace mets-export -c [handle] -d /path/to/destination

    Exporting all the items in DSpace. From the CLI:

    [dspace]/bin/dspace mets-export -a -d /path/to/destination

    8.7.2. The AIP Format

    Note that this tool is deprecated, and the output format is not a true AIP

    Each exported item is written to a separate directory, created under the base directory specified in the command-line arguments, or in the current directory if --destination is omitted. The name of each directory is the Handle, URL-encoded so that the directory name is 'legal'.

    Within each item directory is a mets.xml file which contains the METS-encoded metadata for the item. Bitstreams in the item are also stored in the directory. Their filenames are their MD5 checksums, firstly for easy integrity checking, and also to avoid any problems with 'special characters' in the filenames that were legal on the original filing system they came from but are illegal in the server filing system. The mets.xml file includes XLink pointers to these bitstream files.

    An example AIP might look like this:

    • +

    Java class:org.dspace.app.mets.METSExport
    Arguments short and (long) forms:Description
    -a or --allExport all items in the archive.
    -c or --collectionHandle of the collection to export.
    -d or --destinationDestination directory.
    -i or --itemHandle of the item to export.
    -h or --helpHelp

    The following are examples of the types of process the METS tool can provide.

    Exporting an individual item. From the CLI:

    [dspace]/bin/dspace mets-export -i [handle] -d /path/to/destination

    Exporting a collection. From the CLI:

    [dspace]/bin/dspace mets-export -c [handle] -d /path/to/destination

    Exporting all the items in DSpace. From the CLI:

    [dspace]/bin/dspace mets-export -a -d /path/to/destination

    8.7.2. The AIP Format

    Note that this tool is deprecated, and the output format is not a true AIP

    Each exported item is written to a separate directory, created under the base directory specified in the command-line arguments, or in the current directory if --destination is omitted. The name of each directory is the Handle, URL-encoded so that the directory name is 'legal'.

    Within each item directory is a mets.xml file which contains the METS-encoded metadata for the item. Bitstreams in the item are also stored in the directory. Their filenames are their MD5 checksums, firstly for easy integrity checking, and also to avoid any problems with 'special characters' in the filenames that were legal on the original filing system they came from but are illegal in the server filing system. The mets.xml file includes XLink pointers to these bitstream files.

    An example AIP might look like this:

    • hdl%3A123456789%2F8/

      • mets.xml -- METS metadata

      • 184BE84F293342 -- bitstream

      • 3F9AD0389CB821

      • 135FB82113C32D -

    The contents of the METS in the mets.xml file are as follows:

    • A dmdSec (descriptive metadata section) containing the item's metadata in Metadata Object Description Schema (MODS) XML. The Dublin Core descriptive metadata is mapped to MODS since there is no official qualified Dublin Core XML schema in existence as of yet, and the Library Application Profile of DC that DSpace uses includes some qualifiers that are not part of the DCMI Metadata Terms.

    • An amdSec (administrative metadata section), which contains the a rights metadata element, which in turn contains the base64-encoded deposit license (the license the submitter granted as part of the submission process).

    • A fileSec containing a list of the bitstreams in the item. Each bundle constitutes a fileGrp. Each bitstream is represented by a file element, which contains an FLocat element with a simple XLink to the bitstream in the same directory as the mets.xml file. The file attributes consist of most of the basic technical metadata for the bitstream. Additionally, for those bitstreams that are thumbnails or text extracted from another bitstream in the item, those 'derived' bitstreams have the same GROUPID as the bitstream they were derived from, in order that clients understand that there is a relationship.

      The OWNERID of each file is the 'persistent' bitstream identifier assigned by the DSpace instance. The ID and GROUPID attributes consist of the item's Handle, together with the bitstream's sequence ID, which underscores used in place of dots and slashes. For example, a bitstream with sequence ID 24, in the item hdl:123.456/789 will have the ID123_456_789_24. This is because ID and GROUPID attributes must be of type xsd:id.

    8.7.3. Limitations

    • No corresponding import tool yet

    • No structmap section

    • Some technical metadata not written, e.g. the primary bitstream in a bundle, original filenames or descriptions.

    • Only the MIME type is stored, not the (finer grained) bitstream format.

    • Dublin Core to MODS mapping is very simple, probably needs verification

    8.8. MediaFilters: Transforming DSpace Content

    DSpace can apply filters to content/bitstreams, creating new content. Filters are included that extract text for full-text searching, and create thumbnails for items that contain images. The media filters are controlled by the MediaFilterManager which traverses the asset store, invoking the MediaFilter or FormatFilter classes on bitstreams. The media filter plugin configuration filter.plugins in dspace.cfg contains a list of all enabled media/format filter plugins (see Configuring Media Filters for more information). The media filter system is intended to be run from the command line (or regularly as a cron task):

    [dspace]/bin/filter-media

    With no options, this traverses the asset store, applying media filters to bitstreams, and skipping bitstreams that have already been filtered.

    +

    The contents of the METS in the mets.xml file are as follows:

    8.7.3. Limitations

    8.8. MediaFilters: Transforming DSpace Content

    DSpace can apply filters to content/bitstreams, creating new content. Filters are included that extract text for full-text searching, and create thumbnails for items that contain images. The media filters are controlled by the MediaFilterManager which traverses the asset store, invoking the MediaFilter or FormatFilter classes on bitstreams. The media filter plugin configuration filter.plugins in dspace.cfg contains a list of all enabled media/format filter plugins (see Configuring Media Filters for more information). The media filter system is intended to be run from the command line (or regularly as a cron task):

    [dspace]/bin/filter-media

    With no options, this traverses the asset store, applying media filters to bitstreams, and skipping bitstreams that have already been filtered.

    Available Command-Line Options:

    Adding your own filters is done by creating a class which implements the org.dspace.app.mediafilter.FormatFilter interface. See the Creating a new Media Filter topic and comments in the source file FormatFilter.java for more information. In theory filters could be implemented in any programming language (C, Perl, etc.) However, they need to be invoked by the Java code in the Media Filter class that you create.

    8.9. Sub-Community Management

    DSpace provides an administrative tool—'CommunityFiliator'—for managing community sub-structure. Normally this structure seldom changes, but prior to the 1.2 release sub-communities were not supported, so this tool could be used to place existing pre-1.2 communities into a hierarchy. It has two operations, either establishing a community to sub-community relationship, or dis-establishing an existing relationship.

    The familiar parent/child metaphor can be used to explain how it works. Every community in DSpace can be either a 'parent' community—meaning it has at least one sub-community, or a 'child' community—meaning it is a sub-community of another community, or both or neither. In these terms, an 'orphan' is a community that lacks a parent (although it can be a parent); 'orphans' are referred to as 'top-level' communities in the DSpace user-interface, since there is no parent community 'above' them. The first operation—establishing a parent/child relationship - can take place between any community and an orphan. The second operation - removing a parent/child relationship—will make the child an orphan.

    Table 8.7. Community Filiator Command table

    Command used: +

  • Verbose mode : [dspace]/bin/dspace filter-media -v

    • Verbose mode - print all extracted text and other filter details to STDOUT.

  • Adding your own filters is done by creating a class which implements the org.dspace.app.mediafilter.FormatFilter interface. See the Creating a new Media Filter topic and comments in the source file FormatFilter.java for more information. In theory filters could be implemented in any programming language (C, Perl, etc.) However, they need to be invoked by the Java code in the Media Filter class that you create.

    8.9. Sub-Community Management

    DSpace provides an administrative tool—'CommunityFiliator'—for managing community sub-structure. Normally this structure seldom changes, but prior to the 1.2 release sub-communities were not supported, so this tool could be used to place existing pre-1.2 communities into a hierarchy. It has two operations, either establishing a community to sub-community relationship, or dis-establishing an existing relationship.

    The familiar parent/child metaphor can be used to explain how it works. Every community in DSpace can be either a 'parent' community—meaning it has at least one sub-community, or a 'child' community—meaning it is a sub-community of another community, or both or neither. In these terms, an 'orphan' is a community that lacks a parent (although it can be a parent); 'orphans' are referred to as 'top-level' communities in the DSpace user-interface, since there is no parent community 'above' them. The first operation—establishing a parent/child relationship - can take place between any community and an orphan. The second operation - removing a parent/child relationship—will make the child an orphan.

    Table 8.7. Community Filiator Command table

    Command used: [dspace] /bin/dspace community-filiator -
    Java class:org.dspace.administer.CommunityFiliator
    Arguments short and (long) forms:Description
    -s or --setSet a parent/child relationship
    -r or --removeRemove a parent/child relationship
    -c or --childChild community (Handle or database ID)
    -p or --parentParent community (Handle or database ID
    -h or --helpOnline help.

    Set a parent/child relationship, issue the following at the CLI:

    dsrun org.dspace.administer.CommunityFiliator --set --parent=parentID --child=childID

    (or using the short form)

    [dspace]/bin dspace community-filiator -s -p parentID -c childID

    where '-s' or '--set' means establish a relationship whereby the community identified by the '-p' parameter becomes the parent of the community identified by the '-c' parameter. Both the 'parentID' and 'childID' values may be handles or database IDs.

    The reverse operation looks like this:

    [dspace]/bin dspace community-filiator --remove --parent=parentID --child=childID

    (or using the short form)

    [dspace]/bin dspace community-filiator -r -p parentID -c childID

    where '-r' or '--remove' means dis-establish the current relationship in which the community identified by 'parentID' is the parent of the community identified by 'childID'. The outcome will be that the 'childID' community will become an orphan, i.e. a top-level community.

    If the required constraints of operation are violated, an error message will appear explaining the problem, and no change will be made. An example in a removal operation, where the stated child community does not have the stated parent community as its parent: "Error, child community not a child of parent community".

    It is possible to effect arbitrary changes to the community hierarchy by chaining the basic operations together. For example, to move a child community from one parent to another, simply perform a 'remove' from its current parent (which will leave it an orphan), followed by a 'set' to its new parent.

    It is important to understand that when any operation is performed, all the sub-structure of the child community follows it. Thus, if a child has itself children (sub-communities), or collections, they will all move with it to its new 'location' in the community tree.

    8.10. Batch Metadata Editing

    DSpace provides a batch metadata editing tool. The batch editing tool is able to produce a comma delimited file in the CVS format. The batch editing tool facilitates the user to perform the following:

    • Batch editing of metadata (e.g. perform an external spell check)

    • Batch additions of metadata (e.g. add an abstract to a set of items, add controlled vocabulary such as LCSH)

    • Batch find and replace of metadata values (e.g. correct misspelled surname across several records)

    • Mass move items between collections

    • Enable the batch addition of new items (without bitstreams) via a CSV file

    • Re-order the values in a list (e.g. authors)

    8.10.1. Export Function

    The following table summarizes the basics.

    Table 8.8. Batch Editing Metatdata Export Command Table

    Command used: +
    Java class:org.dspace.administer.CommunityFiliator
    Arguments short and (long) forms:Description
    -s or --setSet a parent/child relationship
    -r or --removeRemove a parent/child relationship
    -c or --childChild community (Handle or database ID)
    -p or --parentParent community (Handle or database ID
    -h or --helpOnline help.

    Set a parent/child relationship, issue the following at the CLI:

    dsrun org.dspace.administer.CommunityFiliator --set --parent=parentID --child=childID

    (or using the short form)

    [dspace]/bin dspace community-filiator -s -p parentID -c childID

    where '-s' or '--set' means establish a relationship whereby the community identified by the '-p' parameter becomes the parent of the community identified by the '-c' parameter. Both the 'parentID' and 'childID' values may be handles or database IDs.

    The reverse operation looks like this:

    [dspace]/bin dspace community-filiator --remove --parent=parentID --child=childID

    (or using the short form)

    [dspace]/bin dspace community-filiator -r -p parentID -c childID

    where '-r' or '--remove' means dis-establish the current relationship in which the community identified by 'parentID' is the parent of the community identified by 'childID'. The outcome will be that the 'childID' community will become an orphan, i.e. a top-level community.

    If the required constraints of operation are violated, an error message will appear explaining the problem, and no change will be made. An example in a removal operation, where the stated child community does not have the stated parent community as its parent: "Error, child community not a child of parent community".

    It is possible to effect arbitrary changes to the community hierarchy by chaining the basic operations together. For example, to move a child community from one parent to another, simply perform a 'remove' from its current parent (which will leave it an orphan), followed by a 'set' to its new parent.

    It is important to understand that when any operation is performed, all the sub-structure of the child community follows it. Thus, if a child has itself children (sub-communities), or collections, they will all move with it to its new 'location' in the community tree.

    8.10. Batch Metadata Editing

    DSpace provides a batch metadata editing tool. The batch editing tool is able to produce a comma delimited file in the CVS format. The batch editing tool facilitates the user to perform the following:

    • Batch editing of metadata (e.g. perform an external spell check)

    • Batch additions of metadata (e.g. add an abstract to a set of items, add controlled vocabulary such as LCSH)

    • Batch find and replace of metadata values (e.g. correct misspelled surname across several records)

    • Mass move items between collections

    • Enable the batch addition of new items (without bitstreams) via a CSV file

    • Re-order the values in a list (e.g. authors)

    8.10.1. Export Function

    The following table summarizes the basics.

    Table 8.8. Batch Editing Metatdata Export Command Table

    Command used: [dspace] /bin/dspace metadata-export -
    Java class:org.dspace.app.bulkedit.MetadataExport
    Arguments short and (long) forms):Description
    -f or --fileRequired. The filename of the resulting CSV.
    -i or --idThe Item, Collection, or Community handle or Database ID to export. If not specified, all items will be exported.
    -a or --allInclude all the metadata fields that are not normally changed (e.g. provenance) or those fields you configured in the dspace.cfg to be ignored on export.
    -h or --helpDisplay the help page.

    8.10.1.1. Exporting Process

    To run the batch editing exporter, at the command line:

    +

    Java class:org.dspace.app.bulkedit.MetadataExport
    Arguments short and (long) forms):Description
    -f or --fileRequired. The filename of the resulting CSV.
    -i or --idThe Item, Collection, or Community handle or Database ID to export. If not specified, all items will be exported.
    -a or --allInclude all the metadata fields that are not normally changed (e.g. provenance) or those fields you configured in the dspace.cfg to be ignored on export.
    -h or --helpDisplay the help page.

    8.10.1.1. Exporting Process

    To run the batch editing exporter, at the command line:

    [dspace]/bin/dspace metadata-export -f name_of_file.csv -i 1023/24

    Example:

    [dspace]/bin/dspace metadata-export -f /batch_export/col_14.csv -i /1989.1/24 -

    In the above example we have requested that a collection, assigned handle '1989.1/24' export the entire collection to the file 'col_14.cvs' found in the '/batch_export' directory.

    8.10.2. Import Function

    The following table summarizes the basics.

    Table 8.9. Batch Editing Metatdata Import Command Table

    Command used: +

    In the above example we have requested that a collection, assigned handle '1989.1/24' export the entire collection to the file 'col_14.cvs' found in the '/batch_export' directory.

    8.10.2. Import Function

    The following table summarizes the basics.

    Table 8.9. Batch Editing Metatdata Import Command Table

    Command used: [dspace] /bin/dspace metadata-import -
    Java class:org.dspace.app.bulkedit.MetadataImport
    Arguments short and (long) forms:Description
    -f or --fileRequired. The filename of the CSV file to load.
    -s or --silentSilent mode. The import function does not prompt you to make sure you wish to make the changes.
    -e or --emailThe email address of the user. This is only required when adding new items.
    -w or --workflowWhen adding new items, the program will queue the items up to use the Collection Workflow processes.
    -n or --notifywhen adding new items using a workflow, send notification emails.
    -t or --templateWhen adding new items, use the Collection template, if it exists.
    -h or --helpDisplay the brief help page.

    [Caution]

    Silent Mode should be used carefully. It is possible (and probable) that you can overlay the wrong data and cause irreparable damage to the database.

    8.10.2.1. Importing Process

    To run the batch importer, at the command line:

    +

    Java class:org.dspace.app.bulkedit.MetadataImport
    Arguments short and (long) forms:Description
    -f or --fileRequired. The filename of the CSV file to load.
    -s or --silentSilent mode. The import function does not prompt you to make sure you wish to make the changes.
    -e or --emailThe email address of the user. This is only required when adding new items.
    -w or --workflowWhen adding new items, the program will queue the items up to use the Collection Workflow processes.
    -n or --notifywhen adding new items using a workflow, send notification emails.
    -t or --templateWhen adding new items, use the Collection template, if it exists.
    -h or --helpDisplay the brief help page.

    [Caution]

    Silent Mode should be used carefully. It is possible (and probable) that you can overlay the wrong data and cause irreparable damage to the database.

    8.10.2.1. Importing Process

    To run the batch importer, at the command line:

    [dspace]/bin/dspace metadata-import -f name_of_file.csv

    Example

    [dspace]/bin/dspace metadata-import -f /dImport/col_14.csv

    If you are wishing to upload new metadata without bistreams, at the command line:

    [dspace]/bin/dspace/metadata-import -f /dImport/new_file.csv -e joe@user.com -w -n -t -

    In the above example we threw in all the arguments. This would add the metadata and engage the workflow, notification, and templates to all be applied to the items that are being added.

    8.10.3. The CSV Files

    The csv files that this tool can import and export abide by the RFC4180 CSV format http://www.ietf.org/rfc/rfc4180.txt. This means that new lines, and embedded commas can be included by wrapping elements in double quotes. Double quotes can be included by using two double quotes. The code does all this for you, and any good csv editor such as Excel or OpenOffice will comply with this convention.

    File Structure. The first row of the csv must define the metadata values that the rest of the csv represents. The first column must always be "id" which refers to the item'id. All other columns are optional. The other columns contain the dublin core metadata fields that the data is to reside.

    A typical heading row looks like:

    id,collection,dc.title,dc.contributor,dc.date.issued,etc,etc,etc.

    Subsequent rows in the csv file relate to items. A typical row might look like:

    350,2292,Item title,"Smith, John",2008

    If you want to store multiple values for a given metadata element, they can be separated with the double-pipe '||' (or another character that you defined in your dspace.cfg file. For example:

    Horses||Dogs||Cats

    Elements are stored in the database in the order that they appear in the csv file. You can use this to order elements where order may matter, such as authors, or controlled vocabulary such as Library of Congress Subject Headings.

    When importing a csv file, the importer will overlay the data onto what is already in the repository to determine the differences. It only acts on the contents of the cvs file, rather than on the complete item metadata. This means that the CSV file that is exported can be manipulated quite substantially before being re-imported. Rows (items) or Columns (metadata elements) can be removed and will be ignored. For example, if you only want to edit item abstracts, you can remove all of the other columns and just leave the abstract column. (You do need to leave the ID column intact. This is mandatory).

    Deleting Data. It is possible to perform deletes across the board of certain metadata fields from an exported file. For example, let's say you have used keywords (dc.subject) that need to be removed en masse. You would leave the column (dc.subject) intact, but remove the data in the corresponding rows.

    Migrating Data or Exchanging data.It is possbile that you have data in one Dublin Core (DC) element and you wish to really have it in another. An example would be that your staff have input Library of Congress Subject Headings in the Subject field (dc.subject) instead of the LCSH field (dc.subject.lcsh). Follow these steps and your data is migrated upon import:

    1. Insert a new column. The first row should be the new metadata element. (We will refer to it as the TARGET)

    2. Select the column/rows of the data you wish to change. (We will refer to it as the SOURCE)

    3. Cut and paste this data into the new column (TARGET) you created in Step 1.

    4. Leave the column (SOURCE) you just cut and pasteed from empty. Do not delete it.

    8.11. Checksum Checker

    Checksum Checker is program that can run to verify the checksum of every item within DSpace. Checksum Checker was designed with the idea that most System Administrators will run it from the cron. Depending on the size of the repository choose the options wisely.

    Table 8.10. Checksum Checker Information Table

    Command used:[dspace]/bin/dspace checker
    Java class:org.dspace.app.checker.ChecksumChecker
    Arguments short and (long) forms):Description
    -L or --continuousLoop continuously through the bitstreams
    -a or --handleSpecify a handle to check
    -b <bitstream-ids>Space separated list of bitstream IDs
    -c or --countCheck count
    -d or --durationChecking duration
    -h or --helpCalls online help
    -l or --loopingLoop once through bitstreams
    -p <prune>Prune old results (optionally using specified properties file for configuration
    -v or --verboseReport all processing

    There are three aspects of the Checksum Checker's operation that can be configured:

    The user should refer to Chapter 5. Configuration for specific configuration beys in the dspace.cfg file.

    8.11.1. Checker Execution Mode

    Execution mode can be configured using command line options. Information on the options are found in the previous table above. The different modes are described below.

    Unless a particular bitstream or handle is specified, the Checksum Checker will always check bitstreams in order of the least recently checked bitstream. (Note that this means that the most recently ingested bitstreams will be the last ones checked by the Checksum Checker.)

    Available command line options

    • Limited-count mode: [dspace]/bin/dspace checker -c

      To check a specific number of bitstreams. The -c option if followed by an integer, the number of bitstreams to check.

      Example: [dspace/bin/dspace checker -c 10

      This is particularly useful for checking that the checker is executing properly. The Checksum Checker's default execution mode is to check a single bitstream, as if the option was -c 1

    • Duration mode: +

      In the above example we threw in all the arguments. This would add the metadata and engage the workflow, notification, and templates to all be applied to the items that are being added.

    8.10.3. The CSV Files

    The csv files that this tool can import and export abide by the RFC4180 CSV format http://www.ietf.org/rfc/rfc4180.txt. This means that new lines, and embedded commas can be included by wrapping elements in double quotes. Double quotes can be included by using two double quotes. The code does all this for you, and any good csv editor such as Excel or OpenOffice will comply with this convention.

    File Structure. The first row of the csv must define the metadata values that the rest of the csv represents. The first column must always be "id" which refers to the item'id. All other columns are optional. The other columns contain the dublin core metadata fields that the data is to reside.

    A typical heading row looks like:

    id,collection,dc.title,dc.contributor,dc.date.issued,etc,etc,etc.

    Subsequent rows in the csv file relate to items. A typical row might look like:

    350,2292,Item title,"Smith, John",2008

    If you want to store multiple values for a given metadata element, they can be separated with the double-pipe '||' (or another character that you defined in your dspace.cfg file. For example:

    Horses||Dogs||Cats

    Elements are stored in the database in the order that they appear in the csv file. You can use this to order elements where order may matter, such as authors, or controlled vocabulary such as Library of Congress Subject Headings.

    When importing a csv file, the importer will overlay the data onto what is already in the repository to determine the differences. It only acts on the contents of the cvs file, rather than on the complete item metadata. This means that the CSV file that is exported can be manipulated quite substantially before being re-imported. Rows (items) or Columns (metadata elements) can be removed and will be ignored. For example, if you only want to edit item abstracts, you can remove all of the other columns and just leave the abstract column. (You do need to leave the ID column intact. This is mandatory).

    Deleting Data. It is possible to perform deletes across the board of certain metadata fields from an exported file. For example, let's say you have used keywords (dc.subject) that need to be removed en masse. You would leave the column (dc.subject) intact, but remove the data in the corresponding rows.

    Migrating Data or Exchanging data.It is possbile that you have data in one Dublin Core (DC) element and you wish to really have it in another. An example would be that your staff have input Library of Congress Subject Headings in the Subject field (dc.subject) instead of the LCSH field (dc.subject.lcsh). Follow these steps and your data is migrated upon import:

    1. Insert a new column. The first row should be the new metadata element. (We will refer to it as the TARGET)

    2. Select the column/rows of the data you wish to change. (We will refer to it as the SOURCE)

    3. Cut and paste this data into the new column (TARGET) you created in Step 1.

    4. Leave the column (SOURCE) you just cut and pasteed from empty. Do not delete it.

    8.11. Checksum Checker

    Checksum Checker is program that can run to verify the checksum of every item within DSpace. Checksum Checker was designed with the idea that most System Administrators will run it from the cron. Depending on the size of the repository choose the options wisely.

    Table 8.10. Checksum Checker Information Table

    Command used:[dspace]/bin/dspace checker
    Java class:org.dspace.app.checker.ChecksumChecker
    Arguments short and (long) forms):Description
    -L or --continuousLoop continuously through the bitstreams
    -a or --handleSpecify a handle to check
    -b <bitstream-ids>Space separated list of bitstream IDs
    -c or --countCheck count
    -d or --durationChecking duration
    -h or --helpCalls online help
    -l or --loopingLoop once through bitstreams
    -p <prune>Prune old results (optionally using specified properties file for configuration
    -v or --verboseReport all processing

    There are three aspects of the Checksum Checker's operation that can be configured:

    The user should refer to Chapter 5. Configuration for specific configuration beys in the dspace.cfg file.

    8.11.1. Checker Execution Mode

    Execution mode can be configured using command line options. Information on the options are found in the previous table above. The different modes are described below.

    Unless a particular bitstream or handle is specified, the Checksum Checker will always check bitstreams in order of the least recently checked bitstream. (Note that this means that the most recently ingested bitstreams will be the last ones checked by the Checksum Checker.)

    Available command line options

    • Limited-count mode: [dspace]/bin/dspace checker -c

      To check a specific number of bitstreams. The -c option if followed by an integer, the number of bitstreams to check.

      Example: [dspace/bin/dspace checker -c 10

      This is particularly useful for checking that the checker is executing properly. The Checksum Checker's default execution mode is to check a single bitstream, as if the option was -c 1

    • Duration mode: [dspace]/bin/dspace checker -d

      To run the Check for a specific period of time with a time argument. You may use any of the time arguments below:

      Example: [dspace/bin/dspace checker -d 2h (Checker will run for 2 hours)

      sSeconds
      mMinutes
      hHours
      dDays
      wWeeks
      yYears

      The checker will keep starting new bitstream checks for the specific durations, so actual execution duration will be slightly longer than the specified duration. Bear this in mind when scheduling checks.

    • Specific Bistream mode: [dspace]/bin/dspace checker -b

      Checker will only look at the internal bitsteam IDs.

      Example: [dspace]/bin/dspace checker -b 112 113 4567 Checker will only check bitstream IDs 112, 113 and 4567.

    • Specific Handle mode: [dspace]/bin/dspace checker -a

      Checkr will only check bistreams within the Community, Community or the item itself.

      Example: [dspace]/bin/dspace checker -a 123456/999 Checker will only check this handle. If it is a Collection or Community, it will run through the entire Collection or Community.

      The Check

    • Looping mode: [dspace]/bin/dspace checker -l or [dspace]/bin/dspace checker -L

      There are two modes. The lowercase 'el' (-l) specifies to check every bitstream in the repository once. This is recommended for smaller repositories who are able to loop through all their content in just a few hours maximum. An uppercase 'L' (-L) specifies to continuously loops through the repository. This is not recommended for most repository systems.

      Cron Jobs. For large repositories that cannot be completely checked in a couple of hours, we recommend the -d option in cron.

    • Pruning mode: - [dspace]/bin/dspace checker -p

      The Checksum Checker will store the result of every check in the checksum_histroy table. By default, successful checksum matches that are eight weeks old or older will be deleted when the -p option is used. (Unsuccessful ones will be retained indefinitel). Without this option, the retention settings are ignored and the database table may grow rather large!

    8.11.2. Checker Results Pruning

    As stated above in "Pruning mode", the checksum_history table can get rather large, and that running the checker with the -p assists in the size of the checksum_history being kept manageable. The amount of time for which results are retained in the checksum_history table can be modified by one of two methods:

    1. Editing the retention policies in [dspace]/config/dspace.cfg See Chapter 5 Configuration for the property keys.

      OR

    2. Pass in a properties file containting retention policies when using the -p option.

      To do this, create a file with the following two property keys:

      checker.retention.default = 10y
      -checker.retention.CHECKSUM_MATCH = 8w
      You can use the table above for your time units.

      At the command line:

      [dspace]/bin/dspace checker -p retention_file_name <ENTER>

    8.11.3. Checker Reporting

    Checksum Checker uses log4j to report its results. By default it will report to a log called [dspace]/log/checker.log, and it will report only on bitstreams for which the newly calculated checksum does not match the stored checksum. To report on all bitstreams checked regardless of outcome, use the -v (verbose) command line option:

    [dspace]/bin/dspace checker -l -v (This will loop through the repository once and report in detail about every bitstream checked.

    To change the location of the log, or to modify the prefix used on each line of output, edit the [dspace]/config/templates/log4j.properties file and run [dspace]/bin/install_configs.

    8.11.4. Cron or Automatic Execution of Checksum Checker

    You should schedule the Checksum Checker to run automatically, based on how frequently you backup your DSpace instance (and how long you keep those backups). The size of your repository is also a factor. For very large repositories, you may need to schedule it to run for an hour (e.g. -d 1h option) each evening to ensure it makes it through your entire repository within a week or so. Smaller repositories can likely get by with just running it weekly.

    Unix, Linux, or MAC OS. You can schedule it by adding a cron entry similar to the following to the crontab for the user who installed DSpace:

    0 4 ** 0 [dspace]/bin/dspace checker -d2h -p

    The above cron entry would schedule the checker to run the checker every Sunday at 400 (4:00 a.m.) for 2 hours. It also specifies to 'prune' the database based on the retention settings in dspace.cfg.

    Windows OS. You will be unable to use the checker shell script. Instead, you should use Windows Schedule Tasks to schedule the following command to run at the appropriate times:

    ''[dspace]''/bin/dsrun.bat org.dspace.app.checker.ChecksumChecker -d2h -p (This command should appear on a single line).

    8.11.5. Automated Checksum Checkers' Results

    Optionally, you may choose to receive automated emails listing the Checksum Checkers' results. Schedule it to run after the Checksum Checker has completed its processing (otherwise the email may not contain all the results).

    Command used:[dspace]/bin/dspace checker
    Java class:org.dspace.checker.DailyReportEmailer
    Arguments short and (long) forms):Description
    -a or --AllSend all the results (everything specified below)
    -d or --DeletedSend E-mail report for all bitstreams set as deleted for today.
    -m or --MissingSend E-mail report for all bitstreams not found in assetstore for today.
    -c or --ChangedSend E-mail report for all bitstrems where checksum has been changed for today.
    -u or --UnchangedSend the Unchecked bitstream report.
    -n or --Not ProcessedSend E-mail report for all bitstreams set to longer be processed for today.
    -h or --helpHelp
    [Tip]

    You can also combine options (e.g. -m -c) for combined reports.

    Cron. Follow the same steps above as you would running checker in cron. Change the time but match the regularity. Remember to schedule this **after** Checksum Checker has run.

    8.12. Embargo

    If you have implemented the Embargo feature, you will need to run it periodically to check for Items with expired embargoes and lift them.

    Table 8.11. Embargo Manager Command Table

    Command used:[dspace]/bin/dspace embargo-lifter
    Java class:org.dspace.embargo.EmbargoManager
    Arguments short and (long) forms):Description
    -c or --checkONLY check the state of embargoed Items, do NOT lift any embargoes
    -i or --identifierProcess ONLY this handle identifier(s), which must be an Item. Can be repeated.
    -l or --liftOnly lift embargoes, do NOT check the state of any embargoed items.
    -n or --dryrunDo no change anything in the data model, print message instead.
    -v or --verbosePrint a line describing the action taken for each embargoed item found.
    -q or --quietNo output except upon error.
    -h or --helpDisplay brief help screen.

    You must run the Embargo Lifter task periodically to check for items with expired embargoes and lift them from being embargoed. For example, to check the status, at the CLI:

    [dspace]/bin/dspace embargo-lifter -c

    To lift the actual embargoes on those items that meet the time criteria, at the CLI:

    [dspace]/bin/dspace embargo-lifter -l

    8.13. Browse Index Creation

    To create all the various browse indexes that you define in the Configuration Section (Chapter 5) there are a variety of options available to you. You can see these options below in the command table.

    Table 8.12. Browse Index Command Table

    Command used:[dspace]/bin/dspace index-init
    Java class:org.dspace.browse.IndexBrowse
    Arguments short and long forms):Description
    -r or --rebuildShould we rebuild all the indexes, which removes old tables and creates new ones. For use with -f. Mutually exclusive with -d
    -s or --start[-s <int>] start from this index number and work upwards (mostly only useful for debugging). For use with -t and -f
    -x or --executeExecute all the remove and create SQL against the database. For use with -t and -f
    -i or --indexActually do the indexing. Mutually exclusive with -t and -f.
    -o or --out[-o<filename>] write the remove and create SQL to the given file. For use with -t and -f
    -p or --printWrite the remove and create SQL to the stdout. For use with -t and -f.
    -t or --tablesCreate the tables only, do no attempt to index. Mutually exclusive with -f and -i
    -f or --fullMake the tables, and do the indexing. This forces -x. Mutually exclusive with -f and -i.
    -v or --verbosePrint extra information to the stdout. If used in conjunction with -p, you cannot use the stdout to generate your database structure.
    -d or --deleteDelete all the indexes, but do not create new ones. For use with -f. This is mutually exclusive with -r.
    -h or --helpShow this help documentation. Overrides all other arguments.

    8.13.1. Running the Indexing Programs

    Complete Index Regeneration. By running [dspace]/bin/dspace index-init you will completely regenerate your indexes, tearing down all old tables and reconstructing with the new cofiguration. Running this is the same as:

    [dspace]/bin/dsrun org.dspace.browse.IndexBrowse -f -r

    Updating the Indexes. By running dspace/bin/dspace index-update you will reindex your full browse wihtout modifying the table structure. (This should be your default approach if indexing, for example, via a cron job periodically). Running this is the same as:

    [dspace]/bin/dsrun org.dspace.browse.IndexBrowse -i

    Destroy and rebuild. You can destroy and rebuild the database, but do not do the indexing. Output the SQL to do this to the screen and a file, as well as executing it against the database, while being verbose. At the CLI screen:

    [dspace]/bin/dsrun org.dspace.browse.IndexBrowse -r -t -p -v -x -o myfile.sql

    8.13.2. Indexing Customization

    DSpace provides robust browse indexing. It is possible to expand upon the default indexes delivered at the time of the installation. The System Administrator should review "Defining the Indexes" from the Chapter 5. Configuration to become familiar with the property keys and the definitions used therein before attempting heavy customizations.

    Through customization is is possible to:

    • Add new browse indexes besides the four that are delivered upon installation. Examples:

      • Series

      • Specific subject fields (Library of Congress Subject Headings.(It is possible to create a browse index based on a controlled vocabulary or thesauris.)

      • Other metadata schema fields

    • Combine metadata fields into one browse

    • Combine different metadata schemas in one browse

    Examples of new browse indexes that are possible. - (The system administrator is reminded to read the section on Defining the Indexes in Chapter 5. Configuration.)

    • Add a Series Browse. You want to add a new browse using a previously unused metadata element.

      webui.browse.index.6 = series:metadata:dc.relation.ispartofseries:text:single

      Note: the index # need to be adjusted to your browse stanza in the dspace.cfg file. Also, you will need to update your Messages.properties file.

    • Combine more than one metadata field into a browse. You may have other title fields used in your repository. You may only want one or two of them added, not all title fields. And/or you may want your series to file in there.

      webui.browse.index.3 = title:metadata:dc.title,dc:title.uniform,dc:relation.ispartofseries:title:full

    • Separate subject browse. You may want to have a separate subject browse limited to only one type of subject.

      webui.browse.index.7 = lcsubject.metdata:dc.subject.lcsh.text:single

    As one can see, the choices are limited only by your metadata schema, the metadata, and your imagination.

    [Tip]

    Remember to run index-init after adding any new defitions in the dspace.cfg to have the indexes created and the data indexed.


    The Checksum Checker will store the result of every check in the checksum_histroy table. By default, successful checksum matches that are eight weeks old or older will be deleted when the -p option is used. (Unsuccessful ones will be retained indefinitel). Without this option, the retention settings are ignored and the database table may grow rather large!

    8.11.2. Checker Results Pruning

    As stated above in "Pruning mode", the checksum_history table can get rather large, and that running the checker with the -p assists in the size of the checksum_history being kept manageable. The amount of time for which results are retained in the checksum_history table can be modified by one of two methods:

    1. Editing the retention policies in [dspace]/config/dspace.cfg See Chapter 5 Configuration for the property keys.

      OR

    2. Pass in a properties file containting retention policies when using the -p option.

      To do this, create a file with the following two property keys:

      checker.retention.default = 10y
      +checker.retention.CHECKSUM_MATCH = 8w
      You can use the table above for your time units.

      At the command line:

      [dspace]/bin/dspace checker -p retention_file_name <ENTER>

    8.11.3. Checker Reporting

    Checksum Checker uses log4j to report its results. By default it will report to a log called [dspace]/log/checker.log, and it will report only on bitstreams for which the newly calculated checksum does not match the stored checksum. To report on all bitstreams checked regardless of outcome, use the -v (verbose) command line option:

    [dspace]/bin/dspace checker -l -v (This will loop through the repository once and report in detail about every bitstream checked.

    To change the location of the log, or to modify the prefix used on each line of output, edit the [dspace]/config/templates/log4j.properties file and run [dspace]/bin/install_configs.

    8.11.4. Cron or Automatic Execution of Checksum Checker

    You should schedule the Checksum Checker to run automatically, based on how frequently you backup your DSpace instance (and how long you keep those backups). The size of your repository is also a factor. For very large repositories, you may need to schedule it to run for an hour (e.g. -d 1h option) each evening to ensure it makes it through your entire repository within a week or so. Smaller repositories can likely get by with just running it weekly.

    Unix, Linux, or MAC OS. You can schedule it by adding a cron entry similar to the following to the crontab for the user who installed DSpace:

    0 4 ** 0 [dspace]/bin/dspace checker -d2h -p

    The above cron entry would schedule the checker to run the checker every Sunday at 400 (4:00 a.m.) for 2 hours. It also specifies to 'prune' the database based on the retention settings in dspace.cfg.

    Windows OS. You will be unable to use the checker shell script. Instead, you should use Windows Schedule Tasks to schedule the following command to run at the appropriate times:

    ''[dspace]''/bin/dsrun.bat org.dspace.app.checker.ChecksumChecker -d2h -p (This command should appear on a single line).

    8.11.5. Automated Checksum Checkers' Results

    Optionally, you may choose to receive automated emails listing the Checksum Checkers' results. Schedule it to run after the Checksum Checker has completed its processing (otherwise the email may not contain all the results).

    Command used:[dspace]/bin/dspace checker
    Java class:org.dspace.checker.DailyReportEmailer
    Arguments short and (long) forms):Description
    -a or --AllSend all the results (everything specified below)
    -d or --DeletedSend E-mail report for all bitstreams set as deleted for today.
    -m or --MissingSend E-mail report for all bitstreams not found in assetstore for today.
    -c or --ChangedSend E-mail report for all bitstrems where checksum has been changed for today.
    -u or --UnchangedSend the Unchecked bitstream report.
    -n or --Not ProcessedSend E-mail report for all bitstreams set to longer be processed for today.
    -h or --helpHelp
    [Tip]

    You can also combine options (e.g. -m -c) for combined reports.

    Cron. Follow the same steps above as you would running checker in cron. Change the time but match the regularity. Remember to schedule this **after** Checksum Checker has run.

    8.12. Embargo

    If you have implemented the Embargo feature, you will need to run it periodically to check for Items with expired embargoes and lift them.

    Table 8.11. Embargo Manager Command Table

    Command used:[dspace]/bin/dspace embargo-lifter
    Java class:org.dspace.embargo.EmbargoManager
    Arguments short and (long) forms):Description
    -c or --checkONLY check the state of embargoed Items, do NOT lift any embargoes
    -i or --identifierProcess ONLY this handle identifier(s), which must be an Item. Can be repeated.
    -l or --liftOnly lift embargoes, do NOT check the state of any embargoed items.
    -n or --dryrunDo no change anything in the data model, print message instead.
    -v or --verbosePrint a line describing the action taken for each embargoed item found.
    -q or --quietNo output except upon error.
    -h or --helpDisplay brief help screen.

    You must run the Embargo Lifter task periodically to check for items with expired embargoes and lift them from being embargoed. For example, to check the status, at the CLI:

    [dspace]/bin/dspace embargo-lifter -c

    To lift the actual embargoes on those items that meet the time criteria, at the CLI:

    [dspace]/bin/dspace embargo-lifter -l

    8.13. Browse Index Creation

    To create all the various browse indexes that you define in the Configuration Section (Chapter 5) there are a variety of options available to you. You can see these options below in the command table.

    Table 8.12. Browse Index Command Table

    Command used:[dspace]/bin/dspace index-init
    Java class:org.dspace.browse.IndexBrowse
    Arguments short and long forms):Description
    -r or --rebuildShould we rebuild all the indexes, which removes old tables and creates new ones. For use with -f. Mutually exclusive with -d
    -s or --start[-s <int>] start from this index number and work upwards (mostly only useful for debugging). For use with -t and -f
    -x or --executeExecute all the remove and create SQL against the database. For use with -t and -f
    -i or --indexActually do the indexing. Mutually exclusive with -t and -f.
    -o or --out[-o<filename>] write the remove and create SQL to the given file. For use with -t and -f
    -p or --printWrite the remove and create SQL to the stdout. For use with -t and -f.
    -t or --tablesCreate the tables only, do no attempt to index. Mutually exclusive with -f and -i
    -f or --fullMake the tables, and do the indexing. This forces -x. Mutually exclusive with -f and -i.
    -v or --verbosePrint extra information to the stdout. If used in conjunction with -p, you cannot use the stdout to generate your database structure.
    -d or --deleteDelete all the indexes, but do not create new ones. For use with -f. This is mutually exclusive with -r.
    -h or --helpShow this help documentation. Overrides all other arguments.

    8.13.1. Running the Indexing Programs

    Complete Index Regeneration. By running [dspace]/bin/dspace index-init you will completely regenerate your indexes, tearing down all old tables and reconstructing with the new cofiguration. Running this is the same as:

    [dspace]/bin/dsrun org.dspace.browse.IndexBrowse -f -r

    Updating the Indexes. By running dspace/bin/dspace index-update you will reindex your full browse wihtout modifying the table structure. (This should be your default approach if indexing, for example, via a cron job periodically). Running this is the same as:

    [dspace]/bin/dsrun org.dspace.browse.IndexBrowse -i

    Destroy and rebuild. You can destroy and rebuild the database, but do not do the indexing. Output the SQL to do this to the screen and a file, as well as executing it against the database, while being verbose. At the CLI screen:

    [dspace]/bin/dsrun org.dspace.browse.IndexBrowse -r -t -p -v -x -o myfile.sql

    8.13.2. Indexing Customization

    DSpace provides robust browse indexing. It is possible to expand upon the default indexes delivered at the time of the installation. The System Administrator should review "Defining the Indexes" from the Chapter 5. Configuration to become familiar with the property keys and the definitions used therein before attempting heavy customizations.

    Through customization is is possible to:

    • Add new browse indexes besides the four that are delivered upon installation. Examples:

      • Series

      • Specific subject fields (Library of Congress Subject Headings.(It is possible to create a browse index based on a controlled vocabulary or thesauris.)

      • Other metadata schema fields

    • Combine metadata fields into one browse

    • Combine different metadata schemas in one browse

    Examples of new browse indexes that are possible. + (The system administrator is reminded to read the section on Defining the Indexes in Chapter 5. Configuration.)

    • Add a Series Browse. You want to add a new browse using a previously unused metadata element.

      webui.browse.index.6 = series:metadata:dc.relation.ispartofseries:text:single

      Note: the index # need to be adjusted to your browse stanza in the dspace.cfg file. Also, you will need to update your Messages.properties file.

    • Combine more than one metadata field into a browse. You may have other title fields used in your repository. You may only want one or two of them added, not all title fields. And/or you may want your series to file in there.

      webui.browse.index.3 = title:metadata:dc.title,dc:title.uniform,dc:relation.ispartofseries:title:full

    • Separate subject browse. You may want to have a separate subject browse limited to only one type of subject.

      webui.browse.index.7 = lcsubject.metdata:dc.subject.lcsh.text:single

    As one can see, the choices are limited only by your metadata schema, the metadata, and your imagination.

    [Tip]

    Remember to run index-init after adding any new defitions in the dspace.cfg to have the indexes created and the data indexed.

    8.14. DSpace Log Converter

    With the release of DSpace 1.6, new statistics software component was added. DSpace's use of SOLR for statics makes it possible to have a database of statistics. This in mind, there is the issue of the older log files and how a site can use them. The following command process is able to convert the existing log files and then import them for SOLR use. The user will need to perform this only once.

    The Log Converter program converts log files from dspace.log into an intermediate format that can be inserted into SOLR.

    Table 8.13. Log Converter Table

    Command used:[dspace]/bin/dspace log-converter
    Java class:org.dspace.statistics.util.ClassicDSpaceLogConverter
    Arguments short and long forms):Description
    -i or --inInput file
    -o or --outOutput file
    -m or --multipleAdds a wildcard at the end of input and output, so it would mean dspace.log* would be converted. (For example, the following files would be included because of this argument: dspace.log, dspace.log.1, dspace.log.2, dspace.log.3, etc.)
    -n or --newformatIf the log files have been created with DSpace 1.6
    -v or --verboseDisplay verbose ouput (helpful for debugging)
    -h or --helpHelp

    The command loads the intermediate log files that have been created by the aforementioned script into SOLR.

    Table 8.14. Log Import Table

    Command used:[dspace]/bin/dspace log-importer
    Java class:org.dspace.statistics.util.StatisticsImporter
    Arguments (short and long forms):Description
    -i or --input file
    -m or --Adds a wildcard at the end of the input, so it would mean dspace.log* would be imported
    -s or --To skip the reverse DNS lookups that work out where a user is from. (The DNS lookup finds the inforamtion about the host from its IP addess, such as geographical location, etc. This can be slow, and wouldn't work on a server not connected to the internet.)
    -v or --Display verbose ouput (helpful for debugging)
    -l or --For developers: allows you to import a log file from another system, so because the handles won't exist, it looks up random items in your local system to add hits to instead.
    -h or --Help

    8.15. Test Database

    This command can be used at any time to test for Database connectivity. It will assist in troubleshooting PostgreSQL and Oracle connection issues with the datase.

    Table 8.15. Test Database Command Table

    Command used:[dspace]/bin/dspace test-database
    Java class:org.dspace.storage.rdbms.DatabaseManager
    Arguments (short and long forms):Description
    - or --There are no arguments used at this time.


    - Licensed under a Creative Commons Attribution 3.0 United States License -

    \ No newline at end of file +

    Licensed under a Creative Commons Attribution 3.0 United States License

    \ No newline at end of file diff --git a/dspace/docs/html/ch09.html b/dspace/docs/html/ch09.html index 6dcd7a6c3e..2d0487e399 100644 --- a/dspace/docs/html/ch09.html +++ b/dspace/docs/html/ch09.html @@ -1,10 +1,10 @@ -Chapter 9. DSpace System Documentation: Storage Layer

    Chapter 9. DSpace System Documentation: Storage Layer

    Table of Contents

    9.1. RDBMS
    9.1.1. Maintenance and Backup
    9.1.2. Configuring the RDBMS Component
    9.2. Bitstream Store
    9.2.1. Backup
    9.2.2. Configuring the Bitstream Store
    9.2.2.1. Configuring Traditonal Storage
    9.2.2.2. Configuring SRB Storage

    +Chapter 9. DSpace System Documentation: Storage Layer

    Chapter 9. DSpace System Documentation: Storage Layer

    Back to architecture overview -

    9.1. RDBMS

    DSpace uses a relational database to store all information about the organization of content, metadata about the content, information about e-people and authorization, and the state of currently-running workflows. The DSpace system also uses the relational database in order to maintain indices that users can browse.

    +

    9.1. RDBMS

    DSpace uses a relational database to store all information about the organization of content, metadata about the content, information about e-people and authorization, and the state of currently-running workflows. The DSpace system also uses the relational database in order to maintain indices that users can browse.

    Graphical visualization of the relational database

    Most of the functionality that DSpace uses can be offered by any standard SQL database that supports transactions. Presently, the browse indices use some features specific to PostgreSQL and Oracle, so some modification to the code would be needed before DSpace would function fully with an alternative database back-end.

    The org.dspace.storage.rdbms package provides access to an SQL database in a somewhat simpler form than using JDBC directly. The main class is DatabaseManager, which executes SQL queries and returns TableRow or TableRowIterator objects. The InitializeDatabase class is used to load SQL into the database via JDBC, for example to set up the schema.

    All calls to the Database Manager require a DSpace Context object. Example use of the database manager API is given in the org.dspace.storage.rdbms package Javadoc.

    The database schema used by DSpace is created by SQL statements stored in a directory specific to each supported RDBMS platform:

    • PostgreSQL schemas are in [dspace-source]/dspace/etc/postgres/

    • Oracle schemas are in [dspace-source]/dspace/etc/oracle/

    - The SQL (DDL) statements to create the tables for the current release, starting with an empty database, aer in database_schema.sql. The schema SQL file also creates the two required e-person groups (Anonymous and Administrator) that are required for the system to function properly.

    Also in [dspace-source]/dspace/etc/[database] are various SQL files called database_schema_1x_1y. These contain the necessary SQL commands to update a live DSpace database from version 1.x to 1.y. Note that this might not be the only part of an upgrade process: see Updating a DSpace Installation for details.

    The DSpace database code uses an SQL function getnextid to assign primary keys to newly created rows. This SQL function must be safe to use if several JVMs are accessing the database at once; for example, the Web UI might be creating new rows in the database at the same time as the batch item importer. The PostgreSQL-specific implementation of the method uses SEQUENCES for each table in order to create new IDs. If an alternative database backend were to be used, the implementation of getnextid could be updated to operate with that specific DBMS.

    The etc directory in the source distribution contains two further SQL files. clean-database.sql contains the SQL necessary to completely clean out the database, so use with caution! The Ant target clean_database can be used to execute this. update-sequences.sql contains SQL to reset the primary key generation sequences to appropriate values. You'd need to do this if, for example, you're restoring a backup database dump which creates rows with specific primary keys already defined. In such a case, the sequences would allocate primary keys that were already used.

    Versions of the *.sql* files for Oracle are stored in [dspace-source]/dspace/etc/oracle. These need to be copied over their PostgreSQL counterparts in [dspace-source]/dspace/etc prior to installation.

    9.1.1. Maintenance and Backup

    When using PostgreSQL, it's a good idea to perform regular 'vacuuming' of the database to optimize performance. This is performed by the vacuumdb command which can be executed via a 'cron' job, for example by putting this in the system crontab:

    +      The SQL (DDL) statements to create the tables for the current release, starting with an empty database, aer in database_schema.sql. The schema SQL file also creates the two required e-person groups (Anonymous and Administrator) that are required for the system to function properly.

    Also in [dspace-source]/dspace/etc/[database] are various SQL files called database_schema_1x_1y. These contain the necessary SQL commands to update a live DSpace database from version 1.x to 1.y. Note that this might not be the only part of an upgrade process: see Updating a DSpace Installation for details.

    The DSpace database code uses an SQL function getnextid to assign primary keys to newly created rows. This SQL function must be safe to use if several JVMs are accessing the database at once; for example, the Web UI might be creating new rows in the database at the same time as the batch item importer. The PostgreSQL-specific implementation of the method uses SEQUENCES for each table in order to create new IDs. If an alternative database backend were to be used, the implementation of getnextid could be updated to operate with that specific DBMS.

    The etc directory in the source distribution contains two further SQL files. clean-database.sql contains the SQL necessary to completely clean out the database, so use with caution! The Ant target clean_database can be used to execute this. update-sequences.sql contains SQL to reset the primary key generation sequences to appropriate values. You'd need to do this if, for example, you're restoring a backup database dump which creates rows with specific primary keys already defined. In such a case, the sequences would allocate primary keys that were already used.

    Versions of the *.sql* files for Oracle are stored in [dspace-source]/dspace/etc/oracle. These need to be copied over their PostgreSQL counterparts in [dspace-source]/dspace/etc prior to installation.

    9.1.1. Maintenance and Backup

    When using PostgreSQL, it's a good idea to perform regular 'vacuuming' of the database to optimize performance. This is performed by the vacuumdb command which can be executed via a 'cron' job, for example by putting this in the system crontab:

     # clean up the database nightly
     40 2 * * * /usr/local/pgsql/bin/vacuumdb --analyze dspace > /dev/null
             2>&1
    @@ -15,7 +15,7 @@ DELETE FROM epersongroup;
     
  • After restoring a backup, you will need to reset the primary key generation sequences so that they do not produce already-used primary keys. Do this by executing the SQL in [dspace-source]/dspace/etc/update-sequences.sql, for example with:

     psql -U dspace -f 
             [dspace-source]/dspace/etc/update-sequences.sql
    -
  • Future updates of DSpace may involve minor changes to the database schema. Specific instructions on how to update the schema whilst keeping live data will be included. The current schema also contains a few currently unused database columns, to be used for extra functionality in future releases. These unused columns have been added in advance to minimize the effort required to upgrade.

    9.1.2. Configuring the RDBMS Component

    The database manager is configured with the following properties in dspace.cfg:

    +

    Future updates of DSpace may involve minor changes to the database schema. Specific instructions on how to update the schema whilst keeping live data will be included. The current schema also contains a few currently unused database columns, to be used for extra functionality in future releases. These unused columns have been added in advance to minimize the effort required to upgrade.

    9.1.2. Configuring the RDBMS Component

    The database manager is configured with the following properties in dspace.cfg:

    db.url

    @@ -39,7 +39,7 @@ psql -U dspace -f

    Corresponding password ot use when accessing the database.

    -

    9.2. Bitstream Store

    DSpace offers two means for storing content. The first is in the file system on the server. The second is using SRB (Storage Resource Broker). Both are achieved using a simple, lightweight API.

    SRB is purely an option but may be used in lieu of the server's file system or in addition to the file system. Without going into a full description, SRB is a very robust, sophisticated storage manager that offers essentially unlimited storage and straightforward means to replicate (in simple terms, backup) the content on other local or remote storage resources.

    The terms "store", "retrieve", "in the system", "storage", and so forth, used below can refer to storage in the file system on the server ("traditional") or in SRB.

    The BitstreamStorageManager provides low-level access to bitstreams stored in the system. In general, it should not be used directly; instead, use the Bitstream object in the content management API since that encapsulated authorization and other metadata to do with a bitstream that are not maintained by the BitstreamStorageManager.

    The bitstream storage manager provides three methods that store, retrieve and delete bitstreams. Bitstreams are referred to by their 'ID'; that is the primary key bitstream_id column of the corresponding row in the database.

    As of DSpace version 1.1, there can be multiple bitstream stores. Each of these bitstream stores can be traditional storage or SRB storage. This means that the potential storage of a DSpace system is not bound by the maximum size of a single disk or file system and also that traditional and SRB storage can be combined in one DSpace installation. Both traditional and SRB storage are specified by configuration parameters. Also see Configuring the Bitstream Store below.

    Stores are numbered, starting with zero, then counting upwards. Each bitstream entry in the database has a store number, used to retrieve the bitstream when required.

    At the moment, the store in which new bitstreams are placed is decided using a configuration parameter, and there is no provision for moving bitstreams between stores. Administrative tools for manipulating bitstreams and stores will be provided in future releases. Right now you can move a whole store (e.g. you could move store number 1 from /localdisk/store to /fs/anotherdisk/store but it would still have to be store number 1 and have the exact same contents.

    Bitstreams also have an 38-digit internal ID, different from the primary key ID of the bitstream table row. This is not visible or used outside of the bitstream storage manager. It is used to determine the exact location (relative to the relevant store directory) that the bitstream is stored in traditional or SRB storage. The first three pairs of digits are the directory path that the bitstream is stored under. The bitstream is stored in a file with the internal ID as the filename.

    For example, a bitstream with the internal ID 12345678901234567890123456789012345678 is stored in the directory:

    +                

    9.2. Bitstream Store

    DSpace offers two means for storing content. The first is in the file system on the server. The second is using SRB (Storage Resource Broker). Both are achieved using a simple, lightweight API.

    SRB is purely an option but may be used in lieu of the server's file system or in addition to the file system. Without going into a full description, SRB is a very robust, sophisticated storage manager that offers essentially unlimited storage and straightforward means to replicate (in simple terms, backup) the content on other local or remote storage resources.

    The terms "store", "retrieve", "in the system", "storage", and so forth, used below can refer to storage in the file system on the server ("traditional") or in SRB.

    The BitstreamStorageManager provides low-level access to bitstreams stored in the system. In general, it should not be used directly; instead, use the Bitstream object in the content management API since that encapsulated authorization and other metadata to do with a bitstream that are not maintained by the BitstreamStorageManager.

    The bitstream storage manager provides three methods that store, retrieve and delete bitstreams. Bitstreams are referred to by their 'ID'; that is the primary key bitstream_id column of the corresponding row in the database.

    As of DSpace version 1.1, there can be multiple bitstream stores. Each of these bitstream stores can be traditional storage or SRB storage. This means that the potential storage of a DSpace system is not bound by the maximum size of a single disk or file system and also that traditional and SRB storage can be combined in one DSpace installation. Both traditional and SRB storage are specified by configuration parameters. Also see Configuring the Bitstream Store below.

    Stores are numbered, starting with zero, then counting upwards. Each bitstream entry in the database has a store number, used to retrieve the bitstream when required.

    At the moment, the store in which new bitstreams are placed is decided using a configuration parameter, and there is no provision for moving bitstreams between stores. Administrative tools for manipulating bitstreams and stores will be provided in future releases. Right now you can move a whole store (e.g. you could move store number 1 from /localdisk/store to /fs/anotherdisk/store but it would still have to be store number 1 and have the exact same contents.

    Bitstreams also have an 38-digit internal ID, different from the primary key ID of the bitstream table row. This is not visible or used outside of the bitstream storage manager. It is used to determine the exact location (relative to the relevant store directory) that the bitstream is stored in traditional or SRB storage. The first three pairs of digits are the directory path that the bitstream is stored under. The bitstream is stored in a file with the internal ID as the filename.

    For example, a bitstream with the internal ID 12345678901234567890123456789012345678 is stored in the directory:

     (assetstore dir)/12/34/56/12345678901234567890123456789012345678
     

    The reasons for storing files this way are:

    • Using a randomly-generated 38-digit number means that the 'number space' is less cluttered than simply using the primary keys, which are allocated sequentially and are thus close together. This means that the bitstreams in the store are distributed around the directory structure, improving access efficiency.

    • The internal ID is used as the filename partly to avoid requiring an extra lookup of the filename of the bitstream, and partly because bitstreams may be received from a variety of operating systems. The original name of a bitstream may be an illegal UNIX filename.

    When storing a bitstream, the BitstreamStorageManager DOES set the following fields in the corresponding database table row:

    • bitstream_id @@ -55,14 +55,14 @@ psql -U dspace -f deleted

    • store_number -

    The remaining fields are the responsibility of the Bitstream content management API class.

    The bitstream storage manager is fully transaction-safe. In order to implement transaction-safety, the following algorithm is used to store bitstreams:

    1. A database connection is created, separately from the currently active connection in the current DSpace context.

    2. An unique internal identifier (separate from the database primary key) is generated.

    3. The bitstream DB table row is created using this new connection, with the deleted column set to true.

    4. The new connection is committed, so the 'deleted' bitstream row is written to the database

    5. The bitstream itself is stored in a file in the configured 'asset store directory', with a directory path and filename derived from the internal ID

    6. The deleted flag in the bitstream row is set to false. This will occur (or not) as part of the current DSpace Context.

    This means that should anything go wrong before, during or after the bitstream storage, only one of the following can be true:

    • No bitstream table row was created, and no file was stored

    • A bitstream table row with deleted=true was created, no file was stored

    • A bitstream table row with deleted=true was created, and a file was stored

    None of these affect the integrity of the data in the database or bitstream store.

    Similarly, when a bitstream is deleted for some reason, its deleted flag is set to true as part of the overall transaction, and the corresponding file in storage is not deleted.

    The above techniques mean that the bitstream storage manager is transaction-safe. Over time, the bitstream database table and file store may contain a number of 'deleted' bitstreams. The cleanup method of BitstreamStorageManager goes through these deleted rows, and actually deletes them along with any corresponding files left in the storage. It only removes 'deleted' bitstreams that are more than one hour old, just in case cleanup is happening in the middle of a storage operation.

    This cleanup can be invoked from the command line via the Cleanup class, which can in turn be easily executed from a shell on the server machine using /dspace/bin/cleanup. You might like to have this run regularly by cron, though since DSpace is read-lots, write-not-so-much it doesn't need to be run very often.

    9.2.1. Backup

    The bitstreams (files) in traditional storage may be backed up very easily by simply 'tarring' or 'zipping' the assetstore directory (or whichever directory is configured in dspace.cfg). Restoring is as simple as extracting the backed-up compressed file in the appropriate location.

    Similar means could be used for SRB, but SRB offers many more options for managing backup.

    It is important to note that since the bitstream storage manager holds the bitstreams in storage, and information about them in the database, that a database backup and a backup of the files in the bitstream store must be made at the same time; the bitstream data in the database must correspond to the stored files.

    Of course, it isn't really ideal to 'freeze' the system while backing up to ensure that the database and files match up. Since DSpace uses the bitstream data in the database as the authoritative record, it's best to back up the database before the files. This is because it's better to have a bitstream in storage but not the database (effectively non-existent to DSpace) than a bitstream record in the database but not storage, since people would be able to find the bitstream but not actually get the contents.

    9.2.2. Configuring the Bitstream Store

    Both traditional and SRB bitstream stores are configured in dspace.cfg.

    9.2.2.1. Configuring Traditonal Storage

    Bitstream stores in the file system on the server are configured like this:

    +          

    The remaining fields are the responsibility of the Bitstream content management API class.

    The bitstream storage manager is fully transaction-safe. In order to implement transaction-safety, the following algorithm is used to store bitstreams:

    1. A database connection is created, separately from the currently active connection in the current DSpace context.

    2. An unique internal identifier (separate from the database primary key) is generated.

    3. The bitstream DB table row is created using this new connection, with the deleted column set to true.

    4. The new connection is committed, so the 'deleted' bitstream row is written to the database

    5. The bitstream itself is stored in a file in the configured 'asset store directory', with a directory path and filename derived from the internal ID

    6. The deleted flag in the bitstream row is set to false. This will occur (or not) as part of the current DSpace Context.

    This means that should anything go wrong before, during or after the bitstream storage, only one of the following can be true:

    • No bitstream table row was created, and no file was stored

    • A bitstream table row with deleted=true was created, no file was stored

    • A bitstream table row with deleted=true was created, and a file was stored

    None of these affect the integrity of the data in the database or bitstream store.

    Similarly, when a bitstream is deleted for some reason, its deleted flag is set to true as part of the overall transaction, and the corresponding file in storage is not deleted.

    The above techniques mean that the bitstream storage manager is transaction-safe. Over time, the bitstream database table and file store may contain a number of 'deleted' bitstreams. The cleanup method of BitstreamStorageManager goes through these deleted rows, and actually deletes them along with any corresponding files left in the storage. It only removes 'deleted' bitstreams that are more than one hour old, just in case cleanup is happening in the middle of a storage operation.

    This cleanup can be invoked from the command line via the Cleanup class, which can in turn be easily executed from a shell on the server machine using /dspace/bin/cleanup. You might like to have this run regularly by cron, though since DSpace is read-lots, write-not-so-much it doesn't need to be run very often.

    9.2.1. Backup

    The bitstreams (files) in traditional storage may be backed up very easily by simply 'tarring' or 'zipping' the assetstore directory (or whichever directory is configured in dspace.cfg). Restoring is as simple as extracting the backed-up compressed file in the appropriate location.

    Similar means could be used for SRB, but SRB offers many more options for managing backup.

    It is important to note that since the bitstream storage manager holds the bitstreams in storage, and information about them in the database, that a database backup and a backup of the files in the bitstream store must be made at the same time; the bitstream data in the database must correspond to the stored files.

    Of course, it isn't really ideal to 'freeze' the system while backing up to ensure that the database and files match up. Since DSpace uses the bitstream data in the database as the authoritative record, it's best to back up the database before the files. This is because it's better to have a bitstream in storage but not the database (effectively non-existent to DSpace) than a bitstream record in the database but not storage, since people would be able to find the bitstream but not actually get the contents.

    9.2.2. Configuring the Bitstream Store

    Both traditional and SRB bitstream stores are configured in dspace.cfg.

    9.2.2.1. Configuring Traditonal Storage

    Bitstream stores in the file system on the server are configured like this:

     assetstore.dir =  [dspace]/assetstore
     

    (Remember that [dspace] is a placeholder for the actual name of your DSpace install directory).

    The above example specifies a single asset store.

     assetstore.dir =  [dspace]/assetstore_0
     assetstore.dir.1 = /mnt/other_filesystem/assetstore_1
     

    The above example specifies two asset stores. assetstore.dir specifies the asset store number 0 (zero); after that use assetstore.dir.1, assetstore.dir.2 and so on. The particular asset store a bitstream is stored in is held in the database, so don't move bitstreams between asset stores, and don't renumber them.

    By default, newly created bitstreams are put in asset store 0 (i.e. the one specified by the assetstore.dir property.) This allows backwards compatibility with pre-DSpace 1.1 configurations. To change this, for example when asset store 0 is getting full, add a line to dspace.cfg like:

     assetstore.incoming = 1
    -

    Then restart DSpace (Tomcat). New bitstreams will be written to the asset store specified by assetstore.dir.1, which is /mnt/other_filesystem/assetstore_1 in the above example.

    9.2.2.2. Configuring SRB Storage

    The same framework is used to configure SRB storage. That is, the asset store number (0..n) can reference a file system directory as above or it can reference a set of SRB account parameters. But any particular asset store number can reference one or the other but not both. This way traditional and SRB storage can both be used but with different asset store numbers. The same cautions mentioned above apply to SRB asset stores as well: The particular asset store a bitstream is stored in is held in the database, so don't move bitstreams between asset stores, and don't renumber them.

    For example, let's say asset store number 1 will refer to SRB. The there will be a set of SRB account parameters like this:

    +

    Then restart DSpace (Tomcat). New bitstreams will be written to the asset store specified by assetstore.dir.1, which is /mnt/other_filesystem/assetstore_1 in the above example.

    9.2.2.2. Configuring SRB Storage

    The same framework is used to configure SRB storage. That is, the asset store number (0..n) can reference a file system directory as above or it can reference a set of SRB account parameters. But any particular asset store number can reference one or the other but not both. This way traditional and SRB storage can both be used but with different asset store numbers. The same cautions mentioned above apply to SRB asset stores as well: The particular asset store a bitstream is stored in is held in the database, so don't move bitstreams between asset stores, and don't renumber them.

    For example, let's say asset store number 1 will refer to SRB. The there will be a set of SRB account parameters like this:

     srb.host.1 = mysrbmcathost.myu.edu
     srb.port.1 = 5544
     srb.mcatzone.1 = mysrbzone
    @@ -72,11 +72,10 @@ srb.username.1 = mysrbuser
     srb.password.1 = mysrbpassword
     srb.homedirectory.1 = /mysrbzone/home/mysrbuser.mysrbdomain
     srb.parentdir.1 = mysrbdspaceassetstore
    -

    Several of the terms, such as mcatzone, have meaning only in the SRB context and will be familiar to SRB users. The last, srb.parentdir.n, can be used to used for addition (SRB) upper directory structure within an SRB account. This property value could be blank as well.

    (If asset store 0 would refer to SRB it would be srb.host = ..., srb.port = ..., and so on (.0 omitted) to be consistent with the traditional storage configuration above.)

    The similar use of assetstore.incoming to reference asset store 0 (default) or 1..n (explicit property) means that new bitstreams will be written to traditional or SRB storage determined by whether a file system directory on the server is referenced or a set of SRB account parameters are referenced.

    There are comments in dspace.cfg that further elaborate the configuration of traditional and SRB storage.


    Several of the terms, such as mcatzone, have meaning only in the SRB context and will be familiar to SRB users. The last, srb.parentdir.n, can be used to used for addition (SRB) upper directory structure within an SRB account. This property value could be blank as well.

    (If asset store 0 would refer to SRB it would be srb.host = ..., srb.port = ..., and so on (.0 omitted) to be consistent with the traditional storage configuration above.)

    The similar use of assetstore.incoming to reference asset store 0 (default) or 1..n (explicit property) means that new bitstreams will be written to traditional or SRB storage determined by whether a file system directory on the server is referenced or a set of SRB account parameters are referenced.

    There are comments in dspace.cfg that further elaborate the configuration of traditional and SRB storage.


    - Licensed under a Creative Commons Attribution 3.0 United States License -

    \ No newline at end of file +

    Licensed under a Creative Commons Attribution 3.0 United States License

    \ No newline at end of file diff --git a/dspace/docs/html/ch10.html b/dspace/docs/html/ch10.html index 06ac8ebfa2..9c481bc6b4 100644 --- a/dspace/docs/html/ch10.html +++ b/dspace/docs/html/ch10.html @@ -1,17 +1,17 @@ -Chapter 10. DSpace System Documentation: Directories and Files

    Chapter 10. DSpace System Documentation: Directories and Files

    10.1. Overview

    A complete DSpace installation consists of three separate directory trees:

    The source directory:

    This is where (surprise!) the source code lives. Note that the config files here are used only during the initial install process. After the install, config files should be changed in the install directory. It is referred to in this document as [dspace-source].

    The install directory:

    This directory is populated during the install process and also by DSpace as it runs. It contains config files, command-line tools (and the libraries necessary to run them), and usually--although not necessarily--the contents of the DSpace archive (depending on how DSpace is configured). After the initial build and install, changes to config files should be made in this directory. It is referred to in this document as [dspace].

    The web deployment directory:

    This directory is generated by the web server the first time it finds a dspace.war file in its webapps directory. It contains the unpacked contents of dspace.war, i.e. the JSPs and java classes and libraries necessary to run DSpace. Files in this directory should never be edited directly; if you wish to modify your DSpace installation, you should edit files in the source directory and then rebuild. The contents of this directory aren't listed here since its creation is completely automatic. It is usually referred to in this document as [tomcat]/webapps/dspace.

    10.2. Source Directory Layout

    • +Chapter 10. DSpace System Documentation: Directories and Files

      Chapter 10. DSpace System Documentation: Directories and Files

      10.1. Overview

      A complete DSpace installation consists of three separate directory trees:

      The source directory:

      This is where (surprise!) the source code lives. Note that the config files here are used only during the initial install process. After the install, config files should be changed in the install directory. It is referred to in this document as [dspace-source].

      The install directory:

      This directory is populated during the install process and also by DSpace as it runs. It contains config files, command-line tools (and the libraries necessary to run them), and usually--although not necessarily--the contents of the DSpace archive (depending on how DSpace is configured). After the initial build and install, changes to config files should be made in this directory. It is referred to in this document as [dspace].

      The web deployment directory:

      This directory is generated by the web server the first time it finds a dspace.war file in its webapps directory. It contains the unpacked contents of dspace.war, i.e. the JSPs and java classes and libraries necessary to run DSpace. Files in this directory should never be edited directly; if you wish to modify your DSpace installation, you should edit files in the source directory and then rebuild. The contents of this directory aren't listed here since its creation is completely automatic. It is usually referred to in this document as [tomcat]/webapps/dspace.

      10.2. Source Directory Layout

      • [dspace-source]

        • dspace/ - Directory which contains all build and configuration information for DSpace

          • CHANGES - Detailed list of code changes between versions.

          • KNOWN_BUGS - Known bugs in the current version.

          • LICENSE - DSpace source code license.

          • README - Obligatory basic information file.

          • bin/ - Some shell and Perl scripts for running DSpace command-line tasks.

          • config/ - Configuration files:

            • controlled-vocabularies/ - Fixed, limited vocabularies used in metadata entry

            • crosswalks/ - Metadata crosswalks - property files or XSL stylesheets

            • dspace.cfg - The Main DSpace configuration file (You will need to edit this).

            • dc2mods.cfg - Mappings from Dublin Core metadata to MODS for the METS export.

            • default.license - The default license that users must grant when submitting items.

            • dstat.cfg , dstat.map - Configuration for statistical reports.

            • input-forms.xml - Submission UI metadata field configuration.

            • news-side.html - Text of the front-page news in the sidebar, only used in JSPUI.

            • news-top.html - Text of the front-page news in the top box, only used in teh JSPUI.

            • emails/ - Text and layout templates for emails sent out by the system.

            • registries/ - Initial contents of the bitstream format registry and Dublin Core element/qualifier registry. These are only used on initial system setup, after which they are maintained in the database.

          • docs/ - DSpace system documentation. The technical documentation for functionality, installation, configuration, etc.

          • etc/ - This directory contains administrative files needed for the install process and by developers, mostly database initialization and upgrade scripts. Any .xml files in etc/ are common to all supported database systems.

            • postgres/ - Versions of the database schema and updater SQL scripts for PostgreSQL.

            • oracle/ - Versions of the database schema and updater SQL scripts for Oracle.

          • modules/ - The Web UI modules "overlay" directory. DSpace uses Maven to automatically look here for any customizations you wish to make to DSpace Web interfaces.

            • jspui - Contains all customizations for the JSP User Interface.

              • src/main/resources/ - The overlay for JSPUI Resources. This is the location to place any custom Messages.properties files. (Previously this file had been stored at: [dspace-source]/config/language-packs/Messages.properties

              • src/main/webapp/ - The overlay for JSPUI Web Application. This is the location to place any custom JSPs to be used by DSpace.

            • lni - Contains all customizations for the Lightweight Network Interface.

            • oai - Contains all customizations for the OAI-PMH Interface.

            • sword - Contains all customizations for the SWORD (Simple Web-service Offering Repository Deposit) Interface.

            • xmlui - Contains all customizations for the XML User Interface (aka Manakin).

              • src/main/webapp/ - The overlay for XMLUI Web Application. This is the location to place custom Themes or Configurations.

                • i18n/ - The location to place a custom version of the XMLUI's messages.xml (You have to manually create this folder)

                • themes/ - The location to place custom Themes for the XMLUI (You have to manually create this folder).

          • src/ - Maven configurations for DSpace System. This directory contains the Maven and Ant build files for DSpace.

          • target/ - (Only exists after building DSpace) This is the location Maven uses to build your DSpace installation package.

            • dspace-[version].dir - The location of the DSpace Installation Package (which can then be installed by running ant update)

        -

      10.3. Installed Directory Layout

      Below is the basic layout of a DSpace installation using the default configuration. These paths can be configured if necessary.

      • +

      10.3. Installed Directory Layout

      Below is the basic layout of a DSpace installation using the default configuration. These paths can be configured if necessary.

      • [dspace]

        • assetstore/ - asset store files

        • bin/ - shell and Perl scripts

        • config/ - configuration, with sub-directories as above

        • handle-server/ - Handles server files

        • history/ - stored history files (generally RDF/XML)

        • lib/ - JARs, including dspace.jar, containing the DSpace classes

        • log/ - Log files

        • reports/ - Reports generated by statistical report generator

        • search/ - Lucene search index files

        • upload/ - temporary directory used during file uploads etc.

        • webapps/ - location where DSpace installs all Web Applications

        -

      10.4. Contents of JSPUI Web Application

      DSpace's Ant build file creates a dspace-jspui-webapp/ directory with the following structure:

      • (top level dir)

        • The JSPs

        • +

      10.4. Contents of JSPUI Web Application

      DSpace's Ant build file creates a dspace-jspui-webapp/ directory with the following structure:

      • (top level dir)

        • The JSPs

        • WEB-INF/

          • web.xml - DSpace JSPUI Web Application configuration and Servlet mappings

          • dspace-tags.tld - DSpace custom tag descriptor

          • fmt.tld - JSTL message format tag descriptor, for internationalization

          • lib/ - All the third-party JARs and pre-compiled DSpace API JARs needed to run JSPUI

          • classes/ - Any additional necessary class files

          -

      10.5. Contents of XMLUI Web Application (aka Manakin)

      DSpace's Ant build file creates a dspace-xmlui-webapp/ directory with the following structure:

      • (top level dir)

        • aspects/ - Contains overarching Aspect Generator config and Prototype DRI (Digital Repository Interface) document for Manakin.

        • i18n/ - Internationalization / Multilingual support. Contains the messages.xml English language pack by default.

        • themes/ - Contains all out-of-the-box Manakin themes

          • Classic/ - The classic theme, which makes the XMLUI look like classic DSpace

          • dri2xhtml/ - The base theme, which converts XMLUI DRI (Digital Repository Interface) format into XHTML for display

          • Reference/ - The default reference theme for XMLUI

          • template/ - A theme template...useful as a starting point for your own custom theme(s)

          • dri2xhtml.xsl - The DRI-to-XHTML XSL Stylesheet. Uses the above 'dri2xhtml' theme to generate XHTML

          • themes.xmap - The Theme configuration file. It determines which theme(s) are used by XMLUI

        • +

      10.5. Contents of XMLUI Web Application (aka Manakin)

      DSpace's Ant build file creates a dspace-xmlui-webapp/ directory with the following structure:

      • (top level dir)

        • aspects/ - Contains overarching Aspect Generator config and Prototype DRI (Digital Repository Interface) document for Manakin.

        • i18n/ - Internationalization / Multilingual support. Contains the messages.xml English language pack by default.

        • themes/ - Contains all out-of-the-box Manakin themes

          • Classic/ - The classic theme, which makes the XMLUI look like classic DSpace

          • dri2xhtml/ - The base theme, which converts XMLUI DRI (Digital Repository Interface) format into XHTML for display

          • Reference/ - The default reference theme for XMLUI

          • template/ - A theme template...useful as a starting point for your own custom theme(s)

          • dri2xhtml.xsl - The DRI-to-XHTML XSL Stylesheet. Uses the above 'dri2xhtml' theme to generate XHTML

          • themes.xmap - The Theme configuration file. It determines which theme(s) are used by XMLUI

        • WEB-INF/

          • lib/ - All the third-party JARs and pre-compiled DSpace JARs needed to run XMLUI

          • classes/ - Any additional necessary class files

          • cocoon.xconf - XMLUI's Apache Cocoon configuration

          • logkit.xconf - XMLUI's Apache Cocoon Logging configuration

          • web.xml - XMLUI Web Application configuration and Servlet mappings

          -

      10.6. Log Files

      The first source of potential confusion is the log files. Since DSpace uses a number of third-party tools, problems can occur in a variety of places. Below is a table listing the main log files used in a typical DSpace setup. The locations given are defaults, and might be different for your system depending on where you installed DSpace and the third-party tools. The ordering of the list is roughly the recommended order for searching them for the details about a particular problem or error.

      Table 10.1. DSpace Log File Locations

      +

      10.6. Log Files

      The first source of potential confusion is the log files. Since DSpace uses a number of third-party tools, problems can occur in a variety of places. Below is a table listing the main log files used in a typical DSpace setup. The locations given are defaults, and might be different for your system depending on where you installed DSpace and the third-party tools. The ordering of the list is roughly the recommended order for searching them for the details about a particular problem or error.

      Table 10.1. DSpace Log File Locations

      Log File

      @@ -24,7 +24,7 @@ This directory contains administrative files needed for the install process and [dspace]/log/dspace.log

      -

      Main DSpace log file. This is where the DSpace code writes a simple log of events and errors that occur within the DSpace code. You can control the verbosity of this by editing the [dspace-source]/config/templates/log4j.properties file and then running "ant init_configs". [dspace]/bin/install-configs in [dspace-source]/dspace/target/dspace-1.5.2-build/.

      +

      Main DSpace log file. This is where the DSpace code writes a simple log of events and errors that occur within the DSpace code. You can control the verbosity of this by editing the [dspace-source]/config/templates/log4j.properties file and then running "ant init_configs".

      [tomcat]/logs/catalina.out @@ -68,14 +68,14 @@ This directory contains administrative files needed for the install process and

      On the other hand, a problem with CNRI's Handle server code might be logged here.

      -

      PostgreSQL log

      +

      PostgreSQL log

      PostgreSQL also writes a log file. This one doesn't seem to have a default location, you probably had to specify it yourself at some point during installation. In general, this log file rarely contains pertinent information--PostgreSQL is pretty stable, you're more likely to encounter problems with connecting via JDBC, and these problems will be logged in dspace.log.

      -



      10.6.1. log4j.properties File.

      the file [dspace]/config/log4j.properties controls how and where log files are created. There are three sets of configurations in that file, called A1, A2, and A3. These are used to control the logs for DSpace, the checksum checker, and the XMLUI respectively. The important settings in this file are:

      Table 10.2. log4j.properties Table

      log4j.rootCategory=INFO,A
      +log4j.logger.org.dspace=INFO,A1
      These lines control what level of logging takes place. Normally they should be set to INFO, but if you need to see more information in the logs, set them to dEBUG and restart your web server
      log4j.appender.A1=org.dspace.app.util.DailyFileAppenderThis is the name of the log file creation method used. The DailyFileAppender creates a new date-stamped file every day or month.
      log4j.appender.A1.File=${log.dir}/dspace.logThis sets the filename and location of where the log file will be stored. It iwll have a date stamp appended to the file name.
      log4j.appender.A1.DatePattern=yyy-MM-DDThis defines the format for the date stamp that is appended to the log file names. If you wish to have log files created monthyl instead of daily, change this to yyyy-MM
      log4j.appender.A1.MaxLogs=0This defines how many log files will be created. You may wish to define a retention period for log files. If you set this to 365, logs older than a year will be deleted. By default this is set to 0 so that no logs are ever deleted. Ensure that you monitor the disk space used by the logs to make sure that you have enough space for them. It is often important to keep the log files for a long time in case you want to rebuild your statistics.


      \ No newline at end of file +

      Licensed under a Creative Commons Attribution 3.0 United States License

      \ No newline at end of file diff --git a/dspace/docs/html/ch11.html b/dspace/docs/html/ch11.html index 0ddd2b13cb..fb7ae6e366 100644 --- a/dspace/docs/html/ch11.html +++ b/dspace/docs/html/ch11.html @@ -1,6 +1,6 @@ -Chapter 11. DSpace System Documentation: Architecture

      Chapter 11. DSpace System Documentation: Architecture

      Table of Contents

      11.1. Overview

      11.1. Overview

      The DSpace system is organized into three layers, each of which consists of a number of components.

      +Chapter 11. DSpace System Documentation: Architecture

      Chapter 11. DSpace System Documentation: Architecture

      Table of Contents

      11.1. Overview

      11.1. Overview

      The DSpace system is organized into three layers, each of which consists of a number of components.

      -

      DSpace System Architecture

      The storage layer is responsible for physical storage of metadata and content. The business logic layer deals with managing the content of the archive, users of the archive (e-people), authorization, and workflow. The application layer contains components that communicate with the world outside of the individual DSpace installation, for example the Web user interface and the Open Archives Initiative protocol for metadata harvesting service.

      Each layer only invokes the layer below it; the application layer may not used the storage layer directly, for example. Each component in the storage and business logic layers has a defined public API. The union of the APIs of those components are referred to as the Storage API (in the case of the storage layer) and the DSpace Public API (in the case of the business logic layer). These APIs are in-process Java classes, objects and methods.

      It is important to note that each layer is trusted. Although the logic for authorising actions is in the business logic layer, the system relies on individual applications in the application layer to correctly and securely authenticate e-people. If a 'hostile' or insecure application were allowed to invoke the Public API directly, it could very easily perform actions as any e-person in the system.

      The reason for this design choice is that authentication methods will vary widely between different applications, so it makes sense to leave the logic and responsibility for that in these applications.

      The source code is organized to cohere very strictly to this three-layer architecture. Also, only methods in a component's public API are given the public access level. This means that the Java compiler helps ensure that the source code conforms to the architecture.

      Table 11.1. Source Code Packages

      +

      DSpace System Architecture

      The storage layer is responsible for physical storage of metadata and content. The business logic layer deals with managing the content of the archive, users of the archive (e-people), authorization, and workflow. The application layer contains components that communicate with the world outside of the individual DSpace installation, for example the Web user interface and the Open Archives Initiative protocol for metadata harvesting service.

      Each layer only invokes the layer below it; the application layer may not used the storage layer directly, for example. Each component in the storage and business logic layers has a defined public API. The union of the APIs of those components are referred to as the Storage API (in the case of the storage layer) and the DSpace Public API (in the case of the business logic layer). These APIs are in-process Java classes, objects and methods.

      It is important to note that each layer is trusted. Although the logic for authorising actions is in the business logic layer, the system relies on individual applications in the application layer to correctly and securely authenticate e-people. If a 'hostile' or insecure application were allowed to invoke the Public API directly, it could very easily perform actions as any e-person in the system.

      The reason for this design choice is that authentication methods will vary widely between different applications, so it makes sense to leave the logic and responsibility for that in these applications.

      The source code is organized to cohere very strictly to this three-layer architecture. Also, only methods in a component's public API are given the public access level. This means that the Java compiler helps ensure that the source code conforms to the architecture.

      Table 11.1. Source Code Packages

      Packages within

      @@ -79,11 +79,10 @@ mvn javadoc:javadoc

    • Sub-Community Management

    • -

      2002-2008 The DSpace Foundation


      2002-2008 The DSpace Foundation


      \ No newline at end of file +

      Licensed under a Creative Commons Attribution 3.0 United States License

      \ No newline at end of file diff --git a/dspace/docs/html/ch12.html b/dspace/docs/html/ch12.html index 1bfac9f8f5..f89a6e2e35 100644 --- a/dspace/docs/html/ch12.html +++ b/dspace/docs/html/ch12.html @@ -1,6 +1,6 @@ -Chapter 12. DSpace System Documentation: Application Layer

      Chapter 12. DSpace System Documentation: Application Layer

      +Chapter 12. DSpace System Documentation: Application Layer

      Chapter 12. DSpace System Documentation: Application Layer

      Back to architecture overview -

      12.1. Web User Interface

      The DSpace Web UI is the largest and most-used component in the application layer. Built on Java Servlet and JavaServer Page technology, it allows end-users to access DSpace over the Web via their Web browsers. As of Dspace 1.3.2 the UI meets both XHTML 1.0 standards and Web Accessibility Initiative (WAI) level-2 standard.

      It also features an administration section, consisting of pages intended for use by central administrators. Presently, this part of the Web UI is not particularly sophisticated; users of the administration section need to know what they are doing! Selected parts of this may also be used by collection administrators.

      12.1.1. Web UI Files

      The Web UI-related files are located in a variety of directories in the DSpace source tree. Note that as of DSpace version 1.5, the deployment has changed. The build systems has moved to a maven-based system enabling the various projects (JSPUI, XMLUI, etc.) into separate projects. The system still uses the familar 'Ant' to deploy the webapps in later stages.

      Table 12.1. Locations of Web UI Source Files

      +

      12.1. Web User Interface

      The DSpace Web UI is the largest and most-used component in the application layer. Built on Java Servlet and JavaServer Page technology, it allows end-users to access DSpace over the Web via their Web browsers. As of Dspace 1.3.2 the UI meets both XHTML 1.0 standards and Web Accessibility Initiative (WAI) level-2 standard.

      It also features an administration section, consisting of pages intended for use by central administrators. Presently, this part of the Web UI is not particularly sophisticated; users of the administration section need to know what they are doing! Selected parts of this may also be used by collection administrators.

      12.1.1. Web UI Files

      The Web UI-related files are located in a variety of directories in the DSpace source tree. Note that as of DSpace version 1.5, the deployment has changed. The build systems has moved to a maven-based system enabling the various projects (JSPUI, XMLUI, etc.) into separate projects. The system still uses the familar 'Ant' to deploy the webapps in later stages.

      Table 12.1. Locations of Web UI Source Files

      Location

      @@ -72,11 +72,11 @@

      Custom DSpace JSP tag descriptor

      -

      .

      .

      12.1.2. The Build Process

      The DSpace build process constructs a Web application archive, which is placed in [dspace-source]/build/dspace.war. The build_wars Ant target does the work. The process works as follows:

      • All the DSpace source code is compiled.

      • [dspace-source]/etc/dspace-web.xml is copied to [dspace-source]/build and the @@dspace.dir@@ token inside it replaced with the DSpace installation directory (dspace.dir property from dspace.cfg

      • The JSPs are all copied to [dspace-source]/build/jsp

      • Customized JSPs from [dspace-source]/jsp/local are copied on top of these, thus 'overriding' the default versions

      • [dspace-source]/build/dspace.war is built

      The contents of dspace.war are:

      • (Top level) -- the JSPs (customized versions from [dspace-source]/jsp/local will have overwritten the defaults from the DSpace source distribution)

      • WEB-INF/classes -- the compiled DSpace classes

      • WEB-INF/lib -- the third party library JAR files from [dspace-source]/lib, minus servlet.jar which will be available as part of Tomcat (or other servlet engine)

      • WEB-INF/web.xml -- web deployment descriptor, copied from [dspace-source]/build/dspace-web.xml

      • WEB-INF/dspace-tags.tld -- tag descriptor

      Note that this does mean there are multiple copies of the compiled DSpace code and third-party libraries in the system, so care must be taken to ensure that they are all in sync. (The storage overhead is a few megabytes, totally insignificant these days.) In general, when you change any DSpace code or JSP, it's best to do a complete update of both the installation ([dspace]), and to rebuild and redeploy the Web UI and OAI .war files, by running this in [dspace-source]:

      +                            

      .

      .

      12.1.2. The Build Process

      The DSpace build process constructs a Web application archive, which is placed in [dspace-source]/build/dspace.war. The build_wars Ant target does the work. The process works as follows:

      • All the DSpace source code is compiled.

      • [dspace-source]/etc/dspace-web.xml is copied to [dspace-source]/build and the @@dspace.dir@@ token inside it replaced with the DSpace installation directory (dspace.dir property from dspace.cfg

      • The JSPs are all copied to [dspace-source]/build/jsp

      • Customized JSPs from [dspace-source]/jsp/local are copied on top of these, thus 'overriding' the default versions

      • [dspace-source]/build/dspace.war is built

      The contents of dspace.war are:

      • (Top level) -- the JSPs (customized versions from [dspace-source]/jsp/local will have overwritten the defaults from the DSpace source distribution)

      • WEB-INF/classes -- the compiled DSpace classes

      • WEB-INF/lib -- the third party library JAR files from [dspace-source]/lib, minus servlet.jar which will be available as part of Tomcat (or other servlet engine)

      • WEB-INF/web.xml -- web deployment descriptor, copied from [dspace-source]/build/dspace-web.xml

      • WEB-INF/dspace-tags.tld -- tag descriptor

      Note that this does mean there are multiple copies of the compiled DSpace code and third-party libraries in the system, so care must be taken to ensure that they are all in sync. (The storage overhead is a few megabytes, totally insignificant these days.) In general, when you change any DSpace code or JSP, it's best to do a complete update of both the installation ([dspace]), and to rebuild and redeploy the Web UI and OAI .war files, by running this in [dspace-source]:

       ant -D [dspace]/config/dspace.cfg update
      -

      and then following the instructions that command writes to the console.

      12.1.3. Servlets and JSPs

      The Web UI is loosely based around the MVC (model, view, controller) model. The content management API corresponds to the model, the Java Servlets are the controllers, and the JSPs are the views. Interactions take the following basic form:

      1. An HTTP request is received from a browser

      2. The appropriate servlet is invoked, and processes the request by invoking the DSpace business logic layer public API

      3. Depending on the outcome of the processing, the servlet invokes the appropriate JSP

      4. The JSP is processed and sent to the browser

      The reasons for this approach are:

      • All of the processing is done before the JSP is invoked, so any error or problem that occurs does not occur halfway through HTML rendering

      • The JSPs contain as little code as possible, so they can be customized without having to delve into Java code too much

      The org.dspace.app.webui.servlet.LoadDSpaceConfig servlet is always loaded first. This is a very simple servlet that checks the dspace-config context parameter from the DSpace deployment descriptor, and uses it to locate dspace.cfg. It also loads up the Log4j configuration. It's important that this servlet is loaded first, since if another servlet is loaded up, it will cause the system to try and load DSpace and Log4j configurations, neither of which would be found.

      All DSpace servlets are subclasses of the DSpaceServlet class. The DSpaceServlet class handles some basic operations such as creating a DSpace Context object (opening a database connection etc.), authentication and error handling. Instead of overriding the doGet and doPost methods as one normally would for a servlet, DSpace servlets implement doDSGet or doDSPost which have an extra context parameter, and allow the servlet to throw various exceptions that can be handled in a standard way.

      The DSpace servlet processes the contents of the HTTP request. This might involve retrieving the results of a search with a query term, accessing the current user's eperson record, or updating a submission in progress. According to the results of this processing, the servlet must decide which JSP should be displayed. The servlet then fills out the appropriate attributes in the HttpRequest object that represents the HTTP request being processed. This is done by invoking the setAttribute method of the javax.servlet.http.HttpServletRequest object that is passed into the servlet from Tomcat. The servlet then forwards control of the request to the appropriate JSP using the JSPManager.showJSP method.

      The JSPManager.showJSP method uses the standard Java servlet forwarding mechanism is then used to forward the HTTP request to the JSP. The JSP is processed by Tomcat and the results sent back to the user's browser.

      There is an exception to this servlet/JSP style: index.jsp, the 'home page', receives the HTTP request directly from Tomcat without a servlet being invoked first. This is because in the servlet 2.3 specification, there is no way to map a servlet to handle only requests made to '/'; such a mapping results in every request being directed to that servlet. By default, Tomcat forwards requests to '/' to index.jsp. To try and make things as clean as possible, index.jsp contains some simple code that would normally go in a servlet, and then forwards to home.jsp using the JSPManager.showJSP method. This means localized versions of the 'home page' can be created by placing a customized home.jsp in [dspace-source]/jsp/local, in the same manner as other JSPs.

      [dspace-source]/jsp/dspace-admin/index.jsp, the administration UI index page, is invoked directly by Tomcat and not through a servlet for similar reasons.

      At the top of each JSP file, right after the license and copyright header, is documented the appropriate attributes that a servlet must fill out prior to forwarding to that JSP. No validation is performed; if the servlet does not fill out the necessary attributes, it is likely that an internal server error will occur.

      Many JSPs containing forms will include hidden parameters that tell the servlets which form has been filled out. The submission UI servlet (SubmissionController is a prime example of a servlet that deals with the input from many different JSPs. The step and page hidden parameters (written out by the SubmissionController.getSubmissionParameters() method) are used to inform the servlet which page of which step has just been filled out (i.e. which page of the submission the user has just completed).

      Below is a detailed, scary diagram depicting the flow of control during the whole process of processing and responding to an HTTP request. More information about the authentication mechanism is mostly described in the configuration section.

      +

      and then following the instructions that command writes to the console.

      12.1.3. Servlets and JSPs

      The Web UI is loosely based around the MVC (model, view, controller) model. The content management API corresponds to the model, the Java Servlets are the controllers, and the JSPs are the views. Interactions take the following basic form:

      1. An HTTP request is received from a browser

      2. The appropriate servlet is invoked, and processes the request by invoking the DSpace business logic layer public API

      3. Depending on the outcome of the processing, the servlet invokes the appropriate JSP

      4. The JSP is processed and sent to the browser

      The reasons for this approach are:

      • All of the processing is done before the JSP is invoked, so any error or problem that occurs does not occur halfway through HTML rendering

      • The JSPs contain as little code as possible, so they can be customized without having to delve into Java code too much

      The org.dspace.app.webui.servlet.LoadDSpaceConfig servlet is always loaded first. This is a very simple servlet that checks the dspace-config context parameter from the DSpace deployment descriptor, and uses it to locate dspace.cfg. It also loads up the Log4j configuration. It's important that this servlet is loaded first, since if another servlet is loaded up, it will cause the system to try and load DSpace and Log4j configurations, neither of which would be found.

      All DSpace servlets are subclasses of the DSpaceServlet class. The DSpaceServlet class handles some basic operations such as creating a DSpace Context object (opening a database connection etc.), authentication and error handling. Instead of overriding the doGet and doPost methods as one normally would for a servlet, DSpace servlets implement doDSGet or doDSPost which have an extra context parameter, and allow the servlet to throw various exceptions that can be handled in a standard way.

      The DSpace servlet processes the contents of the HTTP request. This might involve retrieving the results of a search with a query term, accessing the current user's eperson record, or updating a submission in progress. According to the results of this processing, the servlet must decide which JSP should be displayed. The servlet then fills out the appropriate attributes in the HttpRequest object that represents the HTTP request being processed. This is done by invoking the setAttribute method of the javax.servlet.http.HttpServletRequest object that is passed into the servlet from Tomcat. The servlet then forwards control of the request to the appropriate JSP using the JSPManager.showJSP method.

      The JSPManager.showJSP method uses the standard Java servlet forwarding mechanism is then used to forward the HTTP request to the JSP. The JSP is processed by Tomcat and the results sent back to the user's browser.

      There is an exception to this servlet/JSP style: index.jsp, the 'home page', receives the HTTP request directly from Tomcat without a servlet being invoked first. This is because in the servlet 2.3 specification, there is no way to map a servlet to handle only requests made to '/'; such a mapping results in every request being directed to that servlet. By default, Tomcat forwards requests to '/' to index.jsp. To try and make things as clean as possible, index.jsp contains some simple code that would normally go in a servlet, and then forwards to home.jsp using the JSPManager.showJSP method. This means localized versions of the 'home page' can be created by placing a customized home.jsp in [dspace-source]/jsp/local, in the same manner as other JSPs.

      [dspace-source]/jsp/dspace-admin/index.jsp, the administration UI index page, is invoked directly by Tomcat and not through a servlet for similar reasons.

      At the top of each JSP file, right after the license and copyright header, is documented the appropriate attributes that a servlet must fill out prior to forwarding to that JSP. No validation is performed; if the servlet does not fill out the necessary attributes, it is likely that an internal server error will occur.

      Many JSPs containing forms will include hidden parameters that tell the servlets which form has been filled out. The submission UI servlet (SubmissionController is a prime example of a servlet that deals with the input from many different JSPs. The step and page hidden parameters (written out by the SubmissionController.getSubmissionParameters() method) are used to inform the servlet which page of which step has just been filled out (i.e. which page of the submission the user has just completed).

      Below is a detailed, scary diagram depicting the flow of control during the whole process of processing and responding to an HTTP request. More information about the authentication mechanism is mostly described in the configuration section.

      -

      Flow of Control During HTTP Request Processing

      12.1.4. Custom JSP Tags

      The DSpace JSPs all use some custom tags defined in /dspace/jsp/WEB-INF/dspace-tags.tld, and the corresponding Java classes reside in org.dspace.app.webui.jsptag. The tags are listed below. The dspace-tags.tld file contains detailed comments about how to use the tags, so that information is not repeated here.

      +

      Flow of Control During HTTP Request Processing

      12.1.4. Custom JSP Tags

      The DSpace JSPs all use some custom tags defined in /dspace/jsp/WEB-INF/dspace-tags.tld, and the corresponding Java classes reside in org.dspace.app.webui.jsptag. The tags are listed below. The dspace-tags.tld file contains detailed comments about how to use the tags, so that information is not repeated here.

      layout

      Just about every JSP uses this tag. It produces the standard HTML header and <BODY>tag. Thus the content of each JSP is nested inside a <dspace:layout> tag. The (XML-style)attributes of this tag are slightly complicated--see dspace-tags.tld. The JSPs in the source code bundle also provide plenty of examples.

      sidebar @@ -92,7 +92,7 @@ ant -D [dspace]/config/dspace.cfg update selecteperson

      A tag which produces a widget analogous to HTML <SELECT>, that allows a user to select one or multiple e-people from a pop-up list.

      sfxlink -

      Using an item's Dublin Core metadata DSpace can display an SFX link, if an SFX server is available. This tag does so for a particular item if the sfx.server.url property is defined in dspace.cfg.

      12.1.5. Internationalization

      The Java Standard Tag Library v1.0 is used to specify messages in the JSPs like this:

      OLD:

      <H1>Search Results</H1>

      NEW:

      <H1><fmt:message key="jsp.search.results.title"/></H1>

      This message can now be changed using the config/language-packs/Messages.properties file. (This must be done at build-time: Messages.properties is placed in the dspace.war Web application file.)

      jsp.search.results.title = Search Results

      Phrases may have parameters to be passed in, to make the job of translating easier, reduce the number of 'keys' and to allow translators to make the translated text flow more appropriately for the target language.

      OLD:

      <P>Results <%= r.getFirst() %> to <%= r.getLast() %> of <%=r.getTotal() %></P>

      NEW:

      <fmt:message key="jsp.search.results.text">
      +                    

      Using an item's Dublin Core metadata DSpace can display an SFX link, if an SFX server is available. This tag does so for a particular item if the sfx.server.url property is defined in dspace.cfg.

      12.1.5. Internationalization

      The Java Standard Tag Library v1.0 is used to specify messages in the JSPs like this:

      OLD:

      <H1>Search Results</H1>

      NEW:

      <H1><fmt:message key="jsp.search.results.title"/></H1>

      This message can now be changed using the config/language-packs/Messages.properties file. (This must be done at build-time: Messages.properties is placed in the dspace.war Web application file.)

      jsp.search.results.title = Search Results

      Phrases may have parameters to be passed in, to make the job of translating easier, reduce the number of 'keys' and to allow translators to make the translated text flow more appropriately for the target language.

      OLD:

      <P>Results <%= r.getFirst() %> to <%= r.getLast() %> of <%=r.getTotal() %></P>

      NEW:

      <fmt:message key="jsp.search.results.text">
         <fmt:param><%= r.getFirst() %></fmt:param>
         <fmt:param><%= r.getLast() %></fmt:param>
         <fmt:param><%= r.getTotal() %></fmt:param>
      @@ -107,9 +107,9 @@ Messages_fr_CA.properties

      The end user's browser settings determine whic parentlink="/mydspace" parenttitlekey="jsp.mydspace"> -

      And so the layout tag itself gets the relevant stuff out of the dictionary. title and parenttitle still work as before for backwards compatibility, and the odd spot where that's preferable.

      12.1.5.1. Message Key Convention

      When translating further pages, please follow the convention for naming message keys to avoid clashes.

      For text in JSPs use the complete path + filename of the JSP, then a one-word name for the message. e.g. for the title of jsp/mydspace/main.jsp use:

      jsp.mydspace.main.title

      Some common words (e.g. "Help") can be brought out into keys starting jsp. for ease of translation, e.g.:

      jsp.admin = Administer

      Other common words/phrases are brought out into 'general' parameters if they relate to a set (directory) of JSPs, e.g.

      jsp.tools.general.delete = Delete

      Phrases that relate strongly to a topic (eg. MyDSpace) but used in many JSPs outside the particular directory are more convenient to be cross-referenced. For example one could use the key below in jsp/submit/saved.jsp to provide a link back to the user's MyDSpace:

      +

      And so the layout tag itself gets the relevant stuff out of the dictionary. title and parenttitle still work as before for backwards compatibility, and the odd spot where that's preferable.

      12.1.5.1. Message Key Convention

      When translating further pages, please follow the convention for naming message keys to avoid clashes.

      For text in JSPs use the complete path + filename of the JSP, then a one-word name for the message. e.g. for the title of jsp/mydspace/main.jsp use:

      jsp.mydspace.main.title

      Some common words (e.g. "Help") can be brought out into keys starting jsp. for ease of translation, e.g.:

      jsp.admin = Administer

      Other common words/phrases are brought out into 'general' parameters if they relate to a set (directory) of JSPs, e.g.

      jsp.tools.general.delete = Delete

      Phrases that relate strongly to a topic (eg. MyDSpace) but used in many JSPs outside the particular directory are more convenient to be cross-referenced. For example one could use the key below in jsp/submit/saved.jsp to provide a link back to the user's MyDSpace:

      (Cross-referencing of keys in general is not a good idea as it may make maintenance more difficult. But in some cases it has more advantages as the meaning is obvious.) -

      jsp.mydspace.general.goto-mydspace = Go to My DSpace

      For text in servlet code, in custom JSP tags or wherever applicable use the fully qualified classname + a one-word name for the message. e.g.

      org.dspace.app.webui.jsptag.ItemListTag.title = Title

      12.1.5.2. Which Languages are currently supported?

      To view translations currently being developed, please refer to the i18n page of the DSpace Wiki.

      12.1.6. HTML Content in Items

      For the most part, the DSpace item display just gives a link that allows an end-user to download a bitstream. However, if a bundle has a primary bitstream whose format is of MIME type text/html, instead a link to the HTML servlet is given.

      So if we had an HTML document like this:

      contents.html
      +                

      jsp.mydspace.general.goto-mydspace = Go to My DSpace

      For text in servlet code, in custom JSP tags or wherever applicable use the fully qualified classname + a one-word name for the message. e.g.

      org.dspace.app.webui.jsptag.ItemListTag.title = Title

      12.1.5.2. Which Languages are currently supported?

      To view translations currently being developed, please refer to the i18n page of the DSpace Wiki.

      12.1.6. HTML Content in Items

      For the most part, the DSpace item display just gives a link that allows an end-user to download a bitstream. However, if a bundle has a primary bitstream whose format is of MIME type text/html, instead a link to the HTML servlet is given.

      So if we had an HTML document like this:

      contents.html
       chapter1.html
       chapter2.html
       chapter3.html
      @@ -125,7 +125,7 @@ chapter1.html
       chapter2.html
       chapter1_images/figure.gif
       chapter2_images/figure.gif

      since the HTML document servlet wouldn't know which bitstream to serve up for:

      https://dspace.mit.edu/html/1721.1/12345/chapter1_images/figure.gif
      -https://dspace.mit.edu/html/1721.1/12345/chapter2_images/figure.gif

      since it would just have figure.gif

      To prevent "infinite URL spaces" appearing (e.g. if a file foo.html linked to bar/foo.html, which would link to bar/bar/foo.html...) this behavior can be configured by setting the configuration property webui.html.max-depth-guess.

      For example, if we receive a request for foo/bar/index.html, and we have a bitstream called just index.html, we will serve up that bitstream for the request if webui.html.max-depth-guess is 2 or greater. If webui.html.max-depth-guess is 1 or less, we would not serve that bitstream, as the depth of the file is greater. If webui.html.max-depth-guess is zero, the request filename and path must always exactly match the bitstream name. The default value (if that property is not present in dspace.cfg) is 3.

      12.1.7. Thesis Blocking

      The submission UI has an optional feature that came about as a result of MIT Libraries policy. If the block.theses parameter in dspace.cfg is true, an extra checkbox is included in the first page of the submission UI. This asks the user if the submission is a thesis. If the user checks this box, the submission is halted (deleted) and an error message displayed, explaining that DSpace should not be used to submit theses. This feature can be turned off and on, and the message displayed (/dspace/jsp/submit/no-theses.jsp can be localized as necessary.

      12.2. OAI-PMH Data Provider

      The DSpace platform supports the Open Archives Initiative Protocol for Metadata Harvesting (OAI-PMH) version 2.0 as a data provider. This is accomplished using the OAICat framework from OCLC.

      The DSpace build process builds a Web application archive, [dspace-source]/build/oai.war), in much the same way as the Web UI build process described above. The only differences are that the JSPs are not included, and [dspace-source]/etc/oai-web.xml is used as the deployment descriptor. This 'webapp' is deployed to receive and respond to OAI-PMH requests via HTTP. Note that typically it should not be deployed on SSL (https: protocol). In a typical configuration, this is deployed at oai, for example:

      +https://dspace.mit.edu/html/1721.1/12345/chapter2_images/figure.gif

      since it would just have figure.gif

      To prevent "infinite URL spaces" appearing (e.g. if a file foo.html linked to bar/foo.html, which would link to bar/bar/foo.html...) this behavior can be configured by setting the configuration property webui.html.max-depth-guess.

      For example, if we receive a request for foo/bar/index.html, and we have a bitstream called just index.html, we will serve up that bitstream for the request if webui.html.max-depth-guess is 2 or greater. If webui.html.max-depth-guess is 1 or less, we would not serve that bitstream, as the depth of the file is greater. If webui.html.max-depth-guess is zero, the request filename and path must always exactly match the bitstream name. The default value (if that property is not present in dspace.cfg) is 3.

      12.1.7. Thesis Blocking

      The submission UI has an optional feature that came about as a result of MIT Libraries policy. If the block.theses parameter in dspace.cfg is true, an extra checkbox is included in the first page of the submission UI. This asks the user if the submission is a thesis. If the user checks this box, the submission is halted (deleted) and an error message displayed, explaining that DSpace should not be used to submit theses. This feature can be turned off and on, and the message displayed (/dspace/jsp/submit/no-theses.jsp can be localized as necessary.

      12.2. OAI-PMH Data Provider

      The DSpace platform supports the Open Archives Initiative Protocol for Metadata Harvesting (OAI-PMH) version 2.0 as a data provider. This is accomplished using the OAICat framework from OCLC.

      The DSpace build process builds a Web application archive, [dspace-source]/build/oai.war), in much the same way as the Web UI build process described above. The only differences are that the JSPs are not included, and [dspace-source]/etc/oai-web.xml is used as the deployment descriptor. This 'webapp' is deployed to receive and respond to OAI-PMH requests via HTTP. Note that typically it should not be deployed on SSL (https: protocol). In a typical configuration, this is deployed at oai, for example:

       http://dspace.myu.edu/oai/request?verb=Identify
       

      The 'base URL' of this DSpace deployment would be:

       http://dspace.myu.edu/oai/request
      @@ -133,19 +133,19 @@ http://dspace.myu.edu/oai/request
                           oaicat.properties
                       

      This resides as a template in [dspace]/config/templates, and the live version is written to [dspace]/config. You probably won't need to edit this; the install-configs script fills out the relevant deployment-specific parameters. You might want to change the earliestDatestamp field to accurately reflect the oldest datestamp in the system. (Note that this is the value of the last_modified column in the Item database table.)

      oai-web.xml -

      This standard Java Servlet 'deployment descriptor' is stored in the source as [dspace-source]/etc/oai-web.xml, and is written to /dspace/oai/WEB-INF/web.xml.

      12.2.1. Sets

      OAI-PMH allows repositories to expose an hierarchy of sets in which records may be placed. A record can be in zero or more sets.

      DSpace exposes collections as sets. The organization of communities is likely to change over time, and is therefore a less stable basis for selective harvesting.

      Each collection has a corresponding OAI set, discoverable by harvesters via the ListSets verb. The setSpec is the Handle of the collection, with the ':' and '/' converted to underscores so that the Handle is a legal setSpec, for example:

      +                

      This standard Java Servlet 'deployment descriptor' is stored in the source as [dspace-source]/etc/oai-web.xml, and is written to /dspace/oai/WEB-INF/web.xml.

      12.2.1. Sets

      OAI-PMH allows repositories to expose an hierarchy of sets in which records may be placed. A record can be in zero or more sets.

      DSpace exposes collections as sets. The organization of communities is likely to change over time, and is therefore a less stable basis for selective harvesting.

      Each collection has a corresponding OAI set, discoverable by harvesters via the ListSets verb. The setSpec is the Handle of the collection, with the ':' and '/' converted to underscores so that the Handle is a legal setSpec, for example:

       hdl_1721.1_1234
      -

      Naturally enough, the collection name is also the name of the corresponding set.

      12.2.2. Unique Identifier

      Every item in OAI-PMH data repository must have an unique identifier, which must conform to the URI syntax. As of DSpace 1.2, Handles are not used; this is because in OAI-PMH, the OAI identifier identifies the metadata record associated with the resource. The resource is the DSpace item, whose resource identifier is the Handle. In practical terms, using the Handle for the OAI identifier may cause problems in the future if DSpace instances share items with the same Handles; the OAI metadata record identifiers should be different as the different DSpace instances would need to be harvested separately and may have different metadata for the item.

      The OAI identifiers that DSpace uses are of the form:

      +

      Naturally enough, the collection name is also the name of the corresponding set.

      12.2.2. Unique Identifier

      Every item in OAI-PMH data repository must have an unique identifier, which must conform to the URI syntax. As of DSpace 1.2, Handles are not used; this is because in OAI-PMH, the OAI identifier identifies the metadata record associated with the resource. The resource is the DSpace item, whose resource identifier is the Handle. In practical terms, using the Handle for the OAI identifier may cause problems in the future if DSpace instances share items with the same Handles; the OAI metadata record identifiers should be different as the different DSpace instances would need to be harvested separately and may have different metadata for the item.

      The OAI identifiers that DSpace uses are of the form:

      oai:host name:handle

      For example:

      oai:dspace.myu.edu:123456789/345 -

      If you wish to use a different scheme, this can easily be changed by editing the value of OAI_ID_PREFIX at the top of the org.dspace.app.oai.DSpaceOAICatalog class. (You do not need to change the code if the above scheme works for you; the code picks up the host name and Handles automatically from the DSpace configuration.)

      12.2.3. Access control

      OAI provides no authentication/authorisation details, although these could be implemented using standard HTTP methods. It is assumed that all access will be anonymous for the time being.

      A question is, "is all metadata public?" Presently the answer to this is yes; all metadata is exposed via OAI-PMH, even if the item has restricted access policies. The reasoning behind this is that people who do actually have permission to read a restricted item should still be able to use OAI-based services to discover the content.

      If in the future, this 'expose all metadata' approach proves unsatisfactory for any reason, it should be possible to expose only publicly readable metadata. The authorisation system has separate permissions for READing and item and READing the content (bitstreams) within it. This means the system can differentiate between an item with public metadata and hidden content, and an item with hidden metadata as well as hidden content. In this case the OAI data repository should only expose items those with anonymous READ access, so it can hide the existence of records to the outside world completely. In this scenario, one should be wary of protected items that are made public after a time. When this happens, the items are "new" from the OAI-PMH perspective.

      12.2.4. Modification Date (OAI Date Stamp)

      OAI-PMH harvesters need to know when a record has been created, changed or deleted. DSpace keeps track of a 'last modified' date for each item in the system, and this date is used for the OAI-PMH date stamp. This means that any changes to the metadata (e.g. admins correcting a field, or a withdrawal) will be exposed to harvesters.

      12.2.5. 'About' Information

      As part of each record given out to a harvester, there is an optional, repeatable "about" section which can be filled out in any (XML-schema conformant) way. Common uses are for provenance and rights information, and there are schemas in use by OAI communities for this. Presently DSpace does not provide any of this information.

      12.2.6. Deletions

      DSpace keeps track of deletions (withdrawals). These are exposed via OAI, which has a specific mechansim for dealing with this. Since DSpace keeps a permanent record of withdrawn items, in the OAI-PMH sense DSpace supports deletions 'persistently'. This is as opposed to 'transient' deletion support, which would mean that deleted records are forgotten after a time.

      Once an item has been withdrawn, OAI-PMH harvests of the date range in which the withdrawal occurred will find the 'deleted' record header. Harvests of a date range prior to the withdrawal will not find the record, despite the fact that the record did exist at that time.

      As an example of this, consider an item that was created on 2002-05-02 and withdrawn on 2002-10-06. A request to harvest the month 2002-10 will yield the 'record deleted' header. However, a harvest of the month 2002-05 will not yield the original record.

      Note that presently, the deletion of 'expunged' items is not exposed through OAI.

      12.2.7. Flow Control (Resumption Tokens)

      An OAI data provider can prevent any performance impact caused by harvesting by forcing a harvester to receive data in time-separated chunks. If the data provider receives a request for a lot of data, it can send part of the data with a resumption token. The harvester can then return later with the resumption token and continue.

      DSpace supports resumption tokens for 'ListRecords' OAI-PMH requests. ListIdentifiers and ListSets requests do not produce a particularly high load on the system, so resumption tokens are not used for those requests.

      Each OAI-PMH ListRecords request will return at most 100 records. This limit is set at the top of org.dspace.app.oai.DSpaceOAICatalog.java (MAX_RECORDS). A potential issue here is that if a harvest yields an exact multiple of MAX_RECORDS, the last operation will result in a harvest with no records in it. It is unclear from the OAI-PMH specification if this is acceptable.

      When a resumption token is issued, the optional completeListSize and cursor attributes are not included. OAICat sets the expirationDate of the resumption token to one hour after it was issued, though in fact since DSpace resumption tokens contain all the information required to continue a request they do not actually expire.

      Resumption tokens contain all the state information required to continue a request. The format is:

      +            

      If you wish to use a different scheme, this can easily be changed by editing the value of OAI_ID_PREFIX at the top of the org.dspace.app.oai.DSpaceOAICatalog class. (You do not need to change the code if the above scheme works for you; the code picks up the host name and Handles automatically from the DSpace configuration.)

      12.2.3. Access control

      OAI provides no authentication/authorisation details, although these could be implemented using standard HTTP methods. It is assumed that all access will be anonymous for the time being.

      A question is, "is all metadata public?" Presently the answer to this is yes; all metadata is exposed via OAI-PMH, even if the item has restricted access policies. The reasoning behind this is that people who do actually have permission to read a restricted item should still be able to use OAI-based services to discover the content.

      If in the future, this 'expose all metadata' approach proves unsatisfactory for any reason, it should be possible to expose only publicly readable metadata. The authorisation system has separate permissions for READing and item and READing the content (bitstreams) within it. This means the system can differentiate between an item with public metadata and hidden content, and an item with hidden metadata as well as hidden content. In this case the OAI data repository should only expose items those with anonymous READ access, so it can hide the existence of records to the outside world completely. In this scenario, one should be wary of protected items that are made public after a time. When this happens, the items are "new" from the OAI-PMH perspective.

      12.2.4. Modification Date (OAI Date Stamp)

      OAI-PMH harvesters need to know when a record has been created, changed or deleted. DSpace keeps track of a 'last modified' date for each item in the system, and this date is used for the OAI-PMH date stamp. This means that any changes to the metadata (e.g. admins correcting a field, or a withdrawal) will be exposed to harvesters.

      12.2.5. 'About' Information

      As part of each record given out to a harvester, there is an optional, repeatable "about" section which can be filled out in any (XML-schema conformant) way. Common uses are for provenance and rights information, and there are schemas in use by OAI communities for this. Presently DSpace does not provide any of this information.

      12.2.6. Deletions

      DSpace keeps track of deletions (withdrawals). These are exposed via OAI, which has a specific mechansim for dealing with this. Since DSpace keeps a permanent record of withdrawn items, in the OAI-PMH sense DSpace supports deletions 'persistently'. This is as opposed to 'transient' deletion support, which would mean that deleted records are forgotten after a time.

      Once an item has been withdrawn, OAI-PMH harvests of the date range in which the withdrawal occurred will find the 'deleted' record header. Harvests of a date range prior to the withdrawal will not find the record, despite the fact that the record did exist at that time.

      As an example of this, consider an item that was created on 2002-05-02 and withdrawn on 2002-10-06. A request to harvest the month 2002-10 will yield the 'record deleted' header. However, a harvest of the month 2002-05 will not yield the original record.

      Note that presently, the deletion of 'expunged' items is not exposed through OAI.

      12.2.7. Flow Control (Resumption Tokens)

      An OAI data provider can prevent any performance impact caused by harvesting by forcing a harvester to receive data in time-separated chunks. If the data provider receives a request for a lot of data, it can send part of the data with a resumption token. The harvester can then return later with the resumption token and continue.

      DSpace supports resumption tokens for 'ListRecords' OAI-PMH requests. ListIdentifiers and ListSets requests do not produce a particularly high load on the system, so resumption tokens are not used for those requests.

      Each OAI-PMH ListRecords request will return at most 100 records. This limit is set at the top of org.dspace.app.oai.DSpaceOAICatalog.java (MAX_RECORDS). A potential issue here is that if a harvest yields an exact multiple of MAX_RECORDS, the last operation will result in a harvest with no records in it. It is unclear from the OAI-PMH specification if this is acceptable.

      When a resumption token is issued, the optional completeListSize and cursor attributes are not included. OAICat sets the expirationDate of the resumption token to one hour after it was issued, though in fact since DSpace resumption tokens contain all the information required to continue a request they do not actually expire.

      Resumption tokens contain all the state information required to continue a request. The format is:

       from/until/setSpec/offset
       

      from and until are the ISO 8601 dates passed in as part of the original request, and setSpec is also taken from the original request. offset is the number of records that have already been sent to the harvester. For example:

       2003-01-01//hdl_1721_1_1234/300
       

      This means the harvest is 'from' - 2003-01-01, has no 'until' date, is for collection hdl:1721.1/1234, and 300 records have already been sent to the harvester. (Actually, if the original OAI-PMH request doesn't specify a 'from' or 'until, OAICat fills them out automatically to '0000-00-00T00:00:00Z' and '9999-12-31T23:59:59Z' respectively. This means DSpace resumption tokens will always have from and until dates in them.)

      12.3. DSpace Command Launcher

      Introduced in Release 1.6, the DSpace Command Launcher brings together the various command and scripts into a standard-practice for running CLI runtime programs.

      12.3.1. Older Versions

      Prior to Release 1.6, there were various scripts written that masked a more manual approach to running CLI programs. The user had to issue [dspace]/bin/dsrun and then java class that ran that program. With release 1.5, scripts were written to mask the [dspace]/bin/dsrun command. We have left the java class in the System Administration section since it does have value for debugging purposes and for those who wish to learn about DSpace - programming or wish to customize the code at any time.

      12.3.2. Command Launcher Structure

      There are two components to the command launcher: the dspace script and the launcher.xml. The DSpace command calls a java class which in turn refers to launcher.xml that is stored in the [dspace]/config directory

      launcher.xml is made of several components:

      • <command> begins the stanza for a comand

      • <name>name of command</name> the name of the command that you would use.

      • <description>the description of the command</description>

      • <step> </step> User arguments are parsed and tested.

      • <class><the java class that is being used to run the CLI program></class>

      Prior to release 1.5 if one wanted to regenerate the browse index, one would have to issue the following commands manually:

      [dspace]/bin/dsrun org.dspace.browse.IndexBrowse -f -r
      +                2003-01-01, has no 'until' date, is for collection hdl:1721.1/1234, and 300 records have already been sent to the harvester. (Actually, if the original OAI-PMH request doesn't specify a 'from' or 'until, OAICat fills them out automatically to '0000-00-00T00:00:00Z' and '9999-12-31T23:59:59Z' respectively. This means DSpace resumption tokens will always have from and until dates in them.)

      12.3. DSpace Command Launcher

      Introduced in Release 1.6, the DSpace Command Launcher brings together the various command and scripts into a standard-practice for running CLI runtime programs.

      12.3.1. Older Versions

      Prior to Release 1.6, there were various scripts written that masked a more manual approach to running CLI programs. The user had to issue [dspace]/bin/dsrun and then java class that ran that program. With release 1.5, scripts were written to mask the [dspace]/bin/dsrun command. We have left the java class in the System Administration section since it does have value for debugging purposes and for those who wish to learn about DSpace + programming or wish to customize the code at any time.

      12.3.2. Command Launcher Structure

      There are two components to the command launcher: the dspace script and the launcher.xml. The DSpace command calls a java class which in turn refers to launcher.xml that is stored in the [dspace]/config directory

      launcher.xml is made of several components:

      • <command> begins the stanza for a comand

      • <name>name of command</name> the name of the command that you would use.

      • <description>the description of the command</description>

      • <step> </step> User arguments are parsed and tested.

      • <class><the java class that is being used to run the CLI program></class>

      Prior to release 1.5 if one wanted to regenerate the browse index, one would have to issue the following commands manually:

      [dspace]/bin/dsrun org.dspace.browse.IndexBrowse -f -r
       [dspace]/bin/dsrun org.dspace.browse.ItemCounter
       [dspace]/bin/dsrun org.dspace.search.DSIndexer

      In release 1.5 a script was written and in release 1.6 the command [dspace]/bin/dspace index-init replaces the script. The stanza from launcher.xml show us how one can build more commands if needed:

      <command>
               <name>index-update</name>
      @@ -160,11 +160,10 @@ from/until/setSpec/offset
               <step passuserargs="false">
                   <class>org.dspace.search.DSIndexer</class>
               </step>
      -</command>

      .


      .


      \ No newline at end of file +

      Licensed under a Creative Commons Attribution 3.0 United States License

      \ No newline at end of file diff --git a/dspace/docs/html/ch13.html b/dspace/docs/html/ch13.html index 0375041783..b2ab0f1e99 100644 --- a/dspace/docs/html/ch13.html +++ b/dspace/docs/html/ch13.html @@ -1,6 +1,6 @@ -Chapter 13. DSpace System Documentation: Business Logic Layer

      Chapter 13. DSpace System Documentation: Business Logic Layer

      (ConfigurationManager)

      Table of Contents

      13.1. Core Classes
      13.1.1. The Configuration Manager (ConfigurationManager)
      13.1.2. Constants
      13.1.3. Context
      13.1.4. Email
      13.1.5. LogManager
      13.1.6. Utils
      13.2. Content Management API
      13.2.1. Other Classes
      13.2.2. Modifications
      13.2.3. What's In Memory?
      13.2.4. Dublin Core Metadata
      13.2.5. Support for Other Metadata Schemas
      13.2.6. Packager Plugins
      13.3. Plugin Manager
      13.3.1. Concepts
      13.3.2. Using the Plugin Manager
      13.3.2.1. Types of Plugin
      13.3.2.2. Self-Named Plugins
      13.3.2.3. Obtaining a Plugin Instance
      13.3.2.4. Lifecycle Management
      13.3.2.5. Getting Meta-Information
      13.3.3. Implementation
      13.3.3.1. PluginManager Class
      13.3.3.2. SelfNamedPlugin Class
      13.3.3.3. Errors and Exceptions
      13.3.4. Configuring Plugins
      13.3.4.1. Configuring Singleton (Single) Plugins
      13.3.4.2. Configuring Sequence of Plugins
      13.3.4.3. Configuring Named Plugins
      13.3.4.4. Configuring the Reusable Status of a Plugin
      13.3.5. Validating the Configuration
      13.3.6. Use Cases
      13.3.6.1. Managing the MediaFilter plugins transparently
      13.3.6.2. A Singleton Plugin
      13.3.6.3. Plugin that Names Itself
      13.3.6.4. Stackable Authentication
      13.4. Workflow System
      13.5. Administration Toolkit
      13.6. E-person/Group Manager
      13.7. Authorization
      13.7.1. Special Groups
      13.7.2. Miscellaneous Authorization Notes
      13.8. Handle Manager/Handle Plugin
      13.9. Search
      13.9.1. Current Lucene Implementation
      13.9.2. Indexed Fields
      13.9.3. Harvesting API
      13.10. Browse API
      13.10.1. Using the API
      13.10.2. Index Maintenance
      13.10.3. Caveats
      13.11. Checksum checker
      13.12. OpenSearch Support
      13.13. Embargo

      13.1. Core Classes

      The org.dspace.core package provides some basic classes that are used throughout the DSpace code.

      13.1.1. The Configuration Manager (ConfigurationManager)

      The configuration manager is responsible for reading the main dspace.cfg properties file, managing the 'template' configuration files for other applications such as Apache, and for obtaining the text for e-mail messages.

      The system is configured by editing the relevant files in /dspace/config, as described in the configuration section.

      +Chapter 13. DSpace System Documentation: Business Logic Layer

      Chapter 13. DSpace System Documentation: Business Logic Layer

      (ConfigurationManager)

      Table of Contents

      13.1. Core Classes
      13.1.1. The Configuration Manager (ConfigurationManager)
      13.1.2. Constants
      13.1.3. Context
      13.1.4. Email
      13.1.5. LogManager
      13.1.6. Utils
      13.2. Content Management API
      13.2.1. Other Classes
      13.2.2. Modifications
      13.2.3. What's In Memory?
      13.2.4. Dublin Core Metadata
      13.2.5. Support for Other Metadata Schemas
      13.2.6. Packager Plugins
      13.3. Plugin Manager
      13.3.1. Concepts
      13.3.2. Using the Plugin Manager
      13.3.2.1. Types of Plugin
      13.3.2.2. Self-Named Plugins
      13.3.2.3. Obtaining a Plugin Instance
      13.3.2.4. Lifecycle Management
      13.3.2.5. Getting Meta-Information
      13.3.3. Implementation
      13.3.3.1. PluginManager Class
      13.3.3.2. SelfNamedPlugin Class
      13.3.3.3. Errors and Exceptions
      13.3.4. Configuring Plugins
      13.3.4.1. Configuring Singleton (Single) Plugins
      13.3.4.2. Configuring Sequence of Plugins
      13.3.4.3. Configuring Named Plugins
      13.3.4.4. Configuring the Reusable Status of a Plugin
      13.3.5. Validating the Configuration
      13.3.6. Use Cases
      13.3.6.1. Managing the MediaFilter plugins transparently
      13.3.6.2. A Singleton Plugin
      13.3.6.3. Plugin that Names Itself
      13.3.6.4. Stackable Authentication
      13.4. Workflow System
      13.5. Administration Toolkit
      13.6. E-person/Group Manager
      13.7. Authorization
      13.7.1. Special Groups
      13.7.2. Miscellaneous Authorization Notes
      13.8. Handle Manager/Handle Plugin
      13.9. Search
      13.9.1. Current Lucene Implementation
      13.9.2. Indexed Fields
      13.9.3. Harvesting API
      13.10. Browse API
      13.10.1. Using the API
      13.10.2. Index Maintenance
      13.10.3. Caveats
      13.11. Checksum checker
      13.12. OpenSearch Support
      13.13. Embargo

      13.1. Core Classes

      The org.dspace.core package provides some basic classes that are used throughout the DSpace code.

      13.1.1. The Configuration Manager (ConfigurationManager)

      The configuration manager is responsible for reading the main dspace.cfg properties file, managing the 'template' configuration files for other applications such as Apache, and for obtaining the text for e-mail messages.

      The system is configured by editing the relevant files in /dspace/config, as described in the configuration section.

      When editing configuration files for applications that DSpace uses, such as Apache, remember to edit the file in /dspace/config/templates and then run /dspace/bin/install-configs rather than editing the 'live' version directly! -

      The ConfigurationManager class can also be invoked as a command line tool, with two possible uses:

      • /dspace/bin/install-configs

        This processes and installs configuration files for other applications, as described in the configuration section.

      • /dspace/bin/dsrun org.dspace.core.ConfigurationManager -property property.name

        This writes the value of property.name from dspace.cfg to the standard output, so that shell scripts can access the DSpace configuration. For an example, see /dspace/bin/start-handle-server. If the property has no value, nothing is written.

      13.1.2. Constants

      This class contains constants that are used to represent types of object and actions in the database. For example, authorization policies can relate to objects of different types, so the resourcepolicy table has columns resource_id, which is the internal ID of the object, and resource_type_id, which indicates whether the object is an item, collection, bitstream etc. The value of resource_type_id is taken from the Constants class, for example Constants.ITEM.

      13.1.3. Context

      The Context class is central to the DSpace operation. Any code that wishes to use the any API in the business logic layer must first create itself a Context object. This is akin to opening a connection to a database (which is in fact one of the things that happens.)

      A context object is involved in most method calls and object constructors, so that the method or object has access to information about the current operation. When the context object is constructed, the following information is automatically initialized:

      • A connection to the database. This is a transaction-safe connection. i.e. the 'auto-commit' flag is set to false.

      • A cache of content management API objects. Each time a content object is created (for example Item or Bitstream) it is stored in the Context object. If the object is then requested again, the cached copy is used. Apart from reducing database use, this addresses the problem of having two copies of the same object in memory in different states.

      The following information is also held in a context object, though it is the responsiblity of the application creating the context object to fill it out correctly:

      • The current authenticated user, if any

      • Any 'special groups' the user is a member of. For example, a user might automatically be part of a particular group based on the IP address they are accessing DSpace from, even though they don't have an e-person record. Such a group is called a 'special group'.

      • Any extra information from the application layer that should be added to log messages that are written within this context. For example, the Web UI adds a session ID, so that when the logs are analysed the actions of a particular user in a particular session can be tracked.

      • A flag indicating whether authorization should be circumvented. This should only be used in rare, specific circumstances. For example, when first installing the system, there are no authorized administrators who would be able to create an administrator account!

        As noted above, the public API is trusted, so it is up to applications in the application layer to use this flag responsibly.

      Typical use of the context object will involve constructing one, and setting the current user if one is authenticated. Several operations may be performed using the context object. If all goes well, complete is called to commit the changes and free up any resources used by the context. If anything has gone wrong, abort is called to roll back any changes and free up the resources.

      You should always abort a context if any error happens during its lifespan; otherwise the data in the system may be left in an inconsistent state. You can also commit a context, which means that any changes are written to the database, and the context is kept active for further use.

      13.1.4. Email

      Sending e-mails is pretty easy. Just use the configuration manager's getEmail method, set the arguments and recipients, and send.

      The e-mail texts are stored in /dspace/config/emails. They are processed by the standard java.text.MessageFormat. At the top of each e-mail are listed the appropriate arguments that should be filled out by the sender. Example usage is shown in the org.dspace.core.Email Javadoc API documentation.

      13.1.5. LogManager

      The log manager consists of a method that creates a standard log header, and returns it as a string suitable for logging. Note that this class does not actually write anything to the logs; the log header returned should be logged directly by the sender using an appropriate Log4J call, so that information about where the logging is taking place is also stored.

      The level of logging can be configured on a per-package or per-class basis by editing /dspace/config/templates/log4j.properties and then executing /dspace/bin/install-configs. You will need to stop and restart Tomcat for the changes to take effect.

      A typical log entry looks like this:

      +

      The ConfigurationManager class can also be invoked as a command line tool, with two possible uses:

      • /dspace/bin/install-configs

        This processes and installs configuration files for other applications, as described in the configuration section.

      • /dspace/bin/dsrun org.dspace.core.ConfigurationManager -property property.name

        This writes the value of property.name from dspace.cfg to the standard output, so that shell scripts can access the DSpace configuration. For an example, see /dspace/bin/start-handle-server. If the property has no value, nothing is written.

      13.1.2. Constants

      This class contains constants that are used to represent types of object and actions in the database. For example, authorization policies can relate to objects of different types, so the resourcepolicy table has columns resource_id, which is the internal ID of the object, and resource_type_id, which indicates whether the object is an item, collection, bitstream etc. The value of resource_type_id is taken from the Constants class, for example Constants.ITEM.

      13.1.3. Context

      The Context class is central to the DSpace operation. Any code that wishes to use the any API in the business logic layer must first create itself a Context object. This is akin to opening a connection to a database (which is in fact one of the things that happens.)

      A context object is involved in most method calls and object constructors, so that the method or object has access to information about the current operation. When the context object is constructed, the following information is automatically initialized:

      • A connection to the database. This is a transaction-safe connection. i.e. the 'auto-commit' flag is set to false.

      • A cache of content management API objects. Each time a content object is created (for example Item or Bitstream) it is stored in the Context object. If the object is then requested again, the cached copy is used. Apart from reducing database use, this addresses the problem of having two copies of the same object in memory in different states.

      The following information is also held in a context object, though it is the responsiblity of the application creating the context object to fill it out correctly:

      • The current authenticated user, if any

      • Any 'special groups' the user is a member of. For example, a user might automatically be part of a particular group based on the IP address they are accessing DSpace from, even though they don't have an e-person record. Such a group is called a 'special group'.

      • Any extra information from the application layer that should be added to log messages that are written within this context. For example, the Web UI adds a session ID, so that when the logs are analysed the actions of a particular user in a particular session can be tracked.

      • A flag indicating whether authorization should be circumvented. This should only be used in rare, specific circumstances. For example, when first installing the system, there are no authorized administrators who would be able to create an administrator account!

        As noted above, the public API is trusted, so it is up to applications in the application layer to use this flag responsibly.

      Typical use of the context object will involve constructing one, and setting the current user if one is authenticated. Several operations may be performed using the context object. If all goes well, complete is called to commit the changes and free up any resources used by the context. If anything has gone wrong, abort is called to roll back any changes and free up the resources.

      You should always abort a context if any error happens during its lifespan; otherwise the data in the system may be left in an inconsistent state. You can also commit a context, which means that any changes are written to the database, and the context is kept active for further use.

      13.1.4. Email

      Sending e-mails is pretty easy. Just use the configuration manager's getEmail method, set the arguments and recipients, and send.

      The e-mail texts are stored in /dspace/config/emails. They are processed by the standard java.text.MessageFormat. At the top of each e-mail are listed the appropriate arguments that should be filled out by the sender. Example usage is shown in the org.dspace.core.Email Javadoc API documentation.

      13.1.5. LogManager

      The log manager consists of a method that creates a standard log header, and returns it as a string suitable for logging. Note that this class does not actually write anything to the logs; the log header returned should be logged directly by the sender using an appropriate Log4J call, so that information about where the logging is taking place is also stored.

      The level of logging can be configured on a per-package or per-class basis by editing /dspace/config/templates/log4j.properties and then executing /dspace/bin/install-configs. You will need to stop and restart Tomcat for the changes to take effect.

      A typical log entry looks like this:

      2002-11-11 08:11:32,903 INFO org.dspace.app.webui.servlet.DSpaceServlet @ anonymous:session_id=BD84E7C194C2CF4BD0EC3A6CAD0142BB:view_item:handle=1721.1/1686

      This is breaks down like this:

      Date and time, milliseconds

      @@ -68,11 +68,11 @@

      handle=1721.1/1686

      -

      The above format allows the logs to be easily parsed and analysed. The /dspace/bin/log-reporter script is a simple tool for analysing logs. Try:

      /dspace/bin/log-reporter --help

      It's a good idea to 'nice' this log reporter to avoid an impact on server performance.

      13.1.6. Utils

      Utils comtains miscellaneous utility method that are required in a variety of places throughout the code, and thus have no particular 'home' in a subsystem.

      13.2. Content Management API

      The content management API package org.dspace.content contains Java classes for reading and manipulating content stored in the DSpace system. This is the API that components in the application layer will probably use most.

      Classes corresponding to the main elements in the DSpace data model (Community, Collection, Item, Bundle and Bitstream) are sub-classes of the abstract class DSpaceObject. The Item object handles the Dublin Core metadata record.

      Each class generally has one or more static find methods, which are used to instantiate content objects. Constructors do not have public access and are just used internally. The reasons for this are:

      • "Constructing" an object may be misconstrued as the action of creating an object in the DSpace system, for example one might expect something like:

        Context dsContent = new Context();
        +              

      The above format allows the logs to be easily parsed and analysed. The /dspace/bin/log-reporter script is a simple tool for analysing logs. Try:

      /dspace/bin/log-reporter --help

      It's a good idea to 'nice' this log reporter to avoid an impact on server performance.

      13.1.6. Utils

      Utils comtains miscellaneous utility method that are required in a variety of places throughout the code, and thus have no particular 'home' in a subsystem.

      13.2. Content Management API

      The content management API package org.dspace.content contains Java classes for reading and manipulating content stored in the DSpace system. This is the API that components in the application layer will probably use most.

      Classes corresponding to the main elements in the DSpace data model (Community, Collection, Item, Bundle and Bitstream) are sub-classes of the abstract class DSpaceObject. The Item object handles the Dublin Core metadata record.

      Each class generally has one or more static find methods, which are used to instantiate content objects. Constructors do not have public access and are just used internally. The reasons for this are:

      • "Constructing" an object may be misconstrued as the action of creating an object in the DSpace system, for example one might expect something like:

        Context dsContent = new Context();
         Item myItem = new Item(context, id)

        to construct a brand new item in the system, rather than simply instantiating an in-memory instance of an object in the system.

      • find methods may often be called with invalid IDs, and return null in such a case. A constructor would have to throw an exception in this case. A null return value from a static method can in general be dealt with more simply in code.

      • If an instantiation representing the same underlying archival entity already exists, the find method can simply return that same instantiation to avoid multiple copies and any inconsistencies which might result.

      Collection, Bundle and Bitstream do not have create methods; rather, one has to create an object using the relevant method on the container. For example, to create a collection, one must invoke createCollection on the community that the collection is to appear in:

      Context context = new Context();
       Community existingCommunity = Community.find(context, 123);
      -Collection myNewCollection = existingCommunity.createCollection();

      The primary reason for this is for determining authorization. In order to know whether an e-person may create an object, the system must know which container the object is to be added to. It makes no sense to create a collection outside of a community, and the authorization system does not have a policy for that.

      Items are first created in the form of an implementation of InProgressSubmission. An InProgressSubmission represents an item under construction; once it is complete, it is installed into the main archive and added to the relevant collection by the InstallItem class. The org.dspace.content package provides an implementation of InProgressSubmission called WorkspaceItem; this is a simple implementation that contains some fields used by the Web submission UI. The org.dspace.workflow also contains an implementation called WorkflowItem which represents a submission undergoing a workflow process.

      In the previous chapter there is an overview of the item ingest process which should clarify the previous paragraph. Also see the section on the workflow system.

      Community and BitstreamFormat do have static create methods; one must be a site administrator to have authorization to invoke these.

      13.2.1. Other Classes

      Classes whose name begins DC are for manipulating Dublin Core metadata, as explained below.

      The FormatIdentifier class attempts to guess the bitstream format of a particular bitstream. Presently, it does this simply by looking at any file extension in the bitstream name and matching it up with the file extensions associated with bitstream formats. Hopefully this can be greatly improved in the future!

      The ItemIterator class allows items to be retrieved from storage one at a time, and is returned by methods that may return a large number of items, more than would be desirable to have in memory at once.

      The ItemComparator class is an implementation of the standard java.util.Comparator that can be used to compare and order items based on a particular Dublin Core metadata field.

      13.2.2. Modifications

      When creating, modifying or for whatever reason removing data with the content management API, it is important to know when changes happen in-memory, and when they occur in the physical DSpace storage.

      Primarily, one should note that no change made using a particular org.dspace.core.Context object will actually be made in the underlying storage unless complete or commit is invoked on that Context. If anything should go wrong during an operation, the context should always be aborted by invoking abort, to ensure that no inconsistent state is written to the storage.

      Additionally, some changes made to objects only happen in-memory. In these cases, invoking the update method lines up the in-memory changes to occur in storage when the Context is committed or completed. In general, methods that change any [meta]data field only make the change in-memory; methods that involve relationships with other objects in the system line up the changes to be committed with the context. See individual methods in the API Javadoc.

      Some examples to illustrate this are shown below:

      +Collection myNewCollection = existingCommunity.createCollection();

      The primary reason for this is for determining authorization. In order to know whether an e-person may create an object, the system must know which container the object is to be added to. It makes no sense to create a collection outside of a community, and the authorization system does not have a policy for that.

      Items are first created in the form of an implementation of InProgressSubmission. An InProgressSubmission represents an item under construction; once it is complete, it is installed into the main archive and added to the relevant collection by the InstallItem class. The org.dspace.content package provides an implementation of InProgressSubmission called WorkspaceItem; this is a simple implementation that contains some fields used by the Web submission UI. The org.dspace.workflow also contains an implementation called WorkflowItem which represents a submission undergoing a workflow process.

      In the previous chapter there is an overview of the item ingest process which should clarify the previous paragraph. Also see the section on the workflow system.

      Community and BitstreamFormat do have static create methods; one must be a site administrator to have authorization to invoke these.

      13.2.1. Other Classes

      Classes whose name begins DC are for manipulating Dublin Core metadata, as explained below.

      The FormatIdentifier class attempts to guess the bitstream format of a particular bitstream. Presently, it does this simply by looking at any file extension in the bitstream name and matching it up with the file extensions associated with bitstream formats. Hopefully this can be greatly improved in the future!

      The ItemIterator class allows items to be retrieved from storage one at a time, and is returned by methods that may return a large number of items, more than would be desirable to have in memory at once.

      The ItemComparator class is an implementation of the standard java.util.Comparator that can be used to compare and order items based on a particular Dublin Core metadata field.

      13.2.2. Modifications

      When creating, modifying or for whatever reason removing data with the content management API, it is important to know when changes happen in-memory, and when they occur in the physical DSpace storage.

      Primarily, one should note that no change made using a particular org.dspace.core.Context object will actually be made in the underlying storage unless complete or commit is invoked on that Context. If anything should go wrong during an operation, the context should always be aborted by invoking abort, to ensure that no inconsistent state is written to the storage.

      Additionally, some changes made to objects only happen in-memory. In these cases, invoking the update method lines up the in-memory changes to occur in storage when the Context is committed or completed. In general, methods that change any [meta]data field only make the change in-memory; methods that involve relationships with other objects in the system line up the changes to be committed with the context. See individual methods in the API Javadoc.

      Some examples to illustrate this are shown below:

      Context context = new Context();
       Bitstream b = Bitstream.find(context, 1234);
      @@ -111,7 +111,7 @@ context.complete();

      The bitstream will be included in the bundle, since update doesn't need to be called

      -

      13.2.3. What's In Memory?

      Instantiating some content objects also causes other content objects to be loaded into memory.

      Instantiating a Bitstream object causes the appropriate BitstreamFormat object to be instantiated. Of course the Bitstream object does not load the underlying bits from the bitstream store into memory!

      Instantiating a Bundle object causes the appropriate Bitstream objects (and hence BitstreamFormats) to be instantiated.

      Instantiating an Item object causes the appropriate Bundle objects (etc.) and hence BitstreamFormats to be instantiated. All the Dublin Core metadata associated with that item are also loaded into memory.

      The reasoning behind this is that for the vast majority of cases, anyone instantiating an item object is going to need information about the bundles and bitstreams within it, and this methodology allows that to be done in the most efficient way and is simple for the caller. For example, in the Web UI, the servlet (controller) needs to pass information about an item to the viewer (JSP), which needs to have all the information in-memory to display the item without further accesses to the database which may cause errors mid-display.

      You do not need to worry about multiple in-memory instantiations of the same object, or any inconsistenties that may result; the Context object keeps a cache of the instantiated objects. The find methods of classes in org.dspace.content will use a cached object if one exists.

      It may be that in enough cases this automatic instantiation of contained objects reduces performance in situations where it is important; if this proves to be true the API may be changed in the future to include a loadContents method or somesuch, or perhaps a Boolean parameter indicating what to do will be added to the find methods.

      When a Context object is completed, aborted or garbage-collected, any objects instantiated using that context are invalidated and should not be used (in much the same way an AWT button is invalid if the window containing it is destroyed).

      13.2.4. Dublin Core Metadata

      The DCValue class is a simple container that represents a single Dublin Core element, optional qualifier, value and language. Note that since DSpace 1.4 the MetadataValue and associated classes are preferred (see Support for Other Metadata Schemas). The other classes starting with DC are utility classes for handling types of data in Dublin Core, such as people's names and dates. As supplied, the DSpace registry of elements and qualifiers corresponds to the Library Application Profile for Dublin Core. It should be noted that these utility classes assume that the values will be in a certain syntax, which will be true for all data generated within the DSpace system, but since Dublin Core does not always define strict syntax, this may not be true for Dublin Core originating outside DSpace.

      Below is the specific syntax that DSpace expects various fields to adhere to:

      +

      13.2.3. What's In Memory?

      Instantiating some content objects also causes other content objects to be loaded into memory.

      Instantiating a Bitstream object causes the appropriate BitstreamFormat object to be instantiated. Of course the Bitstream object does not load the underlying bits from the bitstream store into memory!

      Instantiating a Bundle object causes the appropriate Bitstream objects (and hence BitstreamFormats) to be instantiated.

      Instantiating an Item object causes the appropriate Bundle objects (etc.) and hence BitstreamFormats to be instantiated. All the Dublin Core metadata associated with that item are also loaded into memory.

      The reasoning behind this is that for the vast majority of cases, anyone instantiating an item object is going to need information about the bundles and bitstreams within it, and this methodology allows that to be done in the most efficient way and is simple for the caller. For example, in the Web UI, the servlet (controller) needs to pass information about an item to the viewer (JSP), which needs to have all the information in-memory to display the item without further accesses to the database which may cause errors mid-display.

      You do not need to worry about multiple in-memory instantiations of the same object, or any inconsistenties that may result; the Context object keeps a cache of the instantiated objects. The find methods of classes in org.dspace.content will use a cached object if one exists.

      It may be that in enough cases this automatic instantiation of contained objects reduces performance in situations where it is important; if this proves to be true the API may be changed in the future to include a loadContents method or somesuch, or perhaps a Boolean parameter indicating what to do will be added to the find methods.

      When a Context object is completed, aborted or garbage-collected, any objects instantiated using that context are invalidated and should not be used (in much the same way an AWT button is invalid if the window containing it is destroyed).

      13.2.4. Dublin Core Metadata

      The DCValue class is a simple container that represents a single Dublin Core element, optional qualifier, value and language. Note that since DSpace 1.4 the MetadataValue and associated classes are preferred (see Support for Other Metadata Schemas). The other classes starting with DC are utility classes for handling types of data in Dublin Core, such as people's names and dates. As supplied, the DSpace registry of elements and qualifiers corresponds to the Library Application Profile for Dublin Core. It should be noted that these utility classes assume that the values will be in a certain syntax, which will be true for all data generated within the DSpace system, but since Dublin Core does not always define strict syntax, this may not be true for Dublin Core originating outside DSpace.

      Below is the specific syntax that DSpace expects various fields to adhere to:

      Element

      @@ -179,7 +179,7 @@ context.complete();

      DCSeriesNumber

      -

      13.2.5. Support for Other Metadata Schemas

      To support additional metadata schemas a new set of metadata classes have been added. These are backwards compatible with the DC classes and should be used rather than the DC specific classes whereever possible. Note that hierarchical metadata schemas are not currently supported, only flat schemas (such as DC) are able to be defined.

      The MetadataField class describes a metadata field by schema, element and optional qualifier. The value of a MetadataField is described by a MetadataValue which is roughly equivalent to the older DCValue class. Finally the MetadataSchema class is used to describe supported schemas. The DC schema is supported by default. Refer to the javadoc for method details.

      13.2.6. Packager Plugins

      The Packager plugins let you ingest a package to create a new DSpace Object, and disseminate a content Object as a package. A package is simply a data stream; its contents are defined by the packager plugin's implementation.

      To ingest an object, which is currently only implemented for Items, the sequence of operations is:

      1. Get an instance of the chosen PackageIngester plugin.

      2. Locate a Collection in which to create the new Item.

      3. Call its ingest method, and get back a WorkspaceItem.

      The packager also takes a PackageParameters object, which is a property list of parameters specific to that packager which might be passed in from the user interface.

      Here is an example package ingestion code fragment:

      Collection collection =  find target collection
      +              

      13.2.5. Support for Other Metadata Schemas

      To support additional metadata schemas a new set of metadata classes have been added. These are backwards compatible with the DC classes and should be used rather than the DC specific classes whereever possible. Note that hierarchical metadata schemas are not currently supported, only flat schemas (such as DC) are able to be defined.

      The MetadataField class describes a metadata field by schema, element and optional qualifier. The value of a MetadataField is described by a MetadataValue which is roughly equivalent to the older DCValue class. Finally the MetadataSchema class is used to describe supported schemas. The DC schema is supported by default. Refer to the javadoc for method details.

      13.2.6. Packager Plugins

      The Packager plugins let you ingest a package to create a new DSpace Object, and disseminate a content Object as a package. A package is simply a data stream; its contents are defined by the packager plugin's implementation.

      To ingest an object, which is currently only implemented for Items, the sequence of operations is:

      1. Get an instance of the chosen PackageIngester plugin.

      2. Locate a Collection in which to create the new Item.

      3. Call its ingest method, and get back a WorkspaceItem.

      The packager also takes a PackageParameters object, which is a property list of parameters specific to that packager which might be passed in from the user interface.

      Here is an example package ingestion code fragment:

      Collection collection =  find target collection
            InputStream source = ...;
            PackageParameters params = ...;
            String license = null;
      @@ -194,10 +194,10 @@ context.complete();
      PackageIngester dip = (PackageDisseminator) PluginManager .getNamedPlugin(PackageDisseminator.class, packageType); - dip.disseminate(context, dso, params, destination);

      13.3. Plugin Manager

      The PluginManager is a very simple component container. It creates and organizes components (plugins), and helps select a plugin in the cases where there are many possible choices. It also gives some limited control over the lifecycle of a plugin.

      13.3.1. Concepts

      The following terms are important in understanding the rest of this section:

      • Plugin Interface A Java interface, the defining characteristic of a plugin. The consumer of a plugin asks for its plugin by interface.

      • Plugin a.k.a. Component, this is an instance of a class that implements a certain interface. It is interchangeable with other implementations, so that any of them may be "plugged in", hence the name. A Plugin is an instance of any class that implements the plugin interface.

      • Implementation class The actual class of a plugin. It may implement several plugin interfaces, but must implement at least one.

      • Name Plugin implementations can be distinguished from each other by name, a short String meant to symbolically represent the implementation class. They are called "named plugins". Plugins only need to be named when the caller has to make an active choice between them.

      • SelfNamedPlugin class Plugins that extend the SelfNamedPlugin class can take advantage of additional features of the Plugin Manager. Any class can be managed as a plugin, so it is not necessary, just possible.

      • Reusable Reusable plugins are only instantiated once, and the Plugin Manager returns the same (cached) instance whenever that same plugin is requested again. This behavior can be turned off if desired.

      13.3.2. Using the Plugin Manager

      13.3.2.1. Types of Plugin

      The Plugin Manager supports three different patterns of usage:

      1. Singleton Plugins There is only one implementation class for the plugin. It is indicated in the configuration. This type of plugin chooses an implementation of a service, for the entire system, at configuration time. Your application just fetches the plugin for that interface and gets the configured-in choice. See the getSinglePlugin() method.

      2. Sequence Plugins You need a sequence or series of plugins, to implement a mechanism like Stackable Authentication or a pipeline, where each plugin is called in order to contribute its implementation of a process to the whole. The Plugin Manager supports this by letting you configure a sequence of plugins for a given interface. See the getPluginSequence() method.

      3. Named Plugins Use a named plugin when the application has to choose one plugin implementation out of many available ones. Each implementation is bound to one or more names (symbolic identifiers) in the configuration.

        The name is just a string to be associated with the combination of implementation class and interface. It may contain any characters except for comma (,) and equals (=). It may contain embedded spaces. Comma is a special character used to separate names in the configuration entry.

        Names must be unique within an interface: No plugin classes implementing the same interface may have the same name.

        Think of plugin names as a controlled vocabulary -- for a given plugin interface, there is a set of names for which plugins can be found. The designer of a Named Plugin interface is responsible for deciding what the name means and how to derive it; for example, names of metadata crosswalk plugins may describe the target metadata format.

        See the getNamedPlugin() method and the getPluginNames() methods.

      13.3.2.2. Self-Named Plugins

      Named plugins can get their names either from the configuration or, for a variant called self-named plugins, from within the plugin itself.

      Self-named plugins are necessary because one plugin implementation can be configured itself to take on many "personalities", each of which deserves its own plugin name. It is already managing its own configuration for each of these personalities, so it makes sense to allow it to export them to the Plugin Manager rather than expecting the plugin configuration to be kept in sync with it own configuration.

      An example helps clarify the point: There is a named plugin that does crosswalks, call it CrosswalkPlugin. It has several implementations that crosswalk some kind of metadata. Now we add a new plugin which uses XSL stylesheet transformation (XSLT) to crosswalk many types of metadata -- so the single plugin can act like many different plugins, depending on which stylesheet it employs.

      This XSLT-crosswalk plugin has its own configuration that maps a Plugin Name to a stylesheet -- it has to, since of course the Plugin Manager doesn't know anything about stylesheets. It becomes a self-named plugin, so that it reads its configuration data, gets the list of names to which it can respond, and passes those on to the Plugin Manager.

      When the Plugin Manager creates an instance of the XSLT-crosswalk, it records the Plugin Name that was responsible for that instance. The plugin can look at that Name later in order to configure itself correctly for the Name that created it. This mechanism is all part of the SelfNamedPlugin class which is part of any self-named plugin.

      13.3.2.3. Obtaining a Plugin Instance

      The most common thing you will do with the Plugin Manager is obtain an instance of a plugin. To request a plugin, you must always specify the plugin interface you want. You will also supply a name when asking for a named plugin.

      A sequence plugin is returned as an array of Objects since it is actually an ordered list of plugins.

      See the getSinglePlugin(), getPluginSequence(), getNamedPlugin() methods.

      13.3.2.4. Lifecycle Management

      When PluginManager fulfills a request for a plugin, it checks whether the implementation class is reusable; if so, it creates one instance of that class and returns it for every subsequent request for that interface and name. If it is not reusable, a new instance is always created.

      For reasons that will become clear later, the manager actually caches a separate instance of an implementation class for each name under which it can be requested.

      You can ask the PluginManager to forget about (decache) a plugin instance, by releasing it. See the PluginManager.releasePlugin() method. The manager will drop its reference to the plugin so the garbage collector can reclaim it. The next time that plugin/name combination is requested, it will create a new instance.

      13.3.2.5. Getting Meta-Information

      The PluginManager can list all the names of the Named Plugins which implement an interface. You may need this, for example, to implement a menu in a user interface that presents a choice among all possible plugins. See the getPluginNames() method.

      Note that it only returns the plugin name, so if you need a more sophisticated or meaningful "label" (i.e. a key into the I18N message catalog) then you should add a method to the plugin itself to return that.

      13.3.3. Implementation

      Note: The PluginManager refers to interfaces and classes internally only by their names whenever possible, to avoid loading classes until absolutely necessary (i.e. to create an instance). As you'll see below, self-named classes still have to be loaded to query them for names, but for the most part it can avoid loading classes. This saves a lot of time at start-up and keeps the JVM memory footprint down, too. As the Plugin Manager gets used for more classes, this will become a greater concern.

      The only downside of "on-demand" loading is that errors in the configuration don't get discovered right away. The solution is to call the checkConfiguration() method after making any changes to the configuration.

      13.3.3.1. PluginManager Class

      The PluginManager class is your main interface to the Plugin Manager. It behaves like a factory class that never gets instantiated, so its public methods are static.

      Here are the public methods, followed by explanations:

      • + dip.disseminate(context, dso, params, destination);

      13.3. Plugin Manager

      The PluginManager is a very simple component container. It creates and organizes components (plugins), and helps select a plugin in the cases where there are many possible choices. It also gives some limited control over the lifecycle of a plugin.

      13.3.1. Concepts

      The following terms are important in understanding the rest of this section:

      • Plugin Interface A Java interface, the defining characteristic of a plugin. The consumer of a plugin asks for its plugin by interface.

      • Plugin a.k.a. Component, this is an instance of a class that implements a certain interface. It is interchangeable with other implementations, so that any of them may be "plugged in", hence the name. A Plugin is an instance of any class that implements the plugin interface.

      • Implementation class The actual class of a plugin. It may implement several plugin interfaces, but must implement at least one.

      • Name Plugin implementations can be distinguished from each other by name, a short String meant to symbolically represent the implementation class. They are called "named plugins". Plugins only need to be named when the caller has to make an active choice between them.

      • SelfNamedPlugin class Plugins that extend the SelfNamedPlugin class can take advantage of additional features of the Plugin Manager. Any class can be managed as a plugin, so it is not necessary, just possible.

      • Reusable Reusable plugins are only instantiated once, and the Plugin Manager returns the same (cached) instance whenever that same plugin is requested again. This behavior can be turned off if desired.

      13.3.2. Using the Plugin Manager

      13.3.2.1. Types of Plugin

      The Plugin Manager supports three different patterns of usage:

      1. Singleton Plugins There is only one implementation class for the plugin. It is indicated in the configuration. This type of plugin chooses an implementation of a service, for the entire system, at configuration time. Your application just fetches the plugin for that interface and gets the configured-in choice. See the getSinglePlugin() method.

      2. Sequence Plugins You need a sequence or series of plugins, to implement a mechanism like Stackable Authentication or a pipeline, where each plugin is called in order to contribute its implementation of a process to the whole. The Plugin Manager supports this by letting you configure a sequence of plugins for a given interface. See the getPluginSequence() method.

      3. Named Plugins Use a named plugin when the application has to choose one plugin implementation out of many available ones. Each implementation is bound to one or more names (symbolic identifiers) in the configuration.

        The name is just a string to be associated with the combination of implementation class and interface. It may contain any characters except for comma (,) and equals (=). It may contain embedded spaces. Comma is a special character used to separate names in the configuration entry.

        Names must be unique within an interface: No plugin classes implementing the same interface may have the same name.

        Think of plugin names as a controlled vocabulary -- for a given plugin interface, there is a set of names for which plugins can be found. The designer of a Named Plugin interface is responsible for deciding what the name means and how to derive it; for example, names of metadata crosswalk plugins may describe the target metadata format.

        See the getNamedPlugin() method and the getPluginNames() methods.

      13.3.2.2. Self-Named Plugins

      Named plugins can get their names either from the configuration or, for a variant called self-named plugins, from within the plugin itself.

      Self-named plugins are necessary because one plugin implementation can be configured itself to take on many "personalities", each of which deserves its own plugin name. It is already managing its own configuration for each of these personalities, so it makes sense to allow it to export them to the Plugin Manager rather than expecting the plugin configuration to be kept in sync with it own configuration.

      An example helps clarify the point: There is a named plugin that does crosswalks, call it CrosswalkPlugin. It has several implementations that crosswalk some kind of metadata. Now we add a new plugin which uses XSL stylesheet transformation (XSLT) to crosswalk many types of metadata -- so the single plugin can act like many different plugins, depending on which stylesheet it employs.

      This XSLT-crosswalk plugin has its own configuration that maps a Plugin Name to a stylesheet -- it has to, since of course the Plugin Manager doesn't know anything about stylesheets. It becomes a self-named plugin, so that it reads its configuration data, gets the list of names to which it can respond, and passes those on to the Plugin Manager.

      When the Plugin Manager creates an instance of the XSLT-crosswalk, it records the Plugin Name that was responsible for that instance. The plugin can look at that Name later in order to configure itself correctly for the Name that created it. This mechanism is all part of the SelfNamedPlugin class which is part of any self-named plugin.

      13.3.2.3. Obtaining a Plugin Instance

      The most common thing you will do with the Plugin Manager is obtain an instance of a plugin. To request a plugin, you must always specify the plugin interface you want. You will also supply a name when asking for a named plugin.

      A sequence plugin is returned as an array of Objects since it is actually an ordered list of plugins.

      See the getSinglePlugin(), getPluginSequence(), getNamedPlugin() methods.

      13.3.2.4. Lifecycle Management

      When PluginManager fulfills a request for a plugin, it checks whether the implementation class is reusable; if so, it creates one instance of that class and returns it for every subsequent request for that interface and name. If it is not reusable, a new instance is always created.

      For reasons that will become clear later, the manager actually caches a separate instance of an implementation class for each name under which it can be requested.

      You can ask the PluginManager to forget about (decache) a plugin instance, by releasing it. See the PluginManager.releasePlugin() method. The manager will drop its reference to the plugin so the garbage collector can reclaim it. The next time that plugin/name combination is requested, it will create a new instance.

      13.3.2.5. Getting Meta-Information

      The PluginManager can list all the names of the Named Plugins which implement an interface. You may need this, for example, to implement a menu in a user interface that presents a choice among all possible plugins. See the getPluginNames() method.

      Note that it only returns the plugin name, so if you need a more sophisticated or meaningful "label" (i.e. a key into the I18N message catalog) then you should add a method to the plugin itself to return that.

      13.3.3. Implementation

      Note: The PluginManager refers to interfaces and classes internally only by their names whenever possible, to avoid loading classes until absolutely necessary (i.e. to create an instance). As you'll see below, self-named classes still have to be loaded to query them for names, but for the most part it can avoid loading classes. This saves a lot of time at start-up and keeps the JVM memory footprint down, too. As the Plugin Manager gets used for more classes, this will become a greater concern.

      The only downside of "on-demand" loading is that errors in the configuration don't get discovered right away. The solution is to call the checkConfiguration() method after making any changes to the configuration.

      13.3.3.1. PluginManager Class

      The PluginManager class is your main interface to the Plugin Manager. It behaves like a factory class that never gets instantiated, so its public methods are static.

      Here are the public methods, followed by explanations:

      • static Object getSinglePlugin(Class intface)
              throws PluginConfigurationError;
        -

        Returns an instance of the singleton (single) plugin implementing the given interface. There must be exactly one single plugin configured for this interface, otherwise the PluginConfigurationError is thrown.

        Note that this is the only "get plugin" method which throws an exception. It is typically used at initialization time to set up a permanent part of the system so any failure is fatal.

        See the plugin.single configuration key for configuration details.

      • static Object[] getPluginSequence(Class intface); Returns instances of all plugins that implement the interface intface, in an Array. Returns an empty array if no there are no matching plugins.

        The order of the plugins in the array is the same as their class names in the configuration's value field.

        See the plugin.sequence configuration key for configuration details.

      • static Object getNamedPlugin(Class intface, String name); Returns an instance of a plugin that implements the interface intface and is bound to a name matching name. If there is no matching plugin, it returns null. The names are matched by String.equals().

        See the plugin.named and plugin.selfnamed configuration keys for configuration details.

      • static void releasePlugin(Object plugin); Tells the Plugin Manager to let go of any references to a reusable plugin, to prevent it from being given out again and to allow the object to be garbage-collected. Call this when a plugin instance must be taken out of circulation.

      • static String[] getAllPluginNames(Class intface); Returns all of the names under which a named plugin implementing the interface intface can be requested (with getNamedPlugin()). The array is empty if there are no matches. Use this to populate a menu of plugins for interactive selection, or to document what the possible choices are.

        The names are NOT returned in any predictable order, so you may wish to sort them first.

        Note: Since a plugin may be bound to more than one name, the list of names this returns does not represent the list of plugins. To get the list of unique implementation classes corresponding to the names, you might have to eliminate duplicates (i.e. create a Set of classes).

      • static void checkConfiguration(); Validates the keys in the DSpace ConfigurationManager pertaining to the Plugin Manager and reports any errors by logging them. This is intended to be used interactively by a DSpace administrator, to check the configuration file after modifying it. See the section about validating configuration for details.

      13.3.3.2. SelfNamedPlugin Class

      A named plugin implementation must extend this class if it wants to supply its own Plugin Name(s). See Self-Named Plugins for why this is sometimes necessary.

      abstract class SelfNamedPlugin
      +            

      Returns an instance of the singleton (single) plugin implementing the given interface. There must be exactly one single plugin configured for this interface, otherwise the PluginConfigurationError is thrown.

      Note that this is the only "get plugin" method which throws an exception. It is typically used at initialization time to set up a permanent part of the system so any failure is fatal.

      See the plugin.single configuration key for configuration details.

    • static Object[] getPluginSequence(Class intface); Returns instances of all plugins that implement the interface intface, in an Array. Returns an empty array if no there are no matching plugins.

      The order of the plugins in the array is the same as their class names in the configuration's value field.

      See the plugin.sequence configuration key for configuration details.

    • static Object getNamedPlugin(Class intface, String name); Returns an instance of a plugin that implements the interface intface and is bound to a name matching name. If there is no matching plugin, it returns null. The names are matched by String.equals().

      See the plugin.named and plugin.selfnamed configuration keys for configuration details.

    • static void releasePlugin(Object plugin); Tells the Plugin Manager to let go of any references to a reusable plugin, to prevent it from being given out again and to allow the object to be garbage-collected. Call this when a plugin instance must be taken out of circulation.

    • static String[] getAllPluginNames(Class intface); Returns all of the names under which a named plugin implementing the interface intface can be requested (with getNamedPlugin()). The array is empty if there are no matches. Use this to populate a menu of plugins for interactive selection, or to document what the possible choices are.

      The names are NOT returned in any predictable order, so you may wish to sort them first.

      Note: Since a plugin may be bound to more than one name, the list of names this returns does not represent the list of plugins. To get the list of unique implementation classes corresponding to the names, you might have to eliminate duplicates (i.e. create a Set of classes).

    • static void checkConfiguration(); Validates the keys in the DSpace ConfigurationManager pertaining to the Plugin Manager and reports any errors by logging them. This is intended to be used interactively by a DSpace administrator, to check the configuration file after modifying it. See the section about validating configuration for details.

    • 13.3.3.2. SelfNamedPlugin Class

      A named plugin implementation must extend this class if it wants to supply its own Plugin Name(s). See Self-Named Plugins for why this is sometimes necessary.

      abstract class SelfNamedPlugin
       {
           // Your class must override this:
           // Return all names by which this plugin should be known.
      @@ -207,20 +207,20 @@ context.complete();
      // This is implemented by SelfNamedPlugin and should NOT be overridden. public String getPluginInstanceName(); -}

      13.3.3.3. Errors and Exceptions

      public class PluginConfigurationError extends Error
      +}

      13.3.3.3. Errors and Exceptions

      public class PluginConfigurationError extends Error
       {
           public PluginConfigurationError(String message);
       }

      An error of this type means the caller asked for a single plugin, but either there was no single plugin configured matching that interface, or there was more than one. Either case causes a fatal configuration error.

      public class PluginInstantiationException extends RuntimeException
       {
           public PluginInstantiationException(String msg, Throwable cause)
      -}

      This exception indicates a fatal error when instantiating a plugin class. It should only be thrown when something unexpected happens in the course of instantiating a plugin, e.g. an access error, class not found, etc. Simply not finding a class in the configuration is not an exception.

      This is a RuntimeException so it doesn't have to be declared, and can be passed all the way up to a generalized fatal exception handler.

      13.3.4. Configuring Plugins

      All of the Plugin Manager's configuration comes from the DSpace Configuration Manager, which is a Java Properties map. You can configure these characteristics of each plugin:

      1. Interface: Classname of the Java interface which defines the plugin, including package name. e.g. org.dspace.app.mediafilter.FormatFilter

      2. Implementation Class: Classname of the implementation class, including package. e.g. org.dspace.app.mediafilter.PDFFilter

      3. Names: (Named plugins only) There are two ways to bind names to plugins: listing them in the value of a plugin.named.interface key, or configuring a class in plugin.selfnamed.interface which extends the SelfNamedPlugin class.

      4. Reusable option: (Optional) This is declared in a plugin.reusable configuration line. Plugins are reusable by default, so you only need to configure the non-reusable ones.

      13.3.4.1. Configuring Singleton (Single) Plugins

      This entry configures a Single Plugin for use with getSinglePlugin():

      +}

      This exception indicates a fatal error when instantiating a plugin class. It should only be thrown when something unexpected happens in the course of instantiating a plugin, e.g. an access error, class not found, etc. Simply not finding a class in the configuration is not an exception.

      This is a RuntimeException so it doesn't have to be declared, and can be passed all the way up to a generalized fatal exception handler.

      13.3.4. Configuring Plugins

      All of the Plugin Manager's configuration comes from the DSpace Configuration Manager, which is a Java Properties map. You can configure these characteristics of each plugin:

      1. Interface: Classname of the Java interface which defines the plugin, including package name. e.g. org.dspace.app.mediafilter.FormatFilter

      2. Implementation Class: Classname of the implementation class, including package. e.g. org.dspace.app.mediafilter.PDFFilter

      3. Names: (Named plugins only) There are two ways to bind names to plugins: listing them in the value of a plugin.named.interface key, or configuring a class in plugin.selfnamed.interface which extends the SelfNamedPlugin class.

      4. Reusable option: (Optional) This is declared in a plugin.reusable configuration line. Plugins are reusable by default, so you only need to configure the non-reusable ones.

      13.3.4.1. Configuring Singleton (Single) Plugins

      This entry configures a Single Plugin for use with getSinglePlugin():

      plugin.single.interface = classname

      For example, this configures the class org.dspace.checker.SimpleDispatcher as the plugin for interface org.dspace.checker.BitstreamDispatcher:

      plugin.single.org.dspace.checker.BitstreamDispatcher=org.dspace.checker.SimpleDispatcher -

      13.3.4.2. Configuring Sequence of Plugins

      This kind of configuration entry defines a Sequence Plugin, which is bound to a sequence of implementation classes. The key identifies the interface, and the value is a comma-separated list of classnames:

      plugin.sequence.interface = classname, ...

      The plugins are returned by getPluginSequence() in the same order as their classes are listed in the configuration value.

      For example, this entry configures Stackable Authentication with three implementation classes:

      plugin.sequence.org.dspace.eperson.AuthenticationMethod = \
      +        

      13.3.4.2. Configuring Sequence of Plugins

      This kind of configuration entry defines a Sequence Plugin, which is bound to a sequence of implementation classes. The key identifies the interface, and the value is a comma-separated list of classnames:

      plugin.sequence.interface = classname, ...

      The plugins are returned by getPluginSequence() in the same order as their classes are listed in the configuration value.

      For example, this entry configures Stackable Authentication with three implementation classes:

      plugin.sequence.org.dspace.eperson.AuthenticationMethod = \
                   org.dspace.eperson.X509Authentication, \
                   org.dspace.eperson.PasswordAuthentication, \
      -            edu.mit.dspace.MITSpecialGroup

      13.3.4.3. Configuring Named Plugins

      There are two ways of configuring named plugins:

      1. Plugins Named in the Configuration A named plugin which gets its name(s) from the configuration is listed in this kind of entry:

        + edu.mit.dspace.MITSpecialGroup

      13.3.4.3. Configuring Named Plugins

      There are two ways of configuring named plugins:

      1. Plugins Named in the Configuration A named plugin which gets its name(s) from the configuration is listed in this kind of entry:

        plugin.named.interface = classname = name [ , name.. ] [ classname = name.. ]

        The syntax of the configuration value is: classname, followed by an equal-sign and then at least one plugin name. Bind more names to the same implementation class by by adding them here, separated by commas. Names may include any character other than comma (,) and equal-sign (=).

        For example, this entry creates one plugin with the names GIF, JPEG, and image/png, and another with the name TeX:

        plugin.named.org.dspace.app.mediafilter.MediaFilter = \
                 org.dspace.app.mediafilter.JPEGFilter = GIF, JPEG, image/png \
        @@ -234,11 +234,11 @@ crosswalk.dissemination.stylesheet.MODS = xwalk/mods.xsl
         plugin.selfnamed.crosswalk.org.dspace.content.metadata.DisseminationCrosswalk = \
                 org.dspace.content.metadata.MODSDisseminationCrosswalk, \
                 org.dspace.content.metadata.XsltDisseminationCrosswalk
        -

        NOTE: Since there can only be one key with plugin.selfnamed. followed by the interface name in the configuration, all of the plugin implementations must be configured in that entry. The MODSDisseminationCrosswalk class is only shown to illustrate this point.

      13.3.4.4. Configuring the Reusable Status of a Plugin

      Plugins are assumed to be reusable by default, so you only need to configure the ones which you would prefer not to be reusable. The format is as follows:

      +

      NOTE: Since there can only be one key with plugin.selfnamed. followed by the interface name in the configuration, all of the plugin implementations must be configured in that entry. The MODSDisseminationCrosswalk class is only shown to illustrate this point.

      13.3.4.4. Configuring the Reusable Status of a Plugin

      Plugins are assumed to be reusable by default, so you only need to configure the ones which you would prefer not to be reusable. The format is as follows:

      plugin.reusable.classname = ( true | false )

      For example, this marks the PDF plugin from the example above as non-reusable:

      plugin.reusable.org.dspace.app.mediafilter.PDFFilter = false -

      13.3.5. Validating the Configuration

      The Plugin Manager is very sensitive to mistakes in the DSpace configuration. Subtle errors can have unexpected consequnces that are hard to detect: for example, if there are two "plugin.single" entries for the same interface, one of them will be silently ignored.

      To validate the Plugin Manager configuration, call the PluginManager.checkConfiguration() method. It looks for the following mistakes:

      • Any duplicate keys starting with "plugin.".

      • Keys starting plugin.single, plugin.sequence, plugin.named, and plugin.selfnamed that don't include a valid interface.

      • Classnames in the configuration values that don't exist, or don't implement the plugin interface in the key.

      • Classes declared in plugin.selfnamed lines that don't extend the SelfNamedPlugin class.

      • Any name collisions among named plugins for a given interface.

      • Named plugin configuration entries without any names.

      • Classnames mentioned in plugin.reusable keys must exist and have been configured as a plugin implementation class.

      The PluginManager class also has a main() method which simply runs checkConfiguration(), so you can invoke it from the command line to test the validity of plugin configuration changes.

      Eventually, someone should develop a general configuration-file sanity checker for DSpace, which would just call PluginManager.checkConfiguration().

      13.3.6. Use Cases

      Here are some usage examples to illustrate how the Plugin Manager works.

      13.3.6.1. Managing the MediaFilter plugins transparently

      The existing DSpace 1.3 MediaFilterManager implementation has been largely replaced by the Plugin Manager. The MediaFilter classes become plugins named in the configuration. Refer to the configuration guide for further details.

      13.3.6.2. A Singleton Plugin

      This shows how to configure and access a single anonymous plugin, such as the BitstreamDispatcher plugin:

      Configuration:

      +

      13.3.5. Validating the Configuration

      The Plugin Manager is very sensitive to mistakes in the DSpace configuration. Subtle errors can have unexpected consequnces that are hard to detect: for example, if there are two "plugin.single" entries for the same interface, one of them will be silently ignored.

      To validate the Plugin Manager configuration, call the PluginManager.checkConfiguration() method. It looks for the following mistakes:

      • Any duplicate keys starting with "plugin.".

      • Keys starting plugin.single, plugin.sequence, plugin.named, and plugin.selfnamed that don't include a valid interface.

      • Classnames in the configuration values that don't exist, or don't implement the plugin interface in the key.

      • Classes declared in plugin.selfnamed lines that don't extend the SelfNamedPlugin class.

      • Any name collisions among named plugins for a given interface.

      • Named plugin configuration entries without any names.

      • Classnames mentioned in plugin.reusable keys must exist and have been configured as a plugin implementation class.

      The PluginManager class also has a main() method which simply runs checkConfiguration(), so you can invoke it from the command line to test the validity of plugin configuration changes.

      Eventually, someone should develop a general configuration-file sanity checker for DSpace, which would just call PluginManager.checkConfiguration().

      13.3.6. Use Cases

      Here are some usage examples to illustrate how the Plugin Manager works.

      13.3.6.1. Managing the MediaFilter plugins transparently

      The existing DSpace 1.3 MediaFilterManager implementation has been largely replaced by the Plugin Manager. The MediaFilter classes become plugins named in the configuration. Refer to the configuration guide for further details.

      13.3.6.2. A Singleton Plugin

      This shows how to configure and access a single anonymous plugin, such as the BitstreamDispatcher plugin:

      Configuration:

      plugin.single.org.dspace.checker.BitstreamDispatcher=org.dspace.checker.SimpleDispatcher

      The following code fragment shows how dispatcher, the service object, is initialized and used:

      BitstreamDispatcher dispatcher =
          
      @@ -254,7 +254,7 @@ while (id != BitstreamDispatcher.SENTINEL)
            */
       
            id = dispatcher.next();
      -}

      13.3.6.3. Plugin that Names Itself

      This crosswalk plugin acts like many different plugins since it is configured with different XSL translation stylesheets. Since it already gets each of its stylesheets out of the DSpace configuration, it makes sense to have the plugin give PluginManager the names to which it answers instead of forcing someone to configure those names in two places (and try to keep them synchronized).

      NOTE: Remember how getPlugin() caches a separate instance of an implementation class for every name bound to it? This is why: the instance can look at the name under which it was invoked and configure itself specifically for that name. Since the instance for each name might be different, the Plugin Manager has to cache a separate instance for each name.

      Here is the configuration file listing both the plugin's own configuration and the PluginManager config line:

      crosswalk.dissemination.stylesheet.DublinCore = xwalk/TESTDIM-2-DC_copy.xsl
      +}

      13.3.6.3. Plugin that Names Itself

      This crosswalk plugin acts like many different plugins since it is configured with different XSL translation stylesheets. Since it already gets each of its stylesheets out of the DSpace configuration, it makes sense to have the plugin give PluginManager the names to which it answers instead of forcing someone to configure those names in two places (and try to keep them synchronized).

      NOTE: Remember how getPlugin() caches a separate instance of an implementation class for every name bound to it? This is why: the instance can look at the name under which it was invoked and configure itself specifically for that name. Since the instance for each name might be different, the Plugin Manager has to cache a separate instance for each name.

      Here is the configuration file listing both the plugin's own configuration and the PluginManager config line:

      crosswalk.dissemination.stylesheet.DublinCore = xwalk/TESTDIM-2-DC_copy.xsl
       crosswalk.dissemination.stylesheet.MODS = xwalk/mods.xsl
       
       plugin.selfnamed.org.dspace.content.metadata.DisseminationCrosswalk = \
      @@ -285,7 +285,7 @@ plugin.selfnamed.org.dspace.content.metadata.DisseminationCrosswalk = \
               return ConfigurationManager.getProperty(prefix +
       	getPluginInstanceName());
           }
      -}

      13.3.6.4. Stackable Authentication

      The Stackable Authentication mechanism needs to know all of the plugins configured for the interface, in the order of configuration, since order is significant. It gets a Sequence Plugin from the Plugin Manager. Refer to the Configuration Section on Stackable Authentication for further details.

      13.4. Workflow System

      The primary classes are:

      +}

      13.3.6.4. Stackable Authentication

      The Stackable Authentication mechanism needs to know all of the plugins configured for the interface, in the order of configuration, since order is significant. It gets a Sequence Plugin from the Plugin Manager. Refer to the Configuration Section on Stackable Authentication for further details.

      13.4. Workflow System

      The primary classes are:

      org.dspace.content.WorkspaceItem

      @@ -321,7 +321,7 @@ plugin.selfnamed.org.dspace.content.metadata.DisseminationCrosswalk = \

      used to email messages to Group members and submitters

      -

      The workflow system models the states of an Item in a state machine with 5 states (SUBMIT, STEP_1, STEP_2, STEP_3, ARCHIVE.) These are the three optional steps where the item can be viewed and corrected by different groups of people. Actually, it's more like 8 states, with STEP_1_POOL, STEP_2_POOL, and STEP_3_POOL. These pooled states are when items are waiting to enter the primary states.

      The WorkflowManager is invoked by events. While an Item is being submitted, it is held by a WorkspaceItem. Calling the start() method in the WorkflowManager converts a WorkspaceItem to a WorkflowItem, and begins processing the WorkflowItem's state. Since all three steps of the workflow are optional, if no steps are defined, then the Item is simply archived.

      Workflows are set per Collection, and steps are defined by creating corresponding entries in the List named workflowGroup. If you wish the workflow to have a step 1, use the administration tools for Collections to create a workflow Group with members who you want to be able to view and approve the Item, and the workflowGroup[0] becomes set with the ID of that Group.

      If a step is defined in a Collection's workflow, then the WorkflowItem's state is set to that step_POOL. This pooled state is the WorkflowItem waiting for an EPerson in that group to claim the step's task for that WorkflowItem. The WorkflowManager emails the members of that Group notifying them that there is a task to be performed (the text is defined in config/emails,) and when an EPerson goes to their 'My DSpace' page to claim the task, the WorkflowManager is invoked with a claim event, and the WorkflowItem's state advances from STEP_x_POOL to STEP_x (where x is the corresponding step.) The EPerson can also generate an 'unclaim' event, returning the WorkflowItem to the STEP_x_POOL.

      Other events the WorkflowManager handles are advance(), which advances the WorkflowItem to the next state. If there are no further states, then the WorkflowItem is removed, and the Item is then archived. An EPerson performing one of the tasks can reject the Item, which stops the workflow, rebuilds the WorkspaceItem for it and sends a rejection note to the submitter. More drastically, an abort() event is generated by the admin tools to cancel a workflow outright.

      13.5. Administration Toolkit

      The org.dspace.administer package contains some classes for administering a DSpace system that are not generally needed by most applications.

      The CreateAdministrator class is a simple command-line tool, executed via /dspace/bin/create-administrator, that creates an administrator e-person with information entered from standard input. This is generally used only once when a DSpace system is initially installed, to create an initial administrator who can then use the Web administration UI to further set up the system. This script does not check for authorization, since it is typically run before there are any e-people to authorize! Since it must be run as a command-line tool on the server machine, generally this shouldn't cause a problem. A possibility is to have the script only operate when there are no e-people in the system already, though in general, someone with access to command-line scripts on your server is probably in a position to do what they want anyway!

      The DCType class is similar to the org.dspace.content.BitstreamFormat class. It represents an entry in the Dublin Core type registry, that is, a particular element and qualifier, or unqualified element. It is in the administer package because it is only generally required when manipulating the registry itself. Elements and qualifiers are specified as literals in org.dspace.content.Item methods and the org.dspace.content.DCValue class. Only administrators may modify the Dublin Core type registry.

      The org.dspace.administer.RegistryLoader class contains methods for initialising the Dublin Core type registry and bitstream format registry with entries in an XML file. Typically this is executed via the command line during the build process (see build.xml in the source.) To see examples of the XML formats, see the files in config/registries in the source directory. There is no XML schema, they aren't validated strictly when loaded in.

      13.6. E-person/Group Manager

      DSpace keeps track of registered users with the org.dspace.eperson.EPerson class. The class has methods to create and manipulate an EPerson such as get and set methods for first and last names, email, and password. (Actually, there is no getPassword() method--an MD5 hash of the password is stored, and can only be verified with the checkPassword() method.) There are find methods to find an EPerson by email (which is assumed to be unique,) or to find all EPeople in the system.

      The EPerson object should probably be reworked to allow for easy expansion; the current EPerson object tracks pretty much only what MIT was interested in tracking - first and last names, email, phone. The access methods are hardcoded and should probably be replaced with methods to access arbitrary name/value pairs for institutions that wish to customize what EPerson information is stored.

      Groups are simply lists of EPerson objects. Other than membership, Group objects have only one other attribute: a name. Group names must be unique, so we have adopted naming conventions where the role of the group is its name, such as COLLECTION_100_ADD. Groups add and remove EPerson objects with addMember() and removeMember() methods. One important thing to know about groups is that they store their membership in memory until the update() method is called - so when modifying a group's membership don't forget to invoke update() or your changes will be lost! Since group membership is used heavily by the authorization system a fast isMember() method is also provided.

      Another kind of Group is also implemented in DSpace--special Groups. The Context object for each session carries around a List of Group IDs that the user is also a member of--currently the MITUser Group ID is added to the list of a user's special groups if certain IP address or certificate criteria are met.

      13.7. Authorization

      The primary classes are:

      +

      The workflow system models the states of an Item in a state machine with 5 states (SUBMIT, STEP_1, STEP_2, STEP_3, ARCHIVE.) These are the three optional steps where the item can be viewed and corrected by different groups of people. Actually, it's more like 8 states, with STEP_1_POOL, STEP_2_POOL, and STEP_3_POOL. These pooled states are when items are waiting to enter the primary states.

      The WorkflowManager is invoked by events. While an Item is being submitted, it is held by a WorkspaceItem. Calling the start() method in the WorkflowManager converts a WorkspaceItem to a WorkflowItem, and begins processing the WorkflowItem's state. Since all three steps of the workflow are optional, if no steps are defined, then the Item is simply archived.

      Workflows are set per Collection, and steps are defined by creating corresponding entries in the List named workflowGroup. If you wish the workflow to have a step 1, use the administration tools for Collections to create a workflow Group with members who you want to be able to view and approve the Item, and the workflowGroup[0] becomes set with the ID of that Group.

      If a step is defined in a Collection's workflow, then the WorkflowItem's state is set to that step_POOL. This pooled state is the WorkflowItem waiting for an EPerson in that group to claim the step's task for that WorkflowItem. The WorkflowManager emails the members of that Group notifying them that there is a task to be performed (the text is defined in config/emails,) and when an EPerson goes to their 'My DSpace' page to claim the task, the WorkflowManager is invoked with a claim event, and the WorkflowItem's state advances from STEP_x_POOL to STEP_x (where x is the corresponding step.) The EPerson can also generate an 'unclaim' event, returning the WorkflowItem to the STEP_x_POOL.

      Other events the WorkflowManager handles are advance(), which advances the WorkflowItem to the next state. If there are no further states, then the WorkflowItem is removed, and the Item is then archived. An EPerson performing one of the tasks can reject the Item, which stops the workflow, rebuilds the WorkspaceItem for it and sends a rejection note to the submitter. More drastically, an abort() event is generated by the admin tools to cancel a workflow outright.

      13.5. Administration Toolkit

      The org.dspace.administer package contains some classes for administering a DSpace system that are not generally needed by most applications.

      The CreateAdministrator class is a simple command-line tool, executed via /dspace/bin/create-administrator, that creates an administrator e-person with information entered from standard input. This is generally used only once when a DSpace system is initially installed, to create an initial administrator who can then use the Web administration UI to further set up the system. This script does not check for authorization, since it is typically run before there are any e-people to authorize! Since it must be run as a command-line tool on the server machine, generally this shouldn't cause a problem. A possibility is to have the script only operate when there are no e-people in the system already, though in general, someone with access to command-line scripts on your server is probably in a position to do what they want anyway!

      The DCType class is similar to the org.dspace.content.BitstreamFormat class. It represents an entry in the Dublin Core type registry, that is, a particular element and qualifier, or unqualified element. It is in the administer package because it is only generally required when manipulating the registry itself. Elements and qualifiers are specified as literals in org.dspace.content.Item methods and the org.dspace.content.DCValue class. Only administrators may modify the Dublin Core type registry.

      The org.dspace.administer.RegistryLoader class contains methods for initialising the Dublin Core type registry and bitstream format registry with entries in an XML file. Typically this is executed via the command line during the build process (see build.xml in the source.) To see examples of the XML formats, see the files in config/registries in the source directory. There is no XML schema, they aren't validated strictly when loaded in.

      13.6. E-person/Group Manager

      DSpace keeps track of registered users with the org.dspace.eperson.EPerson class. The class has methods to create and manipulate an EPerson such as get and set methods for first and last names, email, and password. (Actually, there is no getPassword() method--an MD5 hash of the password is stored, and can only be verified with the checkPassword() method.) There are find methods to find an EPerson by email (which is assumed to be unique,) or to find all EPeople in the system.

      The EPerson object should probably be reworked to allow for easy expansion; the current EPerson object tracks pretty much only what MIT was interested in tracking - first and last names, email, phone. The access methods are hardcoded and should probably be replaced with methods to access arbitrary name/value pairs for institutions that wish to customize what EPerson information is stored.

      Groups are simply lists of EPerson objects. Other than membership, Group objects have only one other attribute: a name. Group names must be unique, so we have adopted naming conventions where the role of the group is its name, such as COLLECTION_100_ADD. Groups add and remove EPerson objects with addMember() and removeMember() methods. One important thing to know about groups is that they store their membership in memory until the update() method is called - so when modifying a group's membership don't forget to invoke update() or your changes will be lost! Since group membership is used heavily by the authorization system a fast isMember() method is also provided.

      Another kind of Group is also implemented in DSpace--special Groups. The Context object for each session carries around a List of Group IDs that the user is also a member of--currently the MITUser Group ID is added to the list of a user's special groups if certain IP address or certificate criteria are met.

      13.7. Authorization

      The primary classes are:

      org.dspace.authorize.AuthorizeManager

      @@ -340,10 +340,10 @@ plugin.selfnamed.org.dspace.content.metadata.DisseminationCrosswalk = \

      all policies are defined in terms of EPerson Groups

      The authorization system is based on the classic 'police state' model of security; no action is allowed unless it is expressed in a policy. The policies are attached to resources (hence the name ResourcePolicy,) and detail who can perform that action. The resource can be any of the DSpace object types, listed in org.dspace.core.Constants (BITSTREAM, ITEM, COLLECTION, etc.) The 'who' is made up of EPerson groups. The actions are also in Constants.java (READ, WRITE, ADD, etc.) The only non-obvious actions are ADD and REMOVE, which are authorizations for container objects. To be able to create an Item, you must have ADD permission in a Collection, which contains Items. (Communities, Collections, Items, and Bundles are all container objects.)

      Currently most of the read policy checking is done with items--communities and collections are assumed to be openly readable, but items and their bitstreams are checked. Separate policy checks for items and their bitstreams enables policies that allow publicly readable items, but parts of their content may be restricted to certain groups.

      The AuthorizeManager class' - authorizeAction(Context, object, action) is the primary source of all authorization in the system. It gets a list of all of the ResourcePolicies in the system that match the object and action. It then iterates through the policies, extracting the EPerson Group from each policy, and checks to see if the EPersonID from the Context is a member of any of those groups. If all of the policies are queried and no permission is found, then an AuthorizeException is thrown. An authorizeAction() method is also supplied that returns a boolean for applications that require higher performance.

      ResourcePolicies are very simple, and there are quite a lot of them. Each can only list a single group, a single action, and a single object. So each object will likely have several policies, and if multiple groups share permissions for actions on an object, each group will get its own policy. (It's a good thing they're small.)

      13.7.1. Special Groups

      All users are assumed to be part of the public group (ID=0.) DSpace admins (ID=1) are automatically part of all groups, much like super-users in the Unix OS. The Context object also carries around a List of special groups, which are also first checked for membership. These special groups are used at MIT to indicate membership in the MIT community, something that is very difficult to enumerate in the database! When a user logs in with an MIT certificate or with an MIT IP address, the login code adds this MIT user group to the user's Context.

      13.7.2. Miscellaneous Authorization Notes

      Where do items get their read policies? From the their collection's read policy. There once was a separate item read default policy in each collection, and perhaps there will be again since it appears that administrators are notoriously bad at defining collection's read policies. There is also code in place to enable policies that are timed--have a start and end date. However, the admin tools to enable these sorts of policies have not been written.

      13.8. Handle Manager/Handle Plugin

      The org.dspace.handle package contains two classes; HandleManager is used to create and look up Handles, and HandlePlugin is used to expose and resolve DSpace Handles for the outside world via the CNRI Handle Server code.

      Handles are stored internally in the handle database table in the form:

      1721.123/4567

      Typically when they are used outside of the system they are displayed in either URI or "URL proxy" forms:

      hdl:1721.123/4567
      -http://hdl.handle.net/1721.123/4567

      It is the responsibility of the caller to extract the basic form from whichever displayed form is used.

      The handle table maps these Handles to resource type/resource ID pairs, where resource type is a value from org.dspace.core.Constants and resource ID is the internal identifier (database primary key) of the object. This allows Handles to be assigned to any type of object in the system, though as explained in the functional overview, only communities, collections and items are presently assigned Handles.

      HandleManager contains static methods for:

      • Creating a Handle

      • Finding the Handle for a DSpaceObject, though this is usually only invoked by the object itself, since DSpaceObject has a getHandle method

      • Retrieving the DSpaceObject identified by a particular Handle

      • Obtaining displayable forms of the Handle (URI or "proxy URL").

      HandlePlugin is a simple implementation of the Handle Server's net.handle.hdllib.HandleStorage interface. It only implements the basic Handle retrieval methods, which get information from the handle database table. The CNRI Handle Server is configured to use this plug-in via its config.dct file.

      Note that since the Handle server runs as a separate JVM to the DSpace Web applications, it uses a separate 'Log4J' configuration, since Log4J does not support multiple JVMs using the same daily rolling logs. This alternative configuration is held as a template in /dspace/config/templates/log4j-handle-plugin.properties, written to /dspace/config/log4j-handle-plugin.properties by the install-configs script. The /dspace/bin/start-handle-server script passes in the appropriate command line parameters so that the Handle server uses this configuration.

      13.9. Search

      DSpace's search code is a simple API which currently wraps the Lucene search engine. The first half of the search task is indexing, and org.dspace.search.DSIndexer is the indexing class, which contains indexContent() which if passed an Item, Community, or Collection, will add that content's fields to the index. The methods unIndexContent() and reIndexContent() remove and update content's index information. The DSIndexer class also has a main() method which will rebuild the index completely. This can be invoked by the dspace/bin/index-init (complete rebuild) or dspace/bin/index-update (update) script. The intent was for the main() method to be invoked on a regular basis to avoid index corruption, but we have had no problem with that so far.

      Which fields are indexed by DSIndexer? These fields are defined in dspace.cfg in the section "Fields to index for search" as name-value-pairs. The name must be unique in the form search.index.i (i is an arbitrary positive number). The value on the right side has a unique value again, which can be referenced in search-form (e.g. title, author). Then comes the metadata element which is indexed. '*' is a wildcard which includes all subelements. For example:

      + authorizeAction(Context, object, action) is the primary source of all authorization in the system. It gets a list of all of the ResourcePolicies in the system that match the object and action. It then iterates through the policies, extracting the EPerson Group from each policy, and checks to see if the EPersonID from the Context is a member of any of those groups. If all of the policies are queried and no permission is found, then an AuthorizeException is thrown. An authorizeAction() method is also supplied that returns a boolean for applications that require higher performance.

      ResourcePolicies are very simple, and there are quite a lot of them. Each can only list a single group, a single action, and a single object. So each object will likely have several policies, and if multiple groups share permissions for actions on an object, each group will get its own policy. (It's a good thing they're small.)

      13.7.1. Special Groups

      All users are assumed to be part of the public group (ID=0.) DSpace admins (ID=1) are automatically part of all groups, much like super-users in the Unix OS. The Context object also carries around a List of special groups, which are also first checked for membership. These special groups are used at MIT to indicate membership in the MIT community, something that is very difficult to enumerate in the database! When a user logs in with an MIT certificate or with an MIT IP address, the login code adds this MIT user group to the user's Context.

      13.7.2. Miscellaneous Authorization Notes

      Where do items get their read policies? From the their collection's read policy. There once was a separate item read default policy in each collection, and perhaps there will be again since it appears that administrators are notoriously bad at defining collection's read policies. There is also code in place to enable policies that are timed--have a start and end date. However, the admin tools to enable these sorts of policies have not been written.

      13.8. Handle Manager/Handle Plugin

      The org.dspace.handle package contains two classes; HandleManager is used to create and look up Handles, and HandlePlugin is used to expose and resolve DSpace Handles for the outside world via the CNRI Handle Server code.

      Handles are stored internally in the handle database table in the form:

      1721.123/4567

      Typically when they are used outside of the system they are displayed in either URI or "URL proxy" forms:

      hdl:1721.123/4567
      +http://hdl.handle.net/1721.123/4567

      It is the responsibility of the caller to extract the basic form from whichever displayed form is used.

      The handle table maps these Handles to resource type/resource ID pairs, where resource type is a value from org.dspace.core.Constants and resource ID is the internal identifier (database primary key) of the object. This allows Handles to be assigned to any type of object in the system, though as explained in the functional overview, only communities, collections and items are presently assigned Handles.

      HandleManager contains static methods for:

      • Creating a Handle

      • Finding the Handle for a DSpaceObject, though this is usually only invoked by the object itself, since DSpaceObject has a getHandle method

      • Retrieving the DSpaceObject identified by a particular Handle

      • Obtaining displayable forms of the Handle (URI or "proxy URL").

      HandlePlugin is a simple implementation of the Handle Server's net.handle.hdllib.HandleStorage interface. It only implements the basic Handle retrieval methods, which get information from the handle database table. The CNRI Handle Server is configured to use this plug-in via its config.dct file.

      Note that since the Handle server runs as a separate JVM to the DSpace Web applications, it uses a separate 'Log4J' configuration, since Log4J does not support multiple JVMs using the same daily rolling logs. This alternative configuration is held as a template in /dspace/config/templates/log4j-handle-plugin.properties, written to /dspace/config/log4j-handle-plugin.properties by the install-configs script. The /dspace/bin/start-handle-server script passes in the appropriate command line parameters so that the Handle server uses this configuration.

      13.9. Search

      DSpace's search code is a simple API which currently wraps the Lucene search engine. The first half of the search task is indexing, and org.dspace.search.DSIndexer is the indexing class, which contains indexContent() which if passed an Item, Community, or Collection, will add that content's fields to the index. The methods unIndexContent() and reIndexContent() remove and update content's index information. The DSIndexer class also has a main() method which will rebuild the index completely. This can be invoked by the dspace/bin/index-init (complete rebuild) or dspace/bin/index-update (update) script. The intent was for the main() method to be invoked on a regular basis to avoid index corruption, but we have had no problem with that so far.

      Which fields are indexed by DSIndexer? These fields are defined in dspace.cfg in the section "Fields to index for search" as name-value-pairs. The name must be unique in the form search.index.i (i is an arbitrary positive number). The value on the right side has a unique value again, which can be referenced in search-form (e.g. title, author). Then comes the metadata element which is indexed. '*' is a wildcard which includes all subelements. For example:

      search.index.4 = keyword:dc.subject.* -

      tells the indexer to create a keyword index containing all dc.subject element values. Since the wildcard ('*') character was used in place of a qualifier, all subject metadata fields will be indexed (e.g. dc.subject.other, dc.subject.lcsh, etc)

      By default, the fields shown in the Indexed Fields section below are indexed. These are hardcoded in the DSIndexer class. If any search.index.i items are specified in dspace.cfg these are used rather than these hardcoded fields.

      The query class DSQuery contains the three flavors of doQuery() methods--one searches the DSpace site, and the other two restrict searches to Collections and Communities. The results from a query are returned as three lists of handles; each list represents a type of result. One list is a list of Items with matches, and the other two are Collections and Communities that match. This separation allows the UI to handle the types of results gracefully without resolving all of the handles first to see what kind of content the handle points to. The DSQuery class also has a main() method for debugging via command-line searches.

      13.9.1. Current Lucene Implementation

      Currently we have our own Analyzer and Tokenizer classes (DSAnalyzer and DSTokenizer) to customize our indexing. They invoke the stemming and stop word features within Lucene. We create an IndexReader for each query, which we now realize isn't the most efficient use of resources - we seem to run out of filehandles on really heavy loads. (A wildcard query can open many filehandles!) Since Lucene is thread-safe, a better future implementation would be to have a single Lucene IndexReader shared by all queries, and then is invalidated and re-opened when the index changes. Future API growth could include relevance scores (Lucene generates them, but we ignore them,) and abstractions for more advanced search concepts such as booleans.

      13.9.2. Indexed Fields

      The DSIndexer class shipped with DSpace indexes the Dublin Core metadata in the following way:

      +

      tells the indexer to create a keyword index containing all dc.subject element values. Since the wildcard ('*') character was used in place of a qualifier, all subject metadata fields will be indexed (e.g. dc.subject.other, dc.subject.lcsh, etc)

      By default, the fields shown in the Indexed Fields section below are indexed. These are hardcoded in the DSIndexer class. If any search.index.i items are specified in dspace.cfg these are used rather than these hardcoded fields.

      The query class DSQuery contains the three flavors of doQuery() methods--one searches the DSpace site, and the other two restrict searches to Collections and Communities. The results from a query are returned as three lists of handles; each list represents a type of result. One list is a list of Items with matches, and the other two are Collections and Communities that match. This separation allows the UI to handle the types of results gracefully without resolving all of the handles first to see what kind of content the handle points to. The DSQuery class also has a main() method for debugging via command-line searches.

      13.9.1. Current Lucene Implementation

      Currently we have our own Analyzer and Tokenizer classes (DSAnalyzer and DSTokenizer) to customize our indexing. They invoke the stemming and stop word features within Lucene. We create an IndexReader for each query, which we now realize isn't the most efficient use of resources - we seem to run out of filehandles on really heavy loads. (A wildcard query can open many filehandles!) Since Lucene is thread-safe, a better future implementation would be to have a single Lucene IndexReader shared by all queries, and then is invalidated and re-opened when the index changes. Future API growth could include relevance scores (Lucene generates them, but we ignore them,) and abstractions for more advanced search concepts such as booleans.

      13.9.2. Indexed Fields

      The DSIndexer class shipped with DSpace indexes the Dublin Core metadata in the following way:

      Search Field

      @@ -408,7 +408,7 @@ http://hdl.handle.net/1721.123/4567

      It is the responsibility of the call

      identifier.*

      -

      13.9.3. Harvesting API

      The org.dspace.search package also provides a 'harvesting' API. This allows callers to extract information about items modified within a particular timeframe, and within a particular scope (all of DSpace, or a community or collection.) Currently this is used by the Open Archives Initiative metadata harvesting protocol application, and the e-mail subscription code.

      The Harvest.harvest is invoked with the required scope and start and end dates. Either date can be omitted. The dates should be in the ISO8601, UTC time zone format used elsewhere in the DSpace system.

      HarvestedItemInfo objects are returned. These objects are simple containers with basic information about the items falling within the given scope and date range. Depending on parameters passed to the harvest method, the containers and item fields may have been filled out with the IDs of communities and collections containing an item, and the corresponding Item object respectively. Electing not to have these fields filled out means the harvest operation executes considerable faster.

      In case it is required, Harvest also offers a method for creating a single HarvestedItemInfo object, which might make things easier for the caller.

      13.10. Browse API

      The browse API maintains indices of dates, authors, titles and subjects, and allows callers to extract parts of these:

      Title

      Values of the Dublin Core element title (unqualified) are indexed. These are sorted in a case-insensitive fashion, with any leading article removed. For example:

      The DSpace System

      Appears under 'D' rather than 'T'.

      Author

      Values of the contributor (any qualifier or unqualified) element are indexed. Since contributor values typically are in the form 'last name, first name', a simple case-insensitive alphanumeric sort is used which orders authors in last name order.

      Note that this is an index of authors, and not items by author. If four items have the same author, that author will appear in the index only once. Hence, the index of authors may be greater or smaller than the index of titles; items often have more than one author, though the same author may have authored several items.

      The author indexing in the browse API does have limitations:

      • Ideally, a name that appears as an author for more than one item would appear in the author index only once. For example, 'Doe, John' may be the author of tens of items. However, in practice, author's names often appear in slightly differently forms, for example:

        Doe, John
        +              

      13.9.3. Harvesting API

      The org.dspace.search package also provides a 'harvesting' API. This allows callers to extract information about items modified within a particular timeframe, and within a particular scope (all of DSpace, or a community or collection.) Currently this is used by the Open Archives Initiative metadata harvesting protocol application, and the e-mail subscription code.

      The Harvest.harvest is invoked with the required scope and start and end dates. Either date can be omitted. The dates should be in the ISO8601, UTC time zone format used elsewhere in the DSpace system.

      HarvestedItemInfo objects are returned. These objects are simple containers with basic information about the items falling within the given scope and date range. Depending on parameters passed to the harvest method, the containers and item fields may have been filled out with the IDs of communities and collections containing an item, and the corresponding Item object respectively. Electing not to have these fields filled out means the harvest operation executes considerable faster.

      In case it is required, Harvest also offers a method for creating a single HarvestedItemInfo object, which might make things easier for the caller.

      13.10. Browse API

      The browse API maintains indices of dates, authors, titles and subjects, and allows callers to extract parts of these:

      Title

      Values of the Dublin Core element title (unqualified) are indexed. These are sorted in a case-insensitive fashion, with any leading article removed. For example:

      The DSpace System

      Appears under 'D' rather than 'T'.

      Author

      Values of the contributor (any qualifier or unqualified) element are indexed. Since contributor values typically are in the form 'last name, first name', a simple case-insensitive alphanumeric sort is used which orders authors in last name order.

      Note that this is an index of authors, and not items by author. If four items have the same author, that author will appear in the index only once. Hence, the index of authors may be greater or smaller than the index of titles; items often have more than one author, though the same author may have authored several items.

      The author indexing in the browse API does have limitations:

      • Ideally, a name that appears as an author for more than one item would appear in the author index only once. For example, 'Doe, John' may be the author of tens of items. However, in practice, author's names often appear in slightly differently forms, for example:

        Doe, John
         Doe, John Stewart
         Doe, John S.

        Currently, the above three names would all appear as separate entries in the author index even though they may refer to the same author. In order for an author of several papers to be correctly appear once in the index, each item must specify exactly the same form of their name, which doesn't always happen in practice.

      • Another issue is that two authors may have the same name, even within a single institution. If this is the case they may appear as one author in the index.

      These issues are typically resolved in libraries with authority control records, in which are kept a 'preferred' form of the author's name, with extra information (such as date of birth/death) in order to distinguish between authors of the same name. Maintaining such records is a huge task with many issues, particularly when metadata is received from faculty directly rather than trained library cataloguers. For these reasons, DSpace does not yet feature 'authority control' functionality.

      Date of Issue

      Items are indexed by date of issue. This may be different from the date that an item appeared in DSpace; many items may have been originally published elsewhere beforehand. The Dublin Core field used is date.issued. The ordering of this index may be reversed so 'earliest first' and 'most recent first' orderings are possible.

      Note that the index is of items by date, as opposed to an index of dates. If 30 items have the same issue date (say 2002), then those 30 items all appear in the index adjacent to each other, as opposed to a single 2002 entry.

      Since dates in DSpace Dublin Core are in ISO8601, all in the UTC time zone, a simple alphanumeric sort is sufficient to sort by date, including dealing with varying granularities of date reasonably. For example:

      2001-12-10
       2002
      @@ -416,19 +416,18 @@ Doe, John S.

      Currently, the above three names would all appear as separa 2002-04-05 2002-04-09T15:34:12Z 2002-04-09T19:21:12Z -2002-04-10

      Date Accessioned

      In order to determine which items most recently appeared, rather than using the date of issue, an item's accession date is used. This is the Dublin Core field date.accessioned. In other aspects this index is identical to the date of issue index.

      Items by a Particular Author

      The browse API can perform is to extract items by a particular author. They do not have to be primary author of an item for that item to be extracted. You can specify a scope, too; that is, you can ask for items by author X in collection Y, for example.

      This particular flavour of browse is slightly simpler than the others. You cannot presently specify a particular subset of results to be returned. The API call will simply return all of the items by a particular author within a certain scope.

      Note that the author of the item must exactly match the author passed in to the API; see the explanation about the caveats of the author index browsing to see why this is the case.

      Subject

      Values of the Dublin Core element subject (both unqualified and with any qualifier) are indexed. These are sorted in a case-insensitive fashion.

      13.10.1. Using the API

      The API is generally invoked by creating a BrowseScope object, and setting the parameters for which particular part of an index you want to extract. This is then passed to the relevent Browse method call, which returns a BrowseInfo object which contains the results of the operation. The parameters set in the BrowseScope object are:

      • How many entries from the index you want

      • Whether you only want entries from a particular community or collection, or from the whole of DSpace

      • Which part of the index to start from (called the focus of the browse). If you don't specify this, the start of the index is used

      • How many entries to include before the focus entry

      To illustrate, here is an example:

      • We want 7 entries in total

      • We want entries from collection x

      • We want the focus to be 'Really'

      • We want 2 entries included before the focus.

      The results of invoking Browse.getItemsByTitle with the above parameters might look like this:

              Rabble-Rousing Rabbis From Sardinia
      +2002-04-10
      Date Accessioned

      In order to determine which items most recently appeared, rather than using the date of issue, an item's accession date is used. This is the Dublin Core field date.accessioned. In other aspects this index is identical to the date of issue index.

      Items by a Particular Author

      The browse API can perform is to extract items by a particular author. They do not have to be primary author of an item for that item to be extracted. You can specify a scope, too; that is, you can ask for items by author X in collection Y, for example.

      This particular flavour of browse is slightly simpler than the others. You cannot presently specify a particular subset of results to be returned. The API call will simply return all of the items by a particular author within a certain scope.

      Note that the author of the item must exactly match the author passed in to the API; see the explanation about the caveats of the author index browsing to see why this is the case.

      Subject

      Values of the Dublin Core element subject (both unqualified and with any qualifier) are indexed. These are sorted in a case-insensitive fashion.

      13.10.1. Using the API

      The API is generally invoked by creating a BrowseScope object, and setting the parameters for which particular part of an index you want to extract. This is then passed to the relevent Browse method call, which returns a BrowseInfo object which contains the results of the operation. The parameters set in the BrowseScope object are:

      • How many entries from the index you want

      • Whether you only want entries from a particular community or collection, or from the whole of DSpace

      • Which part of the index to start from (called the focus of the browse). If you don't specify this, the start of the index is used

      • How many entries to include before the focus entry

      To illustrate, here is an example:

      • We want 7 entries in total

      • We want entries from collection x

      • We want the focus to be 'Really'

      • We want 2 entries included before the focus.

      The results of invoking Browse.getItemsByTitle with the above parameters might look like this:

              Rabble-Rousing Rabbis From Sardinia
               Reality TV: Love It or Hate It?
       FOCUS>  The Really Exciting Research Video
               Recreational Housework Addicts: Please Visit My House
               Regional Television Variation Studies
               Revenue Streams
      -        Ridiculous Example Titles:  I'm Out of Ideas

      Note that in the case of title and date browses, Item objects are returned as opposed to actual titles. In these cases, you can specify the 'focus' to be a specific item, or a partial or full literal value. In the case of a literal value, if no entry in the index matches exactly, the closest match is used as the focus. It's quite reasonable to specify a focus of a single letter, for example.

      Being able to specify a specific item to start at is particularly important with dates, since many items may have the save issue date. Say 30 items in a collection have the issue date 2002. To be able to page through the index 20 items at a time, you need to be able to specify exactly which item's 2002 is the focus of the browse, otherwise each time you invoked the browse code, the results would start at the first item with the issue date 2002.

      Author browses return String objects with the actual author names. You can only specify the focus as a full or partial literal String.

      Another important point to note is that presently, the browse indices contain metadata for all items in the main archive, regardless of authorization policies. This means that all items in the archive will appear to all users when browsing. Of course, should the user attempt to access a non-public item, the usual authorization mechanism will apply. Whether this approach is ideal is under review; implementing the browse API such that the results retrieved reflect a user's level of authorization may be possible, but rather tricky.

      13.10.2. Index Maintenance

      The browse API contains calls to add and remove items from the index, and to regenerate the indices from scratch. In general the content management API invokes the necessary browse API calls to keep the browse indices in sync with what is in the archive, so most applications will not need to invoke those methods.

      If the browse index becomes inconsistent for some reason, the InitializeBrowse class is a command line tool (generally invoked using the /dspace/bin/dspace index-init command) that causes the indexes to be regenerated from scratch.

      13.10.3. Caveats

      Presently, the browse API is not tremendously efficient. 'Indexing' takes the form of simply extracting the relevant Dublin Core value, normalising it (lower-casing and removing any leading article in the case of titles), and inserting that normalized value with the corresponding item ID in the appropriate browse database table. Database views of this table include collection and community IDs for browse operations with a limited scope. When a browse operation is performed, a simple SELECT query is performed, along the lines of:

      SELECT item_id FROM ItemsByTitle ORDER BY sort_title OFFSET 40 LIMIT 20

      There are two main drawbacks to this: Firstly, LIMIT and OFFSET are PostgreSQL-specific keywords. Secondly, the database is still actually performing dynamic sorting of the titles, so the browse code as it stands will not scale particularly well. The code does cache BrowseInfo objects, so that common browse operations are performed quickly, but this is not an ideal solution.

      13.11. Checksum checker

      Checksum checker is used to verify every item within DSpace. While DSpace calculates and records the checksum of every file submitted to it, the checker can determine whterh the file has been changed. The idea being that the earlier you can identify a file has changed, the more likely you would be able to record it (assuming it was not a wanted change).

      org.dspace.checker.CheckerCommand class, is the class for the checksum checker tool, which calculates checksums for each bitstream whose ID is in the most_recent_checksum table, and compares it against the last calculated checksum for that bitstream.

      13.12. OpenSearch Support

      DSpace is able to support OpenSearch. For those not aquainted with the standard, a very brief introduction, with emphasis on what possibilities it holds for current use and future development.

      OpenSearch is a small set of conventions and documents for describing and using 'search engines', meaning any service that returns a set of results for a query. It is nearly ubiquitous—but also nearly invisible—in modern web sites with search capability. If you look at the page source of Wikipedia, Facebook, CNN, etc you will find buried a link element declaring OpenSearch support. It is very much a lowest-common-denominator abstraction (think Google box), but does provide a means to extend its expressive power. This first implementation for DSpace supports none of these extensions—many of which are of potential value—so it should be regarded as a foundation, not a finished solution. So the short answer is that DSpace appears as a 'search-engine' to OpenSearch-aware software.

      Another way to look at OpenSearch is as a RESTful web service for search, very much like SRW/U, but considerably simpler. This comparative loss of power is offset by the fact that it is widely supported by web tools and players: browsers understand it, as do large metasearch tools.

       

      How Can It Be Used

      • Browser Integration

        Many recent browsers (IE7+, FF2+) can detect, or 'autodiscover', links to the document describing the search engine. Thus you can easily add your or other DSpace instances to the drop-down list of search engines in your browser. This list typically appears in the upper right corner of the browser, with a search box. In Firefox, for example, when you visit a site supporting OpenSearch, the color of the drop-down list widget changes color, and if you open it to show the list of search engines, you are offered an opportunity to add the site to the list. IE works nearly the same way but instead labels the web sites 'search providers'. When you select a DSpace instance as the search engine and enter a search, you are simply sent to the regular search results page of the instance.

      • Flexible, interesting RSS Feeds

        Because one of the formats that OpenSearch specifies for its results is RSS (or Atom), you can turn any search query into an RSS feed. So if there are keywords highly discriminative of content in a collection or repository, these can be turned into a URL that a feed reader can subscribe to. Taken to the extreme, one could take any search a user makes, and dynamically compose an RSS feed URL for it in the page of returned results. To see an example, if you have a DSpace with OpenSearch enabled, try:

        http://dspace.mysite.edu/open-search/?query-<your query>

        The default format returned is Atom 1.0, so you should see an Atom document containing your search results.

      • You can extend the syntax witha few other parameters, as follows:

        + Ridiculous Example Titles: I'm Out of Ideas

        Note that in the case of title and date browses, Item objects are returned as opposed to actual titles. In these cases, you can specify the 'focus' to be a specific item, or a partial or full literal value. In the case of a literal value, if no entry in the index matches exactly, the closest match is used as the focus. It's quite reasonable to specify a focus of a single letter, for example.

        Being able to specify a specific item to start at is particularly important with dates, since many items may have the save issue date. Say 30 items in a collection have the issue date 2002. To be able to page through the index 20 items at a time, you need to be able to specify exactly which item's 2002 is the focus of the browse, otherwise each time you invoked the browse code, the results would start at the first item with the issue date 2002.

        Author browses return String objects with the actual author names. You can only specify the focus as a full or partial literal String.

        Another important point to note is that presently, the browse indices contain metadata for all items in the main archive, regardless of authorization policies. This means that all items in the archive will appear to all users when browsing. Of course, should the user attempt to access a non-public item, the usual authorization mechanism will apply. Whether this approach is ideal is under review; implementing the browse API such that the results retrieved reflect a user's level of authorization may be possible, but rather tricky.

      13.10.2. Index Maintenance

      The browse API contains calls to add and remove items from the index, and to regenerate the indices from scratch. In general the content management API invokes the necessary browse API calls to keep the browse indices in sync with what is in the archive, so most applications will not need to invoke those methods.

      If the browse index becomes inconsistent for some reason, the InitializeBrowse class is a command line tool (generally invoked using the /dspace/bin/dspace index-init command) that causes the indexes to be regenerated from scratch.

      13.10.3. Caveats

      Presently, the browse API is not tremendously efficient. 'Indexing' takes the form of simply extracting the relevant Dublin Core value, normalising it (lower-casing and removing any leading article in the case of titles), and inserting that normalized value with the corresponding item ID in the appropriate browse database table. Database views of this table include collection and community IDs for browse operations with a limited scope. When a browse operation is performed, a simple SELECT query is performed, along the lines of:

      SELECT item_id FROM ItemsByTitle ORDER BY sort_title OFFSET 40 LIMIT 20

      There are two main drawbacks to this: Firstly, LIMIT and OFFSET are PostgreSQL-specific keywords. Secondly, the database is still actually performing dynamic sorting of the titles, so the browse code as it stands will not scale particularly well. The code does cache BrowseInfo objects, so that common browse operations are performed quickly, but this is not an ideal solution.

      13.11. Checksum checker

      Checksum checker is used to verify every item within DSpace. While DSpace calculates and records the checksum of every file submitted to it, the checker can determine whterh the file has been changed. The idea being that the earlier you can identify a file has changed, the more likely you would be able to record it (assuming it was not a wanted change).

      org.dspace.checker.CheckerCommand class, is the class for the checksum checker tool, which calculates checksums for each bitstream whose ID is in the most_recent_checksum table, and compares it against the last calculated checksum for that bitstream.

      13.12. OpenSearch Support

      DSpace is able to support OpenSearch. For those not aquainted with the standard, a very brief introduction, with emphasis on what possibilities it holds for current use and future development.

      OpenSearch is a small set of conventions and documents for describing and using 'search engines', meaning any service that returns a set of results for a query. It is nearly ubiquitous—but also nearly invisible—in modern web sites with search capability. If you look at the page source of Wikipedia, Facebook, CNN, etc you will find buried a link element declaring OpenSearch support. It is very much a lowest-common-denominator abstraction (think Google box), but does provide a means to extend its expressive power. This first implementation for DSpace supports none of these extensions—many of which are of potential value—so it should be regarded as a foundation, not a finished solution. So the short answer is that DSpace appears as a 'search-engine' to OpenSearch-aware software.

      Another way to look at OpenSearch is as a RESTful web service for search, very much like SRW/U, but considerably simpler. This comparative loss of power is offset by the fact that it is widely supported by web tools and players: browsers understand it, as do large metasearch tools.

       

      How Can It Be Used

      • Browser Integration

        Many recent browsers (IE7+, FF2+) can detect, or 'autodiscover', links to the document describing the search engine. Thus you can easily add your or other DSpace instances to the drop-down list of search engines in your browser. This list typically appears in the upper right corner of the browser, with a search box. In Firefox, for example, when you visit a site supporting OpenSearch, the color of the drop-down list widget changes color, and if you open it to show the list of search engines, you are offered an opportunity to add the site to the list. IE works nearly the same way but instead labels the web sites 'search providers'. When you select a DSpace instance as the search engine and enter a search, you are simply sent to the regular search results page of the instance.

      • Flexible, interesting RSS Feeds

        Because one of the formats that OpenSearch specifies for its results is RSS (or Atom), you can turn any search query into an RSS feed. So if there are keywords highly discriminative of content in a collection or repository, these can be turned into a URL that a feed reader can subscribe to. Taken to the extreme, one could take any search a user makes, and dynamically compose an RSS feed URL for it in the page of returned results. To see an example, if you have a DSpace with OpenSearch enabled, try:

        http://dspace.mysite.edu/open-search/?query-<your query>

        The default format returned is Atom 1.0, so you should see an Atom document containing your search results.

      • You can extend the syntax witha few other parameters, as follows:

        ParameterValues
        formatatom, rss, html
        scope<handle>—search is restricted to a collection or communith with the indicated handle.
        rppnumber indicating the number of results per page (i.e. per request)
        startnumber of page to start with (if paginating results)
        sort_bynumber indicating sorting criteria (same as DSpace advanced search values
        -

      • Cheap metasearch

        Search aggregators like A9 (Amazon) recognize OpenSearch-compliant providers, and so can be added to metasearch sets using their UIs. Then you site can be used to aggregate search results with others.

      Configuration is throught the dspace.cfg file.See OpenSearch Support

      13.13. Embargo

      The architecture of Embarge is documentated in the package javadocs. Run cd /[dspace-source]/dspace;mvn javadoc:javadoc and look in [dspace-source]/dspace-api/target/site/apidocs/index.html.


    • Cheap metasearch

      Search aggregators like A9 (Amazon) recognize OpenSearch-compliant providers, and so can be added to metasearch sets using their UIs. Then you site can be used to aggregate search results with others.

    • Configuration is throught the dspace.cfg file.See OpenSearch Support

      13.13. Embargo

      The architecture of Embarge is documentated in the package javadocs. Run cd /[dspace-source]/dspace;mvn javadoc:javadoc and look in [dspace-source]/dspace-api/target/site/apidocs/index.html.


      \ No newline at end of file +

      Licensed under a Creative Commons Attribution 3.0 United States License

      \ No newline at end of file diff --git a/dspace/docs/html/ch14.html b/dspace/docs/html/ch14.html index 5226c39ba7..e8bba0eb2a 100644 --- a/dspace/docs/html/ch14.html +++ b/dspace/docs/html/ch14.html @@ -1,4 +1,4 @@ -Chapter 14. DSpace System Documentation: Customizing and Configuring Submission User Interface

      Chapter 14. DSpace System Documentation: Customizing and Configuring Submission User Interface

      This page explains various customization and configuration options that are available within DSpace for the Item Submission user interface.

      14.1. Understanding the Submission Configuration File

      The [dspace]/config/item-submission.xml contains the submission configurations for both the DSpace JSP user interface (JSPUI) or the DSpace XML user interface (XMLUI or Manakin). This configuration file contains detailed documentation within the file itself, which should help you better understand how to best utilize it.

      14.1.1. The Structure of item-submission.xml

      <item-submission>
      +Chapter 14. DSpace System Documentation: Customizing and Configuring Submission User Interface

      Chapter 14. DSpace System Documentation: Customizing and Configuring Submission User Interface

      This page explains various customization and configuration options that are available within DSpace for the Item Submission user interface.

      14.1. Understanding the Submission Configuration File

      The [dspace]/config/item-submission.xml contains the submission configurations for both the DSpace JSP user interface (JSPUI) or the DSpace XML user interface (XMLUI or Manakin). This configuration file contains detailed documentation within the file itself, which should help you better understand how to best utilize it.

      14.1.1. The Structure of item-submission.xml

      <item-submission>
       	<!-- Where submission processes are mapped to specific Collections -->
       	<submission-map>
       	<name-map collection-handle="default" submission-name="traditional" /> ...
      @@ -22,7 +22,7 @@
       	</submission-definitions>
       	</item-submission> 

      Because this file is in XML format, you should be familiar with XML before editing this file. By default, this file contains the "traditional" Item Submission Process for DSpace, which consists of the following Steps (in this order):

      Select Collection -> Initial Questions -> Describe -> Upload -> Verify -> License -> Complete -

      If you would like to customize the steps used or the ordering of the steps, you can do so within the <submission-definition> section of the item-submission.xml .

      In addition, you may also specify different Submission Processes for different DSpace Collections. This can be done in the <submission-map> section. The item-submission.xml file itself documents the syntax required to perform these configuration changes.

      14.1.2. Defining Steps (<step>) within the item-submission.xml

      This section describes how Steps of the Submission Process are defined within the item-submission.xml.

      14.1.2.1. Where to place your <step> definitions

      <step> definitions can appear in one of two places within the item-submission.xml configuration file.

      1. Within the <step-definitions> section

        • This is for globally defined <step> definitions (i.e. steps which are used in multiple <submission-process> definitions). Steps defined in this section must define a unique id which can be used to reference this step.

        • For example:

          <step-definitions>
          +			

          If you would like to customize the steps used or the ordering of the steps, you can do so within the <submission-definition> section of the item-submission.xml .

          In addition, you may also specify different Submission Processes for different DSpace Collections. This can be done in the <submission-map> section. The item-submission.xml file itself documents the syntax required to perform these configuration changes.

        14.1.2. Defining Steps (<step>) within the item-submission.xml

        This section describes how Steps of the Submission Process are defined within the item-submission.xml.

        14.1.2.1. Where to place your <step> definitions

        <step> definitions can appear in one of two places within the item-submission.xml configuration file.

        1. Within the <step-definitions> section

          • This is for globally defined <step> definitions (i.e. steps which are used in multiple <submission-process> definitions). Steps defined in this section must define a unique id which can be used to reference this step.

          • For example:

            <step-definitions>
             	<step id="custom-step">
             	   ...
             	</step>
            @@ -31,7 +31,7 @@
             	<step>
             	   ... 
             	</step>
            -</submission-process>

        14.1.2.2. The ordering of <step> definitions matters!

        The ordering of the <step> tags within a <submission-process> definition directly corresponds to the order in which those steps will appear!

        For example, the following defines a Submission Process where the License step directly precedes the Initial Questions step (more information about the structure of the information under each <step> tag can be found in the section on Structure of the <step> Definition below):

        <submission-process>
        +</submission-process>

      14.1.2.2. The ordering of <step> definitions matters!

      The ordering of the <step> tags within a <submission-process> definition directly corresponds to the order in which those steps will appear!

      For example, the following defines a Submission Process where the License step directly precedes the Initial Questions step (more information about the structure of the information under each <step> tag can be found in the section on Structure of the <step> Definition below):

      <submission-process>
       	<!--Step 1 will be to Sign off on the License-->
       	   <step>
       	     <heading>submit.progressbar.license</heading>
      @@ -49,7 +49,7 @@
       	      <workflow-editable>true</workflow-editable>
       	   </step> 
       	      ...[other steps]... 
      -</submission-process> 

      14.1.2.3. Structure of the <step> Definition

      The same <step> definition is used by both the DSpace JSP user interface (JSPUI) an the DSpace XML user interface (XMLUI or Manakin). Therefore, you will notice each <step> definition contains information specific to each of these two interfaces.

      The structure of the <step> Definition is as follows:

      <step>
      +</submission-process> 

      14.1.2.3. Structure of the <step> Definition

      The same <step> definition is used by both the DSpace JSP user interface (JSPUI) an the DSpace XML user interface (XMLUI or Manakin). Therefore, you will notice each <step> definition contains information specific to each of these two interfaces.

      The structure of the <step> Definition is as follows:

      <step>
       	<heading>submit.progressbar.describe</heading>
       	<processing-class>org.dspace.submit.step.DescribeStep</processing-classing-class>
       	<jspui-binding>org.dspace.app.webui.submit.step.JSPDescribeStep</jspuilt;/jspui-binding>
      @@ -67,11 +67,11 @@
       							xmlui-binding
       						

      Full Java path of the XMLUI "binding" class for this Step. This "binding" class should generate the Manakin XML (DRI document) necessary to generate the step's user interface. A valid XMLUI "binding" class must extend the abstract `org.dspace.app.xmlui.submission.AbstractSubmissionStep` class. This property need not be defined if you are using the JSPUI interface, or for steps which only perform automated processing, i.e. non-interactive steps.

      workflow-editable -

      Defines whether or not this step can be edited during the Edit Metadata process with the DSpace approval/rejection workflow process. Possible values include true and false. If undefined, defaults to true (which means that workflow reviewers would be allowed to edit information gathered during that step).

      14.2. Reordering/Removing Submission Steps

      The removal of existing steps and reordering of existing steps is a relatively easy process!

      +

      Defines whether or not this step can be edited during the Edit Metadata process with the DSpace approval/rejection workflow process. Possible values include true and false. If undefined, defaults to true (which means that workflow reviewers would be allowed to edit information gathered during that step).

      14.2. Reordering/Removing Submission Steps

      The removal of existing steps and reordering of existing steps is a relatively easy process!

      Reordering steps

      1. Locate the <submission-process> tag which defines the Submission Process that you are using. If you are unsure which Submission Process you are using, it's likely the one with name="traditional", since this is the traditional DSpace submission process.

      2. Reorder the <step> tags within that <submission-process> tag. Be sure to move the entire<step> tag (i.e. everything between and including the opening <step> and closing </step> tags).

        • Hint #1: The <step> defining the Review/Verify step only allows the user to review information from steps which appear before it. So, it's likely you'd want this to appear as one of your last few steps

        • Hint #2: If you are using it, the <step> defining the Initial Questions step should always appear before the Upload or Describe steps since it asks questions which help to set up those later steps.

      Removing one or more steps -

      1. Locate the <submission-process> tag which defines the Submission Process that you are using. If you are unsure which Submission Process you are using, it's likely the one with name="traditional", since this is the traditional DSpace submission process.

      2. Comment out (i.e. surround with <!-- and -->) the <step> tags which you want to remove from that <submission-process> tag. Be sure to comment out the entire<step> tag (i.e. everything between and including the opening <step> and closing </step> tags).

        • Hint #1: You cannot remove the Select a Collection step, as an DSpace Item cannot exist without belonging to a Collection.

        • Hint #2: If you decide to remove the <step> defining the Initial Questions step, you should be aware that this may affect your Describe and Upload steps! The Initial Questions step asks questions which help to initialize these later steps. If you decide to remove the Initial Questions step you may wish to create a custom, automated step which will provide default answers for the questions asked!

      14.3. Assigning a custom Submission Process to a Collection

      Assigning a custom submission process to a Collection in DSpace involves working with the submission-map section of the item-submission.xml. For a review of the structure of the item-submission.xml see the section above on Understanding the Submission Configuration File.

      Each name-map element within submission-map associates a collection with the name of a submission definition. Its collection-handle attribute is the Handle of the collection. Its submission-name attribute is the submission definition name, which must match the name attribute of a submission-process element (in the submission-definitions section of item-submission.xml.

      For example, the following fragment shows how the collection with handle "12345.6789/42" is assigned the "custom" submission process:

      <submission-map>
      +		

      1. Locate the <submission-process> tag which defines the Submission Process that you are using. If you are unsure which Submission Process you are using, it's likely the one with name="traditional", since this is the traditional DSpace submission process.

      2. Comment out (i.e. surround with <!-- and -->) the <step> tags which you want to remove from that <submission-process> tag. Be sure to comment out the entire<step> tag (i.e. everything between and including the opening <step> and closing </step> tags).

        • Hint #1: You cannot remove the Select a Collection step, as an DSpace Item cannot exist without belonging to a Collection.

        • Hint #2: If you decide to remove the <step> defining the Initial Questions step, you should be aware that this may affect your Describe and Upload steps! The Initial Questions step asks questions which help to initialize these later steps. If you decide to remove the Initial Questions step you may wish to create a custom, automated step which will provide default answers for the questions asked!

      14.3. Assigning a custom Submission Process to a Collection

      Assigning a custom submission process to a Collection in DSpace involves working with the submission-map section of the item-submission.xml. For a review of the structure of the item-submission.xml see the section above on Understanding the Submission Configuration File.

      Each name-map element within submission-map associates a collection with the name of a submission definition. Its collection-handle attribute is the Handle of the collection. Its submission-name attribute is the submission definition name, which must match the name attribute of a submission-process element (in the submission-definitions section of item-submission.xml.

      For example, the following fragment shows how the collection with handle "12345.6789/42" is assigned the "custom" submission process:

      <submission-map>
           <name-map collection-handle=" 12345.6789/42" submission-name="
       	custom" />
           ...
      @@ -82,10 +82,10 @@
       	custom">
           ...
         </submission-definitions>
      -

      It's a good idea to keep the definition of the default name-map from the example input-forms.xml so there is always a default for collections which do not have a custom form set.

      14.3.1. Getting A Collection's Handle

      You will need the handle of a collection in order to assign it a custom form set. To discover the handle, go to the "Communities & Collections" page under "Browse" in the left-hand menu on your DSpace home page. Then, find the link to your collection. It should look something like:

      +

      It's a good idea to keep the definition of the default name-map from the example input-forms.xml so there is always a default for collections which do not have a custom form set.

      14.3.1. Getting A Collection's Handle

      You will need the handle of a collection in order to assign it a custom form set. To discover the handle, go to the "Communities & Collections" page under "Browse" in the left-hand menu on your DSpace home page. Then, find the link to your collection. It should look something like:

           http://myhost.my.edu/dspace/handle/
       	12345.6789/42
      -

      The underlined part of the URL is the handle. It should look familiar to any DSpace administrator. That is what goes in the collection-handle attribute of your name-map element.

      14.4. Custom Metadata-entry Pages for Submission

      14.4.1. Introduction

      This section explains how to customize the Web forms used by submitters and editors to enter and modify the metadata for a new item. These metadata web forms are controlled by the Describe step within the Submission Process. However, they are also configurable via their own XML configuration file (input-forms.xml).

      You can customize the "default" metadata forms used by all collections, and also create alternate sets of metadata forms and assign them to specific collections. In creating custom metadata forms, you can choose:

      • The number of metadata-entry pages.

      • Which fields appear on each page, and their sequence.

      • Labels, prompts, and other text associated with each field.

      • List of available choices for each menu-driven field.

      N.B.The cosmetic and ergonomic details of metadata entry fields remain the same as the fixed metadata pages in previous DSpace releases, and can only be altered by modifying the appropriate stylesheet and JSP pages.

      All of the custom metadata-entry forms for a DSpace instance are controlled by a single XML file, input-forms.xml, in the config subdirectory under the DSpace home. DSpace comes with a sample configuration that implements the traditional metadata-entry forms, which also serves as a well-documented example. The rest of this section explains how to create your own sets of custom forms.

      14.4.2. Describing Custom Metadata Forms

      The description of a set of pages through which submitters enter their metadata is called a form (although it is actually a set of forms, in the HTML sense of the term). A form is identified by a unique symbolic name. In the XML structure, the form is broken down into a series of pages: each of these represents a separate Web page for collecting metadata elements.

      To set up one of your DSpace collections with customized submission forms, first you make an entry in the form-map. This is effectively a table that relates a collection to a form set, by connecting the collection's Handle to the form name. Collections are identified by handle because their names are mutable and not necessarily unique, while handles are unique and persistent.

      A special map entry, for the collection handle "default", defines the default form set. It applies to all collections which are not explicitly mentioned in the map. In the example XML this form set is named traditional (for the "traditional" DSpace user interface) but it could be named anything.

      14.4.3. The Structure of input-forms.xml

      The XML configuration file has a single top-level element, input-forms, which contains three elements in a specific order. The outline is as follows:

      +

      The underlined part of the URL is the handle. It should look familiar to any DSpace administrator. That is what goes in the collection-handle attribute of your name-map element.

      14.4. Custom Metadata-entry Pages for Submission

      14.4.1. Introduction

      This section explains how to customize the Web forms used by submitters and editors to enter and modify the metadata for a new item. These metadata web forms are controlled by the Describe step within the Submission Process. However, they are also configurable via their own XML configuration file (input-forms.xml).

      You can customize the "default" metadata forms used by all collections, and also create alternate sets of metadata forms and assign them to specific collections. In creating custom metadata forms, you can choose:

      • The number of metadata-entry pages.

      • Which fields appear on each page, and their sequence.

      • Labels, prompts, and other text associated with each field.

      • List of available choices for each menu-driven field.

      N.B.The cosmetic and ergonomic details of metadata entry fields remain the same as the fixed metadata pages in previous DSpace releases, and can only be altered by modifying the appropriate stylesheet and JSP pages.

      All of the custom metadata-entry forms for a DSpace instance are controlled by a single XML file, input-forms.xml, in the config subdirectory under the DSpace home. DSpace comes with a sample configuration that implements the traditional metadata-entry forms, which also serves as a well-documented example. The rest of this section explains how to create your own sets of custom forms.

      14.4.2. Describing Custom Metadata Forms

      The description of a set of pages through which submitters enter their metadata is called a form (although it is actually a set of forms, in the HTML sense of the term). A form is identified by a unique symbolic name. In the XML structure, the form is broken down into a series of pages: each of these represents a separate Web page for collecting metadata elements.

      To set up one of your DSpace collections with customized submission forms, first you make an entry in the form-map. This is effectively a table that relates a collection to a form set, by connecting the collection's Handle to the form name. Collections are identified by handle because their names are mutable and not necessarily unique, while handles are unique and persistent.

      A special map entry, for the collection handle "default", defines the default form set. It applies to all collections which are not explicitly mentioned in the map. In the example XML this form set is named traditional (for the "traditional" DSpace user interface) but it could be named anything.

      14.4.3. The Structure of input-forms.xml

      The XML configuration file has a single top-level element, input-forms, which contains three elements in a specific order. The outline is as follows:

       <input-forms>
       
         <--  Map of Collections to Form Sets -->
      @@ -109,7 +109,7 @@
           ...
         </form-value-pairs>
       </input-forms>
      -

      14.4.3.1. Adding a Collection Map

      Each name-map element within form-map associates a collection with the name of a form set. Its collection-handle attribute is the Handle of the collection, and its form-name attribute is the form set name, which must match the name attribute of a form element.

      For example, the following fragment shows how the collection with handle "12345.6789/42" is attached to the "TechRpt" form set:

      +

      14.4.3.1. Adding a Collection Map

      Each name-map element within form-map associates a collection with the name of a form set. Its collection-handle attribute is the Handle of the collection, and its form-name attribute is the form set name, which must match the name attribute of a form element.

      For example, the following fragment shows how the collection with handle "12345.6789/42" is attached to the "TechRpt" form set:

         <form-map>
           <name-map collection-handle=" 12345.6789/42" form-name=" TechRpt"
       	/>
      @@ -121,12 +121,12 @@
       	TechRept">
           ...
         </form-definitions>
      -

      It's a good idea to keep the definition of the default name-map from the example input-forms.xml so there is always a default for collections which do not have a custom form set.

      Getting A Collection's Handle

      You will need the handle of a collection in order to assign it a custom form set. To discover the handle, go to the "Communities & Collections" page under "Browse" in the left-hand menu on your DSpace home page. Then, find the link to your collection. It should look something like:

      +

      It's a good idea to keep the definition of the default name-map from the example input-forms.xml so there is always a default for collections which do not have a custom form set.

      Getting A Collection's Handle

      You will need the handle of a collection in order to assign it a custom form set. To discover the handle, go to the "Communities & Collections" page under "Browse" in the left-hand menu on your DSpace home page. Then, find the link to your collection. It should look something like:

           http://myhost.my.edu/dspace/handle/
       	12345.6789/42
      -

      The underlined part of the URL is the handle. It should look familiar to any DSpace administrator. That is what goes in the collection-handle attribute of your name-map element.

      14.4.3.2. Adding a Form Set

      You can add a new form set by creating a new form element within the form-definitions element. It has one attribute, name, which as seen above must match the value of the name-map for the collections it is to be used for.

      Forms and Pages

      The content of the form is a sequence of page elements. Each of these corresponds to a Web page of forms for entering metadata elements, presented in sequence between the initial "Describe" page and the final "Verify" page (which presents a summary of all the metadata collected).

      A form must contain at least one and at most six pages. They are presented in the order they appear in the XML. Each page element must include a number attribute, that should be its sequence number, e.g.

      +

      The underlined part of the URL is the handle. It should look familiar to any DSpace administrator. That is what goes in the collection-handle attribute of your name-map element.

      14.4.3.2. Adding a Form Set

      You can add a new form set by creating a new form element within the form-definitions element. It has one attribute, name, which as seen above must match the value of the name-map for the collections it is to be used for.

      Forms and Pages

      The content of the form is a sequence of page elements. Each of these corresponds to a Web page of forms for entering metadata elements, presented in sequence between the initial "Describe" page and the final "Verify" page (which presents a summary of all the metadata collected).

      A form must contain at least one and at most six pages. They are presented in the order they appear in the XML. Each page element must include a number attribute, that should be its sequence number, e.g.

       <page number="1">
      -

      The page element, in turn, contains a sequence of field elements. Each field defines an interactive dialog where the submitter enters one of the Dublin Core metadata items.

      Composition of a Field

      Each field contains the following elements, in the order indicated. The required sub-elements are so marked:

      +

      The page element, in turn, contains a sequence of field elements. Each field defines an interactive dialog where the submitter enters one of the Dublin Core metadata items.

      Composition of a Field

      Each field contains the following elements, in the order indicated. The required sub-elements are so marked:

      dc-schema (Required)

      Name of metadata schema employed, e.g. dc for Dublin Core. This value must match the value of the schema element defined in dublin-core-types.xml

      @@ -153,7 +153,7 @@ visibility

      When this optional element is included with a value, it restricts the visibility of the field to the scope defined by that value. If the element is missing or empty, the field is visible in all scopes. Currently supported scopes are:

      • workflow : the field will only be visible in the workflow stages of submission. This is good for hiding difficult fields for users, such as subject classifications, thereby easing the use of the submission system.

      • submit : the field will only be visible in the initial submission, and not in the workflow stages.

      In addition, you can decide which type of restriction apply: read-only or full hidden the field (default behaviour) using the otherwise attribute of the visibility XML element. For example:

      <visibility otherwise="readonly">workflow</visibility> -

      Note that it is considered a configuration error to limit a field's scope while also requiring it - an exception will be generated when this combination is detected.

      Look at the example input-forms.xml and experiment with a a trial custom form to learn this specification language thoroughly. It is a very simple way to express the layout of data-entry forms, but the only way to learn all its subtleties is to use it.

      For the use of controlled vocabularies see the Configuring Controlled Vocabularies section.

      Automatically Elided Fields

      You may notice that some fields are automatically skipped when a custom form page is displayed, depending on the kind of item being submitted. This is because the DSpace user-interface engine skips Dublin Core fields which are not needed, according to the initial description of the item. For example, if the user indicates there are no alternate titles on the first "Describe" page (the one with a few checkboxes), the input for the title.alternative DC element is automatically elided, even on custom submission pages.

      When a user initiates a submission, DSpace first displays what we'll call the "initial-questions page". By default, it contains three questions with check-boxes:

      1. +

        Note that it is considered a configuration error to limit a field's scope while also requiring it - an exception will be generated when this combination is detected.

      Look at the example input-forms.xml and experiment with a a trial custom form to learn this specification language thoroughly. It is a very simple way to express the layout of data-entry forms, but the only way to learn all its subtleties is to use it.

      For the use of controlled vocabularies see the Configuring Controlled Vocabularies section.

      Automatically Elided Fields

      You may notice that some fields are automatically skipped when a custom form page is displayed, depending on the kind of item being submitted. This is because the DSpace user-interface engine skips Dublin Core fields which are not needed, according to the initial description of the item. For example, if the user indicates there are no alternate titles on the first "Describe" page (the one with a few checkboxes), the input for the title.alternative DC element is automatically elided, even on custom submission pages.

      When a user initiates a submission, DSpace first displays what we'll call the "initial-questions page". By default, it contains three questions with check-boxes:

      1. The item has more than one title, e.g. a translated title

        Controls title.alternative field.

      2. The item has been published or publicly distributed before @@ -167,7 +167,7 @@ The item consists of more than one file

        Does not affect any metadata input fields. -

      The answers to the first two questions control whether inputs for certain of the DC metadata fields will displayed, even if they are defined as fields in a custom page. Conversely, if the metadata fields controlled by a checkbox are not mentioned in the custom form, the checkbox is elided from the initial page to avoid confusing or misleading the user.

      The two relevant checkbox entries are "The item has more than one title, e.g. a translated title", and "The item has been published or publicly distributed before". The checkbox for multiple titles trigger the display of the field with dc-element equal to 'title' and dc-qualifier equal to 'alternative'. If the controlling collection's form set does not contain this field, then the multiple titles question will not appear on the initial questions page.

      14.4.3.3. Adding Value-Pairs

      Finally, your custom form description needs to define the "value pairs" for any fields with input types that refer to them. Do this by adding a value-pairs element to the contents of form-value-pairs. It has the following required attributes:

      • value-pairs-name -- Name by which an input-type refers to this list.

      • dc-term -- Qualified Dublin Core field for which this choice list is selecting a value.

      Each value-pairs element contains a sequence of pair sub-elements, each of which in turn contains two elements:
      • displayed-value -- Name shown (on the web page) for the menu entry.

      • stored-value -- Value stored in the DC element when this entry is chosen.

      Unlike the HTML select tag, there is no way to indicate one of the entries should be the default, so the first entry is always the default choice.

      Example

      Here is a menu of types of common identifiers:

      +								

      The answers to the first two questions control whether inputs for certain of the DC metadata fields will displayed, even if they are defined as fields in a custom page. Conversely, if the metadata fields controlled by a checkbox are not mentioned in the custom form, the checkbox is elided from the initial page to avoid confusing or misleading the user.

      The two relevant checkbox entries are "The item has more than one title, e.g. a translated title", and "The item has been published or publicly distributed before". The checkbox for multiple titles trigger the display of the field with dc-element equal to 'title' and dc-qualifier equal to 'alternative'. If the controlling collection's form set does not contain this field, then the multiple titles question will not appear on the initial questions page.

      14.4.3.3. Adding Value-Pairs

      Finally, your custom form description needs to define the "value pairs" for any fields with input types that refer to them. Do this by adding a value-pairs element to the contents of form-value-pairs. It has the following required attributes:

      • value-pairs-name -- Name by which an input-type refers to this list.

      • dc-term -- Qualified Dublin Core field for which this choice list is selecting a value.

      Each value-pairs element contains a sequence of pair sub-elements, each of which in turn contains two elements:
      • displayed-value -- Name shown (on the web page) for the menu entry.

      • stored-value -- Value stored in the DC element when this entry is chosen.

      Unlike the HTML select tag, there is no way to indicate one of the entries should be the default, so the first entry is always the default choice.

      Example

      Here is a menu of types of common identifiers:

          <value-pairs value-pairs-name="common_identifiers"
       	dc-term="identifier">
            <pair>
      @@ -191,22 +191,21 @@
       <option VALUE="uri">URI</option>
       <option VALUE="isbn">ISBN</option>
       </select>
      -
      Identifiers:Gov't Doc #URIISBN

      14.4.4. Deploying Your Custom Forms

      The DSpace web application only reads your custom form definitions when it starts up, so it is important to remember:

      +Identifiers:Gov't Doc #URIISBN

      14.4.4. Deploying Your Custom Forms

      The DSpace web application only reads your custom form definitions when it starts up, so it is important to remember:

      You must always restart Tomcat (or whatever servlet container you are using) for changes made to the input-forms.xml file take effect. -

      Any mistake in the syntax or semantics of the form definitions, such as poorly formed XML or a reference to a nonexistent field name, will cause a fatal error in the DSpace UI. The exception message (at the top of the stack trace in the dspace.log file) usually has a concise and helpful explanation of what went wrong. Don't forget to stop and restart the servlet container before testing your fix to a bug.

      14.5. Configuring the File Upload step

      The Upload step in the DSpace submission process has two configuration options which can be set with your [dspace]/config/dspace.cfg configuration file. They are as follows:

      • upload.max - The maximum size of a file (in bytes) that can be uploaded from the JSPUI (not applicable for the XMLUI). It defaults to 536870912 bytes (512MB). You may set this to -1 to disable any file size limitation.

        • Note: Increasing this value or setting to -1 does not guarantee that DSpace will be able to successfully upload larger files via the web, as large uploads depend on many other factors including bandwidth, web server settings, internet connection speed, etc.

      • webui.submit.upload.required - Whether or not all users are required to upload a file when they submit an item to DSpace. It defaults to 'true'. When set to 'false' users will see an option to skip the upload step when they submit a new item.

      14.6. Creating new Submission Steps

      First, a brief warning: Creating a new Submission Step requires some Java knowledge, and is therefore recommended to be undertaken by a Java programmer whenever possible

      That being said, at a higher level, creating a new Submission Step requires the following (in this relative order):

      1. (Required) Create a new Step Processing class

        • This class must extend the abstract org.dspace.submit.AbstractProcessingStep class and implement all methods defined by that abstract class.

        • This class should be built in such a way that it can process the input gathered from either the XMLUI or JSPUI interface.

      2. (For steps using JSPUI) Create the JSPs to display the user interface. Create a new JSPUI "binding" class to initialize and call these JSPs.

      3. +

      Any mistake in the syntax or semantics of the form definitions, such as poorly formed XML or a reference to a nonexistent field name, will cause a fatal error in the DSpace UI. The exception message (at the top of the stack trace in the dspace.log file) usually has a concise and helpful explanation of what went wrong. Don't forget to stop and restart the servlet container before testing your fix to a bug.

      14.5. Configuring the File Upload step

      The Upload step in the DSpace submission process has two configuration options which can be set with your [dspace]/config/dspace.cfg configuration file. They are as follows:

      • upload.max - The maximum size of a file (in bytes) that can be uploaded from the JSPUI (not applicable for the XMLUI). It defaults to 536870912 bytes (512MB). You may set this to -1 to disable any file size limitation.

        • Note: Increasing this value or setting to -1 does not guarantee that DSpace will be able to successfully upload larger files via the web, as large uploads depend on many other factors including bandwidth, web server settings, internet connection speed, etc.

      • webui.submit.upload.required - Whether or not all users are required to upload a file when they submit an item to DSpace. It defaults to 'true'. When set to 'false' users will see an option to skip the upload step when they submit a new item.

      14.6. Creating new Submission Steps

      First, a brief warning: Creating a new Submission Step requires some Java knowledge, and is therefore recommended to be undertaken by a Java programmer whenever possible

      That being said, at a higher level, creating a new Submission Step requires the following (in this relative order):

      1. (Required) Create a new Step Processing class

        • This class must extend the abstract org.dspace.submit.AbstractProcessingStep class and implement all methods defined by that abstract class.

        • This class should be built in such a way that it can process the input gathered from either the XMLUI or JSPUI interface.

      2. (For steps using JSPUI) Create the JSPs to display the user interface. Create a new JSPUI "binding" class to initialize and call these JSPs.

        • Your JSPUI "binding" class must extend the abstract class org.dspace.app.webui.submit.JSPStep and implement all methods defined there. It's recommended to use one of the classes in org.dspace.app.webui.submit.step.* as a reference.

        • Any JSPs created should be loaded by calling the showJSP() method of the org.dspace.app.webui.submit.JSPStepManager class

        • If this step gathers information to be reviewed, you must also create a Review JSP which will display a read-only view of all data gathered during this step. The path to this JSP must be returned by your getReviewJSP() method. You will find examples of Review JSPs (named similar to review-[step].jsp) in the JSP submit/ directory.

        -

      3. (For steps using XMLUI) Create an XMLUI "binding" Step Transformer which will generate the DRI XML which Manakin requires.

        • The Step Transformer must extend and implement all necessary methods within the abstract class org.dspace.app.xmlui.submission.AbstractSubmissionStep

        • It is useful to use the existing classes in org.dspace.app.xmlui.submission.submit.* as references

      4. (Required) Add a valid Step Definition to the item-submission.xml configuration file.

      14.6.1. Creating a Non-Interactive Step

      Non-interactive steps are ones that have no user interface and only perform backend processing. You may find a need to create non-interactive steps which perform further processing of previously entered information.

      To create a non-interactive step, do the following:

      1. Create the required Step Processing class, which extends the abstract org.dspace.submit.AbstractProcessingStep class. In this class add any processing which this step will perform.

      2. Add your non-interactive step to your item-submission.xml at the place where you wish this step to be called during the submission process. For example, if you want it to be called immediately after the existing 'Upload File' step, then place its configuration immediately after the configuration for that 'Upload File' step. The configuration should look similar to the following:

        +				

      3. (For steps using XMLUI) Create an XMLUI "binding" Step Transformer which will generate the DRI XML which Manakin requires.

        • The Step Transformer must extend and implement all necessary methods within the abstract class org.dspace.app.xmlui.submission.AbstractSubmissionStep

        • It is useful to use the existing classes in org.dspace.app.xmlui.submission.submit.* as references

      4. (Required) Add a valid Step Definition to the item-submission.xml configuration file.

      14.6.1. Creating a Non-Interactive Step

      Non-interactive steps are ones that have no user interface and only perform backend processing. You may find a need to create non-interactive steps which perform further processing of previously entered information.

      To create a non-interactive step, do the following:

      1. Create the required Step Processing class, which extends the abstract org.dspace.submit.AbstractProcessingStep class. In this class add any processing which this step will perform.

      2. Add your non-interactive step to your item-submission.xml at the place where you wish this step to be called during the submission process. For example, if you want it to be called immediately after the existing 'Upload File' step, then place its configuration immediately after the configuration for that 'Upload File' step. The configuration should look similar to the following:

         
                        <step>
         	<processing-class>org.dspace.submit.step.MyNonInteractveStep</processi
         /processing-class> <workflow-editable>false</workflow-editable>
         	</step>
         
        -            

      Note: Non-interactive steps will not appear in the Progress Bar! Therefore, your submitters will not even know they are there. However, because they are not visible to your users, you should make sure that your non-interactive step does not take a large amount of time to finish its processing and return control to the next step (otherwise there will be a visible time delay in the user interface).


      Note: Non-interactive steps will not appear in the Progress Bar! Therefore, your submitters will not even know they are there. However, because they are not visible to your users, you should make sure that your non-interactive step does not take a large amount of time to finish its processing and return control to the next step (otherwise there will be a visible time delay in the user interface).


      \ No newline at end of file +

      Licensed under a Creative Commons Attribution 3.0 United States License

      \ No newline at end of file diff --git a/dspace/docs/html/ch15.html b/dspace/docs/html/ch15.html index 2ad21eae33..b3dc52d5e1 100644 --- a/dspace/docs/html/ch15.html +++ b/dspace/docs/html/ch15.html @@ -1,4 +1,4 @@ -Chapter 15. DSpace System Documentation: DRI Schema Reference

      Chapter 15. DSpace System Documentation: DRI Schema Reference

      Digital Repository Interface (DRI) is a schema that governs the structure of a Manakin DSpace page when encoded as an XML Document. It determines what elements can be present in the Document and the relationship of those elements to each other. This reference document explains the purpose of DRI, provides a broad architectural overview, and explains common design patterns. The appendix includes a complete reference for elements used in the DRI Schema, a graphical representation of the element hierarchy, and a quick reference table of elements and attributes.

      15.1. Introduction

      This manual describes the Digital Repository Interface (DRI) as it applies to the DSpace digital repository and XMLUI Manakin based interface. DSpace XML UI is a comprehensive user interface system. It is centralized and generic, allowing it to be applied to all DSpace pages, effectively replacing the JSP-based interface system. Its ability to apply specific styles to arbitrarily large sets of DSpace pages significantly eases the task of adapting the DSpace look and feel to that of the adopting institution. This also allows for several levels of branding, lending institutional credibility to the repository and collections.

      Manakin, the second version of DSpace XML UI, consists of several components, written using Java, XML, and XSL, and is implemented in Cocoon. Central to the interface is the XML Document, which is a semantic representation of a DSpace page. In Manakin, the XML Document adheres to a schema called the Digital Repository Interface (DRI) Schema, which was developed in conjunction with Manakin and is the subject of this guide. For the remainder of this guide, the terms XML Document, DRI Document, and Document will be used interchangeably.

      This reference document explains the purpose of DRI, provides a broad architectural overview, and explains common design patterns. The appendix includes a complete reference for elements used in the DRI Schema, a graphical representation of the element hierarchy, and a quick reference table of elements and attributes.

      15.1.1. The Purpose of DRI

      DRI is a schema that governs the structure of the XML Document. It determines the elements that can be present in the Document and the relationship of those elements to each other. Since all Manakin components produce XML Documents that adhere to the DRI schema, The XML Document serves as the abstraction layer. Two such components, Themes and Aspects, are essential to the workings of Manakin and are described briefly in this manual.

      15.1.2. The Development of DRI

      The DRI schema was developed for use in Manakin. The choice to develop our own schema rather than adapt an existing one came after a careful analysis of the schema's purpose as well as the lessons learned from earlier attempts at customizing the DSpace interface. Since every DSpace page in Manakin exists as an XML Document at some point in the process, the schema describing that Document had to be able to structurally represent all content, metadata and relationships between different parts of a DSpace page. It had to be precise enough to avoid losing any structural information, and yet generic enough to allow Themes a certain degree of freedom in expressing that information in a readable format.

      Popular schemas such as XHTML suffer from the problem of not relating elements together explicitly. For example, if a heading precedes a paragraph, the heading is related to the paragraph not because it is encoded as such but because it happens to precede it. When these structures are attempted to be translated into formats where these types of relationships are explicit, the translation becomes tedious, and potentially problematic. More structured schemas, like TEI or Docbook, are domain specific (much like DRI itself) and therefore not suitable for our purposes.

      We also decided that the schema should natively support a metadata standard for encoding artifacts. Rather than encoding artifact metadata in structural elements, like tables or lists, the schema would include artifacts as objects encoded in a particular standard. The inclusion of metadata in native format would enable the Theme to choose the best method to render the artifact for display without being tied to a particular structure.

      Ultimately, we chose to develop our own schema. We have constructed the DRI schema by incorporating other standards when appropriate, such as Cocoon's i18n schema for internationalization, DCMI's Dublin Core, and the Library of Congress's METS schema. The design of structural elements was derived primarily from TEI, with some of the design patterns borrowed from other existing standards such as DocBook and XHTML. While the structural elements were designed to be easily translated into XHTML, they preserve the semantic relationships for use in more expressive languages.

      15.2. DRI in Manakin

      The general process for handling a request in DSpace XML UI consists of two parts. The first part builds the XML Document, and the second part stylizes that Document for output. In Manakin, the two parts are not discrete and instead wrapped within two processes: Content Generation, which builds an XML representation of the page, and Style Application, which stylizes the resulting Document. Content Generation is performed by Aspect chaining, while Style Application is performed by a Theme.

      15.2.1. Themes

      A Theme is a collection of XSL stylesheets and supporting files like images, CSS styles, translations, and help documents. The XSL stylesheets are applied to the DRI Document to covert it into a readable format and give it structure and basic visual formatting in that format. The supporting files are used to provide the page with a specific look and feel, insert images and other media, translate the content, and perform other tasks. The currently used output format is XHTML and the supporting files are generally limited to CSS, images, and JavaScript. More output formats, like PDF or SVG, may be added in the future.

      A DSpace installation running Manakin may have several Themes associated with it. When applied to a page, a Theme determines most of the pageís look and feel. Different themes can be applied to different sets of DSpace pages allowing for both variety of styles between sets of pages and consistency within those sets. The xmlui.xconf configuration file determines which Themes are applied to which DSpace pages (see the Configuration and Customization chapter for more information on installing and configuring themes). Themes may be configured to apply to all pages of specific type, like browse-by-title, to all pages of a one particular community or collection or sets of communities and collections, and to any mix of the two. They can also be configured to apply to a singe arbitrary page or handle.

      15.2.2. Aspect Chains

      Manakin Aspects are arrangements of Cocoon components (transformers, actions, matchers, etc) that implement a new set of coupled features for the system. These Aspects are chained together to form all the features of Manakin. Five Aspects exist in the default installation of Manakin, each handling a particular set of features of DSpace, and more can be added to implement extra features. All Aspects take a DRI Document as input and generate one as output. This allows Aspects to be linked together to form an Aspect chain. Each Aspect in the chain takes a DRI Document as input, adds its own functionality, and passes the modified Document to the next Aspect in the chain.

      15.3. Common Design Patterns

      There are several design patterns used consistently within the DRI schema. This section identifies the need for and describes the implementation of these patterns. Three patterns are discussed: language and internationalization issues, standard attribute triplet (id, n, and rend), and the use of structure-oriented markup.

      15.3.1. Localization and Internationalization

      Internationalization is a very important component of the DRI system. It allows content to be offered in other languages based on user's locale and conditioned upon availability of translations, as well as present dates and currency in a localized manner. There are two types of translated content: content stored and displayed by DSpace itself, and content introduced by the DRI styling process in the XSL transformations. Both types are handled by Cocoon's i18n transformer without regard to their origin.

      When the Content Generation process produces a DRI Document, some of the textual content may be marked up with i18n elements to signify that translations are available for that content. During the Style Application process, the Theme can also introduce new textual content, marking it up with i18n tags. As a result, after the Theme's XSL templates are applied to the DRI Document, the final output consists of a DSpace page marked up in the chosen display format (like XHTML) with i18n elements from both DSpace and XSL content. This final document is sent through Cocoon's i18n transformer that translates the marked up text.

      15.3.2. Standard attribute triplet

      Many elements in the DRI system (all top-level containers, character classes, and many others) contain one or several of the three standard attributes: id, n, and rend. The id and n attributes can be required or optional based on the elementís purpose, while the rend attribute is always optional. The first two are used for identification purposes, while the third is used as a display hint issued to the styling step.

      Identification is important because it allows elements to be separated from their peers for sorting, special case rendering, and other tasks. The first attribute, id, is the global identifier and it is unique to the entire document. Any element that contains an id attribute can thus be uniquely referenced by it. The id attribute of an element can be either assigned explicitly, or generated from the Java Class Path of the originating object if no name is given. While all elements that can be uniquely identified can carry the id attribute, only those that are independent on their context are required to do so. For example, tables are required to have an id since they retain meaning regardless of their location in the document, while table rows and cells can omit the attribute since their meaning depends on the parent element.

      The name attribute n is simply the name assigned to the element, and it is used to distinguish an element from its immediate peers. In the example of a particular list, all items in that list will have different names to distinguish them from each other. Other lists in the document, however, can also contain items whose names will be different from each other, but identical to those in the first list. The n attribute of an element is therefore unique only in the scope of that elementís parent and is used mostly for sorting purposes and special rendering of a certain class of elements, like, for example, all first items in lists, or all items named "browse". The n attribute follows the same rules as id when determining whether or not it is required for a given element.

      The last attribute in the standard triplet is rend. Unlike id and n, the rend attribute can consist of several space delimited values and is optional for all elements that can contain it. Its purpose is to provide a rendering hint from the middle layer component to the styling theme. How that hint is interpreted and whether it is used at all when provided, is completely up the theme. There are several cases, however, where the content of the rend attribute is outlined in detail and its use is encouraged. Those cases are the emphasis element hi, the division element div, and the list element. Please refer to the Element Reference for more detail on these elements.

      15.3.3. Structure-oriented markup

      The final design pattern is the use of structure-oriented markup for content carried by the XML Document. Once generated by Cocoon, the Document contains two major types of information: metadata about the repository and its contents, and the actual content of the page to be displayed. A complete overview of metadata and content markup and their relationship to each other is given in the next section. An important thing to note here, however, is that the markup of the content is oriented towards explicitly stating structural relationships between the elements rather than focusing on the presentational aspects. This makes the markup used by the Document more similar to TEI or Docbook rather than HTML. For this reason, XSL templates are used by the themes to convert structural DRI markup to XHTML. Even then, an attempt is made to create XHTML as structural as possible, leaving presentation entirely to CSS. This allows the XML Document to be generic enough to represent any DSpace page without dictating how it should be rendered.

      15.4. Schema Overview

      The DRI XML Document consists of the root element document and three top-level elements that contain two major types of elements. The three top-level containers are meta, body, and options. The two types of elements they contain are metadata and content, carrying metadata about the page and the contents of the page, respectively. Figure 1 depicts the relationship between these six components.

      Figure 1: The two content types across three major divisions of a DRI page. The document element is the root for all DRI pages and contains all other elements. It bears only one attribute, version, that contains the version number of the DRI system and the schema used to validate the produced document. At the time of writing the working version number is "1.1".

      The meta element is a the top-level element under document and contains all metadata information about the page, the user that requested it, and the repository it is used with. It contains no structural elements, instead being the only container of metadata elements in a DRI Document. The metadata stored by the meta element is broken up into three major groups: userMeta, pageMeta, and objectMeta, each storing metadata information about their respective component. Please refer to the reference entries for more information about these elements.

      The options element is another top-level element that contains all navigation and action options available to the user. The options are stored as items in list elements, broken up by the type of action they perform. The five types of actions are: browsing, search, language selection, actions that are always available, and actions that are context dependent. The two action types also contain sub-lists that contain actions available to users of varying degrees of access to the system. The options element contains no metadata elements and can only make use of a small set of structural elements, namely the list element and its children.

      The last major top-level element is the body element. It contains all structural elements in a DRI Document, including the lists used by the options element. Structural elements are used to build a generic representation of a DSpace page. Any DSpace page can be represented with a combination of the structural elements, which will in turn be transformed by the XSL templates into another format. This is the core mechanism that allows DSpace XML UI to apply uniform templates and styling rules to all DSpace pages and is the fundamental difference from the JSP approach currently used by DSpace.

      The body element directly contains only one type of element: div. The div element serves as a major division of content and any number of them can be contained by the body. Additionally, divisions are recursive, allowing divs to contain other divs. It is within these elements that all other structural elements are contained. Those elements include tables, paragraph elements p, and lists, as well as their various children elements. At the lower levels of this hierarchy lie the character container elements. These elements, namely paragraphs p, table cells, lists items, and the emphasis element hi, contain the textual content of a DSpace page, optionally modified with links, figures, and emphasis. If the division within which the character class is contained is tagged as interactive (via the interactive attribute), those elements can also contain interactive form fields. Divisions tagged as interactive must also provide method and action attributes for its fields to use.

      Figure 2: All the elements in the DRI schema. Note: This image is out-of-date, it does not reflect the changes between 1.0 and 1.1 such as reference and referenceSet.

      15.5. Merging of DRI Documents

      Having described the structure of the DRI Document, as well as its function in Manakin's Aspect chains, we now turn our attention to the one last detail of their use: merging two Documents into one. There are several situations where the need to merge two documents arises. In Manakin, for example, every Aspect is responsible for adding different functionality to a DSpace page. Since every instance of a page has to be a complete DRI Document, each Aspect is faced with the task of merging the Document it generated with the ones generated (and merged into one Document) by previously executed Aspects. For this reason rules exist that describe which elements can be merged together and what happens to their data and child elements in the process.

      When merging two DRI Documents, one is considered to be the main document, and the other a feeder document that is added in. The three top level containers (meta, body and options) of both documents are then individually analyzed and merged. In the case of the options and meta elements, the children tags are taken individually as well and treated differently from their siblings.

      The body elements are the easiest to merge: their respective div children are preserved along with their ordering and are grouped together under one element. Thus, the new body tag will contain all the divs of the main document followed by all the divs of the feeder. However, if two divs have the same n and rend attributes (and in case of an interactive div the same action and method attributes as well), those divs will be merged into one. The resulting div will bear the id, n, and rend attributes of the main document's div and contain all the divs of the main document followed by all the divs of the feeder. This process continues recursively until all the divs have been merged. It should be noted that two divisions with separate pagination rules cannot be merged together.

      Merging the options elements is somewhat different. First, list elements under options of both documents are compared with each other. Those unique to either document are simply added under the new options element, just like divs under body. In case of duplicates, that is list elements that belong to both documents and have the same n attribute, the two lists will be merged into one. The new list element will consist of the main documentís head element, followed label-item pairs from the main document, and then finally the label-item pairs of the feeder, provided they are different from those of the main.

      Finally, the meta elements are merged much like the elements under body. The three children of meta - userMeta, pageMeta, and objectMeta - are individually merged, adding the contents of the feeder after the contents of the main.

      15.6. Version Changes

      The DRI schema will continue to evolve overtime as the needs of interface design require. The version attribute on the document will indicate which version of the schema the document conforms to. At the time Manakin was incorporated into the standard distribution of DSpac the current version was "1.1", however earlier versions of the Manakin interface may use "1.0".

      15.6.1. Changes from 1.0 to 1.1

      There were major structural changes between these two version numbers. Several elements were removed from the schema:includeSet, include, objectMeta, and object. Originally all metadata for objects were included in-line with the DRI document, this proved to have several problems and has been removed in version 1.1 of the DRI schema. Instead of including metadata in-line, external references to the metadata is included. Thus, a reference element has been added along with referenceSet. These new elements operate like their counterparts in the previous version except refrencing metadata contained on the objectMeta element they reference metadata in external files. The repository and repositoryMeta elements were alse modified in a similar mannor removing in-line metadata and refrencing external metadata documents.

      15.7. Element Reference

      +Chapter 15. DSpace System Documentation: DRI Schema Reference

      Chapter 15. DSpace System Documentation: DRI Schema Reference

      Digital Repository Interface (DRI) is a schema that governs the structure of a Manakin DSpace page when encoded as an XML Document. It determines what elements can be present in the Document and the relationship of those elements to each other. This reference document explains the purpose of DRI, provides a broad architectural overview, and explains common design patterns. The appendix includes a complete reference for elements used in the DRI Schema, a graphical representation of the element hierarchy, and a quick reference table of elements and attributes.

      15.1. Introduction

      This manual describes the Digital Repository Interface (DRI) as it applies to the DSpace digital repository and XMLUI Manakin based interface. DSpace XML UI is a comprehensive user interface system. It is centralized and generic, allowing it to be applied to all DSpace pages, effectively replacing the JSP-based interface system. Its ability to apply specific styles to arbitrarily large sets of DSpace pages significantly eases the task of adapting the DSpace look and feel to that of the adopting institution. This also allows for several levels of branding, lending institutional credibility to the repository and collections.

      Manakin, the second version of DSpace XML UI, consists of several components, written using Java, XML, and XSL, and is implemented in Cocoon. Central to the interface is the XML Document, which is a semantic representation of a DSpace page. In Manakin, the XML Document adheres to a schema called the Digital Repository Interface (DRI) Schema, which was developed in conjunction with Manakin and is the subject of this guide. For the remainder of this guide, the terms XML Document, DRI Document, and Document will be used interchangeably.

      This reference document explains the purpose of DRI, provides a broad architectural overview, and explains common design patterns. The appendix includes a complete reference for elements used in the DRI Schema, a graphical representation of the element hierarchy, and a quick reference table of elements and attributes.

      15.1.1. The Purpose of DRI

      DRI is a schema that governs the structure of the XML Document. It determines the elements that can be present in the Document and the relationship of those elements to each other. Since all Manakin components produce XML Documents that adhere to the DRI schema, The XML Document serves as the abstraction layer. Two such components, Themes and Aspects, are essential to the workings of Manakin and are described briefly in this manual.

      15.1.2. The Development of DRI

      The DRI schema was developed for use in Manakin. The choice to develop our own schema rather than adapt an existing one came after a careful analysis of the schema's purpose as well as the lessons learned from earlier attempts at customizing the DSpace interface. Since every DSpace page in Manakin exists as an XML Document at some point in the process, the schema describing that Document had to be able to structurally represent all content, metadata and relationships between different parts of a DSpace page. It had to be precise enough to avoid losing any structural information, and yet generic enough to allow Themes a certain degree of freedom in expressing that information in a readable format.

      Popular schemas such as XHTML suffer from the problem of not relating elements together explicitly. For example, if a heading precedes a paragraph, the heading is related to the paragraph not because it is encoded as such but because it happens to precede it. When these structures are attempted to be translated into formats where these types of relationships are explicit, the translation becomes tedious, and potentially problematic. More structured schemas, like TEI or Docbook, are domain specific (much like DRI itself) and therefore not suitable for our purposes.

      We also decided that the schema should natively support a metadata standard for encoding artifacts. Rather than encoding artifact metadata in structural elements, like tables or lists, the schema would include artifacts as objects encoded in a particular standard. The inclusion of metadata in native format would enable the Theme to choose the best method to render the artifact for display without being tied to a particular structure.

      Ultimately, we chose to develop our own schema. We have constructed the DRI schema by incorporating other standards when appropriate, such as Cocoon's i18n schema for internationalization, DCMI's Dublin Core, and the Library of Congress's METS schema. The design of structural elements was derived primarily from TEI, with some of the design patterns borrowed from other existing standards such as DocBook and XHTML. While the structural elements were designed to be easily translated into XHTML, they preserve the semantic relationships for use in more expressive languages.

      15.2. DRI in Manakin

      The general process for handling a request in DSpace XML UI consists of two parts. The first part builds the XML Document, and the second part stylizes that Document for output. In Manakin, the two parts are not discrete and instead wrapped within two processes: Content Generation, which builds an XML representation of the page, and Style Application, which stylizes the resulting Document. Content Generation is performed by Aspect chaining, while Style Application is performed by a Theme.

      15.2.1. Themes

      A Theme is a collection of XSL stylesheets and supporting files like images, CSS styles, translations, and help documents. The XSL stylesheets are applied to the DRI Document to covert it into a readable format and give it structure and basic visual formatting in that format. The supporting files are used to provide the page with a specific look and feel, insert images and other media, translate the content, and perform other tasks. The currently used output format is XHTML and the supporting files are generally limited to CSS, images, and JavaScript. More output formats, like PDF or SVG, may be added in the future.

      A DSpace installation running Manakin may have several Themes associated with it. When applied to a page, a Theme determines most of the pageís look and feel. Different themes can be applied to different sets of DSpace pages allowing for both variety of styles between sets of pages and consistency within those sets. The xmlui.xconf configuration file determines which Themes are applied to which DSpace pages (see the Configuration and Customization chapter for more information on installing and configuring themes). Themes may be configured to apply to all pages of specific type, like browse-by-title, to all pages of a one particular community or collection or sets of communities and collections, and to any mix of the two. They can also be configured to apply to a singe arbitrary page or handle.

      15.2.2. Aspect Chains

      Manakin Aspects are arrangements of Cocoon components (transformers, actions, matchers, etc) that implement a new set of coupled features for the system. These Aspects are chained together to form all the features of Manakin. Five Aspects exist in the default installation of Manakin, each handling a particular set of features of DSpace, and more can be added to implement extra features. All Aspects take a DRI Document as input and generate one as output. This allows Aspects to be linked together to form an Aspect chain. Each Aspect in the chain takes a DRI Document as input, adds its own functionality, and passes the modified Document to the next Aspect in the chain.

      15.3. Common Design Patterns

      There are several design patterns used consistently within the DRI schema. This section identifies the need for and describes the implementation of these patterns. Three patterns are discussed: language and internationalization issues, standard attribute triplet (id, n, and rend), and the use of structure-oriented markup.

      15.3.1. Localization and Internationalization

      Internationalization is a very important component of the DRI system. It allows content to be offered in other languages based on user's locale and conditioned upon availability of translations, as well as present dates and currency in a localized manner. There are two types of translated content: content stored and displayed by DSpace itself, and content introduced by the DRI styling process in the XSL transformations. Both types are handled by Cocoon's i18n transformer without regard to their origin.

      When the Content Generation process produces a DRI Document, some of the textual content may be marked up with i18n elements to signify that translations are available for that content. During the Style Application process, the Theme can also introduce new textual content, marking it up with i18n tags. As a result, after the Theme's XSL templates are applied to the DRI Document, the final output consists of a DSpace page marked up in the chosen display format (like XHTML) with i18n elements from both DSpace and XSL content. This final document is sent through Cocoon's i18n transformer that translates the marked up text.

      15.3.2. Standard attribute triplet

      Many elements in the DRI system (all top-level containers, character classes, and many others) contain one or several of the three standard attributes: id, n, and rend. The id and n attributes can be required or optional based on the elementís purpose, while the rend attribute is always optional. The first two are used for identification purposes, while the third is used as a display hint issued to the styling step.

      Identification is important because it allows elements to be separated from their peers for sorting, special case rendering, and other tasks. The first attribute, id, is the global identifier and it is unique to the entire document. Any element that contains an id attribute can thus be uniquely referenced by it. The id attribute of an element can be either assigned explicitly, or generated from the Java Class Path of the originating object if no name is given. While all elements that can be uniquely identified can carry the id attribute, only those that are independent on their context are required to do so. For example, tables are required to have an id since they retain meaning regardless of their location in the document, while table rows and cells can omit the attribute since their meaning depends on the parent element.

      The name attribute n is simply the name assigned to the element, and it is used to distinguish an element from its immediate peers. In the example of a particular list, all items in that list will have different names to distinguish them from each other. Other lists in the document, however, can also contain items whose names will be different from each other, but identical to those in the first list. The n attribute of an element is therefore unique only in the scope of that elementís parent and is used mostly for sorting purposes and special rendering of a certain class of elements, like, for example, all first items in lists, or all items named "browse". The n attribute follows the same rules as id when determining whether or not it is required for a given element.

      The last attribute in the standard triplet is rend. Unlike id and n, the rend attribute can consist of several space delimited values and is optional for all elements that can contain it. Its purpose is to provide a rendering hint from the middle layer component to the styling theme. How that hint is interpreted and whether it is used at all when provided, is completely up the theme. There are several cases, however, where the content of the rend attribute is outlined in detail and its use is encouraged. Those cases are the emphasis element hi, the division element div, and the list element. Please refer to the Element Reference for more detail on these elements.

      15.3.3. Structure-oriented markup

      The final design pattern is the use of structure-oriented markup for content carried by the XML Document. Once generated by Cocoon, the Document contains two major types of information: metadata about the repository and its contents, and the actual content of the page to be displayed. A complete overview of metadata and content markup and their relationship to each other is given in the next section. An important thing to note here, however, is that the markup of the content is oriented towards explicitly stating structural relationships between the elements rather than focusing on the presentational aspects. This makes the markup used by the Document more similar to TEI or Docbook rather than HTML. For this reason, XSL templates are used by the themes to convert structural DRI markup to XHTML. Even then, an attempt is made to create XHTML as structural as possible, leaving presentation entirely to CSS. This allows the XML Document to be generic enough to represent any DSpace page without dictating how it should be rendered.

      15.4. Schema Overview

      The DRI XML Document consists of the root element document and three top-level elements that contain two major types of elements. The three top-level containers are meta, body, and options. The two types of elements they contain are metadata and content, carrying metadata about the page and the contents of the page, respectively. Figure 1 depicts the relationship between these six components.

      Figure 1: The two content types across three major divisions of a DRI page. The document element is the root for all DRI pages and contains all other elements. It bears only one attribute, version, that contains the version number of the DRI system and the schema used to validate the produced document. At the time of writing the working version number is "1.1".

      The meta element is a the top-level element under document and contains all metadata information about the page, the user that requested it, and the repository it is used with. It contains no structural elements, instead being the only container of metadata elements in a DRI Document. The metadata stored by the meta element is broken up into three major groups: userMeta, pageMeta, and objectMeta, each storing metadata information about their respective component. Please refer to the reference entries for more information about these elements.

      The options element is another top-level element that contains all navigation and action options available to the user. The options are stored as items in list elements, broken up by the type of action they perform. The five types of actions are: browsing, search, language selection, actions that are always available, and actions that are context dependent. The two action types also contain sub-lists that contain actions available to users of varying degrees of access to the system. The options element contains no metadata elements and can only make use of a small set of structural elements, namely the list element and its children.

      The last major top-level element is the body element. It contains all structural elements in a DRI Document, including the lists used by the options element. Structural elements are used to build a generic representation of a DSpace page. Any DSpace page can be represented with a combination of the structural elements, which will in turn be transformed by the XSL templates into another format. This is the core mechanism that allows DSpace XML UI to apply uniform templates and styling rules to all DSpace pages and is the fundamental difference from the JSP approach currently used by DSpace.

      The body element directly contains only one type of element: div. The div element serves as a major division of content and any number of them can be contained by the body. Additionally, divisions are recursive, allowing divs to contain other divs. It is within these elements that all other structural elements are contained. Those elements include tables, paragraph elements p, and lists, as well as their various children elements. At the lower levels of this hierarchy lie the character container elements. These elements, namely paragraphs p, table cells, lists items, and the emphasis element hi, contain the textual content of a DSpace page, optionally modified with links, figures, and emphasis. If the division within which the character class is contained is tagged as interactive (via the interactive attribute), those elements can also contain interactive form fields. Divisions tagged as interactive must also provide method and action attributes for its fields to use.

      Figure 2: All the elements in the DRI schema. Note: This image is out-of-date, it does not reflect the changes between 1.0 and 1.1 such as reference and referenceSet.

      15.5. Merging of DRI Documents

      Having described the structure of the DRI Document, as well as its function in Manakin's Aspect chains, we now turn our attention to the one last detail of their use: merging two Documents into one. There are several situations where the need to merge two documents arises. In Manakin, for example, every Aspect is responsible for adding different functionality to a DSpace page. Since every instance of a page has to be a complete DRI Document, each Aspect is faced with the task of merging the Document it generated with the ones generated (and merged into one Document) by previously executed Aspects. For this reason rules exist that describe which elements can be merged together and what happens to their data and child elements in the process.

      When merging two DRI Documents, one is considered to be the main document, and the other a feeder document that is added in. The three top level containers (meta, body and options) of both documents are then individually analyzed and merged. In the case of the options and meta elements, the children tags are taken individually as well and treated differently from their siblings.

      The body elements are the easiest to merge: their respective div children are preserved along with their ordering and are grouped together under one element. Thus, the new body tag will contain all the divs of the main document followed by all the divs of the feeder. However, if two divs have the same n and rend attributes (and in case of an interactive div the same action and method attributes as well), those divs will be merged into one. The resulting div will bear the id, n, and rend attributes of the main document's div and contain all the divs of the main document followed by all the divs of the feeder. This process continues recursively until all the divs have been merged. It should be noted that two divisions with separate pagination rules cannot be merged together.

      Merging the options elements is somewhat different. First, list elements under options of both documents are compared with each other. Those unique to either document are simply added under the new options element, just like divs under body. In case of duplicates, that is list elements that belong to both documents and have the same n attribute, the two lists will be merged into one. The new list element will consist of the main documentís head element, followed label-item pairs from the main document, and then finally the label-item pairs of the feeder, provided they are different from those of the main.

      Finally, the meta elements are merged much like the elements under body. The three children of meta - userMeta, pageMeta, and objectMeta - are individually merged, adding the contents of the feeder after the contents of the main.

      15.6. Version Changes

      The DRI schema will continue to evolve overtime as the needs of interface design require. The version attribute on the document will indicate which version of the schema the document conforms to. At the time Manakin was incorporated into the standard distribution of DSpac the current version was "1.1", however earlier versions of the Manakin interface may use "1.0".

      15.6.1. Changes from 1.0 to 1.1

      There were major structural changes between these two version numbers. Several elements were removed from the schema:includeSet, include, objectMeta, and object. Originally all metadata for objects were included in-line with the DRI document, this proved to have several problems and has been removed in version 1.1 of the DRI schema. Instead of including metadata in-line, external references to the metadata is included. Thus, a reference element has been added along with referenceSet. These new elements operate like their counterparts in the previous version except refrencing metadata contained on the objectMeta element they reference metadata in external files. The repository and repositoryMeta elements were alse modified in a similar mannor removing in-line metadata and refrencing external metadata documents.

      15.7. Element Reference

      Element

      @@ -434,7 +434,7 @@

      target

      required

      -
       

      15.7.1. BODY

      +

       

      15.7.1. BODY

      Top-Level Container

      The body element is the main container for all content displayed to the user. It contains any number of div elements that group content into interactive and display blocks.

      Parent

      @@ -457,7 +457,7 @@ </body> <options> ... </options> </document> -

      15.7.2. cell

      +

      15.7.2. cell

      Rich Text Container

      @@ -486,7 +486,7 @@ </row> ... </table> -

      15.7.3. div

      +

      15.7.3. div

      Structural Element

      The div element represents a major section of content and can contain a wide variety of structural elements to present that content to the user. It can contain paragraphs, tables, and lists, as well as references to artifact information stored in artifactMeta, repositoryMeta, collections, and communities. The div element is also recursive, allowing it to be further divided into other divs. Divs can be of two types: interactive and static. The two types are set by the use of the interactive attribute and differ in their ability to contain interactive content. Children elements of divs tagged as interactive can contain form fields, with the action and method attributes of the div serving to resolve those fields.

      Parent

      @@ -530,7 +530,7 @@ </div> ... </body> -

      15.7.4. DOCUMENT

      +

      15.7.4. DOCUMENT

      Document Root

      The document element is the root container of an XML UI document. All other elements are contained within it either directly or indirectly. The only attribute it carries is the version of the Schema to which it conforms.

      Parent

      none

      Children

      @@ -551,7 +551,7 @@ ... </options> </document> -

      15.7.5. field

      +

      15.7.5. field

      Text Container

      @@ -594,7 +594,7 @@ </field> </p> -

      15.7.6. figure

      +

      15.7.6. figure

      Text Container

      @@ -622,7 +622,7 @@ </figure> ... </p> -

      15.7.7. head

      +

      15.7.7. head

      Text Container

      @@ -659,7 +659,7 @@ </list> ... </body> -

      15.7.8. help

      +

      15.7.8. help

      Text Container

      @@ -681,7 +681,7 @@ </field> ... </p> -

      15.7.9. hi

      +

      15.7.9. hi

      Rich Text Container

      @@ -707,7 +707,7 @@ this text is <hi rend="italic">bold and italic.</hi></hi> </p> -

      15.7.10. instance

      +

      15.7.10. instance

      Structural Element

      The instance element contains the value associated with a form fieldís multiple instances. Fields encoded as an instance should also include the values of each instance as a hidden field. The hidden field should be appended with the index number for the instance. Thus if the field is "firstName" each instance would be named "firstName_1", "firstName_2", "firstName_3", etc...

      Parent

      @@ -715,7 +715,7 @@

      value

      Attributes

      None listed yet.

       Example needed.
      -

      15.7.11. item

      +

      15.7.11. item

      Rich Text Container

      @@ -760,7 +760,7 @@ Example needed. </item> ... </list> -

      15.7.12. label

      +

      15.7.12. label

      Text Container

      @@ -797,7 +797,7 @@ Example needed. <item> This is the third item in the list </item> ... </list> -

      15.7.13. list

      +

      15.7.13. list

      Structural Element

      The list element is used to display sets of sequential data. It contains an optional head element, as well as any number of item and list elements. Items contain textual information, while sublists contain other item or list elements. An item can also be associated with a label element that annotates an item with a number, a textual description of some sort, or a simple bullet. The list type (ordered, bulleted, gloss, etc.) is then determined either by the content of labels on items or by an explicit value of the type attribute. Note that if labels are used in conjunction with any items in a list, all of the items in that list must have a label. It is also recommended to avoid mixing label styles unless an explicit type is specified.

      Parent

      @@ -838,7 +838,7 @@ Example needed. ... </list> </div> -

      15.7.14. META

      +

      15.7.14. META

      Top-Level Container

      The meta element is a top level element and exists directly inside the document element. It serves as a container element for all metadata associated with a document broken up into categories according to the type of metadata they carry.

      Parent

      @@ -858,7 +858,7 @@ Example needed. <body> ... </body> <options> ... </options> </document> -

      15.7.15. metadata

      +

      15.7.15. metadata

      Text Container

      @@ -887,7 +887,7 @@ Example needed. ... </pageMeta> </meta> -

      15.7.16. OPTIONS

      +

      15.7.16. OPTIONS

      Top-Level Container

      The options element is the main container for all actions and navigation options available to the user. It consists of any number of list elements whose items contain navigation information and actions. While any list of navigational options may be contained in this element, it is suggested that at least the following 5 lists be included.

      Parent

      @@ -937,7 +937,7 @@ Example needed. </options> </document> -

      15.7.17. p

      +

      15.7.17. p

      Rich Text Container

      @@ -969,7 +969,7 @@ Example needed. </p> </div> -

      15.7.18. pageMeta

      +

      15.7.18. pageMeta

      Metadata Element

      The pageMeta element contains metadata associated with the document itself. It contains generic metadata elements to carry the content, and any number of trail elements to provide information on the userís current location in the system. Required and suggested values for metadata elements contained in pageMeta include but are not limited to:

      • browser (suggested): The userís browsing agent as reported to server in the HTTP request.

      • browser.type (suggested): The general browser family as derived form the browser metadata field. Possible values may include "MSIE" (for Microsoft Internet Explorer), "Opera" (for the Opera browser), "Apple" (for Apple web kit based browsers), "Gecko" (for Netscape, Mozilla, and Firefox based browsers), or "Lynx" (for text based browsers).

      • browser.version (suggested): The browser version as reported by HTTP Request.

      • contextPath (required): The base URL of the Digital Repository system.

      • redirect.time (suggested): The time that must elapse before the page is redirected to an address specified by the redirect.url metadata element.

      • redirect.url (suggested): The URL destination of a redirect page

      • title (required): The title of the document/page that the user currently browsing.

      See the metadata and trail tag entries for more information on their structure.

      ParentmetaChildrenmetadata (any)trail (any)AttributesNone

      @@ -1000,7 +1000,7 @@ Example needed.
       
       </meta>
       
      -

      15.7.19. params

      +

      15.7.19. params

      Structural Component

      The params element identifies extra parameters used to build a form field. There are several attributes that may be available for this element depending on the field type.

      Parent

      @@ -1021,7 +1021,7 @@ Example needed. </field> </p> -

      15.7.20. reference

      +

      15.7.20. reference

      Metadata Reference Element

      reference is a reference element used to access information stored in an extarnal metadata file. The url attribute is used to locate the external metadata file. The type attribute provides a short limited description of the referenced object's type.

      reference elements can be both contained by includeSet elements and contain includeSets themselves, making the structure recursive.

      Parent

      @@ -1038,7 +1038,7 @@ Example needed. ... </includeSet> -

      15.7.21. referenceSet

      +

      15.7.21. referenceSet

      Metadata Reference Element

      The referenceSet element is a container of artifact or repository references.

      Parent

      @@ -1068,7 +1068,7 @@ Example needed. </referenceSet> ... </p> -

      15.7.22. repository

      +

      15.7.22. repository

      Metadata Element

      The repository element is used to describe the repository. Its principal component is a set of structural metadata that carrier information on how the repositoryís objects under objectMeta are related to each other. The principal method of encoding these relationships at the time of this writing is a METS document, although other formats, like RDF, may be employed in the future.

      Parent

      @@ -1079,7 +1079,7 @@ Example needed. url="/metadata/handle/1234/4/mets.xml" /> </repositoryMeta> -

      15.7.23. repositoryMeta

      +

      15.7.23. repositoryMeta

      Metadata Element

      The repositoryMeta element contains metadata refernces about the repositories used in the used or referenced in the document. It can contain any number of repository elements.

      See the repository tag entry for more information on the structure of repository elements.

      Parent

      @@ -1100,7 +1100,7 @@ Example needed. </repositoryMeta> </meta> -

      15.7.24. row

      +

      15.7.24. row

      Structural Element

      The row element is contained inside a table and serves as a container of cell elements. A required role attribute determines how the row and its cells are rendered.

      Parent

      @@ -1135,7 +1135,7 @@ Example needed. ... </table> -

      15.7.25. table

      +

      15.7.25. table

      Structural Element

      The table element is a container for information presented in tabular format. It consists of a set of row elements and an optional header.

      Parent

      @@ -1178,7 +1178,7 @@ Example needed. </table> ... </div> -

      15.7.26. trail

      +

      15.7.26. trail

      Text Container

      @@ -1203,7 +1203,7 @@ Example needed. ... </pageMeta> -

      15.7.27. userMeta

      +

      15.7.27. userMeta

      Metadata Element

      The userMeta element contains metadata associated with the user that requested the document. It contains generic metadata elements, which in turn carry the information. Required and suggested values for metadata elements contained in userMeta include but not limited to:

      • identifier (suggested): A unique identifier associated with the user.

      • identifier.email (suggested): The requesting userís email address.

      • identifier.firstName (suggested): The requesting userís first name.

      • identifier.lastName (suggested): The requesting userís last name.

      • identifier.logoutURL (suggested): The URL that a user will be taken to when logging out.

      • identifier.url (suggested): A url reference to the userís page within the repository.

      • language.RFC3066 (suggested): The requesting userís preferred language selection code as describe by RFC3066

      • rights.accessRights (required): Determines the scope of actions that a user can perform in the system. Accepted values are:

        • none: The user is either not authenticated or does not have a valid account on the system

        • user: The user is authenticated and has a valid account on the system

        • admin: The user is authenticated and belongs to the systemís administrative group

      See the metadata tag entry for more information on the structure of metadata elements.

      ParentmetaChildrenmetadata (any)Attributes

      authenticated

      required

      Accepted values are "yes", "no". Determines whether the user has been authenticated by the system.

      @@ -1244,7 +1244,7 @@ Example needed.
       
       </meta>
       
      -

      15.7.28. value

      +

      15.7.28. value

      Rich Text Container

      @@ -1272,7 +1272,7 @@ Example needed. </field> </p> -

      15.7.29. xref

      +

      15.7.29. xref

      Text Container

      @@ -1291,11 +1291,10 @@ Example needed. link.</xref> </p> -



      \ No newline at end of file +

      Licensed under a Creative Commons Attribution 3.0 United States License

      \ No newline at end of file diff --git a/dspace/docs/html/ch16.html b/dspace/docs/html/ch16.html index f619bf5de6..0735ff6f8b 100644 --- a/dspace/docs/html/ch16.html +++ b/dspace/docs/html/ch16.html @@ -1,5 +1,5 @@ -Chapter 16. DSpace System Documentation: Version History

      Chapter 16. DSpace System Documentation: Version History

      16.1. Changes in DSpace 1.5.2

      16.1.1. General Improvements

      • The History System has been removed since DSpace 1.5. The [dspace]/history directory and it's contents can be completely removed if you so choose as it is non functional. -

      16.1.2. Bug fixes and smaller patches

      • TBD

      16.2. Changes in DSpace 1.5.1

      16.2.1. General Improvements

      • TBD

      16.2.2. Bug fixes and smaller patches

      • TBD

      16.3. Changes in DSpace 1.5

      16.3.1. General Improvements

      • Highly configurable and theme-able new user interface (Manakin).

      • Apache Maven-based modular build system.

      • LNI (Lightweight Network Interface) service. Allows programmatic ingest of content via WebDAV or SOAP.

      • SWORD (Simple Web-service Offering Repository Deposit): repository-standard ingest service using Atom Publishing Protocol.

      • Highly configurable item web submission system. All submission steps are configurable not just metadata pages.

      • Browse functionality allowing customisation of the available indexes via dspace.cfg and pluggable normalisation of the sort strings. Integration with both JSP-UI and XML-UI included.

      • Extensible content event notification service.

      • Generation of Google and HTML sitemaps

      16.3.2. Bug fixes and smaller patches

      • New options for ItemImporter to support bitstream permissions and descriptions.

      • 1824710 Fix - Change in Creative Commons RDF.

      • 1794700 Fix - Stat-monthly and stat-report-monthly

      • 1566820 Patch - Authentication code moved to new org.dspace.authenticate package, add IP AUth

      • 1670093 Patch - More stable metadata and schema registry import Option to generate community and collection "strength" as a batch job

      • 1659868 Patch - Improved database level debugging

      • 1620700 Patch - Add Community and Sub-Community to OAI Sets

      • 1679972 Fix - OAIDCCrosswalk NPE and invalid character fix, also invalid output prevented

      • 1549290 Fix - Suggest Features uses hard coded strings

      • 1727034 Fix - Method MetadataField.unique() is incorrect for null values

      • 1614546 Fix - Get rid of unused mets_bitstream_id column

      • 1450491 Patch - i18n configurable multilingualism support

      • 1764069 Patch - Replace "String" with "Integer" in PreparedStatement where needed

      • 1743188 Patch - for Request #1145499 - Move Items

      • 179196 Patch - Oracle SQL in Bitstream Checker

      • 1751638 Patch - Set http disposition header to force download of large bitstreams

      • 1799575 Patch - New EPersonConsumer event consumer

      • 1566572 Patch - Item metadata in XHTML head elements

      • 1589429 Patch - "Self-Named" Media Filters (i.e. MediaFilter Plugins) (updated version of this patch)

      • 1888652 Patch - Statistics Rewritten In Java

      • 1444364 Request - Metadata registry exporter

      • 1221957 Request - Admin browser for withdrawn items

      • 1740454 Fix - Concurrency

      • 1552760 Fix - Submit interface looks bad in Safari

      • 1642563 Patch - bin/update-handle-prefix rewritten in Java

      • 1724330 Fix - Removes "null" being displayed in community-home.jsp

      • 1763535 Patch - Alert DSpace administrator of new user registration

      • 1759438 Patch - Multilingualism Language Switch - DSpace Header

      16.4. Changes in DSpace 1.4.1

      16.4.1. General Improvements

      • Error pages now return appropriate HTTP status codes (e.g. 404 not found)

      • Bad filenames in /bitstream/ URLs now result in 404 error -- prevents infinite URL spaces confusing crawlers and bad "persistent" bitstream IDs circulating

      • Prevent infinite URL spaces in HTMLServlet

      • InstallItem no longer sets dc.format.extent, dc.format.mimetype; no longer sets default value for dc.language.iso if one is not present

      • Empty values in drop-down submit fields are not added as empty metadata values

      • API methods for searching epeople and groups

      • Support stats from both 1.3 and 1.4

      • [dspace]/bin/update-handle-prefix now runs index-all

      • Remove cases of System.out from code executed in webapp

      • Change "View Licence" to "View License" in Messages.properties

      • dspace.cfg comments changed to indicate what default.language actually means

      • HandleServlet and BitstreamServlet support If-Modified-Since requests

      • Improved sanity-checking of XSL-based ingest crosswalks

      • Remove thumbnail filename from alt-text

      • Include item title in HTML title element

      • Improvements to help prevent spammers and sploggers

      • Make cleanup() commit outstanding work every 100 iterations

      • Better handling where email send failed due to wrong address for new user

      • Include robots.txt to limit bots navigating author, date and browse by subject pages

      • Add css styles for print media

      • RSS made more configurable and provide system-wide RSS feed, also moves text to Messages.properties

      • Jar file updates (includes required code changes for DSIndexer and DSQuery and new jars fontbox.jar and serializer.jar)

      • Various documentation additions and cleanups

      • XHTML compliance improvements

      • Move w3c valid xhtml boiler image into local repository

      • Remove uncessary Log4j Configuration in CheckerCommand

      • Include Windows CLASSPATH in dsrun.bat

      16.4.2. Bug fixes

      • 1604037 - UIUtil.encodeBitstream() now correctly encodes URLs (no longer incorrectly substitutes '+' for spaces in non-query segment

      • 1592984 - Date comparisons strip time in org.dspace.harvest.Harvest

      • 1589902 - Duplicate [field] checking error [on input-forms.xml]

      • 1596952 - Collection Wizard create Template missing schema

      • 1596978 - View unfinished submissions - collection empty

      • 1588625 - Incorrect text on item mapper screen

      • 1597805 - DIDL Crosswalk: wrong resource management

      • 1605635 - NPE in Utils.java

      • 1597504 - Search result page shows shortened query string

      • 1532389 - Item Templates do not work for non-dc fields

      • 1066771 - Metadata edit form dropping DC qualifier

      • 1548738 - Multiple Metadata Schema, schema not shown on edit item page

      • 1589895 - Not possible to add unqualified Metadata Field

      • 1543853 - Statistics do not work in 1.4

      • 1541381 - Browse-by-date and browse-by-title not working

      • 1556947 - NullPointerException when no user selected to del/edit

      • 1554064 - Fix exception handling for ClassCastException in BitstreamServlet

      • 1548865 - Browse errors on withdrawn item

      • 1554056 - Community/collection handle URL with / redirects to homepage

      • 1571490 - UTF-8 encoded characters in licence

      • 1571519 - UTF-8 in statistics

      • 1544807 - Browse-by-Subject/Author paging mechanism broken

      • 1543966 - "Special" groups inside groups bug

      • 1480496 - Cannot turn off "ignore authorization" flag!

      • 1515148 - Community policies not deleting correctly

      • 1556829 - Docs mention old SiteAuthenticator class

      • 1606435 - Workflow text out of context

      • Fix for bitstream authorization timeout

      • Fix to make sure cleanup() doesn't fail with NullPointerException

      • Fix for removeBitstream() failing to update primary bitstream

      • Fix for Advanced Search ignoring conjunctions for arbitrary number of queries

      • Fix minor bug in Harvest.java for Oracle users

      • Fix missing title for news editor page

      • Small Messages.properties modification (change of DSpace copyright text)

      • fix PDFBox tmp file issue

      • Fix HttpServletRequest encoding issues

      • Fix bug in TableRow toString() method where NPE is thrown if tablename not set

      • Update DIDL license and change coding style to DSpace standard

      16.5. Changes in DSpace 1.4

      16.5.1. General Improvements

      • Content verification through periodic checksum checking

      • Support for branded preview image

      • Add/replace Creative Commons in 'edit item' tool

      • Customisable item listing columns and browse indices

      • Script for updating handle prefixes (e.g. for moving from development to production)

      • Configurable boolean search operator

      • Controlled vocabulary patch to provide search on classification terms, and addition of terms during submission.

      • Add 'visibility' element to input-forms.xml

      • Browse by subject feature

      • Log4J enhancement to use XML configuration

      • QueryArgs class can support any number of fields in advanced search.

      • Community names no longer have to be unique

      • Enhanced Windows support

      • Support for multiple (flat) metadata schemas

      • Suggest an item page

      • RSS Feeds

      • Performance enhancements

      • Stackable authentication methods

      • Plug-in manager

      • Pluggable SIP/DIP support and metadata crosswalks

      • Nested groups of e-people

      • Expose METS and MPEG-21 DIDL DIPs via OAI-PMH

      • Configurable Lucene search analyzer (e.g. for Chinese metadata)

      • Support for SMTP servers requiring authentication

      16.5.2. Bug fixes

      • 1358197 - Edit Item, empty DC fields not removable

      • 1363633 - Submission step 1 fails when there are no collections

      • 1255264 - Resource policy eperson value was set to wrong column

      • 1380494 - Error deleting an item with multiple metadata schema support

      • 1443649 - Cannot configure unqualified elements for advanced search index

      • 1333687 - Browse-(title|date) fails on withdrawn item

      • 1066713 - Two (sub)communities cannot have one name

      • 1284055 - Two Communities of same name throws error

      • 1035366 - Bitstream size column should be bigint

      • 1352257 - Selecting a Group for GroupToGroup while Creating Collection

      • 1352226 - Navigation and Sorting in Group List (Select Groups) fails

      • 1348276 - Null in collection name causes OAI ListSets to fail

      • 1160898 - dspace_migrate removes Date.Issued from prev published items

      • 1261191 - Malformed METS metadata exported

      16.6. Changes in DSpace 1.3.2

      16.6.1. General Improvements

      • DSpace UI XHTML/WAI compliant

      • Configure metadata fields shown on simple item display

      • Supervisor/workspace help documentation

      16.6.2. Bug fixes

      • Oracle compatibility fixes

      • Item exporter now correctly exports metadata in UTF-8

      • fixed to handle 'null' values passed in

      16.7. Changes in DSpace 1.3.1

      16.7.1. Bug fixes

      • 1252153 - Error on fresh install

      16.8. Changes in DSpace 1.3

      16.8.1. General Improvements

      • Initial i18n Support for JSPs - Note: the implementation of this feature required changes to almost all JSP pages

      • LDAP authentication support

      • Log file analysis and report generation

      • Configurable item licence viewing

      • Supervision order/collaborative workspace administrative tools

      • Basic workspace for submissions in progress, with support for supervision

      • SRB storage system option

      • Updated handle server system

      • Database optimisations

      • Latest versions of Xerces, Xalan and OAICAT jars

      • Various documentation additions and cleanups

      16.8.2. Bug fixes

      • 1161459 - ItemExporter fails with Too many open files

      • 1167373 - Email date field not populated

      • 1193948 - New item submit problem

      • 1188132 - NullPointerException when Adding EPerson

      • 1188016 - Cannot Edit an Eperson

      • 1219701 - Unable to open unfinished submission

      • 1206836 - community strengths not reflecting sub-community

      • 1238262 - Submit UI nav/progress buttons no longer show progress

      • 1238276 - Double quote problem in some fields in submit UI

      • 1238277 - format support level not shown in "uploaded file" page

      • 1242548 - Uploading non-existing files

      • 1244743 - Bad lookup key for special case of DC Title in ItemTag.java

      • 1245223 - Subscription Emailer fails

      • 1247508 - Error when browsing item with no content/bitstream collections

      • Set the content type in the HTTP header

      • Fix issue where EPerson edit would not work due to form indexing (partial fix)

      • POST handling in HTMLServlet

      • Missing ContentType directives added to some JSPs

      • Name dependency on Collection Admin and Submitter groups fixed

      • Fixed OAI-PMH XML encoding

      16.9. Changes in DSpace 1.2.2

      16.9.1. General Improvements

      • Customisable submission forms added

      • Configurable number of index terms in Lucene for full-text indexing

      • Improved scalability in media filter

      • Submit button on collection pages only appears if user has authorisation

      • PostgreSQL 8.0 compatibility

      • Search scope retention to improve browsing

      • Community and collection strengths displayed

      • Upgraded OAICat software

      16.9.2. Bug fixes

      • Fix for Oracle too many cursors problem.

      • Fix for UTF-8 encoded searches in advanced search.

      • Fix for handling "\" in bitstream names.

      • Fix to prevent delete of "unknown" bitstream format

      • Fix for ItemImport creating new handles for replaced items

      16.9.3. Changes in JSPs

      • +Chapter 16. DSpace System Documentation: Version History

        Chapter 16. DSpace System Documentation: Version History

        16.1. Changes in DSpace 1.6.0

        16.1.1. New Features

        • DS-161 - Bulk Metadata Editing (Batch Metadata Editing)

        • DS-194 - Give METS ingester configuration option to make use of collection templates

        • DS-195 - Allow the primary bitstream to be set in the item importer / exporter

        • DS-204 - New -zip option for item exporter and importer

        • DS-205 - Creative Commons - option to set legal jurisdiction

        • DS-228 - Community Admin XMLUI: Delegated Admins Patch

        • DS-288 - Hide metadata from full item view

        • DS-317 - Embargo feature

        • DS-323 - ItemUpdate - new feature to batch update metadata and bitstreams

        • DS-324 - Add support for OpenSearch syndicated search conventions

        • DS-330 - Create new session on login / invalidate sessions on logout

        • DS-359 - Add alternate file appender for log4j

        • DS-377 - Add META tags identifying DSpace source version to Web UIs

        • DS-388 - Item importer - new option to enable workflow notification emails

        16.1.2. General Improvments

        • DS-196 - METS exposed via OAI-PMH includes descritpion.provenance information

        • DS-201- handle.jar 6.2 needs adding to DSpace Maven repository

        • DS-213 - IPAuthentication extended to allow negative matching

        • DS-219 - Internal Server error - include login details of user

        • DS-221 - XMLUI 'current activity' recognises Google Chrome as Safari

        • DS-234 - Configurable passing of Javamail parameter settings

        • DS-238 - Move item function in xmlui

        • DS-252 - Interpolate variables in the Subject: line of email templates as well

        • DS-261 - Community Admin JSPUI: porting of the DS-228 patch

        • DS-270 - Make delegate admin permissions configurable

        • DS-271 - Make the OAI DC crosswalk configurable

        • DS-291 - README update for top level of dspace 1.6.0 package directory

        • DS-297 - Refactor SQL source and Ant script to avoid copying Oracle versions over PostgreSQL

        • DS-299 - Allow long values to be specified for the max upload request (for uploading files greater than 2Gb)

        • DS-306 - Option to disable mailserver

        • DS-307 - Offer access in AbstractSearch to QueryResults for subclasses

        • DS-315 - Enhance readability of embedded metadata in html head

        • DS-316 - Make SWORD app:accepts configurable

        • DS-319 - Replace /dspace/bin/dsrun org.dspace.browse.ItemCounter with /dspace/bin/itemcounter

        • DS-333 - Adjust SWORD ingest crosswalk to store bibliographic citation

        • DS-356 - Antispam for suggest item feature

        • DS-372 - New verbose option for [dspace]/bin/dspace cleanup script

        • DS-382 - Add 'dc.creator' to Author browse index by default

        • DS-386 - Allow user to specify which <dmdSec> is used by the METS Ingester when importing METS from Packager script

        • DS-389 - Misleading label: "Submit to This Collection" is corrected

        • DS-52 - Factor out common webapp installation - ID: 2042160

        16.1.3. Bug fixes

        • DS-44 - Monthly statistics skip first and last of month - ID: 2541435

        • DS-114 - Links not working due to trailing white space in dspace.url

        • DS-118 - File preview link during submission leeds to page not found

        • DS-128 - Anchor in submission doesn't work

        • DS-156 - File description not available in XMLUI

        • DS-191 - metadataschemaregistry_seq is not initialized correctly under Oracle

        • DS-193 - OAI RDF crosswalk fails when DC value is null

        • DS-197 - Deleting a primary bitstream does not clear the primary_bitstream_id on the bundle table

        • DS-198 - File descriptions can not be removed/cleared in XMLUI

        • DS-199 - SWORD module doesn't accept X-No-Op header (dry run)

        • DS-200 - SWORD module requires the X-Packaging header

        • DS-206 - Input form visibility restriction doesn't work properly

        • DS-209 - Context.java turnOffAuthorisationSystem() can throw a NPE

        • DS-212 - NPE thrown during Harvest of non-items when visibility restriction is enabled

        • DS-216 - Migrating items that use additional metadata schemas causes an NPE

        • DS-218 - Cannot add/remove email subscriptions from Profile page in XMLUI

        • DS-222 - Email alerts due to internal errors are not sent, if context is missing

        • DS-223 - Submission process show previous button in JSPUI also if the step is the first "visible" step

        • DS-225 - dc.description.provenance - public display

        • DS-226 - confirmation page of edit profile has an invalid link

        • DS-227 - Values with double apos doesn't work in dropdown and list input type

        • DS-231 - Missig file for index-init

        • DS-232 - DCPersonName parses name incorrectly (fix included)

        • DS-240 - Item validityKey not complete

        • DS-242 - Special groups shown for logged in user rather than for user being examined

        • DS-246 - Fix configurable browse parameter encoding (XMLUI)

        • DS-248 - Missing admin column in community table in database-schema.sql - community admin patch

        • DS-249 - sub-daily utility script does not pass arguments to Java (fix included)

        • DS-250 - Invalid identifers are not escaped

        • DS-254 - Bitstream (and item-export) download service does not correctly sense authenticated user

        • DS-255 - CompleteStep in submission LOSES SUBMISSION if an exception is thrown

        • DS-256 - Item Export ignores metadata language qualifier

        • DS-258 - Item View Thumbnails not displaying in XMLUI

        • DS-260 - Template item some times has owningCollection filled and some times not

        • DS-262 - Bug in DS-118, new patch included

        • DS-265 - IndexBrowse dies fatally when confronting badly-formatted date

        • DS-269 - Oracle JDBC connection string wrong in dspace.cfg - ID: 2722093

        • DS-274 - Typo in XSL breaks rendering of dri:xref with class

        • DS-275 - License files not listed on Item Summary page; XSL bug with patch

        • DS-276 - Patch to fix spelling error in Exception page

        • DS-280 - build.xml fails for ant versions below 1.7 (patch included)

        • DS-281 - Invalid Link to "Go to DSpace Home" on Page Not Found

        • DS-285 - Item and Bitstream pages do not provide Last-Modified HTTP header, nor recognize If-Modified-Since

        • DS-290 - [dspace]/exports is not created during fresh install

        • DS-303 - Export migrate option incorrectly removes non-handle identifier.uris

        • DS-309 - Shiboleth default roles are applied also to anonymous user and user logged-in with other methods

        • DS-310 - UTF-8 encoding in community and collection text

        • DS-318 - JSPUI: Left over text in edit item about format

        • DS-320 - java.util.NoSuchElementException: Timeout waiting for idle object

        • DS-327 - SWORD temp upload directory missing trailing slash

        • DS-328 - SWORD service documents do not include atom:generator element

        • DS-337 - A bug related with adding new -EPersons

        • DS-338 - Bitstream download allows caching of content that requires authorization to read

        • DS-344 - Apostrophe in email address prevents EPerson from being selected

        • DS-349 - Edit Item in admin UI does not allow setting Bitstream to an Internal BitstreamFormat

        • DS-353 - Missing commits in XMLUI server-side javascript code.

        • DS-354 - Make-handle-server configuration fails. New command created using dspace launcher.

        • DS-370 - E Mail Sent On Item Export Error Message

        • DS-373 - "Letter" links have broken URLs in 2nd-stage Browse

        • DS-378 - XMLUI Submission Interface messes up in IE7 after an empty <hint> in input_forms.xml

        • DS-379 - open-search in jspui won't return description.xml

        • DS-381 - community and collection homepage

        • DS-385 - Packager script is unable to import the same METS + DIM package that was exported

        • DS-392 - Error messages in the submission do not disappear if e.g. one of the two errors are solved

        • DS-393 - The issue date in the submission lowers each time the describe page is being displayed

        16.1.4. Changes in DSpace 1.5.2

        16.1.4.1. General Improvements

        • The History System has been removed since DSpace 1.5. The [dspace]/history directory and it's contents can be completely removed if you so choose as it is non functional. +

        16.1.4.2. Bug fixes and smaller patches

        • TBD

        16.1.5. Changes in DSpace 1.5.1

        16.1.5.1. General Improvements

        • TBD

        16.1.5.2. Bug fixes and smaller patches

        • TBD

        16.1.6. Changes in DSpace 1.5

        16.1.6.1. General Improvements

        • Highly configurable and theme-able new user interface (Manakin).

        • Apache Maven-based modular build system.

        • LNI (Lightweight Network Interface) service. Allows programmatic ingest of content via WebDAV or SOAP.

        • SWORD (Simple Web-service Offering Repository Deposit): repository-standard ingest service using Atom Publishing Protocol.

        • Highly configurable item web submission system. All submission steps are configurable not just metadata pages.

        • Browse functionality allowing customisation of the available indexes via dspace.cfg and pluggable normalisation of the sort strings. Integration with both JSP-UI and XML-UI included.

        • Extensible content event notification service.

        • Generation of Google and HTML sitemaps

        16.1.6.2. Bug fixes and smaller patches

        • New options for ItemImporter to support bitstream permissions and descriptions.

        • 1824710 Fix - Change in Creative Commons RDF.

        • 1794700 Fix - Stat-monthly and stat-report-monthly

        • 1566820 Patch - Authentication code moved to new org.dspace.authenticate package, add IP AUth

        • 1670093 Patch - More stable metadata and schema registry import Option to generate community and collection "strength" as a batch job

        • 1659868 Patch - Improved database level debugging

        • 1620700 Patch - Add Community and Sub-Community to OAI Sets

        • 1679972 Fix - OAIDCCrosswalk NPE and invalid character fix, also invalid output prevented

        • 1549290 Fix - Suggest Features uses hard coded strings

        • 1727034 Fix - Method MetadataField.unique() is incorrect for null values

        • 1614546 Fix - Get rid of unused mets_bitstream_id column

        • 1450491 Patch - i18n configurable multilingualism support

        • 1764069 Patch - Replace "String" with "Integer" in PreparedStatement where needed

        • 1743188 Patch - for Request #1145499 - Move Items

        • 179196 Patch - Oracle SQL in Bitstream Checker

        • 1751638 Patch - Set http disposition header to force download of large bitstreams

        • 1799575 Patch - New EPersonConsumer event consumer

        • 1566572 Patch - Item metadata in XHTML head elements

        • 1589429 Patch - "Self-Named" Media Filters (i.e. MediaFilter Plugins) (updated version of this patch)

        • 1888652 Patch - Statistics Rewritten In Java

        • 1444364 Request - Metadata registry exporter

        • 1221957 Request - Admin browser for withdrawn items

        • 1740454 Fix - Concurrency

        • 1552760 Fix - Submit interface looks bad in Safari

        • 1642563 Patch - bin/update-handle-prefix rewritten in Java

        • 1724330 Fix - Removes "null" being displayed in community-home.jsp

        • 1763535 Patch - Alert DSpace administrator of new user registration

        • 1759438 Patch - Multilingualism Language Switch - DSpace Header

        16.1.7. Changes in DSpace 1.4.1

        16.1.7.1. General Improvements

        • Error pages now return appropriate HTTP status codes (e.g. 404 not found)

        • Bad filenames in /bitstream/ URLs now result in 404 error -- prevents infinite URL spaces confusing crawlers and bad "persistent" bitstream IDs circulating

        • Prevent infinite URL spaces in HTMLServlet

        • InstallItem no longer sets dc.format.extent, dc.format.mimetype; no longer sets default value for dc.language.iso if one is not present

        • Empty values in drop-down submit fields are not added as empty metadata values

        • API methods for searching epeople and groups

        • Support stats from both 1.3 and 1.4

        • [dspace]/bin/update-handle-prefix now runs index-all

        • Remove cases of System.out from code executed in webapp

        • Change "View Licence" to "View License" in Messages.properties

        • dspace.cfg comments changed to indicate what default.language actually means

        • HandleServlet and BitstreamServlet support If-Modified-Since requests

        • Improved sanity-checking of XSL-based ingest crosswalks

        • Remove thumbnail filename from alt-text

        • Include item title in HTML title element

        • Improvements to help prevent spammers and sploggers

        • Make cleanup() commit outstanding work every 100 iterations

        • Better handling where email send failed due to wrong address for new user

        • Include robots.txt to limit bots navigating author, date and browse by subject pages

        • Add css styles for print media

        • RSS made more configurable and provide system-wide RSS feed, also moves text to Messages.properties

        • Jar file updates (includes required code changes for DSIndexer and DSQuery and new jars fontbox.jar and serializer.jar)

        • Various documentation additions and cleanups

        • XHTML compliance improvements

        • Move w3c valid xhtml boiler image into local repository

        • Remove uncessary Log4j Configuration in CheckerCommand

        • Include Windows CLASSPATH in dsrun.bat

        16.1.7.2. Bug fixes

        • 1604037 - UIUtil.encodeBitstream() now correctly encodes URLs (no longer incorrectly substitutes '+' for spaces in non-query segment

        • 1592984 - Date comparisons strip time in org.dspace.harvest.Harvest

        • 1589902 - Duplicate [field] checking error [on input-forms.xml]

        • 1596952 - Collection Wizard create Template missing schema

        • 1596978 - View unfinished submissions - collection empty

        • 1588625 - Incorrect text on item mapper screen

        • 1597805 - DIDL Crosswalk: wrong resource management

        • 1605635 - NPE in Utils.java

        • 1597504 - Search result page shows shortened query string

        • 1532389 - Item Templates do not work for non-dc fields

        • 1066771 - Metadata edit form dropping DC qualifier

        • 1548738 - Multiple Metadata Schema, schema not shown on edit item page

        • 1589895 - Not possible to add unqualified Metadata Field

        • 1543853 - Statistics do not work in 1.4

        • 1541381 - Browse-by-date and browse-by-title not working

        • 1556947 - NullPointerException when no user selected to del/edit

        • 1554064 - Fix exception handling for ClassCastException in BitstreamServlet

        • 1548865 - Browse errors on withdrawn item

        • 1554056 - Community/collection handle URL with / redirects to homepage

        • 1571490 - UTF-8 encoded characters in licence

        • 1571519 - UTF-8 in statistics

        • 1544807 - Browse-by-Subject/Author paging mechanism broken

        • 1543966 - "Special" groups inside groups bug

        • 1480496 - Cannot turn off "ignore authorization" flag!

        • 1515148 - Community policies not deleting correctly

        • 1556829 - Docs mention old SiteAuthenticator class

        • 1606435 - Workflow text out of context

        • Fix for bitstream authorization timeout

        • Fix to make sure cleanup() doesn't fail with NullPointerException

        • Fix for removeBitstream() failing to update primary bitstream

        • Fix for Advanced Search ignoring conjunctions for arbitrary number of queries

        • Fix minor bug in Harvest.java for Oracle users

        • Fix missing title for news editor page

        • Small Messages.properties modification (change of DSpace copyright text)

        • fix PDFBox tmp file issue

        • Fix HttpServletRequest encoding issues

        • Fix bug in TableRow toString() method where NPE is thrown if tablename not set

        • Update DIDL license and change coding style to DSpace standard

        16.1.8. Changes in DSpace 1.4

        16.1.8.1. General Improvements

        • Content verification through periodic checksum checking

        • Support for branded preview image

        • Add/replace Creative Commons in 'edit item' tool

        • Customisable item listing columns and browse indices

        • Script for updating handle prefixes (e.g. for moving from development to production)

        • Configurable boolean search operator

        • Controlled vocabulary patch to provide search on classification terms, and addition of terms during submission.

        • Add 'visibility' element to input-forms.xml

        • Browse by subject feature

        • Log4J enhancement to use XML configuration

        • QueryArgs class can support any number of fields in advanced search.

        • Community names no longer have to be unique

        • Enhanced Windows support

        • Support for multiple (flat) metadata schemas

        • Suggest an item page

        • RSS Feeds

        • Performance enhancements

        • Stackable authentication methods

        • Plug-in manager

        • Pluggable SIP/DIP support and metadata crosswalks

        • Nested groups of e-people

        • Expose METS and MPEG-21 DIDL DIPs via OAI-PMH

        • Configurable Lucene search analyzer (e.g. for Chinese metadata)

        • Support for SMTP servers requiring authentication

        16.1.8.2. Bug fixes

        • 1358197 - Edit Item, empty DC fields not removable

        • 1363633 - Submission step 1 fails when there are no collections

        • 1255264 - Resource policy eperson value was set to wrong column

        • 1380494 - Error deleting an item with multiple metadata schema support

        • 1443649 - Cannot configure unqualified elements for advanced search index

        • 1333687 - Browse-(title|date) fails on withdrawn item

        • 1066713 - Two (sub)communities cannot have one name

        • 1284055 - Two Communities of same name throws error

        • 1035366 - Bitstream size column should be bigint

        • 1352257 - Selecting a Group for GroupToGroup while Creating Collection

        • 1352226 - Navigation and Sorting in Group List (Select Groups) fails

        • 1348276 - Null in collection name causes OAI ListSets to fail

        • 1160898 - dspace_migrate removes Date.Issued from prev published items

        • 1261191 - Malformed METS metadata exported

        16.1.9. Changes in DSpace 1.3.2

        16.1.9.1. General Improvements

        • DSpace UI XHTML/WAI compliant

        • Configure metadata fields shown on simple item display

        • Supervisor/workspace help documentation

        16.1.9.2. Bug fixes

        • Oracle compatibility fixes

        • Item exporter now correctly exports metadata in UTF-8

        • fixed to handle 'null' values passed in

        16.1.10. Changes in DSpace 1.3.1

        16.1.10.1. Bug fixes

        • 1252153 - Error on fresh install

        16.1.11. Changes in DSpace 1.3

        16.1.11.1. General Improvements

        • Initial i18n Support for JSPs - Note: the implementation of this feature required changes to almost all JSP pages

        • LDAP authentication support

        • Log file analysis and report generation

        • Configurable item licence viewing

        • Supervision order/collaborative workspace administrative tools

        • Basic workspace for submissions in progress, with support for supervision

        • SRB storage system option

        • Updated handle server system

        • Database optimisations

        • Latest versions of Xerces, Xalan and OAICAT jars

        • Various documentation additions and cleanups

        16.1.11.2. Bug fixes

        • 1161459 - ItemExporter fails with Too many open files

        • 1167373 - Email date field not populated

        • 1193948 - New item submit problem

        • 1188132 - NullPointerException when Adding EPerson

        • 1188016 - Cannot Edit an Eperson

        • 1219701 - Unable to open unfinished submission

        • 1206836 - community strengths not reflecting sub-community

        • 1238262 - Submit UI nav/progress buttons no longer show progress

        • 1238276 - Double quote problem in some fields in submit UI

        • 1238277 - format support level not shown in "uploaded file" page

        • 1242548 - Uploading non-existing files

        • 1244743 - Bad lookup key for special case of DC Title in ItemTag.java

        • 1245223 - Subscription Emailer fails

        • 1247508 - Error when browsing item with no content/bitstream collections

        • Set the content type in the HTTP header

        • Fix issue where EPerson edit would not work due to form indexing (partial fix)

        • POST handling in HTMLServlet

        • Missing ContentType directives added to some JSPs

        • Name dependency on Collection Admin and Submitter groups fixed

        • Fixed OAI-PMH XML encoding

        16.1.12. Changes in DSpace 1.2.2

        16.1.12.1. General Improvements

        • Customisable submission forms added

        • Configurable number of index terms in Lucene for full-text indexing

        • Improved scalability in media filter

        • Submit button on collection pages only appears if user has authorisation

        • PostgreSQL 8.0 compatibility

        • Search scope retention to improve browsing

        • Community and collection strengths displayed

        • Upgraded OAICat software

        16.1.12.2. Bug fixes

        • Fix for Oracle too many cursors problem.

        • Fix for UTF-8 encoded searches in advanced search.

        • Fix for handling "\" in bitstream names.

        • Fix to prevent delete of "unknown" bitstream format

        • Fix for ItemImport creating new handles for replaced items

        16.1.12.3. Changes in JSPs

        • collection-home.jsp changed

        • @@ -65,7 +65,7 @@

        • submit/upload-file-list.jsp changed -

        16.10. Changes in DSpace 1.2.1

        16.10.1. General Improvements

        • Oracle support added

        • Thumbnails in item view can now be switched off/on

        • Browse and search thumbnail options

        • Improved item importer

          • can now import to multiple collections

          • added --test flag to simulate an import, without actually making any changes

          • added --resume flag to try to resume the import in case the import is aborted

        • Configurable fields for the search index

        • Script for transferring items between DSpace instances

        • Sun library JARs (JavaMail, Java Activation Framework and Servlet) now included in DSpace source code bundle

        16.10.2. Bug fixes

        • A logo to existing collection can now be added. Fixes SF bug #1065933

        • The community logo can now be edited. Fixes SF bug #1035692

        • MediaFilterManager doesn't 'touch' every item every time. Fixes SF bug #1015296

        • Supported formats help page, set the format support level to "known" as default

        • Fixed various database connection pool leaks

        16.10.3. Changed JSPs

        • +

        16.1.13. Changes in DSpace 1.2.1

        16.1.13.1. General Improvements

        • Oracle support added

        • Thumbnails in item view can now be switched off/on

        • Browse and search thumbnail options

        • Improved item importer

          • can now import to multiple collections

          • added --test flag to simulate an import, without actually making any changes

          • added --resume flag to try to resume the import in case the import is aborted

        • Configurable fields for the search index

        • Script for transferring items between DSpace instances

        • Sun library JARs (JavaMail, Java Activation Framework and Servlet) now included in DSpace source code bundle

        16.1.13.2. Bug fixes

        • A logo to existing collection can now be added. Fixes SF bug #1065933

        • The community logo can now be edited. Fixes SF bug #1035692

        • MediaFilterManager doesn't 'touch' every item every time. Fixes SF bug #1015296

        • Supported formats help page, set the format support level to "known" as default

        • Fixed various database connection pool leaks

        16.1.13.3. Changed JSPs

        • collection-home changed

        • @@ -116,11 +116,10 @@

        • layout/navbar-admin changed -

        16.11. Changes in DSpace 1.2

        16.11.1. General Improvments

        • Communities can now contain sub-communities

        • Items may be included in more than one collection

        • Full text extraction and searching for MS Word, PDF, HTML, text documents

        • Thumbnails displayed in item view for items that contain images

        • Configurable MediaFilter tool creates both extracted text and thumbnails

        • Bitstream IDs are now persistent - generated from item's handle and a sequence number

        • Creative Commons licenses can optionally be added to items during web submission process

        16.11.2. Administration

        • If you are logged in as administrator, you see admin buttons on item, collection, and community pages

        • New collection administration wizard

        • Can now administer collection's submitters from collection admin tool

        • Delegated administration - new 'collection editor' role - edits item metadata, manages submitters list, edits collection metadata, links to items from other collections, and can withdraw items

        • Admin UI moved from /admin to /dspace-admin to avoid conflict with Tomcat /admin JSPs

        • New EPerson selector popup makes Group editing much easier

        • 'News' section is now editable using admin UI (no more mucking with JSPs)

        16.11.3. Import/Export/OAI

        • New tool that exports DSpace content in AIPs that use METS XML for metadata (incomplete)

        • OAI - sets are now collections, identified by Handles ('safe' with /, : converted to _)

        • OAI - contributor.author now mapped to oai_dc:creator

        16.11.4. Miscellaneous

        • Build process streamlined with use of WAR files, symbolic links no longer used, friendlier to later versions of Tomcat

        • MIT-specific aspects of UI removed to avoid confusion

        • Item metadata now rendered to avoid interpreting as HTML (displays as entered)

        • Forms now have no-cache directive to avoid trouble with browser 'back' button

        • Bundles now have 'names' for more structure in item's content

        16.11.5. JSP file changes between 1.1 and 1.2

        This list generated with cvs -Q rdiff -s -r dspace-1_1 dspace and a sprinkling of perl.

        • Changed: dspace/jsp/collection-home.jsp

        • Changed: dspace/jsp/community-home.jsp

        • Changed: dspace/jsp/community-list.jsp

        • Changed: dspace/jsp/display-item.jsp

        • Changed: dspace/jsp/index.jsp

        • Changed: dspace/jsp/home.jsp

        • Changed: dspace/jsp/styles.css.jsp

        • Moved to dspace-admin and changed: dspace/jsp/admin/authorize-advanced.jsp

        • Moved to dspace-admin and changed: dspace/jsp/admin/authorize-collection-edit.jsp

        • Moved to dspace-admin and changed: dspace/jsp/admin/authorize-community-edit.jsp

        • Moved to dspace-admin and changed: dspace/jsp/admin/authorize-item-edit.jsp

        • Moved to dspace-admin and changed: dspace/jsp/admin/authorize-main.jsp

        • Moved to dspace-admin and changed: dspace/jsp/admin/authorize-policy-edit.jsp

        • Moved to dspace-admin: dspace/jsp/admin/collection-select.jsp

        • Moved to dspace-admin: dspace/jsp/admin/community-select.jsp

        • Moved to dspace-admin: dspace/jsp/admin/confirm-delete-collection.jsp

        • Moved to dspace-admin: dspace/jsp/admin/confirm-delete-community.jsp

        • Moved to dspace-admin: dspace/jsp/admin/confirm-delete-dctype.jsp

        • Moved to dspace-admin: dspace/jsp/admin/confirm-delete-eperson.jsp

        • Moved to dspace-admin: dspace/jsp/admin/confirm-delete-format.jsp

        • Moved to dspace/jsp/tools: dspace/jsp/admin/confirm-delete-item.jsp

        • Moved to dspace/jsp/tools: dspace/jsp/admin/confirm-withdraw-item.jsp

        • Moved to dspace-admin and changed: dspace/jsp/admin/edit-collection.jsp

        • Moved to dspace-admin and changed: dspace/jsp/admin/edit-community.jsp

        • Moved to dspace/jsp/tools and changed: dspace/jsp/admin/edit-item-form.jsp

        • Moved to dspace-admin and changed: dspace/jsp/admin/eperson-browse.jsp

        • Moved to dspace-admin: dspace/jsp/admin/eperson-confirm-delete.jsp

        • Moved to dspace-admin and changed: dspace/jsp/admin/eperson-edit.jsp

        • Moved to dspace-admin and changed: dspace/jsp/admin/eperson-main.jsp

        • Moved to dspace/jsp/tools and changed: dspace/jsp/admin/get-item-id.jsp

        • Moved to dspace/jsp/tools and changed: dspace/jsp/admin/group-edit.jsp

        • Moved to dspace-admin and changed: dspace/jsp/admin/group-eperson-select.jsp

        • Moved to dspace/jsp/tools and changed: dspace/jsp/admin/group-list.jsp

        • Moved to dspace-admin: dspace/jsp/admin/index.jsp

        • Moved to dspace-admin and changed: dspace/jsp/admin/item-select.jsp

        • Moved to dspace-admin and changed: dspace/jsp/admin/list-communities.jsp

        • Moved to dspace-admin and changed: dspace/jsp/admin/list-dc-types.jsp

        • Removed: dspace/jsp/admin/list-epeople.jsp

        • Moved to dspace-admin and changed: dspace/jsp/admin/list-formats.jsp

        • Moved to dspace/jsp/tools: dspace/jsp/admin/upload-bitstream.jsp

        • Moved to dspace-admin and changed: dspace/jsp/admin/upload-logo.jsp

        • Moved to dspace-admin: dspace/jsp/admin/workflow-abort-confirm.jsp

        • Moved to dspace-admin and changed: dspace/jsp/admin/workflow-list.jsp

        • Changed: dspace/jsp/browse/authors.jsp

        • Changed: dspace/jsp/browse/items-by-author.jsp

        • Changed: dspace/jsp/browse/items-by-date.jsp

        • Changed: dspace/jsp/browse/no-results.jsp

        • New: dspace-admin/eperson-deletion-error.jsp

        • New: dspace/jsp/dspace-admin/news-edit.jsp

        • New: dspace/jsp/dspace-admin/news-main.jsp

        • New: dspace/jsp/dspace-admin/wizard-basicinfo.jsp

        • New: dspace/jsp/dspace-admin/wizard-default-item.jsp

        • New: dspace/jsp/dspace-admin/wizard-permissions.jsp

        • New: dspace/jsp/dspace-admin/wizard-questions.jsp

        • Changed: dspace/jsp/components/contact-info.jsp

        • Changed: dspace/jsp/error/internal.jsp

        • New: dspace/jsp/help/formats.jsp

        • Changed: dspace/jsp/layout/footer-default.jsp

        • Changed: dspace/jsp/layout/header-default.jsp

        • Changed: dspace/jsp/layout/navbar-admin.jsp

        • Changed: dspace/jsp/layout/navbar-default.jsp

        • Changed: dspace/jsp/login/password.jsp

        • Changed: dspace/jsp/mydspace/main.jsp

        • Changed: dspace/jsp/mydspace/perform-task.jsp

        • Changed: dspace/jsp/mydspace/preview-task.jsp

        • Changed: dspace/jsp/mydspace/reject-reason.jsp

        • Changed: dspace/jsp/mydspace/remove-item.jsp

        • Changed: dspace/jsp/register/edit-profile.jsp

        • Changed: dspace/jsp/register/inactive-account.jsp

        • Changed: dspace/jsp/register/new-password.jsp

        • Changed: dspace/jsp/register/registration-form.jsp

        • Changed: dspace/jsp/search/advanced.jsp

        • Changed: dspace/jsp/search/results.jsp

        • Changed: dspace/jsp/submit/cancel.jsp

        • New: dspace/jsp/submit/cc-license.jsp

        • Changed: dspace/jsp/submit/choose-file.jsp

        • New: dspace/jsp/submit/creative-commons.css

        • New: dspace/jsp/submit/creative-commons.jsp

        • Changed: dspace/jsp/submit/edit-metadata-1.jsp

        • Changed: dspace/jsp/submit/edit-metadata-2.jsp

        • Changed: dspace/jsp/submit/get-file-format.jsp

        • Changed: dspace/jsp/submit/initial-questions.jsp

        • Changed: dspace/jsp/submit/progressbar.jsp

        • Changed: dspace/jsp/submit/review.jsp

        • Changed: dspace/jsp/submit/select-collection.jsp

        • Changed: dspace/jsp/submit/show-license.jsp

        • Changed: dspace/jsp/submit/show-uploaded-file.jsp

        • Changed: dspace/jsp/submit/upload-error.jsp

        • Changed: dspace/jsp/submit/upload-file-list.jsp

        • Changed: dspace/jsp/submit/verify-prune.jsp

        • New: dspace/jsp/tools/edit-item-form.jsp

        • New: dspace/jsp/tools/eperson-list.jsp

        • New: dspace/jsp/tools/itemmap-browse.jsp

        • New: dspace/jsp/tools/itemmap-info.jsp

        • New: dspace/jsp/tools/itemmap-main.jsp

        16.12. Changes in DSpace 1.1.1

        16.12.1. Bug fixes

        • non-administrators can now submit again

        • installations now preserve file creation dates, eliminating confusion with upgrades

        • authorization editing pages no longer create null entries in database, and no longer handles them poorly (no longer gives blank page instead of displaying policies.)

        • registration page Invalid token error page now displayed when an invalid token is received (as opposed to internal server error.) Fixes SF bug #739999

        • eperson admin 'recent submission' links fixed for DSpaces deployed somewhere other than at / (e.g. /dspace).

        • help pages Link to help pages now includes servlet context (e.g. '/dspace'). Fixes SF bug #738399.

        16.12.2. Improvements

        • bin/dspace-info.pl now checks jsp and asset store files for zero-length files

        • make-release-package now works with SourceForge CVS

        • eperson editor now doesn't display the spurious text 'null'

        • item exporter now uses Jakarta's cli command line arg parser (much cleaner)

        • item importer improvements:

          • now uses Jakarta's cli command line arg parser (much cleaner)

          • imported items can now be routed through a workflow

          • more validation and error messages before import

          • can now use email addresses and handles instead of just database IDs

          • can import an item to a collection with the workflow suppressed

        16.13. Changes in DSpace 1.1

        • Fixed various OAI-related bugs; DSpace's OAI support should now be correct. Note that harvesting is now based on the new Item 'last modified' date (as opposed to the Dublin Core date.available date.)

        • Fixed Handle support--DSpace now responds to naming authority requests correctly.

        • Multiple bitstream stores can now be specified; this allows DSpace storage to span several disks, and so there is no longer a hard limit on storage.

        • Search improvements:

          • New fielded searching UI

          • Search results are now paged

          • Abstracts are indexed

          • Better use of Lucene API; should stop the number of open file handles getting large

        • Submission UI improvements:

          • now insists on a title being specified

          • fixed navigation on file upload page

          • citation & identifier fields for previously published submissions now fixed

        • Many Unicode fixes to the database and Web user interface

        • Collections can now be deleted

        • Bitstream descriptions (if available) displayed on item display page

        • Modified a couple of servlets to handle invalid parameters better (i.e. to report a suitable error message instead of an internal server error)

        • Item templates now work

        • Fixed registration token expiration problem (they no longer expire.)


      16.1.14. Changes in DSpace 1.2

      16.1.14.1. General Improvments

      • Communities can now contain sub-communities

      • Items may be included in more than one collection

      • Full text extraction and searching for MS Word, PDF, HTML, text documents

      • Thumbnails displayed in item view for items that contain images

      • Configurable MediaFilter tool creates both extracted text and thumbnails

      • Bitstream IDs are now persistent - generated from item's handle and a sequence number

      • Creative Commons licenses can optionally be added to items during web submission process

      16.1.14.2. Administration

      • If you are logged in as administrator, you see admin buttons on item, collection, and community pages

      • New collection administration wizard

      • Can now administer collection's submitters from collection admin tool

      • Delegated administration - new 'collection editor' role - edits item metadata, manages submitters list, edits collection metadata, links to items from other collections, and can withdraw items

      • Admin UI moved from /admin to /dspace-admin to avoid conflict with Tomcat /admin JSPs

      • New EPerson selector popup makes Group editing much easier

      • 'News' section is now editable using admin UI (no more mucking with JSPs)

      16.1.14.3. Import/Export/OAI

      • New tool that exports DSpace content in AIPs that use METS XML for metadata (incomplete)

      • OAI - sets are now collections, identified by Handles ('safe' with /, : converted to _)

      • OAI - contributor.author now mapped to oai_dc:creator

      16.1.14.4. Miscellaneous

      • Build process streamlined with use of WAR files, symbolic links no longer used, friendlier to later versions of Tomcat

      • MIT-specific aspects of UI removed to avoid confusion

      • Item metadata now rendered to avoid interpreting as HTML (displays as entered)

      • Forms now have no-cache directive to avoid trouble with browser 'back' button

      • Bundles now have 'names' for more structure in item's content

      16.1.14.5. JSP file changes between 1.1 and 1.2

      This list generated with cvs -Q rdiff -s -r dspace-1_1 dspace and a sprinkling of perl.

      • Changed: dspace/jsp/collection-home.jsp

      • Changed: dspace/jsp/community-home.jsp

      • Changed: dspace/jsp/community-list.jsp

      • Changed: dspace/jsp/display-item.jsp

      • Changed: dspace/jsp/index.jsp

      • Changed: dspace/jsp/home.jsp

      • Changed: dspace/jsp/styles.css.jsp

      • Moved to dspace-admin and changed: dspace/jsp/admin/authorize-advanced.jsp

      • Moved to dspace-admin and changed: dspace/jsp/admin/authorize-collection-edit.jsp

      • Moved to dspace-admin and changed: dspace/jsp/admin/authorize-community-edit.jsp

      • Moved to dspace-admin and changed: dspace/jsp/admin/authorize-item-edit.jsp

      • Moved to dspace-admin and changed: dspace/jsp/admin/authorize-main.jsp

      • Moved to dspace-admin and changed: dspace/jsp/admin/authorize-policy-edit.jsp

      • Moved to dspace-admin: dspace/jsp/admin/collection-select.jsp

      • Moved to dspace-admin: dspace/jsp/admin/community-select.jsp

      • Moved to dspace-admin: dspace/jsp/admin/confirm-delete-collection.jsp

      • Moved to dspace-admin: dspace/jsp/admin/confirm-delete-community.jsp

      • Moved to dspace-admin: dspace/jsp/admin/confirm-delete-dctype.jsp

      • Moved to dspace-admin: dspace/jsp/admin/confirm-delete-eperson.jsp

      • Moved to dspace-admin: dspace/jsp/admin/confirm-delete-format.jsp

      • Moved to dspace/jsp/tools: dspace/jsp/admin/confirm-delete-item.jsp

      • Moved to dspace/jsp/tools: dspace/jsp/admin/confirm-withdraw-item.jsp

      • Moved to dspace-admin and changed: dspace/jsp/admin/edit-collection.jsp

      • Moved to dspace-admin and changed: dspace/jsp/admin/edit-community.jsp

      • Moved to dspace/jsp/tools and changed: dspace/jsp/admin/edit-item-form.jsp

      • Moved to dspace-admin and changed: dspace/jsp/admin/eperson-browse.jsp

      • Moved to dspace-admin: dspace/jsp/admin/eperson-confirm-delete.jsp

      • Moved to dspace-admin and changed: dspace/jsp/admin/eperson-edit.jsp

      • Moved to dspace-admin and changed: dspace/jsp/admin/eperson-main.jsp

      • Moved to dspace/jsp/tools and changed: dspace/jsp/admin/get-item-id.jsp

      • Moved to dspace/jsp/tools and changed: dspace/jsp/admin/group-edit.jsp

      • Moved to dspace-admin and changed: dspace/jsp/admin/group-eperson-select.jsp

      • Moved to dspace/jsp/tools and changed: dspace/jsp/admin/group-list.jsp

      • Moved to dspace-admin: dspace/jsp/admin/index.jsp

      • Moved to dspace-admin and changed: dspace/jsp/admin/item-select.jsp

      • Moved to dspace-admin and changed: dspace/jsp/admin/list-communities.jsp

      • Moved to dspace-admin and changed: dspace/jsp/admin/list-dc-types.jsp

      • Removed: dspace/jsp/admin/list-epeople.jsp

      • Moved to dspace-admin and changed: dspace/jsp/admin/list-formats.jsp

      • Moved to dspace/jsp/tools: dspace/jsp/admin/upload-bitstream.jsp

      • Moved to dspace-admin and changed: dspace/jsp/admin/upload-logo.jsp

      • Moved to dspace-admin: dspace/jsp/admin/workflow-abort-confirm.jsp

      • Moved to dspace-admin and changed: dspace/jsp/admin/workflow-list.jsp

      • Changed: dspace/jsp/browse/authors.jsp

      • Changed: dspace/jsp/browse/items-by-author.jsp

      • Changed: dspace/jsp/browse/items-by-date.jsp

      • Changed: dspace/jsp/browse/no-results.jsp

      • New: dspace-admin/eperson-deletion-error.jsp

      • New: dspace/jsp/dspace-admin/news-edit.jsp

      • New: dspace/jsp/dspace-admin/news-main.jsp

      • New: dspace/jsp/dspace-admin/wizard-basicinfo.jsp

      • New: dspace/jsp/dspace-admin/wizard-default-item.jsp

      • New: dspace/jsp/dspace-admin/wizard-permissions.jsp

      • New: dspace/jsp/dspace-admin/wizard-questions.jsp

      • Changed: dspace/jsp/components/contact-info.jsp

      • Changed: dspace/jsp/error/internal.jsp

      • New: dspace/jsp/help/formats.jsp

      • Changed: dspace/jsp/layout/footer-default.jsp

      • Changed: dspace/jsp/layout/header-default.jsp

      • Changed: dspace/jsp/layout/navbar-admin.jsp

      • Changed: dspace/jsp/layout/navbar-default.jsp

      • Changed: dspace/jsp/login/password.jsp

      • Changed: dspace/jsp/mydspace/main.jsp

      • Changed: dspace/jsp/mydspace/perform-task.jsp

      • Changed: dspace/jsp/mydspace/preview-task.jsp

      • Changed: dspace/jsp/mydspace/reject-reason.jsp

      • Changed: dspace/jsp/mydspace/remove-item.jsp

      • Changed: dspace/jsp/register/edit-profile.jsp

      • Changed: dspace/jsp/register/inactive-account.jsp

      • Changed: dspace/jsp/register/new-password.jsp

      • Changed: dspace/jsp/register/registration-form.jsp

      • Changed: dspace/jsp/search/advanced.jsp

      • Changed: dspace/jsp/search/results.jsp

      • Changed: dspace/jsp/submit/cancel.jsp

      • New: dspace/jsp/submit/cc-license.jsp

      • Changed: dspace/jsp/submit/choose-file.jsp

      • New: dspace/jsp/submit/creative-commons.css

      • New: dspace/jsp/submit/creative-commons.jsp

      • Changed: dspace/jsp/submit/edit-metadata-1.jsp

      • Changed: dspace/jsp/submit/edit-metadata-2.jsp

      • Changed: dspace/jsp/submit/get-file-format.jsp

      • Changed: dspace/jsp/submit/initial-questions.jsp

      • Changed: dspace/jsp/submit/progressbar.jsp

      • Changed: dspace/jsp/submit/review.jsp

      • Changed: dspace/jsp/submit/select-collection.jsp

      • Changed: dspace/jsp/submit/show-license.jsp

      • Changed: dspace/jsp/submit/show-uploaded-file.jsp

      • Changed: dspace/jsp/submit/upload-error.jsp

      • Changed: dspace/jsp/submit/upload-file-list.jsp

      • Changed: dspace/jsp/submit/verify-prune.jsp

      • New: dspace/jsp/tools/edit-item-form.jsp

      • New: dspace/jsp/tools/eperson-list.jsp

      • New: dspace/jsp/tools/itemmap-browse.jsp

      • New: dspace/jsp/tools/itemmap-info.jsp

      • New: dspace/jsp/tools/itemmap-main.jsp

      16.1.15. Changes in DSpace 1.1.1

      16.1.15.1. Bug fixes

      • non-administrators can now submit again

      • installations now preserve file creation dates, eliminating confusion with upgrades

      • authorization editing pages no longer create null entries in database, and no longer handles them poorly (no longer gives blank page instead of displaying policies.)

      • registration page Invalid token error page now displayed when an invalid token is received (as opposed to internal server error.) Fixes SF bug #739999

      • eperson admin 'recent submission' links fixed for DSpaces deployed somewhere other than at / (e.g. /dspace).

      • help pages Link to help pages now includes servlet context (e.g. '/dspace'). Fixes SF bug #738399.

      16.1.15.2. Improvements

      • bin/dspace-info.pl now checks jsp and asset store files for zero-length files

      • make-release-package now works with SourceForge CVS

      • eperson editor now doesn't display the spurious text 'null'

      • item exporter now uses Jakarta's cli command line arg parser (much cleaner)

      • item importer improvements:

        • now uses Jakarta's cli command line arg parser (much cleaner)

        • imported items can now be routed through a workflow

        • more validation and error messages before import

        • can now use email addresses and handles instead of just database IDs

        • can import an item to a collection with the workflow suppressed

      16.1.16. Changes in DSpace 1.1

      • Fixed various OAI-related bugs; DSpace's OAI support should now be correct. Note that harvesting is now based on the new Item 'last modified' date (as opposed to the Dublin Core date.available date.)

      • Fixed Handle support--DSpace now responds to naming authority requests correctly.

      • Multiple bitstream stores can now be specified; this allows DSpace storage to span several disks, and so there is no longer a hard limit on storage.

      • Search improvements:

        • New fielded searching UI

        • Search results are now paged

        • Abstracts are indexed

        • Better use of Lucene API; should stop the number of open file handles getting large

      • Submission UI improvements:

        • now insists on a title being specified

        • fixed navigation on file upload page

        • citation & identifier fields for previously published submissions now fixed

      • Many Unicode fixes to the database and Web user interface

      • Collections can now be deleted

      • Bitstream descriptions (if available) displayed on item display page

      • Modified a couple of servlets to handle invalid parameters better (i.e. to report a suitable error message instead of an internal server error)

      • Item templates now work

      • Fixed registration token expiration problem (they no longer expire.)


      \ No newline at end of file +

      Licensed under a Creative Commons Attribution 3.0 United States License

      \ No newline at end of file diff --git a/dspace/docs/html/index.html b/dspace/docs/html/index.html index 6348e3af12..0458ccd4a0 100644 --- a/dspace/docs/html/index.html +++ b/dspace/docs/html/index.html @@ -1,20 +1,20 @@ -DSpace Manual

      DSpace Manual

      Release 1.6 RC1

      The DSpace Foundation

      DSpace Manual

      Release 1.6 RC2

      The DuraSpace Foundation

      2009-12-02 23:21:00 EST

      Revision History
      Revision Version 1.6 RC1 This text generated: 2009-12-03 23:21:00 ESTJAT

      Abstract


      Table of Contents

      Preface
      1. DSpace System Documentation: Introduction
      2. DSpace System Documentation: Functional Overview
      2.1. Data Model
      2.2. Plugin Manager
      2.3. Metadata
      2.4. Packager Plugins
      2.5. Crosswalk Plugins
      2.6. E-People and Groups
      2.6.1. E-Person
      2.6.2. Groups
      2.7. Authentication
      2.8. Authorization
      2.9. Ingest Process and Workflow
      2.9.1. Workflow Steps
      2.10. Supervision and Collaboration
      2.11. Handles
      2.12. Bitstream 'Persistent' Identifiers
      2.13. Storage Resource Broker (SRB) Support
      2.14. Search and Browse
      2.15. HTML Support
      2.16. OAI Support
      2.17. OpenURL Support
      2.18. Creative Commons Support
      2.19. Subscriptions
      2.20. Import and Export
      2.21. Registration
      2.22. Statistics
      2.23. Checksum Checker
      2.24. - Usage Instrumentation
      3. DSpace System Documentation: Installation
      3.1. For the Impatient
      3.2. Prerequisite Software
      3.2.1. UNIX-like OS or Microsoft Windows
      3.2.2. Java JDK 5 or later (standard SDK is fine, you don't need J2EE)
      3.2.3. Apache Maven 2.0.8 or later (Java build tool)
      3.2.4. Apache Ant 1.7 or later (Java build tool)
      3.2.5. Relational Database: (PostgreSQL or Oracle).
      3.2.6. Servlet Engine: (Jakarta Tomcat 4.x, Jetty, Caucho Resin or equivalent).
      3.2.7. Perl (required for [dspace]/bin/dspace-info.pl)
      3.3. Installation Options
      3.3.1. Overview of Install Options
      3.3.2. Overview of DSpace Directories
      3.3.3. Installation
      3.4. Advanced Installation
      3.4.1. 'cron' Jobs
      3.4.2. Multilingual Installation
      3.4.3. DSpace over HTTPS
      3.4.3.1. To enable the HTTPS support in Tomcat 5.0:
      3.4.3.2. To use SSL on Apache HTTPD with mod_jk:
      3.4.4. The Handle Server
      3.4.4.1. Updating Existing Handle Prefixes
      3.4.5. Google and HTML sitemaps
      3.5. Windows Installation
      3.5.1. Pre-requisite Software
      3.5.2. Installation Steps
      3.6. Checking Your Installation
      3.7. Known Bugs
      3.8. Common Problems
      4. DSpace System Documentation: Upgrading a DSpace Installation
      4.1. Upgrading from 1.5.x to 1.6
      4.2. Upgrading From 1.5 or 1.5.1 to 1.5.2
      4.3. Upgrading From 1.4.2 to 1.5
      4.4. Upgrading From 1.4.1 to 1.4.2
      4.5. Upgrading From 1.4 to 1.4.x
      4.6. Upgrading From 1.3.2 to 1.4.x
      4.7. Upgrading From 1.3.1 to 1.3.2
      4.8. Upgrading From 1.2.x to 1.3.x
      4.9. Upgrading From 1.2.1 to 1.2.2
      4.10. Upgrading From 1.2 to 1.2.1
      4.11. Upgrading From 1.1 (or 1.1.1) to 1.2
      4.12. Upgrading From 1.1 to 1.1.1
      4.13. Upgrading From 1.0.1 to 1.1
      5. DSpace System Documentation: Configuration
      5.1. General Configuration
      5.1.1. Input Conventions
      5.1.2. Update Reminder
      5.2. The dspace.cfg Configuration Properties File
      5.2.1. The dspace.cfg file
      5.2.2. Main DSpace Configurations
      5.2.3. DSpace Database Configuration
      5.2.4. DSpace Email Settings
      5.2.4.1. Wording of E-mail Messages
      5.2.5. File Storage
      5.2.6. SRB (Storage Resource Brokerage) File Storage
      5.2.7. Handle Server Configuration
      5.2.8. Stackable Authentication Method(s)
      5.2.8.1. Authentication by Password
      5.2.8.2. X.509 Certificate Authentication
      5.2.8.3. Example of a Custom Authentication Method
      5.2.8.4. Configuring IP Authentication
      5.2.8.5. Configuring LDAP Authentication
      5.2.9. Shibboleth Authentication Configuration Settings
      5.2.10. Logging Configuration
      5.2.11. Configuring Lucene Search Indexes
      5.2.12. Proxy Settings
      5.2.13. Configuring Media Filters
      5.2.14. Configurable MODS Dissemination Crosswalk
      5.2.15. XSLT-based Crosswalks
      5.2.15.1. Testing XSLT Crosswalks
      5.2.16. Configurable Qualified Dublin Core (QDC) dissemination crosswalk
      5.2.17. Configuring Crosswalk Plugins
      5.2.18. Configuring Packager Plugins
      5.2.19. Event System Configuration
      5.2.20. Checksum Checker Settings
      5.2.21. Item Export and Download Settings
      5.2.22. Subscription Emails
      5.2.23. Settings for the Submission Process
      5.2.24. Configuring Creative Commons License
      5.2.25. WEB User Interface Configurations
      5.2.26. Browse Index Configuration
      5.2.26.1. Defining the Indexes.
      5.2.26.2. Defining Sort Options
      5.2.26.3. Browse Index Normalization Rule Configuration
      5.2.26.4. Other Browse Options
      5.2.27. Author (Multiple metadata value) Display
      5.2.28. Links to Other Browse Contexts
      5.2.29. Recent Submissions
      5.2.30. Syndication Feed (RSS) Settings
      5.2.31. Content Inline Disposition Threshold
      5.2.32. Multi-file HTML Document/Site Settings
      5.2.33. Sitemap Settings
      5.2.34. Upload File Settings
      5.2.35. Statistical Report Configuration Setting
      5.2.36. JSP Web Interface (JSPUI) Settings
      5.2.37. Configuring Multilingual Support
      5.2.37.1. Setting the Default Language for the Application
      5.2.37.2. Supporting More Than One Language
      5.2.38. Item Mapper
      5.2.39. Display of Group Membership
      5.2.40. SFX Server
      5.2.41. Item Recommendation Setting
      5.2.42. Controlled Vocabulary Settings
      5.2.43. XMLUI Specific Configuration
      5.2.44. OAI-PMH Configuration and Activation
      5.2.44.1. OAI-PMH Configuration
      5.2.44.2. Activating Additional OAI-PMH Crosswalks
      5.2.45. Delegation Administration
      5.2.46. Batch Metadata Editing
      5.2.47. Hiding Metadata
      5.3. Optional or Advanced Configuration Settings
      5.3.1. The Metadata Format and Bitstream Format Registries
      5.3.1.1. Metadata Format Registries
      5.3.1.2. Bitstream Format Registry
      5.3.2. XPDF Filter
      5.3.2.1. Installation
      5.3.2.2. Install XPDF Tools
      5.3.2.3. Installation within DSpace
      5.3.3. Creating a new Media/Format Filter
      5.3.3.1. Creating a simple Media Filter
      5.3.3.2. Creating a Dynamic or "Self-Named" Format Filter
      5.3.4. Configuration Files for Other Applications
      5.3.5. - Configuring Usage Instrumentation Plugins
      5.3.5.1. - The Passive Plugin
      5.3.5.2. - The Tab File Logger Plugin
      5.3.5.3. - The XML Logger Plugin
      5.3.6. SWORD Configuration
      5.3.7. OpenSearch Support
      5.3.8. Embargo
      6. DSpace System Documentation: JPSUI Configuration and Customization
      6.1. Configuration
      6.2. Customizing the JSP pages
      7. DSpace System Documentation: Manakin [XMLUI] Configuration and Customization
      7.1. Manakin Configuration Property Keys
      7.2. Configuring Themes and Aspects
      7.2.1. Aspects
      7.2.2. Themes
      7.3. Multilingual Support
      7.4. Creating a New Theme
      7.5. Adding Static Content
      8. DSpace System Documentation: System Administration
      8.1. Community and Collection Structure Importer
      8.1.1. Limitation
      8.2. Package Importer and Exporter
      8.2.1. Ingesting
      8.2.2. Disseminating
      8.2.3. METS packages
      8.3. Item Importer and Exporter
      8.3.1. DSpace Simple Archive Format
      8.3.2. Importing Items
      8.3.2.1. Adding Items to a Collection
      8.3.2.2. Replacing Items in Collection
      8.3.2.3. Deleting or Unimporting Items in a Collection
      8.3.2.4. Other Options
      8.3.3. Exporting Items
      8.4. Transferring Items Between DSpace Instances
      8.5. Item Update
      8.5.1. DSpace simple Archive Format
      8.5.2. ItemUpdate Commands
      8.5.3. CLI Examples
      8.6. Registering (Not Importing) Bitstreams
      8.6.1. Accessible Storage
      8.6.2. Registering Items Using the Item Importer
      8.6.3. Internal Identification and Retrieval of Registered Items
      8.6.4. Exporting Registered Items
      8.6.5. METS Export of Registered Items
      8.6.6. Deleting Registered Items
      8.7. METS Tools
      8.7.1. The Export Tool
      8.7.2. The AIP Format
      8.7.3. Limitations
      8.8. MediaFilters: Transforming DSpace Content
      8.9. Sub-Community Management
      8.10. Batch Metadata Editing
      8.10.1. Export Function
      8.10.1.1. Exporting Process
      8.10.2. Import Function
      8.10.2.1. Importing Process
      8.10.3. The CSV Files
      8.11. Checksum Checker
      8.11.1. Checker Execution Mode
      8.11.2. Checker Results Pruning
      8.11.3. Checker Reporting
      8.11.4. Cron or Automatic Execution of Checksum Checker
      8.11.5. Automated Checksum Checkers' Results
      8.12. Embargo
      8.13. Browse Index Creation
      8.13.1. Running the Indexing Programs
      8.13.2. Indexing Customization
      9. DSpace System Documentation: Storage Layer
      9.1. RDBMS
      9.1.1. Maintenance and Backup
      9.1.2. Configuring the RDBMS Component
      9.2. Bitstream Store
      9.2.1. Backup
      9.2.2. Configuring the Bitstream Store
      9.2.2.1. Configuring Traditonal Storage
      9.2.2.2. Configuring SRB Storage
      10. DSpace System Documentation: Directories and Files
      10.1. Overview
      10.2. Source Directory Layout
      10.3. Installed Directory Layout
      10.4. Contents of JSPUI Web Application
      10.5. Contents of XMLUI Web Application (aka Manakin)
      10.6. Log Files
      11. DSpace System Documentation: Architecture
      11.1. Overview
      12. DSpace System Documentation: Application Layer
      12.1. Web User Interface
      12.1.1. Web UI Files
      12.1.2. The Build Process
      12.1.3. Servlets and JSPs
      12.1.4. Custom JSP Tags
      12.1.5. Internationalization
      12.1.5.1. Message Key Convention
      12.1.5.2. Which Languages are currently supported?
      12.1.6. HTML Content in Items
      12.1.7. Thesis Blocking
      12.2. OAI-PMH Data Provider
      12.2.1. Sets
      12.2.2. Unique Identifier
      12.2.3. Access control
      12.2.4. Modification Date (OAI Date Stamp)
      12.2.5. 'About' Information
      12.2.6. Deletions
      12.2.7. Flow Control (Resumption Tokens)
      12.3. DSpace Command Launcher
      12.3.1. Older Versions
      12.3.2. Command Launcher Structure
      13. DSpace System Documentation: Business Logic Layer
      13.1. Core Classes
      13.1.1. The Configuration Manager (ConfigurationManager)
      13.1.2. Constants
      13.1.3. Context
      13.1.4. Email
      13.1.5. LogManager
      13.1.6. Utils
      13.2. Content Management API
      13.2.1. Other Classes
      13.2.2. Modifications
      13.2.3. What's In Memory?
      13.2.4. Dublin Core Metadata
      13.2.5. Support for Other Metadata Schemas
      13.2.6. Packager Plugins
      13.3. Plugin Manager
      13.3.1. Concepts
      13.3.2. Using the Plugin Manager
      13.3.2.1. Types of Plugin
      13.3.2.2. Self-Named Plugins
      13.3.2.3. Obtaining a Plugin Instance
      13.3.2.4. Lifecycle Management
      13.3.2.5. Getting Meta-Information
      13.3.3. Implementation
      13.3.3.1. PluginManager Class
      13.3.3.2. SelfNamedPlugin Class
      13.3.3.3. Errors and Exceptions
      13.3.4. Configuring Plugins
      13.3.4.1. Configuring Singleton (Single) Plugins
      13.3.4.2. Configuring Sequence of Plugins
      13.3.4.3. Configuring Named Plugins
      13.3.4.4. Configuring the Reusable Status of a Plugin
      13.3.5. Validating the Configuration
      13.3.6. Use Cases
      13.3.6.1. Managing the MediaFilter plugins transparently
      13.3.6.2. A Singleton Plugin
      13.3.6.3. Plugin that Names Itself
      13.3.6.4. Stackable Authentication
      13.4. Workflow System
      13.5. Administration Toolkit
      13.6. E-person/Group Manager
      13.7. Authorization
      13.7.1. Special Groups
      13.7.2. Miscellaneous Authorization Notes
      13.8. Handle Manager/Handle Plugin
      13.9. Search
      13.9.1. Current Lucene Implementation
      13.9.2. Indexed Fields
      13.9.3. Harvesting API
      13.10. Browse API
      13.10.1. Using the API
      13.10.2. Index Maintenance
      13.10.3. Caveats
      13.11. Checksum checker
      13.12. OpenSearch Support
      13.13. Embargo
      14. DSpace System Documentation: Customizing and Configuring Submission User Interface
      14.1. Understanding the Submission Configuration File
      14.1.1. The Structure of item-submission.xml
      14.1.2. Defining Steps (<step>) within the item-submission.xml
      14.1.2.1. Where to place your <step> definitions
      14.1.2.2. The ordering of <step> definitions matters!
      14.1.2.3. Structure of the <step> Definition
      14.2. Reordering/Removing Submission Steps
      14.3. Assigning a custom Submission Process to a Collection
      14.3.1. Getting A Collection's Handle
      14.4. Custom Metadata-entry Pages for Submission
      14.4.1. Introduction
      14.4.2. Describing Custom Metadata Forms
      14.4.3. The Structure of input-forms.xml
      14.4.3.1. Adding a Collection Map
      14.4.3.2. Adding a Form Set
      14.4.3.3. Adding Value-Pairs
      14.4.4. Deploying Your Custom Forms
      14.5. Configuring the File Upload step
      14.6. Creating new Submission Steps
      14.6.1. Creating a Non-Interactive Step
      15. DSpace System Documentation: DRI Schema Reference
      15.1. Introduction
      15.1.1. The Purpose of DRI
      15.1.2. The Development of DRI
      15.2. DRI in Manakin
      15.2.1. Themes
      15.2.2. Aspect Chains
      15.3. Common Design Patterns
      15.3.1. Localization and Internationalization
      15.3.2. Standard attribute triplet
      15.3.3. Structure-oriented markup
      15.4. Schema Overview
      15.5. Merging of DRI Documents
      15.6. Version Changes
      15.6.1. Changes from 1.0 to 1.1
      15.7. Element Reference
      15.7.1. BODY
      15.7.2. cell
      15.7.3. div
      15.7.4. DOCUMENT
      15.7.5. field
      15.7.6. figure
      15.7.7. head
      15.7.8. help
      15.7.9. hi
      15.7.10. instance
      15.7.11. item
      15.7.12. label
      15.7.13. list
      15.7.14. META
      15.7.15. metadata
      15.7.16. OPTIONS
      15.7.17. p
      15.7.18. pageMeta
      15.7.19. params
      15.7.20. reference
      15.7.21. referenceSet
      15.7.22. repository
      15.7.23. repositoryMeta
      15.7.24. row
      15.7.25. table
      15.7.26. trail
      15.7.27. userMeta
      15.7.28. value
      15.7.29. xref
      16. DSpace System Documentation: Version History
      16.1. Changes in DSpace 1.5.2
      16.1.1. General Improvements
      16.1.2. Bug fixes and smaller patches
      16.2. Changes in DSpace 1.5.1
      16.2.1. General Improvements
      16.2.2. Bug fixes and smaller patches
      16.3. Changes in DSpace 1.5
      16.3.1. General Improvements
      16.3.2. Bug fixes and smaller patches
      16.4. Changes in DSpace 1.4.1
      16.4.1. General Improvements
      16.4.2. Bug fixes
      16.5. Changes in DSpace 1.4
      16.5.1. General Improvements
      16.5.2. Bug fixes
      16.6. Changes in DSpace 1.3.2
      16.6.1. General Improvements
      16.6.2. Bug fixes
      16.7. Changes in DSpace 1.3.1
      16.7.1. Bug fixes
      16.8. Changes in DSpace 1.3
      16.8.1. General Improvements
      16.8.2. Bug fixes
      16.9. Changes in DSpace 1.2.2
      16.9.1. General Improvements
      16.9.2. Bug fixes
      16.9.3. Changes in JSPs
      16.10. Changes in DSpace 1.2.1
      16.10.1. General Improvements
      16.10.2. Bug fixes
      16.10.3. Changed JSPs
      16.11. Changes in DSpace 1.2
      16.11.1. General Improvments
      16.11.2. Administration
      16.11.3. Import/Export/OAI
      16.11.4. Miscellaneous
      16.11.5. JSP file changes between 1.1 and 1.2
      16.12. Changes in DSpace 1.1.1
      16.12.1. Bug fixes
      16.12.2. Improvements
      16.13. Changes in DSpace 1.1
      A. DSpace System Documentation: Appendix A
      A.1. Default Dublin Core Metadata Registry
      A.2. Default Bitstream Format Registry
      Index

      Licensed under a Creative Commons Attribution 3.0 United States License

      2010-02-07 20:49:04 EST

      Revision History
      Revision Version 1.6 RC2 This text generated: 2010-02-07 20:49:04 ESTJAT

      Abstract


      Table of Contents

      Preface
      1. DSpace System Documentation: Introduction
      2. DSpace System Documentation: Functional Overview
      2.1. Data Model
      2.2. Plugin Manager
      2.3. Metadata
      2.4. Packager Plugins
      2.5. Crosswalk Plugins
      2.6. E-People and Groups
      2.6.1. E-Person
      2.6.2. Groups
      2.7. Authentication
      2.8. Authorization
      2.9. Ingest Process and Workflow
      2.9.1. Workflow Steps
      2.10. Supervision and Collaboration
      2.11. Handles
      2.12. Bitstream 'Persistent' Identifiers
      2.13. Storage Resource Broker (SRB) Support
      2.14. Search and Browse
      2.15. HTML Support
      2.16. OAI Support
      2.17. OpenURL Support
      2.18. Creative Commons Support
      2.19. Subscriptions
      2.20. Import and Export
      2.21. Registration
      2.22. Statistics
      2.23. Checksum Checker
      2.24. + Usage Instrumentation
      2.25. Choice Management and Authority Control
      2.25.1. Introduction and Motivation
      2.25.1.1. Definitions
      2.25.1.2. About Authority Control
      2.25.1.3. Some Terminology
      3. DSpace System Documentation: Installation
      3.1. For the Impatient
      3.2. Prerequisite Software
      3.2.1. UNIX-like OS or Microsoft Windows
      3.2.2. Sun Java JDK 5 or later (standard SDK is fine, you don't need J2EE)
      3.2.3. Apache Maven 2.0.8 or later (Java build tool)
      3.2.3.1. Configuring a Proxy
      3.2.4. Apache Ant 1.7 or later (Java build tool)
      3.2.5. Relational Database: (PostgreSQL or Oracle).
      3.2.6. Servlet Engine: (Jakarta Tomcat 4.x, Jetty, Caucho Resin or equivalent).
      3.2.7. Perl (required for [dspace]/bin/dspace-info.pl)
      3.3. Installation Options
      3.3.1. Overview of Install Options
      3.3.2. Overview of DSpace Directories
      3.3.3. Installation
      3.4. Advanced Installation
      3.4.1. 'cron' Jobs
      3.4.2. Multilingual Installation
      3.4.3. DSpace over HTTPS
      3.4.3.1. To enable the HTTPS support in Tomcat 5.0:
      3.4.3.2. To use SSL on Apache HTTPD with mod_jk:
      3.4.4. The Handle Server
      3.4.4.1. Updating Existing Handle Prefixes
      3.4.5. Google and HTML sitemaps
      3.4.6. DSpace Statisics
      3.5. Windows Installation
      3.5.1. Pre-requisite Software
      3.5.2. Installation Steps
      3.6. Checking Your Installation
      3.7. Known Bugs
      3.8. Common Problems
      4. DSpace System Documentation: Upgrading a DSpace Installation
      4.1. Upgrading from 1.5.x to 1.6
      4.2. Upgrading From 1.5 or 1.5.1 to 1.5.2
      4.3. Upgrading From 1.4.2 to 1.5
      4.4. Upgrading From 1.4.1 to 1.4.2
      4.5. Upgrading From 1.4 to 1.4.x
      4.6. Upgrading From 1.3.2 to 1.4.x
      4.7. Upgrading From 1.3.1 to 1.3.2
      4.8. Upgrading From 1.2.x to 1.3.x
      4.9. Upgrading From 1.2.1 to 1.2.2
      4.10. Upgrading From 1.2 to 1.2.1
      4.11. Upgrading From 1.1 (or 1.1.1) to 1.2
      4.12. Upgrading From 1.1 to 1.1.1
      4.13. Upgrading From 1.0.1 to 1.1
      5. DSpace System Documentation: Configuration
      5.1. General Configuration
      5.1.1. Input Conventions
      5.1.2. Update Reminder
      5.2. The dspace.cfg Configuration Properties File
      5.2.1. The dspace.cfg file
      5.2.2. Main DSpace Configurations
      5.2.3. DSpace Database Configuration
      5.2.4. DSpace Email Settings
      5.2.4.1. Wording of E-mail Messages
      5.2.5. File Storage
      5.2.6. SRB (Storage Resource Brokerage) File Storage
      5.2.7. Handle Server Configuration
      5.2.8. Stackable Authentication Method(s)
      5.2.8.1. Authentication by Password
      5.2.8.2. X.509 Certificate Authentication
      5.2.8.3. Example of a Custom Authentication Method
      5.2.8.4. Configuring IP Authentication
      5.2.8.5. Configuring LDAP Authentication
      5.2.9. Shibboleth Authentication Configuration Settings
      5.2.10. Logging Configuration
      5.2.11. Configuring Lucene Search Indexes
      5.2.12. Proxy Settings
      5.2.13. Configuring Media Filters
      5.2.14. Configurable MODS Dissemination Crosswalk
      5.2.15. XSLT-based Crosswalks
      5.2.15.1. Testing XSLT Crosswalks
      5.2.16. Configurable Qualified Dublin Core (QDC) dissemination crosswalk
      5.2.17. Configuring Crosswalk Plugins
      5.2.18. Configuring Packager Plugins
      5.2.19. Event System Configuration
      5.2.20. Checksum Checker Settings
      5.2.21. Item Export and Download Settings
      5.2.22. Subscription Emails
      5.2.23. Settings for the Submission Process
      5.2.24. Configuring Creative Commons License
      5.2.25. WEB User Interface Configurations
      5.2.26. Browse Index Configuration
      5.2.26.1. Defining the Indexes.
      5.2.26.2. Defining Sort Options
      5.2.26.3. Browse Index Normalization Rule Configuration
      5.2.26.4. Other Browse Options
      5.2.26.5. Browse Index Authority Control Configuration
      5.2.27. Author (Multiple metadata value) Display
      5.2.28. Links to Other Browse Contexts
      5.2.29. Recent Submissions
      5.2.30. Syndication Feed (RSS) Settings
      5.2.31. Content Inline Disposition Threshold
      5.2.32. Multi-file HTML Document/Site Settings
      5.2.33. Sitemap Settings
      5.2.34. Upload File Settings
      5.2.35. DSpace Statistics Configuration
      5.2.36. JSP Web Interface (JSPUI) Settings
      5.2.37. Configuring Multilingual Support
      5.2.37.1. Setting the Default Language for the Application
      5.2.37.2. Supporting More Than One Language
      5.2.38. Item Mapper
      5.2.39. Display of Group Membership
      5.2.40. SFX Server
      5.2.41. Item Recommendation Setting
      5.2.42. Controlled Vocabulary Settings
      5.2.43. XMLUI Specific Configuration
      5.2.44. OAI-PMH Configuration and Activation
      5.2.44.1. OAI-PMH Configuration
      5.2.44.2. Activating Additional OAI-PMH Crosswalks
      5.2.45. OAI-ORE Harvester Configuration
      5.2.45.1. OAI-ORE Configuration
      5.2.46. Delegation Administration
      5.2.47. Batch Metadata Editing
      5.2.48. Hiding Metadata
      5.3. Optional or Advanced Configuration Settings
      5.3.1. The Metadata Format and Bitstream Format Registries
      5.3.1.1. Metadata Format Registries
      5.3.1.2. Bitstream Format Registry
      5.3.2. XPDF Filter
      5.3.2.1. Installation Overview
      5.3.2.2. Install XPDF Tools
      5.3.2.3. + Fetch and install jai_imageio JAR +
      5.3.2.4. Edit DSpace Configuration
      5.3.2.5. Build and Install
      5.3.3. Creating a new Media/Format Filter
      5.3.3.1. Creating a simple Media Filter
      5.3.3.2. Creating a Dynamic or "Self-Named" Format Filter
      5.3.4. Configuration Files for Other Applications
      5.3.5. + Configuring Usage Instrumentation Plugins
      5.3.5.1. + The Passive Plugin
      5.3.5.2. + The Tab File Logger Plugin
      5.3.5.3. + The XML Logger Plugin
      5.3.6. SWORD Configuration
      5.3.7. OpenSearch Support
      5.3.8. Embargo
      6. DSpace System Documentation: JPSUI Configuration and Customization
      6.1. Configuration
      6.2. Customizing the JSP pages
      7. DSpace System Documentation: Manakin [XMLUI] Configuration and Customization
      7.1. Manakin Configuration Property Keys
      7.2. Configuring Themes and Aspects
      7.2.1. Aspects
      7.2.2. Themes
      7.3. Multilingual Support
      7.4. Creating a New Theme
      7.5. Customizing the News Document
      7.6. Adding Static Content
      7.7. Enabling OAI-ORE Harvester using XMLUI
      7.7.1. Automatic Harvesting (Scheduler)
      8. DSpace System Documentation: System Administration
      8.1. Community and Collection Structure Importer
      8.1.1. Limitation
      8.2. Package Importer and Exporter
      8.2.1. Ingesting
      8.2.2. Disseminating
      8.2.3. METS packages
      8.3. Item Importer and Exporter
      8.3.1. DSpace Simple Archive Format
      8.3.2. Importing Items
      8.3.2.1. Adding Items to a Collection
      8.3.2.2. Replacing Items in Collection
      8.3.2.3. Deleting or Unimporting Items in a Collection
      8.3.2.4. Other Options
      8.3.3. Exporting Items
      8.4. Transferring Items Between DSpace Instances
      8.5. Item Update
      8.5.1. DSpace simple Archive Format
      8.5.2. ItemUpdate Commands
      8.5.3. CLI Examples
      8.6. Registering (Not Importing) Bitstreams
      8.6.1. Accessible Storage
      8.6.2. Registering Items Using the Item Importer
      8.6.3. Internal Identification and Retrieval of Registered Items
      8.6.4. Exporting Registered Items
      8.6.5. METS Export of Registered Items
      8.6.6. Deleting Registered Items
      8.7. METS Tools
      8.7.1. The Export Tool
      8.7.2. The AIP Format
      8.7.3. Limitations
      8.8. MediaFilters: Transforming DSpace Content
      8.9. Sub-Community Management
      8.10. Batch Metadata Editing
      8.10.1. Export Function
      8.10.1.1. Exporting Process
      8.10.2. Import Function
      8.10.2.1. Importing Process
      8.10.3. The CSV Files
      8.11. Checksum Checker
      8.11.1. Checker Execution Mode
      8.11.2. Checker Results Pruning
      8.11.3. Checker Reporting
      8.11.4. Cron or Automatic Execution of Checksum Checker
      8.11.5. Automated Checksum Checkers' Results
      8.12. Embargo
      8.13. Browse Index Creation
      8.13.1. Running the Indexing Programs
      8.13.2. Indexing Customization
      8.14. DSpace Log Converter
      8.15. Test Database
      9. DSpace System Documentation: Storage Layer
      9.1. RDBMS
      9.1.1. Maintenance and Backup
      9.1.2. Configuring the RDBMS Component
      9.2. Bitstream Store
      9.2.1. Backup
      9.2.2. Configuring the Bitstream Store
      9.2.2.1. Configuring Traditonal Storage
      9.2.2.2. Configuring SRB Storage
      10. DSpace System Documentation: Directories and Files
      10.1. Overview
      10.2. Source Directory Layout
      10.3. Installed Directory Layout
      10.4. Contents of JSPUI Web Application
      10.5. Contents of XMLUI Web Application (aka Manakin)
      10.6. Log Files
      10.6.1. log4j.properties File.
      11. DSpace System Documentation: Architecture
      11.1. Overview
      12. DSpace System Documentation: Application Layer
      12.1. Web User Interface
      12.1.1. Web UI Files
      12.1.2. The Build Process
      12.1.3. Servlets and JSPs
      12.1.4. Custom JSP Tags
      12.1.5. Internationalization
      12.1.5.1. Message Key Convention
      12.1.5.2. Which Languages are currently supported?
      12.1.6. HTML Content in Items
      12.1.7. Thesis Blocking
      12.2. OAI-PMH Data Provider
      12.2.1. Sets
      12.2.2. Unique Identifier
      12.2.3. Access control
      12.2.4. Modification Date (OAI Date Stamp)
      12.2.5. 'About' Information
      12.2.6. Deletions
      12.2.7. Flow Control (Resumption Tokens)
      12.3. DSpace Command Launcher
      12.3.1. Older Versions
      12.3.2. Command Launcher Structure
      13. DSpace System Documentation: Business Logic Layer
      13.1. Core Classes
      13.1.1. The Configuration Manager (ConfigurationManager)
      13.1.2. Constants
      13.1.3. Context
      13.1.4. Email
      13.1.5. LogManager
      13.1.6. Utils
      13.2. Content Management API
      13.2.1. Other Classes
      13.2.2. Modifications
      13.2.3. What's In Memory?
      13.2.4. Dublin Core Metadata
      13.2.5. Support for Other Metadata Schemas
      13.2.6. Packager Plugins
      13.3. Plugin Manager
      13.3.1. Concepts
      13.3.2. Using the Plugin Manager
      13.3.2.1. Types of Plugin
      13.3.2.2. Self-Named Plugins
      13.3.2.3. Obtaining a Plugin Instance
      13.3.2.4. Lifecycle Management
      13.3.2.5. Getting Meta-Information
      13.3.3. Implementation
      13.3.3.1. PluginManager Class
      13.3.3.2. SelfNamedPlugin Class
      13.3.3.3. Errors and Exceptions
      13.3.4. Configuring Plugins
      13.3.4.1. Configuring Singleton (Single) Plugins
      13.3.4.2. Configuring Sequence of Plugins
      13.3.4.3. Configuring Named Plugins
      13.3.4.4. Configuring the Reusable Status of a Plugin
      13.3.5. Validating the Configuration
      13.3.6. Use Cases
      13.3.6.1. Managing the MediaFilter plugins transparently
      13.3.6.2. A Singleton Plugin
      13.3.6.3. Plugin that Names Itself
      13.3.6.4. Stackable Authentication
      13.4. Workflow System
      13.5. Administration Toolkit
      13.6. E-person/Group Manager
      13.7. Authorization
      13.7.1. Special Groups
      13.7.2. Miscellaneous Authorization Notes
      13.8. Handle Manager/Handle Plugin
      13.9. Search
      13.9.1. Current Lucene Implementation
      13.9.2. Indexed Fields
      13.9.3. Harvesting API
      13.10. Browse API
      13.10.1. Using the API
      13.10.2. Index Maintenance
      13.10.3. Caveats
      13.11. Checksum checker
      13.12. OpenSearch Support
      13.13. Embargo
      14. DSpace System Documentation: Customizing and Configuring Submission User Interface
      14.1. Understanding the Submission Configuration File
      14.1.1. The Structure of item-submission.xml
      14.1.2. Defining Steps (<step>) within the item-submission.xml
      14.1.2.1. Where to place your <step> definitions
      14.1.2.2. The ordering of <step> definitions matters!
      14.1.2.3. Structure of the <step> Definition
      14.2. Reordering/Removing Submission Steps
      14.3. Assigning a custom Submission Process to a Collection
      14.3.1. Getting A Collection's Handle
      14.4. Custom Metadata-entry Pages for Submission
      14.4.1. Introduction
      14.4.2. Describing Custom Metadata Forms
      14.4.3. The Structure of input-forms.xml
      14.4.3.1. Adding a Collection Map
      14.4.3.2. Adding a Form Set
      14.4.3.3. Adding Value-Pairs
      14.4.4. Deploying Your Custom Forms
      14.5. Configuring the File Upload step
      14.6. Creating new Submission Steps
      14.6.1. Creating a Non-Interactive Step
      15. DSpace System Documentation: DRI Schema Reference
      15.1. Introduction
      15.1.1. The Purpose of DRI
      15.1.2. The Development of DRI
      15.2. DRI in Manakin
      15.2.1. Themes
      15.2.2. Aspect Chains
      15.3. Common Design Patterns
      15.3.1. Localization and Internationalization
      15.3.2. Standard attribute triplet
      15.3.3. Structure-oriented markup
      15.4. Schema Overview
      15.5. Merging of DRI Documents
      15.6. Version Changes
      15.6.1. Changes from 1.0 to 1.1
      15.7. Element Reference
      15.7.1. BODY
      15.7.2. cell
      15.7.3. div
      15.7.4. DOCUMENT
      15.7.5. field
      15.7.6. figure
      15.7.7. head
      15.7.8. help
      15.7.9. hi
      15.7.10. instance
      15.7.11. item
      15.7.12. label
      15.7.13. list
      15.7.14. META
      15.7.15. metadata
      15.7.16. OPTIONS
      15.7.17. p
      15.7.18. pageMeta
      15.7.19. params
      15.7.20. reference
      15.7.21. referenceSet
      15.7.22. repository
      15.7.23. repositoryMeta
      15.7.24. row
      15.7.25. table
      15.7.26. trail
      15.7.27. userMeta
      15.7.28. value
      15.7.29. xref
      16. DSpace System Documentation: Version History
      16.1. Changes in DSpace 1.6.0
      16.1.1. New Features
      16.1.2. General Improvments
      16.1.3. Bug fixes
      16.1.4. Changes in DSpace 1.5.2
      16.1.4.1. General Improvements
      16.1.4.2. Bug fixes and smaller patches
      16.1.5. Changes in DSpace 1.5.1
      16.1.5.1. General Improvements
      16.1.5.2. Bug fixes and smaller patches
      16.1.6. Changes in DSpace 1.5
      16.1.6.1. General Improvements
      16.1.6.2. Bug fixes and smaller patches
      16.1.7. Changes in DSpace 1.4.1
      16.1.7.1. General Improvements
      16.1.7.2. Bug fixes
      16.1.8. Changes in DSpace 1.4
      16.1.8.1. General Improvements
      16.1.8.2. Bug fixes
      16.1.9. Changes in DSpace 1.3.2
      16.1.9.1. General Improvements
      16.1.9.2. Bug fixes
      16.1.10. Changes in DSpace 1.3.1
      16.1.10.1. Bug fixes
      16.1.11. Changes in DSpace 1.3
      16.1.11.1. General Improvements
      16.1.11.2. Bug fixes
      16.1.12. Changes in DSpace 1.2.2
      16.1.12.1. General Improvements
      16.1.12.2. Bug fixes
      16.1.12.3. Changes in JSPs
      16.1.13. Changes in DSpace 1.2.1
      16.1.13.1. General Improvements
      16.1.13.2. Bug fixes
      16.1.13.3. Changed JSPs
      16.1.14. Changes in DSpace 1.2
      16.1.14.1. General Improvments
      16.1.14.2. Administration
      16.1.14.3. Import/Export/OAI
      16.1.14.4. Miscellaneous
      16.1.14.5. JSP file changes between 1.1 and 1.2
      16.1.15. Changes in DSpace 1.1.1
      16.1.15.1. Bug fixes
      16.1.15.2. Improvements
      16.1.16. Changes in DSpace 1.1
      A. DSpace System Documentation: Appendix A
      A.1. Default Dublin Core Metadata Registry
      A.2. Default Bitstream Format Registry
      Index

      \ No newline at end of file +

      Licensed under a Creative Commons Attribution 3.0 United States License

      \ No newline at end of file diff --git a/dspace/docs/html/ix01.html b/dspace/docs/html/ix01.html index 2f23a61626..dc4d98fe13 100644 --- a/dspace/docs/html/ix01.html +++ b/dspace/docs/html/ix01.html @@ -1,8 +1,7 @@ -Index

      Index


      Index


      \ No newline at end of file +

      Licensed under a Creative Commons Attribution 3.0 United States License

      \ No newline at end of file diff --git a/dspace/docs/html/pr01.html b/dspace/docs/html/pr01.html index eeaeddf575..d78a0f6c4c 100644 --- a/dspace/docs/html/pr01.html +++ b/dspace/docs/html/pr01.html @@ -1,8 +1,7 @@ -Preface

      Preface

      The documentation submitted to you, the administrator, is a "Release Candidate" for testing purposes and finding the bugs in the DSpace 1.6 RC1 software. Users should be aware that the documentation may contain errors and/or missing pieces to the documentation.

      Currently, the list of bugs and fixes has not made it into the 1.6-RC1 documentation along with other items that were being finished up in the programming realm as this documentation was being generated.


      Preface

      The documentation submitted to you, the administrator, is a "Release Candidate" for testing purposes and finding the bugs in the DSpace 1.6 RC2 software. Users should be aware that the documentation may contain errors and/or missing pieces to the documentation.

      Currently, the list of bugs and fixes has not made it into the 1.6-RC2 documentation along with other items that were being finished up in the programming realm as this documentation was being generated.


      \ No newline at end of file +

      Licensed under a Creative Commons Attribution 3.0 United States License

      \ No newline at end of file