DSpace Manual
DSpace Manual
x Documentation
DSpace 7.x Documentation
Table of Contents
1 Introduction ......................................................................................................20
1.1 Release Notes......................................................................................................................... 21
1.1.1 7.0 Release Notes ................................................................................................................................................. 22
1.1.2 7.0 Configurations Removed ............................................................................................................................... 24
1.1.3 7.0 Acknowledgments.......................................................................................................................................... 26
1.1.3.1 Major Contributing Institutions........................................................................................................................... 26
1.1.3.2 Financial Contributors ......................................................................................................................................... 26
1.1.3.3 Frontend / User Interface Acknowledgments..................................................................................................... 27
1.1.3.4 Backend / REST API Acknowledgments .............................................................................................................. 27
1.1.3.5 Additional Thanks ................................................................................................................................................ 28
1.1.4 7.0 Beta 1-5 Release Notes................................................................................................................................... 28
1.1.4.1 7.0 Beta 5 Release Notes...................................................................................................................................... 28
1.1.4.2 7.0 Beta 4 Release Notes...................................................................................................................................... 30
1.1.4.3 7.0 Beta 3 Release Notes...................................................................................................................................... 31
1.1.4.4 7.0 Beta 2 Release Notes...................................................................................................................................... 33
1.1.4.5 7.0 Beta 1 Release Notes...................................................................................................................................... 33
1.2 Functional Overview .............................................................................................................. 35
1.2.1 Online access to your digital assets .................................................................................................................... 36
1.2.1.1 Full-text search..................................................................................................................................................... 36
1.2.1.2 Navigation ............................................................................................................................................................ 36
1.2.1.3 Supported file types............................................................................................................................................. 37
1.2.1.4 Optimized for Google Indexing............................................................................................................................ 37
1.2.1.5 OpenURL Support ................................................................................................................................................ 37
1.2.1.6 Support for modern browsers ............................................................................................................................. 37
1.2.2 Metadata Management........................................................................................................................................ 38
1.2.2.1 Metadata............................................................................................................................................................... 38
1.2.2.2 Choice Management and Authority Control ....................................................................................................... 38
1.2.3 Licensing............................................................................................................................................................... 39
1.2.3.1 Collection and Community Licenses................................................................................................................... 40
1.2.3.2 License granted by the submitter to the repository........................................................................................... 40
1.2.3.3 Creative Commons Support for DSpace Items................................................................................................... 40
1.2.4 Persistent URLs and Identifiers ........................................................................................................................... 40
1.2.4.1 Handles................................................................................................................................................................. 40
– 2
DSpace 7.x Documentation – DSpace 7.x Documentation
– 3
DSpace 7.x Documentation – DSpace 7.x Documentation
4 Using DSpace.....................................................................................................87
4.1 Authentication and Authorization......................................................................................... 87
– 4
DSpace 7.x Documentation – DSpace 7.x Documentation
– 5
DSpace 7.x Documentation – DSpace 7.x Documentation
– 6
DSpace 7.x Documentation – DSpace 7.x Documentation
– 7
DSpace 7.x Documentation – DSpace 7.x Documentation
4.5.7 Importing and Exporting Items via Simple Archive Format............................................................................. 233
4.5.7.1 Item Importer and Exporter............................................................................................................................... 233
4.5.8 Importing and Exporting Content via Packages............................................................................................... 244
4.5.8.1 Package Importer and Exporter ........................................................................................................................ 244
4.5.9 Configurable Workflow ...................................................................................................................................... 250
4.5.9.1 Introduction ....................................................................................................................................................... 250
4.5.9.2 Data Migration.................................................................................................................................................... 251
4.5.9.3 Configuration ..................................................................................................................................................... 252
4.5.9.4 Authorizations .................................................................................................................................................... 257
4.5.9.5 Database............................................................................................................................................................. 257
4.5.9.6 Additional workflow steps/actions and features ............................................................................................. 259
4.5.10 Submission User Interface................................................................................................................................. 260
4.5.10.1 Default Submission Process .............................................................................................................................. 261
4.5.10.2 Understanding the Submission Configuration Files ........................................................................................ 262
4.5.10.3 Reordering/Removing/Adding Submission Steps............................................................................................ 264
4.5.10.4 Assigning a custom Submission Process to a Collection ................................................................................. 265
4.5.10.5 Custom Metadata-entry Steps for Submission................................................................................................. 265
4.5.10.6 Configuring the File Upload step....................................................................................................................... 271
4.5.10.7 Creating new Submission Steps Programmatically......................................................................................... 274
4.5.10.8 Live Import from external sources .................................................................................................................... 274
4.5.10.9 Simple HTML Fragment Markup........................................................................................................................ 283
4.6 Items and Metadata ............................................................................................................. 284
4.6.1 Authority Control of Metadata Values............................................................................................................... 284
4.6.1.1 work in progress................................................................................................................................................. 284
4.6.1.2 Introduction ....................................................................................................................................................... 284
4.6.1.3 Simple choice management for DSpace submission forms ............................................................................ 285
4.6.1.4 Hierarchical Taxonomies and Controlled Vocabularies................................................................................... 286
4.6.1.5 Authority Control: Enhancing DSpace metadata fields with Authority Keys .................................................. 287
4.6.2 Batch Metadata Editing ..................................................................................................................................... 287
4.6.2.1 Batch Metadata Editing Tool ............................................................................................................................. 288
4.6.2.2 Batch Metadata Editing Configuration ............................................................................................................. 294
4.6.3 DOI Digital Object Identifier............................................................................................................................... 296
4.6.3.1 Persistent Identifier ........................................................................................................................................... 297
4.6.3.2 DOI Registration Agencies ................................................................................................................................. 297
4.6.3.3 Adding support for other Registration Agencies .............................................................................................. 306
– 8
DSpace 7.x Documentation – DSpace 7.x Documentation
– 9
DSpace 7.x Documentation – DSpace 7.x Documentation
– 10
DSpace 7.x Documentation – DSpace 7.x Documentation
– 11
DSpace 7.x Documentation – DSpace 7.x Documentation
– 12
DSpace 7.x Documentation – DSpace 7.x Documentation
5.9.1.6 Ensure Item Metadata appears in the HTML HEAD .......................................................................................... 490
5.9.1.7 Avoid redirecting file downloads to Item landing pages ................................................................................. 491
5.9.1.8 Turn OFF any generation of PDF cover pages................................................................................................... 491
5.9.1.9 In general, OAI-PMH is not useful to Search Engines ....................................................................................... 491
5.9.2 Google Scholar Metadata Mappings ................................................................................................................. 492
5.10 Troubleshooting Information.............................................................................................. 492
5.11 Validating CheckSums of Bitstreams .................................................................................. 493
5.11.1 Checksum Checker............................................................................................................................................. 493
5.11.1.1 Checker Execution Mode ................................................................................................................................... 494
5.11.1.2 Checker Results Pruning.................................................................................................................................... 495
5.11.1.3 Checker Reporting ............................................................................................................................................. 495
5.11.1.4 Cron or Automatic Execution of Checksum Checker ....................................................................................... 496
5.11.1.5 Automated Checksum Checkers' Results ......................................................................................................... 496
5.11.1.6 Database Query.................................................................................................................................................. 497
– 13
DSpace 7.x Documentation – DSpace 7.x Documentation
– 14
DSpace 7.x Documentation – DSpace 7.x Documentation
– 15
DSpace 7.x Documentation – DSpace 7.x Documentation
– 16
DSpace 7.x Documentation – DSpace 7.x Documentation
– 17
DSpace 7.x Documentation – DSpace 7.x Documentation
– 18
DSpace 7.x Documentation – DSpace 7.x Documentation
– 19
DSpace 7.x Documentation – DSpace 7.x Documentation
1 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(see page 35), 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(see page 53), and sections on
configuration(see page 552) and the directory structure(see page 636). Support options are available in the DSpace
Support Guide1.
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 section(see page 652).
Other good sources of information are:
• The DSpace Support Guide2 lists various places to ask for help, report bugs or security issues, etc.
• The DSpace REST API contract3 which documents the REST API behavior, etc. If you want source code docs,
we also provide JavaDocs for the Java API layer which can be built by running mvn javadoc:javadoc
• The DSpace Wiki4 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 resources5 (Web sites, mailing lists etc.)
• Technical FAQ6
• Registry of projects using DSpace7
• Guidelines for contributing back to DSpace8
• www.dspace.org9 has announcements and contains useful information about bringing up an instance of
DSpace at your organization.
• The DSpace Community List10. Join DSpace-Community to ask questions or join discussions about non-
technical aspects of building and running a DSpace service. It is open to all DSpace users. Ask questions,
share news, and spark discussion about DSpace with people managing other DSpace sites. Watch DSpace-
Community for news of software releases, user conferences, and announcements about DSpace.
• The DSpace Technical List11. DSpace developers & fellow community members help answer installation and
technology questions, share information and help each other solve technical problems through the DSpace-
Tech mailing list. Post questions or contribute your expertise to other developers working with the system.
• The DSpace Development List12. Join Discussions among DSpace Developers. The DSpace-Dev listserv is for
DSpace developers working on the DSpace platform to share ideas and discuss code changes to the open
source platform. Join other developers to shape the evolution of the DSpace software. The DSpace
1 https://wiki.lyrasis.org/display/DSPACE/Support
2 https://wiki.lyrasis.org/display/DSPACE/Support
3 https://github.com/DSpace/Rest7Contract/blob/main/README.md
4 http://wiki.dspace.org/
5 https://wiki.lyrasis.org/display/DSPACE/DSpaceResources
6 https://wiki.lyrasis.org/display/DSPACE/TechnicalFAQ
7 http://registry.duraspace.org/registry/dspace
8 https://wiki.lyrasis.org/display/DSPACE/Code+Contribution+Guidelines
9 http://www.dspace.org/
10 https://groups.google.com/d/forum/dspace-community
11 https://groups.google.com/d/forum/dspace-tech
12 https://groups.google.com/d/forum/dspace-devel
Introduction – 20
DSpace 7.x Documentation – DSpace 7.x Documentation
community depends on its members to frame functional requirements and high-level architecture, and to
facilitate programming, testing, documentation and to the project.
13 https://wiki.lyrasis.org/display/DSPACE/Try+out+DSpace+7
14 https://demo7.dspace.org/
Introduction – 21
DSpace 7.x Documentation – DSpace 7.x Documentation
DSpace 7.0 is the largest release in the history of DSpace software. While retaining the "out-of-the-box" aspects
DSpace is known for, it represents a major evolution of the platform including:
• A completely new User Interface (demo site15). This is the new Javascript-based frontend, built on
Angular.io16 (with support for SEO provided by Angular Universal). This new interface is also customizable
via HTML and CSS (Sass) and Bootstrap. For early theme building tips see User Interface Customization(see
page 378)
• A completely new, fully featured REST API (demo site17), provided via a single "server" webapp backend.
This new backend is not only a REST API, but also still supports OAI-PMH, SWORD (v1 or v2) and RDF.
Anything you can do from the User Interface is now also possible in our REST API. See REST API(see page 502)
documentation for more details.
• A newly designed search box. Search from the header of any page (click the magnifying glass). The search
results page now features automatic search highlight, expandable & searchable filters, and optional
thumbnail-based results (click on the “grid” view).
• A new MyDSpace area to manage your submissions & reviews, MyDSpace includes a new drag & drop
area to start a new submission, and easily search your workflow tasks or in progress submissions to find
what you were working on. (Login, click on your user profile icon, click “MyDSpace”). Find workflow tasks to
claim by selecting “All tasks” in the “Show” dropdown.
• A new configurable submission user interface, featuring a one-page, drag & drop submission form. This
form is completely configurable and can be prepopulated by dragging & dropping a metadata file (e.g. ArXiv,
CSV/TSV, Endnote, PubMed, or RIS. etc) or by importing via external APIs (e.g ORCID, PubMed, Sherpa
Journals or Sherpa Publishers, etc) (video18). Local controlled vocabularies are also still supported (video19).
See Submission User Interface(see page 260) for more details.
• Optional, new Configurable Entities(see page 134) feature. DSpace now supports “entities”, which are DSpace
Items of a specific ‘type’ which may have relationships to other entities. These entity types and relationships
are configurable, with two examples coming out-of-the-box: a set of Journal hierarchy entities (Journal,
Volume, Issue, Publication) and a set of Research entities (Publication, Project, Person, OrgUnit). For more
information see Configurable Entities(see page 134).
• Dynamic user interface translations (Click the globe, and select a language). Interested in adding more
translations? See DSpace 7 Translation - Internationalization (i18n) - Localization (l10n)20.
• A new Admin sidebar. Login as an Administrator, and an administrative sidebar appears. Features available
include:
• Quickly create or edit objects from anywhere in the system. Either browse to the object first, or
search for it using the Admin sidebar.
• Processes UI (video21) allows Administrators to run backend scripts/processes while monitoring their
progress & completion. (Login as an Admin, select "Processes" in sidebar)
• Administrative Search (video22) combines retrieval of withdrawn items and private items, together
with a series of quick action buttons.
15 https://demo7.dspace.org/
16 http://Angular.io
17 https://api7.dspace.org/server/
18 https://www.youtube.com/watch?v=mGRDl0khzrQ
19 https://youtu.be/OfEIoxOJK-8
20 https://wiki.lyrasis.org/pages/viewpage.action?pageId=117735441
21 https://www.youtube.com/watch?v=vcsWkWQONkY
22 https://www.youtube.com/watch?v=JV8Rb-9cByo&t=1s
Introduction – 22
DSpace 7.x Documentation – DSpace 7.x Documentation
• Administer Active Workflows (video23) allows Administrators to see every submission that is currently
in the workflow approval process.
• Bitstream Editing (video24) has a drag-and-drop interface for re-ordering bitstreams and makes
adding and editing bitstreams more intuitive.
• Metadata Editing (video25) introduces suggest-as-you-type for field name selection of new metadata.
• Login As (Impersonate) another account allows Administrators to debug issues that a specific user is
seeing, or do some work on behalf of that user. (Login as an Admin, Click "Access Control" in sidebar,
Click "People". Search for the user account & edit it. Click the "Impersonate EPerson" button. You
will be authenticated as that user until you click "Stop Impersonating EPerson" in the upper right.)
• Improved GDPR alignment (video26)
• User Agreement required for all authenticated users to read and agree to. (Login for first time, and
sample user agreement will display. After agreeing to it, it will not appear again.)
• Cookie Preferences are now available for all users (anonymous or authenticated). A cookie
preference popup appears when first accessing the site. Users are given information on what cookies
added by DSpace, including a Privacy Statement which can be used to describe how their data is
used.
• User Accounts can be deleted even if they've submitted content in the past.
• Support for OpenAIREv4 Guidelines for Literature Repositories27 in OAI-PMH (See the new “openaire4”
context in OAI-PMH).
• Search Engine Optimization: Tested and approved by the Google Scholar team, DSpace still includes all the
SEO features you require: a robots.txt, Sitemaps and Google Scholar "citation" tags.
• Video/Image Content Streaming (Kindly donated by Zoltán Kanász-Nagy28 and Dániel Péter Sipos29 of
Qulto): When enabled, DSpace can now stream videos & view images full screen, using an embedded viewer.
(See the "mediaViewer" settings in the environment.common.ts30 to enable.)
• Basic Usage Statistics (video31) are available for the entire site (See "Statistics" menu at top of homepage),
or specific Communities, Collections or Items (Click on that same "Statistics" menu after browsing to a
specific object
• Additional features are listed in the Beta release notes below. Also, give it a try on our demo site32 & see
what you discover!
DSpace 7 does not yet include all the features of DSpace 6.x
DSpace 7.0 represents a major evolution of the platform into a new, modern web architecture. This means
there are tons of new and redesigned features in 7.0. However, in order to get this release in your hands
sooner, DSpace Steering decided to delay some 6.x features for later 7.x releases. So, if you don't see a 6.x
feature yet in 7.0, it'll likely be coming soon in a later 7.x release. For a prioritized list of upcoming features
see "What features are coming in a later 7.x release?" on our DSpace Release 7.0 Status33 page.
23 https://www.youtube.com/watch?v=CjH8VS2WDjE
24 https://youtu.be/s1msEKK0f68
25 https://youtu.be/6KVB2ugUgjI
26 https://www.youtube.com/watch?v=bKqFmb6Ywng
27 https://guidelines.openaire.eu/en/latest/literature/index.html
28 https://github.com/kanasznagyzoltan
29 https://github.com/dsipos-dev
30 https://github.com/DSpace/dspace-angular/blob/main/src/environments/environment.common.ts#L273-L276
31 https://youtu.be/T2g74zs_wmM
32 https://demo7.dspace.org/
33 https://wiki.lyrasis.org/display/DSPACE/DSpace+Release+7.0+Status
Introduction – 23
DSpace 7.x Documentation – DSpace 7.x Documentation
• XMLUI and JSPUI are no longer supported or distributed with DSpace. All users should immediately
migrate to and utilize the new Angular User Interface34. There is no migration path from either the XMLUI or
JSPUI to the new User interface. However, the new user interface can be themed via HTML and CSS (SCSS).
• The old REST API ("rest" webapp from DSpace v4.x-6.x) is deprecated and will be removed in v8.x. The
new REST API(see page 502) (provided in the "server" webapp) replaces all functionality available in the older
REST API. If you have tools that rely on the old REST API, you can still (optionally) build & deploy it alongside
the "server" webapp via the "-Pdspace-rest" Maven flag. See REST API v6 (deprecated)(see page 506)
• The Submission Form configuration has changed. The "item-submission.xml" file has changed its
structure, and the "input-forms.xml" has been replaced by a "submission-forms.xml". See Submission User
Interface(see page 260)
• ElasticSearch Usage Statistics have been removed. Please use SOLR Statistics(see page 338) or DSpace
Google Analytics Statistics(see page 363).
• The traditional, 3-step Workflow system has been removed in favor of the Configurable Workflow
System(see page 250). For most users, you should see no effect or difference. The default setup for this
Configurable Workflow System is identical to the traditional, 3-step workflow ("Approve/Reject", "Approve/
Reject/Edit Metadata", "Edit Metadata")
• The old BTE import framework in favor of Live Import Framework(see page 274) (features of BTE have been
ported to Live Import)
• Apache Solr is no longer embedded within the DSpace installer. Solr now MUST be installed as a
separate dependency alongside the DSpace backend. See Installing DSpace(see page 53).
• A large number of old/obsolete configurations were removed. "7.0 Configurations Removed" section
below.
• See Upgrading DSpace(see page 75) for more hints on the upgrade from any old version of DSpace to 7.x
Additional Resources
• Video presentations / Workshops from OR2021 (June 2021) showing off many of the new features &
configurations of DSpace 7: DSpace 7 at OR202135
34 https://github.com/DSpace/dspace-angular/
35 https://wiki.lyrasis.org/display/DSPACE/DSpace+7+at+OR2021
Introduction – 24
DSpace 7.x Documentation – DSpace 7.x Documentation
• modules/publication-lookup.cfg
• spring/api/bte.xml (BTE import framework was removed in favor of Live Import from external
sources(see page 274))
• spring/oai/* (OAI is now part of the backend "server webapp" and needs no separate
configurations)
• spring/xmlui/*
• Within the dspace.cfg main configuration file, the following settings were removed:
• log.init.config (replaced by log4j2.xml)
• webui.submit.blocktheses
• webui.submit.upload.html5
• webui.submission.restrictstep.enableAdvancedForm
• webui.submission.restrictstep.groups
• webui.submit.enable-cc
• webui.browse.thumbnail.*
• webui.item.thumbnail.*
• webui.preview.enabled
• webui.strengths.show
• webui.browse.author-field
• webui.browse.author-limit
• webui.browse.render-scientific-formulas
• recent.submissions.*
• webui.collectionhome.*
• plugin.sequence.org.dspace.plugin.SiteHomeProcessor
• plugin.sequence.org.dspace.plugin.CommunityHomeProcessor
• plugin.sequence.org.dspace.plugin.CollectionHomeProcessor
• plugin.sequence.org.dspace.plugin.ItemHomeProcessor
• plugin.single.org.dspace.app.webui.search.SearchRequestProcessor
• plugin.single.org.dspace.app.xmlui.aspect.administrative.mapper.SearchRequestP
rocessor
• plugin.named.org.dspace.app.webui.json.JSONRequest
• plugin.single.org.dspace.app.webui.util.StyleSelection
• webui.bitstream.order.*
• webui.itemdisplay.*
• webui.resolver.*
• webui.preferred.identifier
• webui.identifier.*
• webui.mydspace.*
• webui.suggest.*
• webui.controlledvocabulary.enable
• webui.session.invalidate
• itemmap.*
• jspui.*
• xmlui.*
• mirage2.*
A full list of all changes / bug fixes in 7.x is available in the Changes in 7.x(see page 697) section.
Introduction – 25
DSpace 7.x Documentation – DSpace 7.x Documentation
36 https://www.atmire.com/
37 https://www.4science.it/
38 https://www.fct.pt/
39 https://www.rcaap.pt/
40 https://wiki.lyrasis.org/display/DSPACE/DSpace+7+Release+Goals
Introduction – 26
DSpace 7.x Documentation – DSpace 7.x Documentation
Introduction – 27
DSpace 7.x Documentation – DSpace 7.x Documentation
41 https://duraspace.org/dspace/community/leadership-group/
42 https://duraspace.org/dspace/community/dspace-steering-group/
43 https://www.lyrasis.org/
44 https://wiki.lyrasis.org/display/DSPACE/DSpace+7+Working+Group
45 https://wiki.lyrasis.org/display/DSPACE/DSpace+7+Entities+Working+Group
46 https://wiki.lyrasis.org/display/DSPACE/DSpace+7+Marketing+Working+Group
47 https://wiki.lyrasis.org/display/cmtygp/DSpace+Community+Advisory+Team
48 https://wiki.lyrasis.org/display/DSPACE/DSpace+Release+7.0+Testathon+Page
49 https://wiki.lyrasis.org/display/DSPACE/DSpace+UI+Design+principles+and+guidelines
50 https://github.com/DSpace/dspace-angular/blob/main/src/environments/environment.common.ts#L230-L267
Introduction – 28
DSpace 7.x Documentation – DSpace 7.x Documentation
• Video/Image Content Streaming (Kindly donated by Zoltán Kanász-Nagy51 and Dániel Péter Sipos52 of
Qulto): When enabled, DSpace can now stream videos & view images full screen, using an embedded viewer.
• See the new "mediaViewer" settings in the environment.common.ts53 to enable. S54ample
screenshots of the feature can also be found at https://github.com/DSpace/dspace-angular/issues/
885
• New Administrative Features
• Add ability to modify Community/Collection resource policies (i.e. permissions). Edit a Community or
Collection and look at the "Authorizations" tab.
• Add ability to edit/delete user Groups.
• Add private/withdrawn item badges for Administrators to quickly see which Items are private or
withdrawn. These are viewable throughout the browse/search when logged in as an Administrative
user.
• Configurable Entities Improvements
• Entities now report their Entity type in the URL path (e.g. Person entities use URL path /entities/
person/[uuid] and Publication entities use the URL path /entities/publication/[uuid])
• Each Entity type now has a custom Submission form.
• These can be most easily seen in the Demo site. Submitting to the "People" collection55 uses
the "Person" Entity Form. Submitting to the "Articles" collection56 uses the "Publication"
Entity Form. The full list of Entity-specific Collection submission mappings can be found in
the example in item-submission.xml57 (this example is enabled on our Demo Site)
• General performance improvements for Entities. Introduction of "tilted" relationships58 for
Configurable Entities that may have hundreds or thousands of relationships.
• Improvements to Upgrade process
• Added a new Submission form migration script59 to help DSpace 5/6 institutions migrate their old
Submission configuration files to the new/updated format for v7.
• Security fixes
• Added CSRF (Cross-Site Request Forgery)60 protection to REST API. UI (and any other clients) now
must be trusted to login to the REST API.
• Improved permissions checks/validation in UI for Administrator, Community/Collection
Administrator and Submitter roles.
• Fixed several other security issues auto-reported by LGTM61
• Many bug fixes
• Fixed issue where mapped items were not appearing
• Fixed issue where Handles were not redirecting
• Fixed issues with Sherpa and ORCID integrations
• Fixed several small issues with OpenAIRE v4 support in OAI-PMH
• Fixed many bugs in MyDSpace and Submission UI
• Fixed several bugs in CSV import/export process.
• Fixes to search/browse pagination & breadcrumb trail
• Improved performance of Browse by Community/Collection hierarchy
• LDAP Authentication support is working again
• Many dependency upgrades
51 https://github.com/kanasznagyzoltan
52 https://github.com/dsipos-dev
53 https://github.com/DSpace/dspace-angular/blob/main/src/environments/environment.common.ts#L273-L276
54 https://github.com/DSpace/dspace-angular/pull/888
55 https://demo7.dspace.org/collections/9398affe-a977-4992-9a1d-6f00908a259f
56 https://demo7.dspace.org/collections/282164f5-d325-4740-8dd1-fa4d6d3e7200
57 https://github.com/DSpace/DSpace/blob/main/dspace/config/item-submission.xml#L23-L49
58 https://github.com/DSpace/DSpace/pull/3134
59 https://github.com/DSpace/DSpace/pull/3076
60 https://owasp.org/www-community/attacks/csrf
61 https://lgtm.com/
Introduction – 29
DSpace 7.x Documentation – DSpace 7.x Documentation
62 https://youtu.be/irL7RO1HhFU
63 https://youtu.be/OfEIoxOJK-8
64 https://wiki.lyrasis.org/display/DSDOC6x/Batch+Metadata+Editing
65 https://youtu.be/T2g74zs_wmM
66 https://irus.jisc.ac.uk/
67 https://jira.lyrasis.org/browse/DS-626
68 https://www.youtube.com/watch?v=bKqFmb6Ywng
Introduction – 30
DSpace 7.x Documentation – DSpace 7.x Documentation
• Cookie Preferences are now available for all users (anonymous or authenticated). A cookie
preference popup appears when first accessing the site. Users are given information on what cookies
added by DSpace, including a Privacy Statement which can be used to describe how their data is
used.
• User Accounts can be deleted even if they've submitted content in the past.
• When a user is deleted, their past submissions are kept but the submitter field is set to empty
(null).
• Users cannot be deleted if they are the only member of a workflow approval group. Admins
must either delete that group first, or assign another member to the group. This ensures
Workflows are kept even if a user account needs to be deleted.
• Language preferences are now kept for all users (anonymous or logged in). By default, DSpace will try to
use your browser's preferred language (if found in Accept-Language header and a translation in that
language exists). Users can override it by either saving a preferred language in their user profile, or by
manually selecting a different language from the globe icon (upper right).
• IP-based authorization lets you restrict (or provide access to) objects based on the user's IP address. This
uses the same "authentication-ip.cfg" configuration as DSpace 6, allowing you to map IP ranges to specific
DSpace Groups. Users within that IP range are added to the mapped DSpace Group for the remainder of
their session.
• Search Engine Optimization: Addition of robots.txt, Sitemaps and Google Scholar "citation" tags. These
optimizations are being tested by the Google Scholar team and may be improved further in the upcoming
beta 5 release.
• For improved SEO, Sitemaps are now enabled by default and automatically update once per day.
• Security Fixes and Dependency upgrades
• Enhancements to new /api/authz/features endpoint in REST API to provide additional feature-
specific permission checks
• Flyway69 database engine was upgraded to version 6.5.5
• Indexing enhancements (some objects were being indexed twice, see PR#296070)
• Fixes to Shibboleth login
• Additional bug fixes to both UI and REST API
Changelog
• All User Interface changes: https://github.com/DSpace/dspace-angular/issues?
q=is%3Aclosed+milestone%3A7.0beta4
• All Backend changes: https://github.com/DSpace/DSpace/issues?q=is%3Aclosed+milestone%3A7.0beta4
69 https://flywaydb.org/
70 https://github.com/DSpace/DSpace/pull/2960
71 https://www.youtube.com/watch?v=vcsWkWQONkY
72 https://www.youtube.com/watch?v=C2k8vn1rWNE
Introduction – 31
DSpace 7.x Documentation – DSpace 7.x Documentation
• Login As (Impersonate) another account allows Administrators to debug issues that a specific user is
seeing, or do some work on behalf of that user. (Login as an Admin, Click "Access Control" in sidebar, Click
"People". Search for the user account & edit it. Click the "Impersonate EPerson" button. You will be
authenticated as that user until you click "Stop Impersonating EPerson" in the upper right.)
• Requires "webui.user.assumelogin=true" to be set in your local.cfg on backend. Also be aware that
you can only "impersonate" a user who is not a member of the Administrator group.
• Manage Authorization Policies of an Item allows Administrators to directly change/update the access
policies of an Item, its Bundles or Bitstreams. (Login as an Admin, Click "Edit" → "Item" in sidebar, and
search for the Item. Click the "Authorization.." button on its "Status" tab.
• Manage Item Templates of a Collection allows Administrators to create/manage template metadata that all
new Items will start with when submitted to that Collection. (Login as an Admin, Click "Edit" → "Collection"
in sidebar and search for the Collection. Click the "Add" button under "Template Item" to get started.)
• NOTE: unfortunately there's a known bug that while you can create these templates, the submission
process is not yet using them. See https://github.com/DSpace/dspace-angular/issues/748
• Administer Active Workflows (video73) allows Administrators to see every submission that is currently in
the workflow approval process. From there, they have the option to delete Items (if they are no longer
needed), or send them back to the workflow pool (to allow another user to review them). (Login as an
Admin, Click "Administer Workflow" in sidebar)
• CC License step allows your users to select a Creative Commons License as part of their submission. Once
enabled in the "item-submission.xml" (on the backend) it appears as part of the submission form.
• Angular CLI compatibility was added to the User Interface. This allows developers to easily update the User
Interface using standard Angular commandline tools. More information (including tutorials) is available
at https://cli.angular.io/
• English, Latvian, Dutch, German, French, Portuguese, Spanish and Finnish language catalogs
• Numerous bugs were fixed based on early user testing. (Thanks to all who've tested Beta 1 or Beta 2 and
reported your feedback!) Some bugs fixed include:
• Login/Logout session fixes (including compatibility with Firefox and Safari browsers)
• Improved Community/Collection tree browsing performance
• Fixes to editing Communities, Collections and Items. This includes improved drag & drop reordering
of bitstreams in an Item.
• Improved performance of Collection dropdown in submission
• Ability to download restricted bitstreams (previously these would error out)
• Authorization & security improvements in both REST API and UI
• Upgraded all REST API dependencies (Spring, Spring Boot, HAL Browser) and enhanced our automated
testing via additional Integration Tests.
• All features previous mentioned in 7.0 Beta 2 Release Notes(see page 33) and 7.0 Beta 1 Release Notes(see page 33)
below
Learn More: New videos are available highlighting features of the MyDSpace area:
• Manage Submissions in MyDSpace (video74)
• Manage Tasks in MyDSpace (video75)
Changelog
• All User Interface changes: https://github.com/DSpace/dspace-angular/issues?
q=is%3Aclosed+milestone%3A7.0beta3
• All Backend changes: https://github.com/DSpace/DSpace/issues?q=is%3Aclosed+milestone%3A7.0beta3
73 https://www.youtube.com/watch?v=CjH8VS2WDjE
74 https://youtu.be/uM1q6W6k6lY
75 https://youtu.be/R0v1WNFDbmI
Introduction – 32
DSpace 7.x Documentation – DSpace 7.x Documentation
76 https://youtu.be/XoYStblYZWY
77 https://youtu.be/s1msEKK0f68
78 https://youtu.be/6KVB2ugUgjI
79 https://wiki.lyrasis.org/display/DSPACE/DSpace+7+Shibboleth+Configuration
80 https://wiki.lyrasis.org/display/DSDOC6x/Item+Level+Versioning
81 https://youtu.be/wnrUOHRS5WA
82 https://dspace7-demo.atmire.com/
83 http://Angular.io
84 https://tinyurl.com/na-dsug2019-dspace7
85 https://umn.zoom.us/recording/play/Mk3gWE1AGEErGg6fLaZ_u-rg_8pEC7MWu_2uWa5l8Q03fKM7ra9sm1-MntSRtNti?
startTime=1569247043000
86 https://dspace7.4science.cloud/server/
Introduction – 33
DSpace 7.x Documentation – DSpace 7.x Documentation
• A newly designed search box. Search from the header of any page (click the magnifying glass). The search
results page now features automatic search highlight, expandable & searchable filters, and optional
thumbnail-based results (click on the “grid” view).
• A new MyDSpace area, including a new, one-page, drag & drop submission form, a new workflow approval
process, and searchable past submissions. (Login, click on your user profile icon, click “MyDSpace”). Find
workflow tasks to claim by selecting “All tasks” in the “Show” dropdown.
• Dynamic user interface translations (Click the globe, and select a language). Anyone interested in adding
more translations? See DSpace 7 Translation - Internationalization (i18n) - Localization (l10n)87.
• A new Admin sidebar. Login as an Administrator, and an administrative sidebar appears. Use this to create
a new Community/Collection/Item, edit existing ones, and manage registries. (NOTE: A number of
Administrative tools are still missing or greyed out. They will be coming in future Beta releases.)
• Optional, new Configurable Entities(see page 134) feature. DSpace now supports “entities”, which are DSpace
Items of a specific ‘type’ which may have relationships to other entities. These entity types and relationships
are configurable, with two examples coming out-of-the-box: a set of Journal hierarchy entities (Journal,
Volume, Issue, Publication) and a set of Research entities (Publication, Project, Person, OrgUnit). For more
information see “The Power of Configurable Entities” from OR2019: slides88 or video recording89.
Additionally, a test data set featuring both out-of-the-box examples can be used when trying out DSpace 7
via Docker90. Early documentation is available at Configurable Entities(see page 134).
• Support for OpenAIREv4 Guidelines for Literature Repositories91 in OAI-PMH (See the new “openaire4”
context in OAI-PMH).
Additional major changes to be aware of in the 7.x platform (not an exhaustive list):
• XMLUI and JSPUI are no longer supported or distributed with DSpace. All users should immediately
migrate to and utilize the new Angular User Interface92. There is no migration path from either the XMLUI or
JSPUI to the new User interface. However, the new user interface can be themed via HTML and CSS (SCSS).
• The old REST API ("rest" webapp from DSpace v4.x-6.x) is deprecated and will be removed in v8.x. The
new REST API (provided in the "server" webapp) replaces all functionality available in the older REST API. If
you have tools that rely on the old REST API, you can still (optionally) build & deploy it alongside the "server"
webapp via the "-Pdspace-rest" Maven flag.
• The Submission Form configuration has changed. The "item-submission.xml" file has changed its
structure, and the "input-forms.xml" has been replaced by a "submission-forms.xml". For early
documentation see Configuration changes in the submission process93
• ElasticSearch Usage Statistics have been removed. Please use SOLR Statistics(see page 338) or DSpace
Google Analytics Statistics(see page 363).
• The traditional, 3-step Workflow system has been removed in favor of the Configurable Workflow
System(see page 250). For most users, you should see no effect or difference. The default setup for this
Configurable Workflow System is identical to the traditional, 3-step workflow ("Approve/Reject", "Approve/
Reject/Edit Metadata", "Edit Metadata")
• Apache Solr is no longer embedded within the DSpace installer (and has been upgraded to Solr v7).
Solr now MUST be installed as a separate dependency alongside the DSpace backend. See Installing
DSpace(see page 53).
• Some command-line tools/scripts are enabled in the new REST API (e.g. index-discovery): See new
Scripts endpoint: https://github.com/DSpace/Rest7Contract/blob/master/scripts-endpoint.md
• DSpace now has a single, backend "server" webapp to deploy in Tomcat (or similar). In DSpace 6.x and
below, different machine interfaces (OAI-PMH, SWORD v1 or v2, RDF, REST API) were provided via separate
deployable webapps. Now, all those interfaces along with the new REST API are in a single, "server" webapp
87 https://wiki.lyrasis.org/pages/viewpage.action?pageId=117735441
88 https://www.slideshare.net/Atmire/dspace-7-the-power-of-configurable-entities
89 https://lecture2go.uni-hamburg.de/l2go/-/get/v/24831
90 https://wiki.lyrasis.org/display/DSPACE/Try+out+DSpace+7#TryoutDSpace7-InstallviaDocker
91 https://guidelines.openaire.eu/en/latest/literature/index.html
92 https://github.com/DSpace/dspace-angular/
93 https://wiki.lyrasis.org/display/DSPACE/Configuration+changes+in+the+submission+process
Introduction – 34
DSpace 7.x Documentation – DSpace 7.x Documentation
built on Spring Boot94. You can now control which interfaces are enabled, and what path they appear on via
configuration (e.g. "oai.enabled=true" and "oai.path=oai"). See https://jira.lyrasis.org/browse/DS-4257
• Configuration(see page 552) has been upgraded to Apache Commons Configuration version 2. For most
users, you should see no effect or difference. No DSpace configuration files were modified during this upgrade
and no configurations or settings were renamed or changed. However, if you locally modified or customized
the [dspace]/config/config-definition.xml (DSpace's Apache Commons Configuration settings),
you will need to ensure those modifications are compatible with Apache Commons Configuration version 2.
See the Apache Commons Configuration's configuration definition file reference95 for more details.
• Handle Server has been upgraded to version 9.x : https://jira.lyrasis.org/browse/DS-4205
• DSpace now has sample Docker images (configurations) which can be used to try out DSpace quickly.
See Try out DSpace 796 ("Install via Docker" section).
94 https://spring.io/projects/spring-boot
95 https://commons.apache.org/proper/commons-configuration/userguide/
howto_combinedbuilder.html#Configuration_definition_file_reference
96 https://wiki.lyrasis.org/display/DSPACE/Try+out+DSpace+7
Introduction – 35
DSpace 7.x Documentation – DSpace 7.x Documentation
1.2.1.2 Navigation
DSpace allows users to find their way to relevant content in a number of ways, including:
• Searching for one or more keywords in metadata or extracted full-text
• Faceted browsing through any field provided in the item description.
• Through external reference, such as a Handle
Introduction – 36
DSpace 7.x Documentation – DSpace 7.x Documentation
97 https://en.wikipedia.org/wiki/OpenURL
98 http://www.exlibrisgroup.com/category/SFXOverview
Introduction – 37
DSpace 7.x Documentation – DSpace 7.x Documentation
1.2.2.1 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 Profile99 set of elements
and qualifiers is provided by default. This default schema is described in more detail in Metadata and
Bitstream Format Registries(see page 640). 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.
• Administrative Metadata: This includes preservation metadata, provenance and authorization policy data.
Most of this is held within DSpace's relational 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, a bitstream also has 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.
99 http://www.dublincore.org/documents/library-application-profile/
Introduction – 38
DSpace 7.x Documentation – DSpace 7.x Documentation
Authority An authority is a source of fixed values for a given domain, each unique
value identified by a key.
Authority Record The information associated with one of the values in an authority; may
include alternate spellings and equivalent forms of the value, etc.
1.2.3 Licensing
DSpace offers support for licenses on different levels
Introduction – 39
DSpace 7.x Documentation – DSpace 7.x Documentation
1.2.4.1 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 in the long term. To help
solve this problem, a core DSpace feature is the creation of a persistent identifier for every item, collection and
community stored in DSpace. To persist identifiers, DSpace requires a storage- and location- independent
mechanism for creating and maintaining identifiers. DSpace uses the CNRI Handle System101 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 unique 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
100 http://creativecommons.org/
101 http://www.handle.net/
Introduction – 40
DSpace 7.x Documentation – DSpace 7.x Documentation
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-in102, 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.
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/789103.
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.
102 http://www.handle.net/resolver/index.html
103 http://hdl:123.456
Introduction – 41
DSpace 7.x Documentation – DSpace 7.x Documentation
Introduction – 42
DSpace 7.x Documentation – DSpace 7.x Documentation
Workflow Steps
By default, a collection's workflow may 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. Keep in mind, however, that this is only the default behavior, and the workflow process can be
configured/customized easily, see Configurable Workflow(see page 250).
In other words, the default 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 submission is put into the 'task pool' of the step's 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:
2 Can edit metadata provided by the user with the submission, but cannot
change the submitted files. Can accept submission for inclusion, or reject
submission.
3 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.
Introduction – 43
DSpace 7.x Documentation – DSpace 7.x Documentation
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.
104 http://swordapp.org/
105 http://www.openarchives.org/
106 http://www.openarchives.org/OAI/openarchivesprotocol.html
107 http://www.oclc.org/research/software/oai/cat.shtm
Introduction – 44
DSpace 7.x Documentation – DSpace 7.x Documentation
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. See OAI(see page 179) for more
information.
108 http://www.imsglobal.org/content/packaging/
Introduction – 45
DSpace 7.x Documentation – DSpace 7.x Documentation
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.
1.2.7.2 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.
Introduction – 46
DSpace 7.x Documentation – DSpace 7.x Documentation
1.2.7.3 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 corresponding privileges.
Administrators can also use groups as "roles" to manage the granting of privileges more efficiently.
1.2.8.1 Authentication
Authentication is when an application session positively identifies itself as belonging to an E-Person and/or Group.
In DSpace, 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.
For more information see Authentication Plugins(see page 87)
1.2.8.2 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 built-in 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
Introduction – 47
DSpace 7.x Documentation – DSpace 7.x Documentation
COLLECTION_ADMIN collection admins can edit items in a collection, withdraw items, map
other items into this collection.
Item
Bundle
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.
Introduction – 48
DSpace 7.x Documentation – DSpace 7.x Documentation
Introduction – 49
DSpace 7.x Documentation – DSpace 7.x Documentation
Introduction – 50
DSpace 7.x Documentation – DSpace 7.x Documentation
Supported The format is recognized, and the hosting institution is confident it can make
bitstreams of this format usable in the future, using whatever combination of
techniques (such as migration, emulation, etc.) is appropriate given the
context of need.
Known The format is recognized, and the hosting institution will promise to preserve
the bitstream as-is, and allow it to be retrieved. The hosting institution will
attempt to obtain enough information to enable the format to be upgraded to
the 'supported' level.
109 http://www.creativecommons.org/
Introduction – 51
DSpace 7.x Documentation – DSpace 7.x Documentation
Unsupported 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.
Object Example
Bitstream A single HTML file; a single image file; a source code file
Bitstream Format Microsoft Word version 6.0; JPEG encoded image format
Introduction – 52
DSpace 7.x Documentation – DSpace 7.x Documentation
2 Installing DSpace
• Installation Overview(see page 53)
• Installing the Backend (Server API)(see page 53)
• Backend Requirements(see page 53)
• Backend Installation(see page 59)
• Installing the Frontend (User Interface)(see page 66)
• Frontend Requirements(see page 66)
• Frontend Installation(see page 67)
• What Next?(see page 70)
• Common Installation Issues(see page 71)
• Troubleshoot an error or find detailed error messages(see page 71)
• "CORS error" or "Invalid CORS request"(see page 71)
• "403 Forbidden" error with a message that says "Access is denied. Invalid CSRF Token"(see page 71)
• Using a Self-Signed SSL Certificate causes the Frontend to not be able to access the Backend(see page
72)
• My REST API is running under HTTPS, but some of its "link" URLs are switching to HTTP?(see page 73)
• Database errors occur when you run ant fresh_install(see page 73)
As of version 7 (and above), the DSpace application is split into a "frontend" (User Interface) and a
"backend" (Server API). Most institutions will want to install BOTH. However, you can decide whether to run them
on the same machine or separate machines.
• The DSpace Frontend consists of a User Interface built on Angular.io111. It cannot be run alone, as
it requires a valid DSpace Backend to function. The frontend provides all user-facing functionality
• The DSpace Backend consists of a Server API ("server" webapp), built on Spring Boot112. It can be run
standalone, however it has no user interface. The backend provides all machine-based interfaces, including
the REST API, OAI-PMH, SWORD (v1 and v2) and RDF.
We recommend installing the Backend first, as the Frontend requires a valid Backend to run properly.
110 https://wiki.lyrasis.org/display/DSPACE/Try+out+DSpace+7
111 https://angular.io/
112 https://spring.io/projects/spring-boot
Make sure to install the JDK and not just the JRE
At this time, DSpace requires the full JDK (Java Development Kit) be installed, rather than just the JRE
(Java Runtime Environment). So, please be sure that you are installing the full JDK and not just the JRE.
113 https://www.oracle.com/technetwork/java/java-se-support-roadmap.html
114 https://adoptopenjdk.net/support.html#roadmap
<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>
While Apache Ant recommends using v1.10.x for Java 11, we've also had some success with recent versions
of 1.9.x (specifically v1.9.15 seems to work fine with Java 11). That said, earlier versions of v1.9.x are not
compatible with Java 11.
Apache Ant is required for the second stage of the build process (deploying/installing the application). First, Maven
is used to construct the installer ([dspace-source]/dspace/target/dspace-installer), after which Ant is
used to install/deploy DSpace to the installation directory.
Ant can be downloaded from the following location: http://ant.apache.org115 It is also provided via many operating
system package managers.
PostgreSQL v9.4 to v10.x may work, but those versions are less well tested.
Active development/testing on DSpace 7 has occurred on PostgreSQL v11.x, v12.x and v13.x. However, it is
likely that the backend would also function on PostgreSQL v9.4 - v10.x. At this time we have not
performed sufficient testing on these earlier versions to add them to the prerequisites listing.
DSpace 7 will definitely not function on versions below 9.4 as DSpace requires installing and running
the pgcrypto extension116 (see below) v1.1, which was not available until PostgreSQL v9.4.
• PostgreSQL can be downloaded from http://www.postgresql.org/. It is also provided via many operating
system package managers.
• If the version of Postgres provided by your package manager is outdated, you may wish to use one of
the official PostgreSQL provided repositories:
• Linux users can select their OS of choice for detailed instructions on using the official
PostgreSQL apt or yum repository: http://www.postgresql.org/download/linux/
• Windows users will need to use the windows installer: http://www.postgresql.org/download/
windows/
• Mac OSX users can choose their preferred installation method: http://www.postgresql.org/
download/macosx/
• Install the pgcrypto extension.117 It will also need to be enabled on your DSpace Database (see Installation
instructions below for more info). The pgcrypto extension allows DSpace to create UUIDs (universally unique
identifiers) for all objects in DSpace, which means that (internal) object identifiers are now globally unique
and no longer tied to database sequences.
• On most Linux operating systems (Ubuntu, Debian, RedHat), this extension is provided in the
"postgresql-contrib" package in your package manager. So, ensure you've installed "postgresql-
contrib".
• On Windows, this extension should be provided automatically by the installer (check your
"[PostgreSQL]/share/extension" folder for files starting with "pgcrypto")
• Unicode (specifically UTF-8) support must be enabled (but this is enabled by default).
• Once installed, you need to enable TCP/IP connections (DSpace uses JDBC):
• In postgresql.conf: uncomment the line starting: listen_addresses = 'localhost'. This is
the default, in recent PostgreSQL releases, but you should at least check it.
• Then tighten up security a bit by editing pg_hba.conf and adding this line:
115 http://ant.apache.org/
116 http://www.postgresql.org/docs/9.4/static/pgcrypto.html
117 http://www.postgresql.org/docs/9.4/static/pgcrypto.html
This should appear before any lines matching all databases, because the first matching rule
governs.
• Then restart PostgreSQL.
Please be aware that all active development occurs on PostgreSQL at this time. However, we provide
Oracle as a secondary option if you are less comfortable with PostgreSQL.
• 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: If the database server is not on the same machine as DSpace, you must install the Oracle client
to the DSpace server and point tnsnames.ora and listener.ora files to the database the Oracle
server.
Make sure to install Solr with Authentication disabled (which is the default). DSpace does not yet support
authentication to Solr (see https://github.com/DSpace/DSpace/issues/3169). Instead, we recommend
placing Solr behind a firewall and/or ensuring port 8983 (which Solr runs on) is not available for public/
anonymous access on the web. Solr only needs to be accessible to requests from the DSpace backend.
Solr can be obtained at the Apache Software Foundation site for Lucene and Solr118. You may wish to read portions
of the quick-start tutorial119 to make yourself familiar with Solr's layout and operation. Unpack a Solr .tgz or .zip
archive in a place where you keep software that is not handled by your operating system's package management
tools, and arrange to have it running whenever DSpace is running. You should ensure that Solr's index directories
will have plenty of room to grow. You should also ensure that port 8983 is not in use by something else, or configure
Solr to use a different port.
If you are looking for a good place to put Solr, consider /opt or /usr/local. You can simply unpack Solr in one
place and use it. Or you can configure Solr to keep its indexes elsewhere, if you need to – see the Solr
documentation for how to do this.
It is not necessary to dedicate a Solr instance to DSpace, if you already have one and want to use it. Simply copy
DSpace's cores to a place where they will be discovered by Solr. See below.
118 https://lucene.apache.org/solr
119 http://lucene.apache.org/solr/guide/7_7/solr-tutorial.html
120 http://tomcat.apache.org/whichversion.html
• One option is to specifically give the Tomcat user (often named "tomcat") ownership of the
[dspace] directories, for example:
• Another option is to have Tomcat itself run as a new user named "dspace" (see installation
instructions below). Some operating systems make modifying the Tomcat "run as" user easily
modifiable via an environment variable named TOMCAT_USER. This option may be more
desirable if you have multiple Tomcat instances running, and you do not want all of them to
run under the same Tomcat owner.
• You need to ensure that Tomcat a) has 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:
You may change the port from 8080 by editing it in the file above, and by setting the variable
CONNECTOR_PORT in server.xml. You should set the URIEncoding even if you are running Tomcat
behind a proxy (Apache HTTPD, Nginx, etc.) via AJP.
• Jetty or Caucho Resin
• DSpace 7 has not been tested with Jetty or Caucho Resin, after the switch to Java 11
• Older versions of DSpace were able to run on a Tomcat-equivalent servlet Engine, such as Jetty
(https://www.eclipse.org/jetty/) or Caucho Resin (http://www.caucho.com/). If you choose to use a
different servlet container, please ensure that it supports Servlet Spec 3.1 (or above).
• Jetty and Resin are configured for correct handling of UTF-8 by default.
121 https://dev.maxmind.com/geoip/geoip2/geolite2/
• Once the "GeoLite2-City.mmdb" database file is installed on your system, you will need to configure
its location as the value of usage-statistics.dbfile in your local.cfg configuration file.
• See the "Managing the City Database File" section of SOLR Statistics(see page 338) for more information
about using a City Database with DSpace.
• Or, you can alternatively use/install DB-IP's City Lite database122 (in MMDB format)
• This database is also free to use, but does not require an account to download.
• Once the "dbip-city-lite.mmdb" database file is installed on your system, you will need to configure
its location as the value of usage-statistics.dbfile in your local.cfg configuration file.
• See the "Managing the City Database File" section of SOLR Statistics(see page 338) for more information
about using a City Database with DSpace.
useradd -m dspace
The choice that makes the most sense for you will probably depend on how you installed your servlet
container (Tomcat/Jetty/etc). If you installed it from source, you will need to create a user account to run it,
and that account can be named anything, e.g. 'dspace'. If you used your operating system's package
manager to install the container, then a user account should have been created as part of that process and it
will be much easier to use that account than to try to change it.
3. Download the latest DSpace release124 from the DSpace GitHub Repository. You can choose to either
download the zip or tar.gz file provided by GitHub, or you can use "git" to checkout the appropriate tag (e.g.
dspace-7.0) or branch.
4. Unpack the DSpace software. After downloading the software, based on the compression file format,
choose one of the following methods to unpack your software:
a. Zip file. If you downloaded dspace-7.0.zip do the following:
unzip dspace-7.0.zip
122 https://db-ip.com/db/download/ip-to-city-lite
123 https://jira.lyrasis.org/browse/DS-3418?src=confmacro
124 https://github.com/DSpace/DSpace/releases
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. After unpacking the file, the user may wish to
change the ownership of the dspace-7.x folder to the "dspace" user. (And you may need to change
the group).
5. Database Setup
• PostgreSQL:
• Create a dspace database user (this user can have any name, but we'll assume you name it
"dspace"). This is entirely separate from the dspace operating-system user created above:
You will be prompted (twice) for a password for the new dspace user. Then you'll be
prompted for the password of the PostgreSQL superuser (postgres).
• Create a dspace database, owned by the dspace PostgreSQL user. Similar to the previous
step, this can only be done by a "superuser" account in PostgreSQL (e.g. postgres):
You will be prompted for the password of the PostgreSQL superuser (postgres).
• Finally, you MUST enable the pgcrypto extension125 on your new dspace database. Again, this
can only be enabled by a "superuser" account (e.g. postgres)
# Login to the database as a superuser, and enable the pgcrypto extension on this
database
psql --username=postgres dspace -c "CREATE EXTENSION pgcrypto;"
The "CREATE EXTENSION" command should return with no result if it succeeds. If it fails or
throws an error, it is likely you are missing the required pgcrypto extension (see Database
Prerequisites126 above).
• Alternative method: How to enable pgcrypto via a separate database schema. While
the above method of enabling pgcrypto is perfectly fine for the majority of users, there
may be some scenarios where a database administrator would prefer to install
extensions into a database schema that is separate from the DSpace tables.
Developers also may wish to install pgcrypto into a separate schema if they plan to
"clean" (recreate) their development database frequently. Keeping extensions in a
separate schema from the DSpace tables will ensure developers would NOT have to
continually re-enable the extension each time you run a "./dspace database
clean". If you wish to install pgcrypto in a separate schema here's how to do that:
125 http://www.postgresql.org/docs/9.4/static/pgcrypto.html
126 https://wiki.duraspace.org/display/DSDOC6x/Installing+DSpace#InstallingDSpace-RelationalDatabase:(PostgreSQLorOracle)
• Oracle:
• Setting up DSpace to use 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/technetwork/database/enterprise-edition/jdbc-112010-090769.html.) Run
the following command (all on one line):
mvn install:install-file
-Dfile=ojdbc6.jar
-DgroupId=com.oracle
-DartifactId=ojdbc6
-Dversion=11.2.0.4.0
-Dpackaging=jar
-DgeneratePom=true
• You need to compile DSpace with an Oracle driver (ojdbc6.jar) corresponding to your Oracle
version - update the version in [dspace-source]/pom.xml E.g.:
<dependency>
<groupId>com.oracle</groupId>
<artifactId>ojdbc6</artifactId>
<version>11.2.0.4.0</version>
</dependency>
• 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 required 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.
• NOTE: You will need to ensure the proper db.* settings are specified in your local.cfg file
(see next step), as the defaults for all of these settings assuming a PostgreSQL database
backend.
db.url = jdbc:oracle:thin:@host:port/SID
# e.g. db.url = jdbc:oracle:thin:@//localhost:1521/xe
# NOTE: in db.url, SID is the SID of your database defined in tnsnames.ora
# the default Oracle port is 1521
# You may also use a full SID definition, e.g.
# db.url = jdbc:oracle:thin:@(description=(address_list=(address=(protocol=TCP)
(host=localhost)(port=1521)))(connect_data=(service_name=DSPACE)))
# Oracle driver and dialect
db.driver = oracle.jdbc.OracleDriver
db.dialect = org.hibernate.dialect.Oracle10gDialect
# Specify DB username, password and schema to use
db.username =
db.password =
db.schema = ${db.username}
# For Oracle, schema is equivalent to the username of your database account,
# so this may be set to ${db.username} in most scenarios
• Later, during the Maven build step, don't forget to specify mvn -Ddb.name127=oracle
package
6. Initial Configuration (local.cfg): Create your own [dspace-source]/dspace/config/local.cfg
configuration file. You may wish to simply copy the provided [dspace-source]/dspace/config/
local.cfg.EXAMPLE. This local.cfg file can be used to store any configuration changes that you wish to
make which are local to your installation (see local.cfg configuration file(see page 560) documentation). ANY
setting may be copied into this local.cfg file from the dspace.cfg or any other *.cfg file in order to override
the default setting (see note below). For the initial installation of DSpace, there are some key settings you'll
likely want to override. Those are provided in the [dspace-source]/dspace/config/
local.cfg.EXAMPLE. (NOTE: Settings followed with an asterisk (*) are highly recommended, while all
others are optional during initial installation and may be customized at a later time.)
• dspace.dir* - must be set to the [dspace] (installation) directory (NOTE: On Windows be sure to use
forward slashes for the directory path! For example: "C:/dspace" is a valid path for Windows.)
• dspace.server.url* - complete URL of this DSpace backend (including port and any subpath). Do
not end with '/'. For example: http://localhost:8080/server
• dspace.ui.url* - complete URL of the DSpace frontend (including port and any subpath).
REQUIRED for the REST API to fully trust requests from the DSpace frontend. Do not end with '/'. For
example: http://localhost:4000
• dspace.name - Human-readable, "proper" name of your server, e.g. "My Digital Library".
• solr.server* - complete URL of the Solr server. DSpace makes use of Solr128 for indexing
purposes. http://localhost:8983/solr unless you changed the port or installed Solr on some other
host.
• default.language - Default language for all metadata values (defaults to "en_US")
• db.url* - The full JDBC URL to your database (examples are provided in the local.cfg.EXAMPLE)
127 http://Ddb.name
128 http://lucene.apache.org/solr/
• db.driver* - Which database driver to use, based on whether you are using PostgreSQL or Oracle
• db.dialect* - Which database dialect to use, based on whether you are using PostgreSQL or
Oracle
• db.username* - the database username used in the previous step.
• db.password* - the database password used in the previous step.
• db.schema* - the database schema to use (examples are provided in the local.cfg.EXAMPLE)
• mail.server - fully-qualified domain name of your outgoing mail server.
• mail.from.address - the "From:" address to put on email sent by DSpace.
• mail.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)
Your local.cfg file can override ANY settings from other *.cfg files in DSpace
The provided local.cfg.EXAMPLE only includes a small subset of the configuration
settings available with DSpace. It provides a good starting point for your own local.cfg
file.
However, you should be aware that ANY configuration can now be copied into your
local.cfg to override the default settings. This includes ANY of the settings/
configurations in:
• The primary dspace.cfg file ([dspace]/config/dspace.cfg)
• Any of the module configuration files ([dspace]/config/modules/*.cfg files)
• Any of the Spring Boot settings ([dspace-src]/dspace-server-webapp/src/
main/resources/application.properties)
Individual settings may also be commented out or removed in your local.cfg, in order to
re-enable default settings.
See the Configuration Reference(see page 552) section for more details.
7. DSpace Directory: Create the directory for the DSpace backend installation (i.e. [dspace]). As root (or a
user with appropriate permissions), run:
mkdir [dspace]
chown dspace [dspace]
cd [dspace-source]
mvn package
9. Install DSpace Backend: As the dspace UNIX user, install DSpace to [dspace]:
cd [dspace-source]/dspace/target/dspace-installer
ant fresh_install
To see a complete list of build targets, run: ant help The most likely thing to go wrong here is the
test of your database connection. See the Common Installation Issues(see page 71) Section below for
more details.
10. Initialize your Database: While this step is optional (as the DSpace database should auto-initialize itself on
first startup), it's always good to verify one last time that your database connection is working properly. To
initialize the database run:
11. Deploy Server web application: The DSpace backend consists of a single "server" webapp (in [dspace]/
webapps/server). You need to deploy this webapp into your Servlet Container (e.g. Tomcat). Generally,
there are two options (or techniques) which you could use...either configure Tomcat to find the DSpace
"server" webapp, or copy the "server" webapp into Tomcat's own webapps folder.
• Technique A. Tell your Tomcat/Jetty/Resin installation where to find your DSpace web application(s).
As an example, in the directory [tomcat]/conf/Catalina/localhost you could add files similar
to the following (but replace [dspace]with your installation location):
<?xml version='1.0'?>
<Context
docBase="[dspace]/webapps/server"/>
The name of the file (not including the suffix ".xml") will be the name of the context, so for
example server.xml defines the context at http://host:8080/server. To define the root
context (http://host:8080/), name that context's file ROOT.xml. Optionally, you can also choose
to install the old, deprecated "rest" webapp if you
• Technique B. Simple and complete. You copy only (or all) of the DSpace Web application(s) you wish
to use from the [dspace]/webapps directory to the appropriate directory in your Tomcat/Jetty/Resin
installation. For example:
cp -R [dspace]/webapps/* [tomcat]/webapps* (This will copy all the web applications to
Tomcat).
cp -R [dspace]/webapps/server [tomcat]/webapps* (This will copy only the Server web
application to Tomcat.)
129 http://Ddb.name
To define the root context (http://host:8080/), name that context's directory ROOT.
12. Optionally, also install the deprecated DSpace 6.x REST API web application. If you previously used the
DSpace 6.x REST API, for backwards compatibility the old, deprecated "rest" webapp is still available to
install (in [dspace]/webapps/rest). It is NOT used by the DSpace frontend. So, most users should skip
this step.
13. Copy Solr cores: DSpace installation creates a set of four empty Solr cores already configured.
a. Copy them from [dspace]/solr to the place where your Solr instance will discover them. For
example:
cp -R [dspace]/solr/* [solr]/server/solr/configsets
chown -R solr:solr [solr]/server/solr/configsets
[solr]/bin/solr restart
c. You can check the status of Solr and your new DSpace cores by using its administrative web
interface. Browse to http://localhost:8983/ to see if Solr is running well, then look at the cores
by selecting (on the left) Core Admin or using the Core Selector drop list.
14. Create an Administrator Account: Create an initial administrator account from the command line:
[dspace]/bin/dspace create-administrator
15. Initial Startup! Now the moment of truth! Start up (or restart) Tomcat/Jetty/Resin.
a. REST API Interface - (e.g.) http://dspace.myu.edu:8080/server/
b. OAI-PMH Interface - (e.g.) http://dspace.myu.edu:8080/server/oai/request?verb=Identify
c. For an example of what the default backend looks like, visit the Demo Backend: https://
api7.dspace.org/server/
16. Production Installation (adding HTTPS support): Running the DSpace Backend on HTTP & port 8080 is
only usable for testing/demo environments. If you want to run DSpace in Production, you MUST run the
backend with HTTPS support (otherwise logins will not work outside of your local domain).
a. For HTTPS support, we recommend installing either Apache HTTPD130 or Nginx131, configuring SSL at
that level, and proxying all requests to your Tomcat installation. Keep in mind, if you want to host
both the DSpace Backend and Frontend on the same server, you can use one installation of Apache
HTTPD or Nginx to manage HTTPS/SSL and proxy to both.
b. These instructions are specific to Apache HTTPD, but a similar setup can be achieved with Nginx
i. Install Apache HTTPD132, e.g. sudo apt install apache2
ii. Install the mod_proxy133 and mod_proxy_ajp134 modules, e.g. sudo en2mod proxy; sudo
a2enmod proxy_ajp
1. Alternatively, you can choose to use mod_proxy_http135 to create an http proxy. A
separate example is commented out below
iii. Restart Apache to enable
130 https://httpd.apache.org/
131 https://www.nginx.com/
132 https://httpd.apache.org/
133 https://httpd.apache.org/docs/current/mod/mod_proxy.html
134 https://httpd.apache.org/docs/current/mod/mod_proxy_ajp.html
135 https://httpd.apache.org/docs/current/mod/mod_proxy_http.html
iv. For mod_proxy_ajp to communicate with Tomcat, you'll need to enable Tomcat's AJP
connector in your Tomcat's server.xml:
v. Now, setup a new VirtualHost for your site (using HTTPS / port 443) which proxies all requests
to Tomcat's AJP connector (running on port 8009)
<VirtualHost _default_:443>
.. setup your host how you want, including log settings...
SSLEngine on
SSLCertificateFile [full-path-to-PEM-cert]
SSLCertificateKeyFile [full-path-to-cert-KEY]
# Proxy all HTTPS requests to "/server" from Apache to Tomcat via AJP connector
ProxyPass /server ajp://localhost:8009/server
ProxyPassReverse /server ajp://localhost:80009/server
# If you would rather use mod_proxy_http as an http proxy to port 8080
# then use these settings instead
#ProxyPass /server http://localhost:8080/server
#ProxyPassReverse /server http://localhost:8080/server
# When using mod_proxy_http, you need to also ensure the X-Forwarded-Proto header
is sent
# to tell DSpace it is behind HTTPS, otherwise some URLs may continue to use HTTP
# (requires installing/enabling mod_headers)
#RequestHeader set X-Forwarded-Proto https
</VirtualHost>
c. After switching to HTTPS, make sure to go back and update the URLs (e.g. dspace.server.url) in
your local.cfg to match the new URL of your backend. This will require briefly rebooting Tomcat.
• Microsoft Windows: While DSpace can be run on Windows servers, most institutions tend to run it on a UNIX-
like operating system.
# You may need to run this command using "sudo" if you don't have proper privileges
npm install --global yarn
2.3.1.4 PM2 (or another Process Manager for Node.js apps) (optional, but recommended for
Production)
• In Production scenarios, we highly recommend starting/stopping the User Interface using a Node.js process
manager. There are several available, but our current favorite is PM2138. The rest of this installation guide
assumes you are using PM2.
• PM2139 is very easily installed via NPM
# You may need to run this command using "sudo" if you don't have proper privileges
npm install --global pm2
136 https://nodejs.org/en/about/releases/
137 https://www.npmjs.com/
138 https://pm2.keymetrics.io/
139 https://pm2.keymetrics.io/
2. Download the latest dspace-angular release140 from the DSpace GitHub repository. You can choose to either
download the zip or tar.gz file provided by GitHub, or you can use "git" to checkout the appropriate tag (e.g.
dspace-7.0) or branch.
3. Install all necessary local dependencies by running the following from within the unzipped "dspace-angular"
directory
a. HINT #1: In the "ui" section above, you may wish to start with "ssl: false" and "port: 4000" just to be
certain that everything else is working properly. With those settings, you can quickly test your UI by
running "yarn start" and trying to access it via http://[mydspace.edu]:4000/ from your web
browser. KEEP IN MIND, we highly recommend always using HTTPS for Production.
b. HINT #2: If Node throws an error saying "listen EADDRNOTAVAIL: address not available", try setting
the "host" to "0.0.0.0" or "localhost". Usually that error is a sign that the "host" is not recognized.
140 https://github.com/DSpace/dspace-angular/releases
c. If there are other settings you know you need to modify in the default environment.common.ts
configuration file you can also copy them into this same file.
5. Build the User Interface for Production. This uses your environment.prod.ts and the source code to
create a compiled version of the UI in the [dspace-angular]/dist folder
a. HINT: if you change/update your environment.prod.ts, then you will need to rebuild the UI
application (i.e. rerun this command).
6. Assuming you are using PM2141, create a JSON configuration file describing how to run our UI application.
This need NOT be in the same directory as the dspace-angular codebase itself (in fact you may want to put
the parent directory or another location). Keep in mind the "cwd" setting (on line 5) must be the full path to
your [dspace-angular] folder.
dspace-angular.json
{
"apps": [
{
"name": "dspace-angular",
"cwd": "/home/dspace/dspace-angular",
"script": "yarn",
"args": "run serve:ssr",
"interpreter": "none"
}
]
}
7. Now, start the application using PM2 using the configuration file you created in the previous step
141 https://pm2.keymetrics.io/
142 https://github.com/keymetrics/pm2-logrotate
a. (Recommended) You can install either Apache HTTPD143 or Nginx144 , configuring SSL at that level,
and proxy requests to PM2 (on port 4000). This is our current recommended approach. Plus, as a
bonus, if you want to host the UI and Backend on the same server, you can use just one Apache
HTTPD (or Nginx) to proxy to both. These instructions are specific to Apache.
i. Install Apache HTTPD145, e.g. sudo apt install apache2
ii. Install the mod_proxy146 and mod_proxy_http147 modules, e.g. sudo en2mod proxy; sudo
a2enmod proxy_http
iii. Restart Apache to enable
iv. Now, setup a new VirtualHost for your site (preferably using HTTPS / port 443) which proxies
all requests to PM2 running on port 4000.
<VirtualHost _default_:443>
.. setup your host how you want, including log settings...
SSLEngine on
SSLCertificateFile [full-path-to-PEM-cert]
SSLCertificateKeyFile [full-path-to-cert-KEY]
# Proxy all HTTPS requests from Apache to PM2 on port 4000
# NOTE that this proxy URL must match the "ui" settings in your environment.*.ts
ProxyPass / http://localhost:4000/
ProxyPassReverse / http://localhost:4000/
</VirtualHost>
b. (Alternatively) You can use the basic HTTPS support built into dspace-angular node server. (This may
currently be better for non-Production environments as it has not been well tested)
i. Create a [dspace-angular]/config/ssl/ folder and add a key.pem and cert.pem to that
folder (they must have those exact names)
ii. Enable "ui.ssl" (set to true)
iii. Update your "ui.port" to be 443
1. In order to run Node/PM2 on port 443, you also will likely need to provide node with
special permissions, like in this example148.
iv. Rebuild and then restart the app in PM2
v. Keep in mind, while this setup is simple, you may not have the same level of detailed,
Production logs as you would with Apache HTTPD or Nginx
10. Additional UI configurations are described in the environment.common.ts149 and at https://github.com/
DSpace/dspace-angular/blob/main/docs/Configuration.md (More documentation will be coming soon)
143 https://httpd.apache.org/
144 https://www.nginx.com/
145 https://httpd.apache.org/
146 https://httpd.apache.org/docs/current/mod/mod_proxy.html
147 https://httpd.apache.org/docs/current/mod/mod_proxy_http.html
148 https://levelup.gitconnected.com/tws-004-how-to-configure-nodejs-to-use-port-443-86f1ca801c5f
149 https://github.com/DSpace/dspace-angular/blob/main/src/environments/environment.common.ts
• Handle Server installation(see page 464): Optionally, you may wish to enable persistent URLs for your DSpace
site using CRNI's Handle.Net Registry
• Statistics and Metrics(see page 338): Optionally, you may wish to configuration one (or more) Statistics options
within DSpace, including Google Analytics(see page 363) and (internal) Solr Statistics(see page 338)
• Multilingual Support(see page 407): Optionally, you may wish to enable multilingual support in your DSpace
site.
• Using DSpace(see page 87) : Various other pages which describe usage and additional configurations related to
other DSpace features.
• System Administration(see page 410): Various other pages which describe additional backend installation
options/configurations.
If you've run into installation problems, you may want to...
• Review Commons Installation Issues(see page 71) (see below)
• Ask for Support150 via one of the support options documented on that page
2.5.3 "403 Forbidden" error with a message that says "Access is denied. Invalid
CSRF Token"
First, double check that you are seeing that exact error message. A 403 Forbidden error may be thrown in a
variety of scenarios. For example, a 403 may be thrown if a page requires a login, if you have entered an invalid
username or password, or even sometimes when there is a CORS error (see previous installation issue for how to
solve that).
150 https://wiki.lyrasis.org/display/DSPACE/Support
151 https://wiki.lyrasis.org/display/DSPACE/Troubleshoot+an+error
If you are seeing the message "Invalid CSRF Token" message (especially on every login), this is usually the result of a
configuration / setup issue.
Here's some things you should double check:
1. If you need to be able to login to the REST API from other domains, then your Backend must be running
HTTPS.
a. If the REST API Backend is running HTTP, then it will always send the required DSPACE-XSRF-COOKIE
cookie with a value of SameSite=Lax. This setting means that the cookie will not be sent (by your
browser) to any other domains. Effectively, this will block all logins from any domain that is not the
same as the REST API (as this cookie will not be sent back to the REST API as required for CSRF
validation). In other words, running the REST API on HTTP is only possible if the User Interface is
running on the exact same domain. For example, running both on 'localhost' with HTTP is a common
development setup, and this will work fine.
b. In order to allow for cross-domain logins, you MUST enable HTTPS on the REST API. This will result in
the DSPACE-XSRF-COOKIE cookie being set to SameSite=None; Secure. This setting means the
cookie will be sent cross domain, but only for HTTPS requests. It also allows the user interface (or
other client applications) to be on any domain, provided that the domain is trusted by CORS (see
rest.cors.allowed-origins setting in REST API(see page 502))
2. Verify that your User Interface's "rest" section matches the value of "dspace.server.url" configuration
on the Backend. This simply ensures your UI is sending requests to the correct REST API. Also pay close
attention that both specify HTTPS when necessary (see previous bullet).
3. Verify that your "dspace.server.url" configuration on the Backend matches the primary URL of the REST
API (i.e. the URL you see in the browser). This must be an exact match: mode (http vs https), domain, port,
and subpath(s) all must match, and it must not end in a trailing slash (e.g. "https://api7.dspace.org/server" is
valid, but "https://api7.dspace.org/server/" may cause problems).
4. Verify that your "dspace.ui.url" configuration on the Backend matches the primary URL of your User
Interface (i.e. the URL you see in the browser). This must be an exact match: mode (http vs https), domain,
port, and subpath(s) all must match, and it must not end in a trailing slash (e.g. "https://demo7.dspace.org"
is valid, but "https://demo7.dspace.org/" may cause problems).
5. Verify that nothing (e.g. a proxy) is blocking Cookies and HTTP Headers from being passed between the UI
and REST API. DSpace's CSRF protection relies on the client (User Interface) being able to return both a valid
DSPACE-XSRF-COOKIE cookie and a matching X-XSRF-TOKEN header back to the REST API for
validation. See our REST Contract for more details https://github.com/DSpace/RestContract/blob/main/
csrf-tokens.md
6. If you are running a custom application, or accessing the REST API from the command-line (or other third
party tool like Postman152), you MUST ensure you are sending the CSRF token on every modifying request.
See our REST Contract for more details https://github.com/DSpace/RestContract/blob/main/csrf-tokens.md
For additional information on how DSpace's CSRF Protection works, see our REST Contract at https://github.com/
DSpace/RestContract/blob/main/csrf-tokens.md
2.5.4 Using a Self-Signed SSL Certificate causes the Frontend to not be able to
access the Backend
If you setup the backend to use HTTPS with a self-signed SSL certificate, then Node.js (which the frontend runs on)
may not "trust" that certificate by default. This will result in the Frontend not being able to make requests to the
Backend.
One possible workaround (untested as of yet) is to try setting the NODE_EXTRA_CA_CERTS environment variable153
(which tells Node.js to trust additional CA certificates).
152 https://www.postman.com/
153 https://nodejs.org/api/cli.html#cli_node_extra_ca_certs_file
Another option is to avoid using a self-signed SSL certificate. Instead, create a real, issued SSL certificate using
something like Let's Encrypt154 (or similar free services)
2.5.5 My REST API is running under HTTPS, but some of its "link" URLs are
switching to HTTP?
This scenario may occur when you are running the REST API behind an HTTP proxy (e.g. Apache HTTPD's
mod_proxy_http, Ngnix's proxy_pass or any other proxy that is forwarding from HTTPS to HTTP).
The fix is to ensure the DSpace REST API is sent the X-Forwarded-Proto header (by your proxying service), telling
it that the forwarded protocol is HTTPS
X-Forwarded-Proto: https
In general, when running behind a proxy, the DSpace REST API depends on accurate X-Forwarded-* headers to be
sent by that proxy.
it usually means you haven't yet added the relevant configuration parameter to your PostgreSQL
configuration (see above), or perhaps you haven't restarted PostgreSQL after making the change. Also, make
sure that the db.username and db.password properties are correctly set in [dspace]/config/dspace.cfg. An
easy way to check that your DB is working OK over TCP/IP is to try this on the command line:
Enter the dspace database password, and you should be dropped into the psql tool with a dspace=> prompt.
• Another common error looks like this:
154 https://letsencrypt.org/
This means that the PostgreSQL JDBC driver is not present in [dspace]/lib. See above.
3 Upgrading DSpace
These instructions are valid for any of the following upgrade paths:
• Upgrading ANY prior version (1.x.x, 3.x, 4.x, 5.x, 6.x or 7.x) of DSpace to DSpace 7.x (latest version)
For more information about new features or major changes in previous releases of DSpace, please refer to
following:
• Releases155 - Provides links to release notes for all prior releases of DSpace
• Version History(see page 696) - Provides detailed listing of all changes in all prior releases of DSpace
Please refrain from customizing the DSpace database tables. It will complicate your next upgrade!
With the addition of our automated database upgrades, we highly recommend AGAINST customizing the
DSpace database tables/structure or backporting any features that change the DSpace tables/structure.
Doing so will often cause the automated database upgrade process to fail (and therefore will complicate
your next upgrade).
If you must add features requiring new database tables/structure, we recommend creating new tables
(instead of modifying existing ones), as that is usually much less disruptive to our automated database
upgrade.
155 https://wiki.lyrasis.org/display/DSPACE/Releases
156 https://flywaydb.org/
In the notes below [dspace] refers to the install directory for your existing DSpace installation, and
[dspace-source] to the source directory for DSpace. Whenever you see these path references, be sure to
replace them with the actual path names on your local system.
157 https://blog.maxmind.com/2019/12/18/significant-changes-to-accessing-and-using-geolite2-databases/
• The traditional, 3-step Workflow system has been removed in favor of the Configurable Workflow
System(see page 250). For most users, you should see no effect or difference. The default setup for this
Configurable Workflow System is identical to the traditional, 3-step workflow ("Approve/Reject", "Approve/
Reject/Edit Metadata", "Edit Metadata")
• The old BTE import framework in favor of Live Import Framework(see page 274) (features of BTE have been
ported to Live Import)
• ElasticSearch Usage Statistics have been removed. Please use SOLR Statistics(see page 338) or DSpace
Google Analytics Statistics(see page 363).
• Configuration(see page 552) has been upgraded to Apache Commons Configuration version 2. For most
users, you should see no effect or difference. No DSpace configuration files were modified during this upgrade
and no configurations or settings were renamed or changed. However, if you locally modified or customized
the [dspace]/config/config-definition.xml (DSpace's Apache Commons Configuration settings),
you will need to ensure those modifications are compatible with Apache Commons Configuration version 2.
See the Apache Commons Configuration's configuration definition file reference158 for more details.
• Handle server has been updated to v9.3. Most users will see no effect or difference, however a minor
change to the Handle Server configuration is necessary, see below.
• Many backend prerequisites have been upgraded to avoid "end of life" versions. Therefore, pay very
close attention to the required prerequisites listed below.
• A large number of old/obsolete configurations were removed. "7.0 Configurations Removed" section in
the Release Notes(see page 21).
• Assetstore: Backup the directory ([dspace]/assetstore by default, and any other assetstores configured
in [dspace]/config/spring/api/bitstore.xml)
• Configuration: Backup the entire directory content of [dspace]/config.
• Customizations: If you have custom code, such as themes, modifications, or custom scripts, you will want to
back them up to a safe location.
• Statistics data: what to back up depends on what you were using before: the options are the default SOLR
Statistics(see page 338), or the legacy statistics. Legacy stats utilizes the dspace.log files, while SOLR Statistics
stores data in [dspace]/solr/statistics. A simple copy of the logs or the Solr core directory tree
158 https://commons.apache.org/proper/commons-configuration/userguide/
howto_combinedbuilder.html#Configuration_definition_file_reference
159 http://www.postgresql.org/docs/8.4/static/app-pgdump.html
should give you a point of recovery, should something go wrong in the update process. We can't stress this
enough: your users depend on these statistics more than you realize. You need a backup.
• Authority data: stored in [dspace]/solr/authority. As with the statistics data, making a copy of the
directory tree should enable recovery from errors.
160 https://dev.maxmind.com/geoip/geoip2/geolite2/
161 https://db-ip.com/db/download/ip-to-city-lite
The dumps will be written to the directory [dspace]/solr-export. This may take a long time and require
quite a lot of storage. In particular, the statistics core is likely to be huge, perhaps double the size of the
content of solr/statistics/data. You should ensure that you have sufficient free storage.
This is not the same as the disaster-recovery backup that was done above. These dumps will be reloaded
into new, reconfigured cores later(see page 84).
If you are sharding your statistics data, you will need to dump each shard separately. The index names for
prior years will be statistics-YYYY (for example: statistics-2017 statistics-2018 etc.) The
current year's statistics shard is named statistics and you should dump that one too.
3. Download the latest DSpace release162 from the DSpace GitHub Repository. You can choose to either
download the zip or tar.gz file provided by GitHub, or you can use "git" to checkout the appropriate tag (e.g.
dspace-7.0) or branch.
a. Unpack it using "unzip" or "gunzip". If you have an older version of DSpace installed on this same
server, you may wish to unpack it to a different location than that release. This will ensure no files
are accidentally overwritten during the unpacking process, and allow you to compare configs side by
side.
b. 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.
4. Replace your old build.properties file with a local.cfg (ONLY REQUIRED if upgrading from DSpace 5 or
previous): As of DSpace 6.0, the build.properties configuration file has been replaced by an enhanced
local.cfg configuration file. Therefore, any old build.properties file (or similar [dspace-source]/
*.properties files) WILL BE IGNORED. Instead, you should create a new local.cfg file, based on the
provided [dspace-source]/dspace/config/local.cfg.EXAMPLE and use it to specify all of your locally
customized DSpace configurations. This new local.cfg can be used to override ANY setting in any other
configuration file (dspace.cfg or modules/*.cfg). To override a default setting, simply copy the
configuration into your local.cfg and change its value(s). For much more information on the features of
local.cfg, see the Configuration Reference(see page 552) documentation and the local.cfg Configuration File(see
page 560) section on that page.
cd [dspace-source]
cp dspace/config/local.cfg.EXAMPLE local.cfg
# Then edit the local.cfg, specifying (at a minimum) your basic DSpace configuration settings.
# Optionally, you may copy any settings from other *.cfg configuration files into your local.cfg to
override them.
# After building DSpace, this local.cfg will be copied to [dspace]/config/local.cfg, where it will
also be used at runtime.
cd [dspace-source]
mvn -U clean package
The above command will re-compile the DSpace source code and build its "installer". You will find the result
in [dspace-source]/dspace/target/dspace-installer
162 https://github.com/DSpace/DSpace/releases
cd [dspace-source]/dspace/target/dspace-installer
ant update
8. Update your DSpace Configurations. Depending on the version of DSpace you are upgrading from, not all
steps are required.
a. If you are upgrading from DSpace 5.x or below. If you are upgrading from DSpace 6.x you can skip
these steps and move to the next bullet.
i. Search/Browse requires Discovery: As of DSpace 6, only Discovery(see page 386) (Apache Solr)
is supported for search/browse. Support for Legacy Search (using Apache Lucene) and Legacy
Browse (using database tables) has been removed, along with all their configurations.
ii. XPDF media filtering no longer exists: XPDF media filtering, deprecated in DSpace 5, has
been removed. If you used this, you will need to reconfigure using the remaining
alternatives(see page 469) (e.g. PDF Text Extractor and/or ImageMagick PDF Thumbnail
Generator)
b. If you are upgrading from DSpace 6.x or below. All administrators will need to perform these steps.
i. Review your customized configurations (recommended to be in local.cfg): As mentioned
above, we recommend any local configuration changes be placed in a local.cfg Configuration
File(see page 560). With any major upgrade some configurations may have changed. Therefore,
it is recommended to review all configuration changes that exist in the config directory, and
its subdirectories, concentrating on configurations your previously customized in your
local.cfg. See also the Configuration Reference(see page 552).
ii. Remove obsolete configurations. With the removal of the JSPUI and XMLUI, a large number
of server-side (backend) configurations were made obsolete and were therefore removed
between the 6.x and 7.0 release. A full list can be found in the Release Notes(see page 24).
iii. Migrate or recreate your Submission configuration. As of DSpace 7, the submission
configuration has changed. The format of the "item-submission.xml" file has been updated,
and the older "input-forms.xml" has been replaced by a new "submission-forms.xml". You
can choose to either start fresh with the new v7 configuration files, or you can use the steps
below to migrate your old configurations into the new format. See the Submission User
Interface(see page 260) for more information
1. First, create a temporary folder to copy your old v6 configurations into
163 http://ddb.name/
2. Copy your old (v5 or v6) "item-submission.xml" and "input-forms.xml" into that
temporary folder
3. Run the command-line migration script to migrate them to v7 configuration files
4. The result will be two files. These are valid v7 configurations based on your original
submission configuration files.
a. [dspace]/config/item-submission.xml.migrated
b. [dspace]/config/submission-forms.xml.migrated
5. These "*.migrated" files have no inline comments, so you may want to edit them
further before installing them (by removing the ".migrated" suffix). Alternatively, you
may choose to copy sections of the *.migrated files into the default configurations in
the [dspace]/config/ folder, therefore retaining the inline comments in those
default files.
iv. City IP Database file for Solr Statistics has been renamed. The old [dspace]/config/
GeoLiteCity.dat file is no longer maintained by its provider. You can delete it. The new file
is named GeoLite2-City.mmdb by default. If you have configured a different name and/or
location for this file, you should check the setting of usage-statistics.dbfile in
[dspace]/config/modules/usage-statistics.cfg (and perhaps move your custom
setting to local.cfg).
v. tm-extractors media filtering (WordFilter) no longer exists: the PoiWordFilter plugin now
fulfills this function. If you still have WordFilter configured, remove from dspace.cfg and/or
local.cfg all lines referencing org.dspace.app.mediafilter.WordFilter and
uncomment all lines referencing org.dspace.app.mediafilter.PoiWordFilter.
vi. Re-configure Solr URLs: change the value of solr.server to point at your new Solr
external service. It will probably become something like solr.server = https://$
{dspace.hostname}:8983/solr. Also review the values of
1. discovery.search.server
2. oai.solr.url
3. solr.authority.server
4. solr.statistics.server
vii. Sitemaps are now automatically generated/updated: A new sitemap.cron setting exists
in the dspace.cfg which controls when Sitemaps are generated. By default they are enabled to
update once per day, for optimal SEO. See Search Engine Optimization(see page 485) docs for
more detail
1. Because of this change, if you had a system cron job which ran "./dspace
generate-sitemaps", this system cron job can be removed in favor of the new
sitemap.cron setting.
9. Upgrade your database (optional, but recommended for major upgrades). As of DSpace 5 (and above), the
DSpace code will automatically upgrade your database (from any prior version of DSpace). By default, this
database upgrade occurs automatically when you restart Tomcat (or your servlet container). However, if
you have a large repository or are upgrading across multiple versions of DSpace at once, you may wish to
manually perform the upgrade (as it could take some time, anywhere from 5-15 minutes for large sites).
a. First, you can optionally verify whether DSpace correctly detects the version of your DSpace
database. It is very important that the DSpace version is detected correctly before you attempt the
migration:
b. In some rare scenarios, if your database's "sequences" are outdated, inconsistent or incorrect, a
database migration error may occur (in your DSpace logs). While this is seemingly a rare occurrence,
you may choose to run the "update-sequences" command PRIOR to upgrading your database. If your
database sequences are inconsistent or incorrect, this "update-sequences" command will auto-
correct them (otherwise, it will do nothing).
c. Then, you can upgrade your DSpace database to the latest version of DSpace. (NOTE: check the
DSpace log, [dspace]/log/dspace.log.[date], for any output from this command)
If you are upgrading from DSpace 6 or earlier, there are database changes which were previously
optional but now are mandatory (specifically Configurable Workflow(see page 250) database changes).
Instead of (or after) the above command:
164 https://wiki.lyrasis.org/display/DSDOC5x/Database+Utilities
discovery.autoReindex
= false in config/local.cfg or config/modules/discovery.cfg.
As you have disabled automatic reindexing, make sure to manually reindex your site by running
[dspace]/bin/dspace discovery -b (This must be run after restarting Tomcat)
WARNING: It is not recommended to skip automatic reindexing, unless you will manually reindex at a
later time, or have verified that a reindex is not necessary. Forgetting to reindex your site after an
upgrade may result in unexpected errors or instabilties.
Sites with Oracle database backends (and Configurable Workflow enabled) may need to run a
"repair" on your database.
In version 6.3, we fixed an Oracle migration issue related to Configurable (XML) Workflow(see page
250). See DS-3788165.
If you are upgrading an Oracle-based site to 6.3 from 6.0, 6.1 or 6.2 AND had Configurable Workflow
already enabled, then you will need to manually "repair" your database to align it with the latest
schema. This does not affect PostgreSQL-based backends or any sites that are upgrading from 5.x or
below.
Simply run the following to repair your Oracle database:
[dspace]/bin/dspace database repair
10. Deploy Server web application: The DSpace backend consists of a single "server" webapp (in [dspace]/
webapps/server ). You need to deploy this webapp into your Servlet Container (e.g. Tomcat). Generally,
there are two options (or techniques) which you could use...either configure Tomcat to find the DSpace
"server" webapp, or copy the "server" webapp into Tomcat's own webapps folder. For more information &
example commands, see the Installation Guide(see page 53)
a. Optionally, you may also install the deprecated DSpace 6.x REST API web application ("rest"
webapp). If you previously used the DSpace 6.x REST API(see page 506), for backwards compatibility the
old, deprecated "rest" webapp is still available to install (in [dspace]/webapps/rest). It is NOT
used by the DSpace UI/frontend. So, most users should skip this step.
11. Install new Solr cores and rebuild your indexes. (Only necessary if upgrading from 6.x or below)
a. Copy the new, empty Solr cores to your new Solr instance.
cp -R [dspace]/solr/* [solr]/server/solr/configsets
chown -R solr:solr [solr]/server/solr/configsets
165 https://jira.duraspace.org/browse/DS-3788
b. Start Solr, or restart it if it is running, so that these new cores are loaded.
[solr]/bin/solr restart
c. Load authority and statistics from the dumps(see page 78) that you made earlier (not the
disaster-recovery backup).
If you had sharded your statistics, you will need to load the dump of each shard separately. As when
dumping, the index names will be ... statistics-2017 statistics-2018 statistics.
d. For Statistics shards only, upgrade legacy DSpace Object Identifiers (pre-6.4 statistics) to UUID
Identifiers.
Again If you had sharded your statistics, you will need to run this for each shard separately. See also
SOLR Statistics Maintenance(see page 356)
e. Rebuild the oai and search cores.
If you have a great deal of content, this could take a long time.
12. Update Handle Server Configuration. (Only necessary if upgrading from 6.x or below) Because we've
updated to Handle Server v9, if you are using the built-in Handle server (most installations do), you'll need to
add the follow to the end of the server_config section of your [dspace]/handle-server/config.dct file
(the only new line is the "enable_txn_queue" line)
"case_sensitive" = "no"
"storage_type" = "CUSTOM"
"storage_class" = "org.dspace.handle.HandlePlugin"
"enable_txn_queue" = "no"
a. Alternatively, you could re-run the ./dspace make-handle-config script, which is in charge of
updating this config.dct file.
13. (Optional) Set up IP to City database for location-based statistics. If you wish to (continue to) record the
geographic origin of client activity, you will need to install (and regularly update) one of the following:
• Either, a copy of MaxMind's GeoLite City database166 (in MMDB format)
• NOTE: Installing MaxMind GeoLite2 is free. However, you must sign up for a (free) MaxMind
account in order to obtain a license key to use the GeoLite2 database.
• You may download GeoLite2 directly from MaxMind, or many Linux distributions provide the
geoipupdate tool directly via their package manager. You will still need to configure your
license key prior to usage.
166 https://dev.maxmind.com/geoip/geoip2/geolite2/
• Once the "GeoLite2-City.mmdb" database file is installed on your system, you will need to
configure its location as the value of usage-statistics.dbfile in your local.cfg
configuration file .
• You can discard any old GeoLiteCity.dat database(s) found in the config/ directory (if they
exist).
• See the "Managing the City Database File" section of SOLR Statistics(see page 338) for more
information about using a City Database with DSpace.
• Or, you can alternatively use/install DB-IP's City Lite database167 (in MMDB format)
• This database is also free to use, but does not require an account to download.
• Once the "dbip-city-lite.mmdb" database file is installed on your system, you will need to
configure its location as the value of usage-statistics.dbfile in your local.cfg
configuration file .
• See the "Managing the City Database File" section of SOLR Statistics(see page 338) for more
information about using a City Database with DSpace.
14. Restart Tomcat (servlet container). Now restart your servlet container (Tomcat/Jetty/Resin) and test out
the upgrade.
a. Upgrade of database: If you didn't manually upgrade your database in the previous step, then your
database will be automatically upgraded to the latest version. This may take some time (seconds to
minutes), depending on the size of your repository, etc. Check the DSpace log ([dspace]/log/
dspace.log.[date]) for information on its status.
b. Reindexing of all content for search/browse: If your database was just upgraded (either manually
or automatically), all the content in your DSpace will be automatically re-indexed for searching/
browsing. As the process can take some time (minutes to hours, depending on the size of your
repository), it is performed in the background; meanwhile, DSpace can be used as the index is
gradually filled. But, keep in mind that not all content will be visible until the indexing process is
completed. Again, check the DSpace log ( [dspace]/log/dspace.log.[date]) for information on
its status.
i. If you wish to skip automatic reindexing, please see the Note above under the "Upgrade your
Database" step.
15. Check your cron / Task Scheduler jobs. In recent versions of DSpace, some of the scripts names have
changed.
a. Check the Scheduled Tasks via Cron(see page 481) documentation for details. If you have been using
the dspace stats-util --optimize tool, it is no longer recommended and you should stop.
b. WINDOWS NOTE: If you are running the Handle Server on a Windows machine, a new [dspace]/
bin/start-handle-server.bat script is available to more easily startup your Handle Server.
16. Install the new User Interface (see below)
167 https://db-ip.com/db/download/ip-to-city-lite
4 Using DSpace
This page offers access to all aspects of the documentation relevant to using DSpace after it has been properly
installed or upgraded. These pages assume that DSpace is functioning properly. Please refer to the section on
System Administration(see page 410) if you are looking for information on diagnosing DSpace issues and measures
you can take to restore your DSpace to a state in which it functions properly.
Property: plugin.sequence.org.dspace.authenticate.Authenticati
onMethod
Example Value:
plugin.sequence.org.dspace.authenticate.AuthenticationMethod
= org.dspace.authenticate.PasswordAuthentication
Authentication by Password
Property: plugin.sequence.org.dspace.authenticate.Authenticati
onMethod
Example Value:
plugin.sequence.org.dspace.authenticate.AuthenticationMethod
= org.dspace.authenticate.PasswordAuthentication
Configuration File: [dspace]/config/modules/authentication-password.cfg
Property: authentication-password.domain.valid
Informational Note: This option allows you to limit self-registration to email addresses ending
in a particular domain value. The above example would limit self-
registration to individuals with "@mit.edu" email addresses and all
".ac.uk" email addresses.
Property: authentication-password.login.specialgroup
Informational Note: This option allows you to automatically add all password authenticated
user sessions to a specific DSpace Group (the group must exist in DSpace)
for the remainder of their logged in session.
Property: authentication-password.digestAlgorithm
Informational Note: This option specifies the hashing algorithm to be used in converting plain-
text passwords to more secure password digests. The example value is
the default. You may select any digest algorithm available through
java.security.MessageDigest on your system. At least MD2, MD5, SHA-1,
SHA-256, SHA-384, and SHA-512 should be available, but you may have
installed others. Most sites will not need to adjust this.
Shibboleth Authentication
Property: plugin.sequence.org.dspace.authenticate.Authenticat
ionMethod
Example Value:
plugin.sequence.org.dspace.authenticate.AuthenticationMethod
= org.dspace.authenticate.ShibAuthentication
General information about installing/configuring Shibboleth Service Providers (SPs) can be found at: https://
wiki.shibboleth.net/confluence/display/SHIB2/Installation
A few extra notes/hints when configuring mod_shib & Apache:
• In Debian based environments, "mod_shib" tends to be in a package named something like "libapache2-
mod-shib2"
• The Shibboleth setting "ShibUseHeaders" is no longer required to be set to "On", as DSpace will correctly
utilize attributes instead of headers.
• When "ShibUseHeaders" is set to "Off" (which is recommended in the mod_shib documentation168),
proper configuration of Apache to pass attributes to Tomcat (via either mod_jk or mod_proxy) can be
a bit tricky, SWITCH has some great documentation169 on exactly what you need to do. We will
eventually paraphrase/summarize this documentation here, but for now, the SWITCH page will have
to do.
• When initially setting up Apache & mod_shib, https://samltest.id/ provides a great testing ground for your
configurations. This site provides a sample/demo Shibboleth IdP (as well as a sample Shibboleth SP) which
you can test against. It acts as a "sandbox" to get your configurations working properly, before you point
DSpace at your production Shibboleth IdP.
• You also may wish to review the Shibboleth setup in our "dspace-shibboleth" Docker setup170which the
development team uses for testing (and it uses https://samltest.id as the IdP). It may provide you with good
examples/hints on getting everything setup. However, keep in mind this code has not been tested in
Production scenarios.
Below, we have provided a sample Apache configuration. However, as every institution has their own specific
Apache setup/configuration, it is highly likely that you will need to tweak this configuration in order to get it
working properly. Again, see the official mod_shib documentation for much more detail about each of these
settings: https://wiki.shibboleth.net/confluence/display/SHIB2/NativeSPApacheConfig These configurations are
meant to be added to an Apache <VirtualHost> which acts as a proxy to your Tomcat (or other servlet container)
running DSpace. More information on Apache VirtualHost settings can be found at: https://httpd.apache.org/docs/
2.2/vhosts/
168 https://wiki.shibboleth.net/confluence/display/SHIB2/NativeSPApacheConfig#NativeSPApacheConfig-AuthConfigOptions
169 https://www.switch.ch/de/aai/support/serviceproviders/sp-access-rules.html#javaapplications
170 https://github.com/DSpace/DSpace/tree/main/dspace/src/main/docker/dspace-shibboleth
#### SAMPLE MOD_SHIB CONFIGURATION FOR APACHE2 (it may require local modifications based on your Apache
setup) ####
# While this sample VirtualHost is for HTTPS requests (recommended for Shibboleth, obviously),
# you may also need/want to create one for HTTP (*:80)
<VirtualHost *:443>
...
# PLEASE NOTE: We have omitted many Apache settings (ServerName, LogLevel, SSLCertificateFile, etc)
# which you may need/want to add to your VirtualHost
# You may wish to set it to "Off". See the mod_shib docs for details about this setting:
# https://wiki.shibboleth.net/confluence/display/SHIB2/NativeSPApacheConfig#NativeSPApacheConfig-
AuthConfigOptions
# Here's a good guide to configuring Apache + Tomcat when this setting is "Off":
# https://www.switch.ch/de/aai/support/serviceproviders/sp-access-rules.html#javaapplications
ShibUseHeaders On
</Location>
# Finally, you may need to ensure requests to /Shibboleth.sso are NOT redirected
# to Tomcat (as they need to be handled by mod_shib instead).
# NOTE: THIS SETTING IS LIKELY ONLY NEEDED IF YOU ARE USING mod_proxy TO REDIRECT
# ALL REQUESTS TO TOMCAT (e.g. ProxyPass /server ajp://localhost:8009/server)
ProxyPass /Shibboleth.sso !
</IfModule>
...
# You will likely need Proxy settings to ensure Apache is proxying requests to Tomcat for the DSpace
REST API
# The below is just an example of proxying for REST API only. It requires installing & enabling
"mod_proxy" and "mod_proxy_ajp"
## Proxy / Forwarding Settings ##
<Proxy *>
AddDefaultCharset Off
Order allow,deny
Allow from all
</Proxy>
# Proxy all requests to /server to Tomcat via AJP
ProxyPass /server ajp://localhost:8009/server
ProxyPassReverse /server ajp://localhost:8009/server
# Optionally, also proxy Angular UI (if on same server). This requires "mod_proxy_http"
#ProxyPass / http://localhost:4000/
#ProxyPassReverse / http://localhost:4000/
</VirtualHost>
...
</Attributes>
direct mappings to the Shibboleth headers. In additional to the first and last name DSpace supports other metadata
fields such as phone, or really anything you want to store on an eperson object. Beyond the phone field, which is
accessible in the user's profile screen, none of these additional metadata fields will be used by DSpace out-of-the
box. However if you develop any local modification you may access these attributes from the EPerson object. The
Vireo ETD workflow system utilizes this to aid students when submitting an ETD.
Role-based Groups:
DSpace is able to place users into pre-defined groups based upon values received from Shibboleth. Using this
option you can place all faculty members into a DSpace group when the correct affiliation's attribute is provided.
When DSpace does this they are considered 'special groups', these are really groups but the user's membership
within these groups is not recorded in the database. Each time a user authenticates they are automatically placed
within the pre-defined DSpace group, so if the user loses their affiliation then the next time they login they will no
longer be in the group.
Depending upon the shibboleth attributed use in the role-header it may be scoped. Scoped is shibboleth
terminology for identifying where an attribute originated from. For example a students affiliation may be encoded
as "[email protected]". The part after the @ sign is the scope, and the preceding value is the value. You may use
the whole value or only the value or scope. Using this you could generate a role for students and one institution
different than students at another institution. Or if you turn on ignore-scope you could ignore the institution and
place all students into one group.
The values extracted (a user may have multiple roles) will be used to look up which groups to place the user into.
The groups are defined as "authentication-shibboleth.role.<role-name>" which is a comma separated list of
DSpace groups.
Property: authentication-shibboleth.lazysession
Informational Note: Whether to use lazy sessions or active sessions. For more DSpace
instances, you will likely want to use lazy sessions. Active sessions will
force every user to authenticate via Shibboleth before they can access
your DSpace (essentially resulting in a "dark archive").
Property: authentication-shibboleth.lazysession.loginurl
Informational Note: The url to start a shibboleth session (only for lazy sessions). Generally this
setting will be "/Shibboleth.sso/Login"
Property: authentication-shibboleth.lazysession.secure
Informational Note: Force HTTPS when authenticating (only for lazy sessions). Generally this is
recommended to be "true".
Property: authentication-shibboleth.netid-header
Informational Note: The HTTP header where shibboleth will supply a user's NetID. This HTTP
header should be specified as an Attribute within your Shibboleth
"attribute-map.xml" configuration file.
Property: authentication-shibboleth.email-header
Informational Note: The HTTP header where the shibboleth will supply a user's email address.
This HTTP header should be specified as an Attribute within your
Shibboleth "attribute-map.xml" configuration file.
Property: authentication-shibboleth.email-use-tomcat-remote-user
Informational Note: Used when a netid or email headers are not available should Shibboleth
authentication fall back to using Tomcat's remote user feature? Generally
this is not recommended. See the "Authentication Methods" section above.
Property: authentication-shibboleth.reconvert.attributes
Informational Note: Shibboleth attributes are by default UTF-8 encoded. Some servlet
container automatically converts the attributes from ISO-8859-1 (latin-1) to
UTF-8. As the attributes already were UTF-8 encoded it may be necessary
to reconvert them. If you set this property true, DSpace converts all
shibboleth attributes retrieved from the servlet container from UTF-8 to
ISO-8859-1 and uses the result as if it were UTF-8. This procedure restores
the shibboleth attributes if the servlet container wrongly converted them
from ISO-8859-1 to UTF-8. Set this true, if you notice character encoding
problems within shibboleth attributes.
Property: authentication-shibboleth.autoregister
Property: authentication-shibboleth.sword.compatibility
Informational Note: SWORD compatibility will allow this authentication method to work when
using SWORD. SWORD relies on username and password based
authentication and is entirely incapable of supporting shibboleth. This
option allows you to authenticate username and passwords for SWORD
sessions with out adding another authentication method onto the stack.
You will need to ensure that a user has a password. One way to do that is to
create the user via the create-administrator command line command and
then edit their permissions.
WARNING: If you enable this option while ALSO having
"PasswordAuthentication" enabled, then you should ensure that
"PasswordAuthentication" is listed prior to "ShibAuthentication" in your
authentication.cfg file. Otherwise, ShibAuthentication will be used to
authenticate all of your users INSTEAD OF PasswordAuthentication.
Property: authentication-shibboleth.firstname-header
Informational Note: The HTTP header where the shibboleth will supply a user's given name.
This HTTP header should be specified as an Attribute within your
Shibboleth "attribute-map.xml" configuration file.
Property: authentication-shibboleth.lastname-header
Informational Note: The HTTP header where the shibboleth will supply a user's surname. This
HTTP header should be specified as an Attribute within your Shibboleth
"attribute-map.xml" configuration file.
Property: authentication-shibboleth.eperson.metadata
Example Value:
authentication-shibboleth.eperson.metadata = \
SHIB-telephone => phone, \
SHIB-cn => cn
Informational Note: Additional user attributes mapping, multiple attributes may be stored for
each user. The left side is the Shibboleth-based metadata Header and the
right side is the eperson metadata field to map the attribute to.
Property: authentication-shibboleth.eperson.metadata.autocreate
Informational Note: If the eperson metadata field is not found, should it be automatically
created?
Property: authentication-shibboleth.role-header
Informational Note: The shibboleth header to do role-based mappings (see section on roll
based mapping section above)
Property: authentication-shibboleth.role-header.ignore-scope
Informational Note: Weather to ignore the attribute's scope (everything after the @ sign for
scoped attributes)
Property: authentication-shibboleth.role-header.ignore-value
Informational Note: Weather to ignore the attribute's value (everything before the @ sign for
scoped attributes)
Property: authentication-shibboleth.role.[affiliation-attribute]
Example Value:
authentication-shibboleth.role.faculty = Faculty, Member
authentication-shibboleth.role.staff = Staff, Member
authentication-shibboleth.role.student = Students, Member
Informational Note: Mapping of affiliation values to DSpace groups. See the "Role-based
Groups" section above for more info.
LDAP Authentication
Property: plugin.sequence.org.dspace.authenticate.Authenticat
ionMethod
Example Value:
plugin.sequence.org.dspace.authenticate.AuthenticationMethod
= org.dspace.authenticate.LDAPAuthentication
Property: authentication-ldap.enable
Informational Note: This setting will enable or disable LDAP authentication in DSpace. With
the setting off, users will be required to register and login with their email
address. With this setting on, users will be able to login and register with
their LDAP user ids and passwords.
Property: authentication-ldap.autoregister
Informational Note: This will turn LDAP autoregistration on or off. With this on, a new EPerson
object will be created for any user who successfully authenticates against
the LDAP server when they first login. With this setting off, the user must
first register to get an EPerson object by entering their ldap username
and password and filling out the forms.
Property: authentication-ldap.provider_url
Informational Note: This is the url to your institution's LDAP server. You may or may not need
the /o=myu.edu part at the end. Your server may also require the ldaps://
protocol. (This field has no default value)
Property: authentication-ldap.starttls
Informational Note: Should we issue StartTLS after establishing TCP connection in order to
initiate an encrypted connection?
Note: This (TLS) is different from LDAPS:
• TLS is a tunnel for plain LDAP and is typically recognized on the same
port (standard LDAP port: 389)
• LDAPS is a separate protocol, deprecated in favor of the standard
TLS method. (standard LDAPS port: 636)
Property: authentication-ldap.id_field
Explanation: This is the unique identifier field in the LDAP directory where the
username is stored. (This field has no default value)
Property: authentication-ldap.object_context
Informational Note: This is the LDAP object context to use when authenticating the user. By
default, DSpace will use this value to create the user's DN in order to
attempt to authenticate them. It is appended to the id_field and
username. For example uid=username\,ou=people\,o=myu.edu. You
will need to modify this to match your LDAP configuration. (This field has
no default value)
Property: authentication-ldap.search_context
Informational Note: This is the search context used when looking up a user's LDAP object to
retrieve their data for autoregistering. With autoregister=true, when
a user authenticates without an EPerson object we search the LDAP
directory to get their name (id_field) and email address
(email_field) so that we can create one for them. So after we have
authenticated against uid=username,ou=people,o=byu.edu we now
search in ou=people for filtering on [uid=username]. Often the
search_context is the same as the object_context parameter. But
again this depends on your LDAP server configuration. (This field has no
default value, and it MUST be specified when either
search.anonymous=true or search.user is specified)
Property: authentication-ldap.email_field
Informational Note: This is the LDAP object field where the user's email address is stored.
"mail" is the most common for LDAP servers. (This field has no default
value)
Property: authentication-ldap.netid_email_domain
171 http://example.com
Informational Note: If your LDAP server does not hold an email address for a user (i.e. no
email_field), you can use the following field to specify your email
domain. This value is appended to the netid (id_field) in order to make
an email address (which is then stored in the DSpace EPerson). For
example, a netid of 'user' and netid_email_domain as @example.com172
would set the email of the user to be [email protected]
Property: authentication-ldap.surname_field
Informational Note: This is the LDAP object field where the user's last name is stored. "sn" is
the most common for LDAP servers. If the field is not found the field will
be left blank in the new eperson object. (This field has no default value)
Property: authentication-ldap.givenname_field
Informational Note: This is the LDAP object field where the user's given names are stored. I'm
not sure how common the givenName field is in different LDAP instances.
If the field is not found the field will be left blank in the new eperson
object. (This field has no default value)
Property: authentication-ldap.phone_field
Informational Note: This is the field where the user's phone number is stored in the LDAP
directory. If the field is not found the field will be left blank in the new
eperson object. (This field has no default value)
Property: authentication-ldap.login.specialgroup
172 http://example.com
173 mailto:[email protected]
Informational Note: If specified, all user sessions successfully logged in via LDAP will
automatically become members of this DSpace Group (for the remainder
of their current, logged in session). This DSpace Group must already exist
(it will not be automatically created).
This is useful if you want a DSpace Group made up of all internal
authenticated users. This DSpace Group can then be used to bestow
special permissions on any users who have authenticated via LDAP (e.g.
you could allow anyone authenticated via LDAP to view special, on
campus only collections or similar)
Property: login.groupmap.*
Informational Note: The left part of the value (before the ":") must correspond to a portion of
a user's DN (unless "login.group.attribute" is specified..please see
below). The right part of the value corresponds to the name of an existing
DSpace group.
cn=jdoe,OU=Students,OU=Users,dc=example,dc=edu
that user would get assigned to the ALL_STUDENTS DSpace group for the
remainder of their current session.
cn=jdoe,OU=Employees,OU=Users,dc=example,dc=edu
Upon logging into DSpace after that DN change, the authenticated user
would now be assigned to the ALL_EMPLOYEES DSpace group for the
remainder of their current session.
Property: authentication-ldap.login.groupmap.attribute
• If the authenticated user has this LDAP attribute, look up the value of
this LDAP attribute in the left part (before the ":") of the
authentication-ldap.login.groupmap.* value
• If that LDAP value is found in any "authentication-
ldap.login.groupmap.*" field, assign this authenticated user to
the DSpace Group specified by the right part (after the ":") of the
authentication-ldap.login.groupmap.* value.
For example:
• authentication-ldap.login.groupmap.attribute = group
• authentication-ldap.login.groupmap.1 =
mathematics:Mathematics_Group
The above would ensure that any authenticated users where their LDAP
"group" attribute equals "mathematics" would be added to the DSpace
Group named "Mathematics_Group" for the remainder of their current
session. However, if that same user logged in later with a new LDAP
"group" value of "computer science", he/she would no longer be a
member of the "Mathematics_Group" in DSpace.
174 https://linux.die.net/man/1/ldapsearch
SSL Connection Errors: If you are using ldapsearch with an LDAPS connection (secure connection), you may receive
"peer cert untrusted or revoked" errors if the LDAP SSL certificate is self-signed. You can temporarily tell LDAP to
accept any security certificate by setting TLS_REQCERT allow in your ldapsearch's ldap.conf file. Be sure to
remove this setting however after you are done testing!
# FOR TESTING ONLY! This setting disables the check for a valid LDAP Server security certificate,
# which is considered a security issue for production LDAP setups. Setting this to "allow" tells
# the LDAP client to accept any security certificates that it cannot verify or validate.
TLS_REQCERT allow
Please note, that DSpace doesn't contain the LDAPHierarchicalAuthentication class anymore. This
functionality is now supported by LDAPAuthentication, which uses the same configuration options.
If your users are spread out across a hierarchical tree on your LDAP server, you may wish to have DSpace search for
the user name in your tree. Here's how it works:
1. DSpace gets the user name from the login form
2. DSpace binds to LDAP as an administrative user with right to search in DNs (LDAP may be configured to
allow anonymous users to search)
3. DSpace searches for the user name as within DNs (username is a part of full DN)
4. DSpace binds with the found full DN and password from login form
5. DSpace logs user in if LDAP reports successful authentication; refuses login otherwise
Property: authentication-ldap.search_scope
Informational Note: This is the search scope value for the LDAP search during
autoregistering (autoregister=true). This will depend on your
LDAP server setup, and is only really necessary if your users are
spread out across a hierarchical tree on your LDAP server. This value
must be one of the following integers corresponding to the following
values:
object scope : 0
one level scope : 1
subtree scope : 2
Property: authentication-ldap.search.anonymous
Informational Note: If true, DSpace will anonymously search LDAP (in the
"search_context") for the DN of the user trying to login to DSpace.
This setting is "false" by default. By default, DSpace will either use
"search.user" to authenticate for the LDAP search (if search.user
is specified), or will use the "object_context" value to create the
user's DN.
Property: authentication-ldap.search.user
authentication-ldap.search.password
Informational Note: The full DN and password of a user allowed to connect to the LDAP
server and search (in the "search_context") for the DN of the user
trying to login. By default, if unspecified, DSpace will either search
LDAP anonymously for the user's DN (when
search.anonymous=true), or will use the "object_context"
value to create the user's DN.
IP Authentication
Enabling IP Authentication
To enable IP Authentication, you must ensure the org.dspace.authenticate.IPAuthentication class is listed
as one of the AuthenticationMethods in the following configuration:
Property: plugin.sequence.org.dspace.authenticate.Authenticat
ionMethod
Example Value:
plugin.sequence.org.dspace.authenticate.AuthenticationMethod
= org.dspace.authenticate.IPAuthentication
Configuring IP Authentication
Once enabled, you are then able to map DSpace groups to IP addresses in authentication-ip.cfg by setting
ip.GROUPNAME = iprange[, iprange ...], 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.
Notes:
• If the Groupname contains blanks you must escape the spaces, e.g. "Department\ of\ Statistics"
• If your DSpace installation is hidden behind a web proxy, remember to set the useProxies configuration
option within the 'Logging' section of dspace.cfg to use the IP address of the user rather than the IP
address of the proxy server.
Property: plugin.sequence.org.dspace.authenticate.Authenticat
ionMethod
Example Value:
plugin.sequence.org.dspace.authenticate.AuthenticationMetho
d = org.dspace.authenticate.X509Authentication
plugin.sequence.org.dspace.authenticate.AuthenticationMetho
d = org.dspace.authenticate.PasswordAuthentication
1. You must also configure DSpace with the same CA certificates as the web server, so it can accept and
interpret the clients' certificates. It can share the same keystore file as the web server, or a separate one, or a
CA certificate in a file by itself. Configure it by oneof these methods, either the Java keystore
2. 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 autoregister configuration
property to true. This lets you automatically accept all users with valid personal certificates. The default is
false.
4.1.2 Embargo
• What is an Embargo?(see page 114)
• DSpace Embargo Functionality(see page 114)
• Managing Embargoes on existing Items(see page 114)
• Configuring and using Embargo in DSpace Submission User Interface(see page 115)
• Private/Public Item(see page 115)
• Pre-3.0 Embargo Migration Routine(see page 115)
• Technical Specifications(see page 115)
• Introduction(see page 115)
• ResourcePolicy(see page 116)
• Item(see page 116)
• Item.inheritCollectionDefaultPolicies(Collection c)(see page 116)
• AuthorizeService(see page 116)
• Withdraw Item(see page 117)
• Reinstate Item(see page 117)
• Pre-DSpace 3.0 Embargo Compatibility(see page 117)
• Creating Embargoes via Metadata(see page 117)
Item-level embargo is not yet supported in DSpace 7.0 in the Submission user interface. In the Submission
UI, only embargoes on specific bitstreams (files) is supported. However, you can add an item-level
embargo in DSpace 7.0 using the "Manage Embargoes on existing Items" approach described above.
Item-level embargo will be available in a future 7.x release. See DSpace Release 7.0 Status175
Starting in DSpace 7, embargo (and lease) settings are configurable via a Spring Bean configuration file [dspace]/
config/spring/api/access-conditions.xml
For detailed information on configuring your Embargo options (and other related options like lease or restrict to a
particular group of users), see the section on "Configuring the File Upload Step" of the Submission User Interface(see
page 260).
Private/Public Item
It is also possible to adjust the Private/Public state of an item after it has been archived in the repository. This can
be achieved from either the "Admin Search" (/admin/search), or from the "Status" tab under "Edit Item".
Private items are not retrievable through the DSpace search, browse or Discovery indexes.
Therefore, an "Admin Search" option is provided, which allows you to search across all items, including private or
withdrawn items. You can also filter your results to display only private items.
[dspace]/bin/dspace migrate-embargo -a
Introduction
The following sections illustrate the technical changes that have been made to the back-end to add the new
Advanced Embargo functionality.
175 https://wiki.lyrasis.org/display/DSPACE/DSpace+Release+7.0+Status
ResourcePolicy
When an embargo is set at item level or bitstream level, a new ResourcePolicy will be added.
Three new attributes have been introduced in the ResourcePolicy class:
• rpname: resource policy name
• rptype: resource policy type
• rpdescription: resource policy description
While rpname and rpdescription are fields manageable by users, the rptype is managed by DSpace itself. It
represents a type that a resource policy can assume, among the following:
• TYPE_SUBMISSION: all the policies added automatically during the submission process
• TYPE_WORKFLOW: all the policies added automatically during the workflow stage
• TYPE_CUSTOM: all the custom policies added by users
• TYPE_INHERITED: all the policies inherited from the enclosing object (for Item, a Collection; for Bitstream, an
Item).
Here is an example of all information contained in a single policy record:
policy_id: 4847
resource_type_id: 2
resource_id: 89
action_id: 0
eperson_id:
epersongroup_id: 0
start_date: 2013-01-01
end_date:
rpname: Embargo Policy
rpdescription: Embargoed through 2012
rptype: TYPE_CUSTOM
Item
To manage Private/Public state a new boolean attribute has been added to the Item:
• isDiscoverable
When an Item is private, the attribute will assume the value false.
Item.inheritCollectionDefaultPolicies(Collection c)
This method has been adjusted to leave custom policies, added by the users, in place and add the default collection
policies only if there are no custom policies.
AuthorizeService
Some methods have been changed on AuthorizeService to manage the new fields and some convenience methods
have been introduced:
Withdraw Item
The feature to withdraw an item from the repository has been modified to keep all the custom policies in place.
Reinstate Item
The feature to reinstate an item in the repository has been modified to preserve existing custom policies.
Introduction
Prior to DSpace 3.0, all DSpace embargoes were stored as metadata. While embargoes are no longer stored
permanently in metadata fields (they are now stored on ResourcePolicies, i.e. access policies), embargoes can still
be initialized via metadata fields.
This ability to create/initialize embargoes via metadata is extremely powerful if you wish to submit embargoed
content via electronic means (such as Importing Items via Simple Archive Format(see page 233), SWORDv1(see page
216), SWORDv2(see page 202), etc).
embargo ("lifts it"), so the item bitstreams become available. Here is a more detailed life-cycle for an embargoed
item:
Terms assignment
The first step in placing an embargo on an item is to attach (assign) "terms" to it. If these terms are missing, no
embargo will be imposed. As we will see below, terms are carried in a configurable DSpace metadata field, so
assigning terms just means assigning a value to a metadata field. This can be done in a web submission user
interface form, in a SWORD deposit package, a batch import, etc. - anywhere metadata is passed to DSpace. The
terms are not immediately acted upon, and may be revised, corrected, removed, etc, up until the next stage of the
life-cycle. Thus a submitter could enter one value, and a collection editor replace it, and only the last value will be
used. Since metadata fields are multivalued, theoretically there can be multiple terms values, but in the default
implementation only one is recognized.
Terms interpretation/imposition
In DSpace terminology, when an Item has exited the last of any workflow steps (or if none have been defined for it),
it is said to be "installed" into the repository. At this precise time, the interpretation of the terms occurs, and a
computed "lift date" is assigned, and recorded as part of the ResourcePolicy (aka policy) of the Item. Once the lift
date has been assigned to the ResourcePolicy, the metadata field which defined the embargo is cleared. From that
point forward, all embargo information is controlled/defined by the ResourcePolicy.
It is important to understand that this interpretation happens only once, (just like the installation). Therefore,
updating/changing an embargo cannot be done via metadata fields. Instead, all embargo updates must be
made to the ResourcePolicies themselves (e.g. ResourcePolicies can be managed from the Admin UI in the Edit Item
screens).
Also note that since these policy changes occur before installation, there is no time during which embargoed
content is "exposed" (accessible by non-administrators). The terms interpretation and imposition together are
called "setting" the embargo, and the component that performs them both is called the embargo "setter".
Embargo period
After an embargoed item has been installed, the policy restrictions remain in effect until the embargo date passes.
Once the embargo date passes, the policy restrictions are automatically lifted. An embargo lift date is generally
stored as the "start date" of a policy. Essentially, this means that the policy does not get applied until after that date
passes (and prior to that date, the object defaults to Admin only access).
Administrators are able to change the lift date of the embargo by editing the policy (ResourcePolicy). These policies
can be managed from the Edit Item screens.
You replace the placeholder values with real metadata field names. If you only need the "default" embargo
behavior - which essentially accepts only absolute dates as "terms" - this is the only configuration required, except
as noted below.
There is also a property for the special date of "forever":
Operation
After the fields defined for terms and lift date have been assigned in dspace.cfg, and created and configured
wherever they will be used, you can begin to embargo items simply by entering data (dates, if using the default
setter) in the terms field. They will automatically be embargoed as they exit workflow, and that the computed lift
date will be stored on the ResourcePolicy
Setter
The default setter recognizes only two expressions of terms: either a literal, non-relative date in the fixed format
"yyyy-mm-dd" (known as ISO 8601), or a special string used for open-ended embargo (the default configured value
for this is "forever", but this can be changed in dspace.cfg to "toujours", "unendlich", etc). It will perform a minimal
sanity check that the date is not in the past. Similarly, the default setter will only remove all read policies as noted
above, rather than applying more nuanced rules (e.g allow access to certain IP groups, deny the rest). Fortunately,
the setter class itself is configurable and you can "plug in" any behavior you like, provided it is written in java and
conforms to the setter interface. The dspace.cfg property:
Lifter
DEPRECATED: The Lifter is no longer used in the DSpace API, and is not recommended to utilize. Embargo
lift dates are now stored on ResourcePolicies and, as such, are "lifted" automatically when the embargo
date passes. Manually running a "lifter" may bypass this automatic functionality and result in unexpected
results.
The default lifter behavior as described above - essentially applying the collection policy rules to the item - might
also not be sufficient for all purposes. It also can be replaced with another class:
If you have implemented the pre DSpace 3.0 Embargo(see page 113) feature, you will need to run it periodically to
check for Items with expired embargoes and lift them.
-c or --check ONLY check the state of embargoed Items, do NOT lift any
embargoes
-v or --verbose Print a line describing the action taken for each embargoed
item found.
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
One of the options --email or --netid is required to name the record. The complete options are:
-a --add required
To list accounts:
-L --list required
To modify an account:
-M --modify required
To delete an account:
-d --delete required
The Groomer
This tool inspects all user accounts for several conditions.
[DSpace]/bin/dsrun org.dspace.eperson.Groomer -u
The output is a tab-separated-value table of the EPerson ID, last login date, email address, netid, and full name for
each matching account.
You can also have the tool delete matching accounts:
• Introduction
• Adding new subscriptions
• System configuration for sending out daily emails
Introduction
Registered users can subscribe to collections in DSpace. After subscribing, users will receive a daily email
containing the new and modified items in the collections they are subscribed to.
176 https://wiki.lyrasis.org/display/DSPACE/DSpace+Release+7.0+Status
4.1.4.1 Introduction
The request a copy functionality was added to DSpace as a measure to facilitate access in those cases when
uploaded content can not be openly shared with the entire world immediately after submission into DSpace. It
gives users an efficient way to request access to the original submitter of the item, who can approve this access with
the click of a button. This practice complies with most applicable policies as the submitter interacts directly with
the requester on a case by case basis.
177 https://wiki.lyrasis.org/display/DSPACE/DSpace+Release+7.0+Status
The request form asks the user for his or her name, email address and message where the reason for requesting
access can be entered.
After clicking request copy at the bottom of this form, the original submitter of the item will receive an email
containing the details of the request. The email also contains a link with a token that brings the original submitter
to a page where he or she can either grant or reject access. If the original submitter can not evaluate the request, he
or she can forward this email to the right person, who can use the link containing the token without having to log
into DSpace.
Each of these buttons registers the choice of the submitter, displaying the following form in which an additional
reason for granting or rejecting the access can be added.
After hitting send, the contents of this form will be sent together with the associated files to the email address of the
requester. In case the access is rejected, only the reason will be sent to the requester.
After responding positively to a request for copy, the person who approved is presented with an optional form to
ask the repository administrator to alter the access rights of the item, allowing unrestricted open access to
everyone.
Author permission request, includes information about the original request (requester name, requester email,
requester's reason for requesting). The author/submitter's name and email address will be pre-populated in the
form from the submitter, but the email address and author name are editable, as the submitter's of content to
DSpace aren't always the author.
request_item.admin template for the message that will be sent to the administrator of the
repository, after the original submitter requests to have the
permissions changed for this item.
request_item.author template for the message that will be sent to the original submitter of
an item with the request for copy.
The templates for emails that the requester receives, that could have been customized by the approver in the
aforementioned dialog are not managed as separate email template files. These defaults are stored in the
Messages.properties file under the keys
Property: request.item.type
Informational Note This parameter manages who can file a request for an item. The
parameter is optional. When it is empty or commented out, request a
copy is disabled across the entire repository. When set to all, any user
can file a request for a copy. When set to logged, only registered users
can file a request for copy.
Property: mail.helpdesk
Informational Note The email address assigned to this parameter will receive the emails
both for granting or rejecting request a copy requests, as well as
requests to change item policies.
Property: request.item.helpdesk.override
Informational Note Should all Request Copy emails go to the mail.helpdesk instead of
the item submitter? Default is false, which sends Item Requests to the
item submitter.
By default the RequestItemMetadataStrategy is enabled, but falls back to the Item Submitter eperson's name
and email. You can configure the RequestItemMetadataStrategy to load the author's name and email address if
you set that information into an item metadata field. For example:
<bean class="org.dspace.app.requestitem.RequestItemMetadataStrategy"
id="org.dspace.app.requestitem.RequestItemAuthorExtractor">
<!--
Uncomment these properties if you want lookup in metadata the email and the name of the author to contact
for request copy.
If you don't configure that or if the requested item doesn't have these metadata the submitter data are
used as fail over
-->
</bean>
Another common request strategy is the use a single Helpdesk email address to receive all of these requests (see
corresponding helpdesk configs in dspace.cfg above). If you wish to use the Helpdesk Strategy, you must first
comment out the default RequestItemMetadataStrategy, bean and uncomment this bean:
4.2.1 Introduction
DSpace users have expressed the need for DSpace to be able to provide more support for different types of digital
objects related to open access publications, such as authors/author profiles, data sets etc. Configurable Entities are
designed to meet that need.
In DSpace, an Entity is a special type of Item which often has Relationships to other Entities. Breaking it down
with more details...
• Entity: Every Entity is an Item.
• This means they must belong to a Collection, just like a normal Item. (Community & Collection
objects are unchanged and unaffected by Entities.)
• Normal Items are still the "default" Item, and they are unchanged. So, not every Item is an Entity.
• Because Entities are all Items, they are immediately usable in submission/workflow process, batch
import/export, OAI-PMH, etc.
• Entity (or Item) Type: Entities all have a "dspace.entity.type" metadata field which defines their Entity/Item
"type". For example, this type may be "Person", "Project", "Publication", "Journal", etc. It's highly visible
within the User Interface as a label.
• Relationships: Based on that "type", an Entity may be related to other Entities via a Relationship. One
Entity type may support several relationship types at once. Examples of relationship types include
"isPersonOfProject" or "isPublicationOfAuthor". These relationship types are named based on the Entity
"type" (as you can likely tell). Relationships also appear on Entities as metadata using the "relation"
schema.
• Virtual Metadata: Entities of different types may also have customized visualizations in the User Interface.
These visualizations may also dynamically pull in metadata from related Entities. For example, a
Publication entity may be displayed in the User Interface with an author name dynamically pulled in from a
related Person entity. The metadata "appears" as though it is part of the Entity you are viewing, but it is
dynamically pulled via the Relationship.
Entities and their Relationships are also completely configurable. DSpace provides some sample models out of the
box, which you can use directly or adapt as needed.
The Entity model also has similarities with the Portland Common Data Model (PCDM)178, with an Entity roughly
mapping to a "pcdm:Object" and existing Communities and Collections roughly mapping to a "pcdm:Collection".
However, at this time DSpace Entities concentrate more on building a graph structure of relationships, instead of a
tree structure.
178 https://github.com/duraspace/pcdm/wiki
4.2.2.2 Journals
Journal Entities include Journal, Journal Volume, Journal Issue and Publication (article). They allow you to
represent a Journal hierarchy more easily within DSpace, starting at the overall Journal, consisting of multiple
Volumes, and each Volume containing multiple Issues. Issues then link to all articles (Publication) which were a
part of that journal issue.
NOTE: that this model includes the same "Publication" entity as the Research Entities model described above. This
Entity overlap allows you to link an article (Publication) both to its author (Person) as well as the Journal Issue it
appeared in.
Keep in mind, there are a few DSpace import/export features that do not yet support Entities in DSpace
7.0. These will be coming in future 7.x releases. See DSpace Release 7.0 Status179 for prioritization
information, etc.
• AIP Backup and Restore(see page 411) does not fully support entity types or relationships. In other
words, Entities are only represented as normal Items in AIPs
• Importing and Exporting Items via Simple Archive Format180 does not fully support entity types or
relationships. In other words, Entities are only represented as normal Items in SAF. (Note: early
work to bring this support is already begun in https://github.com/DSpace/DSpace/pull/3322)
• SWORDv1 Server(see page 216) and SWORDv2 Server(see page 202) does not yet support Entity or
relationship creation.
179 https://wiki.lyrasis.org/display/DSPACE/DSpace+Release+7.0+Status
180 https://wiki.lyrasis.org/display/DSDOC6x/Importing+and+Exporting+Items+via+Simple+Archive+Format
If an Entity (of same type name) already exists, it will be updated with any new relationships defined in relationship-
types.xml
If an Entity (of same type name) doesn't exist, the new Entity type will be created along with its relationships
defined in relationship-types.xml
Once imported into the Database, the overall structure is as follows:
• All valid Entity Types are stored in the "entity_type" database table.
• All Relationship type definitions are stored in the "relationship_type" database table
• All Relationships between entities get stored in the "relationship" table.
• Entities themselves are stored alongside Items in the 'item' table. Every Entity must have a
"dspace.entity.type" metadata field whose value is a valid Entity Type (from the "entity_type" table).
Keep in mind, your currently enabled Entity model is defined in your database, and NOT in the "relationship-
types.xml". Anytime you want to update your data model, you'd update/create a configuration (like relationship-
types.xml) and re-run the "initialize-entities" command.
3. In the Edit Collection page, switch to the "Assign Roles" tab and create a "Submitters" group. Add any
people who should be allowed to submit/create this new Entity type.
a. If you only want Administrators to create this Entity type, you can skip this step. Administrators can
submit to any Collection.
4. If you want to hide this Collection, you can choose to only make it visible to that same Submitters group (or
Administrators). This does NOT hide the Entities from search or browse, but it will hide the Collection itself.
a. In the Edit Collection page, switch to the "Authorizations" tab.
b. Add a new Authorization of TYPE_CUSTOM, restricting "READ" to the Submitters group created above
(or Administrators if there is no Submitters group). You can also add multiple READ policies as
needed. WARNING: The Submitters group MUST have READ privileges to be able to submit/create
new Entities.
c. Remove the default READ policy giving Anonymous permissions.
d. Assuming you want the Entities to still be publicly available, make sure the DEFAULT_ITEM_READ
policy is set to "Anonymous"!
Obviously, how you organize your Entity Types into Collections is up to you. You can create a single Collection for
all Entities of that type (e.g. an "Author Profiles" collection could be where all "Person" Entities are submitted/
stored). Or, you could create many Collections for each Entity Type (e.g. each Department in your University may
have it's own Community, and underneath have a "Staff Profiles" Collection where all "Person" Entities for that
department are submitted/stored). A few example structures are shown below.
Example Structure based on the departments:
• Department of Architecture
• Building Technology Program
• Theses - Department of Architecture
• Department of Biology
• Theses - Biology
• People
• Projects
OR
• Department of Architecture
• Building Technology Program
• Theses - Department of Architecture
• People in Department of Architecture
• Projects in Department of Architecture
• Department of Biology
• Theses - Biology
• People in Department of Biology
• Projects in Department of Biology
Example Structure based on the publication type:
• Books
• Book Chapter
• Edited Volume
• Monograph
• Theses
• Bachelor Thesis
• Doctoral Thesis
• Habilitation Thesis
• Master Thesis
• People
• Projects
Once your modifications to the submission process are complete, you will need to quickly reboot Tomcat (or your
servlet container) to reload the current settings.
is dynamically added as "virtual metadata" simply because the Publication is linked to the Person (via a
relationship).
Virtual Metadata is configurable for all Entities and all relationships. DSpace comes with default settings for its
default Entity model, and those can be found in [dspace]/config/spring/api/virtual-metadata.xml. In
that Spring Bean configuration file, you'll find a map of each relationship type to a metadata field & its value. Here's
a summary of how it works:
• The "org.dspace.content.virtual.VirtualMetadataPopulator" bean maps every Relationship type (from
relationship-types.xml) to a <util:map> definition (of a given ID) also in the virtual-metadata.xml
• That <util:map> defintion defines which DSpace metadata field will store the virtual metadata. It also links
to the bean which will dynamically define the value of this metadata field.
• A bean of that ID then defines the value of the field, based on the related Entity. In this example, these fields
are pulled from the related Person entity and concatenated. If the Person has "person.familyName=Jones"
and "person.givenName=Jane", then the value of "dc.contributor.author" on the related Publication will be
dynamically set to "Jones, Jane.
If the default Virtual Metadata looks good to you, no changes are needed. If you make any changes, be sure to
restart Tomcat to update the bean definitions.
181 https://github.com/DSpace/DSpace/blob/main/dspace/config/entities/relationship-types.xml
182 http://schema.org
183 https://github.com/DSpace/DSpace/blob/master/dspace/config/submission-forms.xml
184 https://docs.google.com/document/d/1X0XsppZYOtPtbmq7yXwmu7FbMAfLxxOCONbw0_rl7jY/edit#heading=h.
5bu9shx0j942
185 https://github.com/DSpace/DSpace/blob/master/dspace/config/spring/api/virtual-metadata.xml
186 https://wiki.lyrasis.org/display/DSPACE/DSpace+7+at+OR2021
4.3.1 Tasks
The goal of the curation system ("CS") is to provide a simple, extensible way to manage routine content operations
on a repository. These operations are known to CS as "tasks", and they can operate on any DSpaceObject (i.e.
subclasses of DSpaceObject) - which means the entire Site, Communities, Collections, and Items - viz. core data
model objects. Tasks may elect to work on only one type of DSpace object - typically an Item - and in this case they
may simply ignore other data types (tasks have the ability to "skip" objects for any reason). The DSpace core
distribution will provide a number of useful tasks, but the system is designed to encourage local extension - tasks
can be written for any purpose, and placed in any java package. This gives DSpace sites the ability to customize the
behavior of their repository without having to alter - and therefore manage synchronization with - the DSpace
source code. What sorts of activities are appropriate for tasks?
Some examples:
• apply a virus scan to item bitstreams (this will be our example below)
• profile a collection based on format types - good for identifying format migrations
• ensure a given set of metadata fields are present in every item, or even that they have particular values
• call a network service to enhance/replace/normalize an item's metadata or content
• ensure all item bitstreams are readable and their checksums agree with the ingest values
Since tasks have access to, and can modify, DSpace content, performing tasks is considered an administrative
function to be available only to knowledgeable collection editors, repository administrators, sysadmins, etc. No
tasks are exposed in the public interfaces.
4.3.2 Activation
For CS to run a task, the code for the task must of course be included with other deployed code (to [dspace]/lib,
WAR, etc) but it must also be declared and given a name. This is done via a configuration property in [dspace]/
config/modules/curate.cfg as follows:
For each activated task, a key-value pair is added. The key is the fully qualified class name and the value is the
taskname used elsewhere to configure the use of the task, as will be seen below. Note that the curate.cfg
configuration file, while in the config directory, is located under "modules". The intent is that tasks, as well as any
configuration they require, will be optional "add-ons" to the basic system configuration. Adding or removing tasks
has no impact on dspace.cfg.
For many tasks, this activation configuration is all that will be required to use it. But for others, the task needs
specific configuration itself. A concrete example is described below, but note that these task-specific configuration
property files also reside in [dspace]/config/modules
option meaning
-i identifier ID of object to curate. May be (1) a Handle, (2) a workflow ID, or (3) 'all'
to operate on the whole repository.
option meaning
-s scope declare a scope for database transactions. Scope must be: (1)
'open' (default value), (2) 'curation' or (3) 'object'.
-r filename emit reporting to the named file. '-r -' writes reporting to standard out.
If not specified, report is discarded silently.
-p name=value set a runtime task parameter name to the value value. May be repeated
as needed. See "Task parameters" below.
As with other command-line tools, these invocations could be placed in a cron table and run on a fixed schedule, or
run on demand by an administrator.
When a task is selected from the drop-down list and performed, the tab displays both a phrase interpreting the
"status code" of the task execution, and the "result" message if any has been defined. When the task has been
queued, an acknowledgement appears instead. You may configure the words used for status codes in curate.cfg (for
clarity, language localization, etc):
Report output from tasks run in this way is collected by configuring a Reporter plugin. You must have exactly one
Reporter configured. The default is to use the FileReporter, which writes a single report of the output of all tasks in
the run over all of the selected objects, to a file in the reports directory (configured as report.dir). See [DSpace]/
config/modules/submission-configuration.cfg for the value of plugin.single.org187.dspace.curate.R
eporter. Other Reporter implementations are provided, or you may supply your own.
As the number of tasks configured for a system grows, a simple drop-down list of all tasks may become too
cluttered or large. DSpace 1.8+ provides a way to address this issue, known as task groups. A task group is a simple
collection of tasks that the Admin UI will display in a separate drop-down list. You may define as many or as few
groups as you please. If no groups are defined, then all tasks that are listed in the ui.tasknames property will appear
in a single drop-down list. If at least one group is defined, then the admin UI will display two drop-down lists. The
first is the list of task groups, and the second is the list of task names associated with the selected group. A few key
points to keep in mind when setting up task groups:
• a task can appear in more than one group if desired
• tasks that belong to no group are invisible to the admin UI (but of course available in other contexts of use)
The configuration of groups follows the same simple pattern as tasks, using properties in [dspace]/config/
modules/curate.cfg. The group is assigned a simple logical name, but also a localizable name that appears in
the UI. For example:
# ui.taskgroups contains the list of defined groups, together with a pretty name for UI display
curate.ui.taskgroups = replication = Backup and Restoration Tasks
curate.ui.taskgroups = integrity = Metadata Integrity Tasks
.....
# each group membership list is a separate property, whose value is comma-separated list of logical task
names
curate.ui.taskgroup.integrity = profileformats, requiredmetadata
....
4.3.3.3 In workflow
CS provides the ability to attach any number of tasks to standard DSpace workflows. Using a configuration file
[dspace]/config/workflow-curation.xml, you can declaratively (without coding) wire tasks to any step in a
workflow. An example:
187 http://plugin.single.org
<taskset-map>
<mapping collection-handle="default" taskset="cautious" />
</taskset-map>
<tasksets>
<taskset name="cautious">
<flowstep name="step1">
<task name="vscan">
<workflow>reject</workflow>
<notify on="fail">$flowgroup</notify>
<notify on="fail">$colladmin</notify>
<notify on="error">$siteadmin</notify>
</task>
</flowstep>
</taskset>
</tasksets>
This markup would cause a virus scan to occur during step one of workflow for any collection, and automatically
reject any submissions with infected files. It would further notify (via email) both the reviewers (step 1 group), and
the collection administrators, if either of these are defined. If it could not perform the scan, the site administrator
would be notified.
The notifications use the same procedures that other workflow notifications do - namely email. There is a new
email template defined for curation task use: [dspace]/config/emails/flowtask_notify. This may be
language-localized or otherwise modified like any other email template.
Tasks wired in this way are normally performed as soon as the workflow step is entered, and the outcome action
(defined by the 'workflow' element) immediately follows. It is also possible to delay the performance of the task -
which will ensure a responsive system - by queuing the task instead of directly performing it:
...
<taskset name="cautious">
<flowstep name="step1" queue="workflow">
...
This attribute (which must always follow the "name" attribute in the flowstep element), will cause all tasks
associated with the step to be placed on the queue named "workflow" (or any queue you wish to use, of course),
and further has the effect of suspending the workflow. When the queue is emptied (meaning all tasks in it
performed), then the workflow is restarted. Each workflow step may be separately configured,
Like configurable submission, you can assign these task rules per collection, as well as having a default for any
collection.
As with task invocation from the administrative UI, workflow tasks need to have a Reporter configured in
submission-configuration.cfg.
would do approximately what the command line invocation did. the method "curate" just performs all the tasks
configured (you can add multiple tasks to a curator).
The above directs report output to standard out. Any class which implements Appendable may be set as the
reporter class.
would place a request on a named queue "monthly" to virus scan the collection. To read (and process) the queue,
we could for example:
use the command-line tool, but we could also read the queue programmatically. Any number of queues can be
defined and used as needed.
In the administrative UI curation "widget", there is the ability to both perform a task, but also place it on a queue for
later processing.
In the administrative UI, this code is translated into the word or phrase configured by the ui.statusmessages
property (discussed above) for display.
CS does not interpret or assign result strings, the task does it. A task may not assign a result, but the "best practice"
for tasks is to assign one whenever possible.
org.dspace.ctask.general.ClamAv = vscan,
org.community.ctask.ConflictTask = virusscan,
....
then the task property foo will resolve to the property named vscan.foo when called from ClamAv task, but
virusscan.foo when called from ConflictTask's code. Note that the "vscan" etc are locally assigned names, so we
can always prevent the "collisions" mentioned, and we make the tasks much more portable, since we remove the
"hard-coding" of config names.
Another use of task properties is to support multiple task profiles. Suppose we have a task that we want to operate
in one of two modes. A good example would be a mediafilter task that produces a thumbnail. We can either create
one if it doesn't exist, or run with "-force" which will create one regardless. Suppose this behavior was controlled by
a property in a config file. If we configured the task as "thumbnail", then we would have in (perhaps) [dspace]/
config/modules/thumbnail.cfg:
...other properties...
thumbnail.thumbnail.maxheight = 80
thumbnail.thumbnail.maxwidth = 80
thumbnail.forceupdate=false
The thumbnail generating task code would then resolve "forcedupdate" to see whether filtering should be forced.
But an obvious use-case would be to want to run force mode and non-force mode from the admin UI on different
occasions. To do this, one would have to stop Tomcat, change the property value in the config file, and restart, etc
However, we can use task properties to elegantly rescue us here. All we need to do is go into the config/modules
directory, and create a new file perhaps called: thumbnail.force.cfg. In this file, we put the properties:
thumbnail.force.thumbnail.maxheight = 80
thumbnail.force.thumbnail.maxwidth = 80
thumbnail.force.forceupdate=true
Then we add a new task (really just a new name, no new code) in curate.cfg:
org.dspace.ctask.general.ThumbnailTask = thumbnail
org.dspace.ctask.general.ThumbnailTask = thumbnail.force
Consider what happens: when we perform the task "thumbnail" (using taskProperties), it uses the thumbnail.*
properties and operates in "non-force" profile (since the value is false), but when we run the task
"thumbnail.force" the curation system uses the thumbnail.force.* properties. Notice that we did all this via
local configuration - we have not had to touch the source code at all to obtain as many "profiles" as we would like.
See Task Properties in Curation Tasks(see page 539) for details of how properties are resolved in task code.
Task parameters
The procedure to set up curation tasks in Jython is described on a separate page: Curation tasks in
Jython(see page 543)
DSpace 1.8 includes limited (and somewhat experimental) support for deploying and running tasks written in
languages other than Java. Since version 6, Java has provided a standard way (API) to invoke so-called scripting or
dynamic language code that runs on the java virtual machine (JVM). Scripted tasks are those written in a language
accessible from this API. The exact number of supported languages will vary over time, and the degree of maturity
of each language, or suitability of the language for curation tasks will also vary significantly. However, preliminary
work indicates that Ruby (using the JRuby runtime) and Groovy may prove viable task languages.
Support for scripted tasks does not include any DSpace pre-installation of the scripting language itself - this must
be done according to the instructions provided by the language maintainers, and typically only requires a few
additional jars on the DSpace classpath. Once one or more languages have been installed into the DSpace
deployment, task support is fairly straightforward. One new property must be defined in [dspace]/config/
modules/curate.cfg:
curate.script.dir = ${dspace.dir}/scripts
This merely defines the directory location (usually relative to the deployment base) where task script files should be
kept. This directory will contain a "catalog" of scripted tasks named task.catalog that contains information
needed to run scripted tasks. Each task has a 'descriptor' property with value syntax:
<engine>|<relFilePath>|<implClassCtor>
An example property for a link checking task written in Ruby might be:
linkchecker = ruby|rubytask.rb|LinkChecker.new
This descriptor means that a "ruby" script engine will be created, a script file named "rubytask.rb" in the
directory <script.dir> will be loaded and the resolver will expect an evaluation of "LinkChecker.new" will
provide a correct implementation object. Note that the task must be configured in all other ways just like java tasks
(in ui.tasknames, ui.taskgroups, etc).
Script files may embed their descriptors to facilitate deployment. To accomplish this, a script must include the
descriptor string with syntax:
$td=<descriptor> somewhere on a comment line. For example:
# My descriptor $td=ruby|rubytask.rb|LinkChecker.new
For reasons of portability, the <relFilePath> component may be omitted in this context. Thus, "$td=ruby||
LinkChecker.new" will be expanded to a descriptor with the name of the embedding file.
deactivated by means of configuration, if desired, without affecting system integrity. Those that require
configuration may be enabled (activated) by means editing DSpace configuration files. Each task is briefly described
in this section.
All bundled tasks are in the package org.dspace.ctask.general. So, for example, to activate the no-operation
task, which is implemented in the class NoOpCurationTask, one would configure:
where the left column is the count of bitstreams of the named format and the letter in parentheses is an
abbreviation of the repository-assigned support level for that format:
U Unsupported
K Known
S Supported
The profiler will operate on any DSpace object. If the object is an item, then only that item's bitstreams are profiled;
if a collection, all the bitstreams of all the items; if a community, all the items of all the collections of the
community.
[taskcode].template=http://www.sherpa.ac.uk/romeo/api29.php?issn={dc.identifier.issn}
When the task runs, it will replace '{dc.identifier.issn}' with the value of that field in the item, If the field has multiple
values, the first one will be used. As a web service, the call to the above URL will return an XML document containing
information (including the publisher name) about that ISSN. We need to describe what to do with this response
document, i.e. what elements we want to extract, and what to do with the extracted content. This description is
encoded in a property called the 'datamap'. Using the example service above we might have:
[taskcode].datamap=//publisher/name=>dc.publisher,//romeocolor
Each separate instruction is separated by a comma, so there are 2 instructions in this map. The first instruction
essentially says: find the XML element 'publisher name' and assign the value or values of this element to the
'dc.publisher' field of the item. The second instruction says: find the XML element 'romeocolor', but do not add it to
the DSpace item metadata - simply add it to the task result string (so that it can be seen by the person running the
task). You can have as many instructions as you like in a datamap, which means that you can retrieve multiple
values from a single web service call. A little more formally, each instruction consists of one to three parts. The first
(mandatory) part identifies the desired data in the response document. The syntax (here '//publisher/name') is an
XPath 1.0 expression, which is the standard language for navigating XML trees. If the value is to be assigned to the
DSpace item metadata, then 2 other parts are needed. The first is the 'mapping symbol' (here '=>'), which is used to
determine how the assignment should be made. There are 3 possible mapping symbols, shown here with their
meanings:
'->' mapping will add to any existing value(s) in the item field
'=>' mapping will replace any existing value(s) in the item field
'~>' mapping will add *only if* item field has no existing value(s)
The third part (here 'dc.publisher') is simply the name of the metadata field to be updated. These two mandatory
properties (template and datamap) are sufficient to describe a large number of web services. All that is required to
enable this task is to edit 'config/modules/curate.cfg' (or your local.cfg), and add 'issn2pubname' to the
list of tasks:
If you wish the task to be available in the Admin UI, see the Invocation from the Admin UI(see page 0) documentation
(above) about how to configure it. The remaining sections describe some more specialized needs using the
MetadataWebService task.
HTTP Headers
For some web services, protocol and other information is expressed not in the service URL, but in HTTP headers.
Examples might be HTTP basic auth tokens, or requests for a particular media type response. In these cases, simply
add a property to the configuration file (our example was 'issn2pubname.cfg') containing all headers you wish to
transmit to the service:
You can specify any number of headers, just separate them with a 'double-pipe' ('||'). Ensure that any commas in
values are escaped (with backslash comma, i.e. '\,').
Transformations
One potential problem with the simple parameter substitutions performed by the task is that the service might
expect a different format or expression of a value than the way it is stored in the item metadata. For example, a DOI
service might expect a bare prefix/suffix notation ('10.000/12345'), whereas the DSpace metadata field might have a
URI representation ('http://dx.doi.org/10.000/12345').(see page 153) In these cases one can declare a 'transformation'
of a value in the template. For example:
[taskcode].template=http://www.crossref.org/openurl/?id={doi:dc.relation.isversionof}&format=unixref
The 'doi:' prepended to the metadata field name declares that the value of the 'dc.relation.isversionof' field should
be transformed before the substitution into the template using a transformation named 'doi'. The transformation is
itself defined in the same configuration file as follows:
This would be read as: exclude the value string up to the occurrence of '10.', then truncate any characters after
length 60. You may define as many transformations as you want in any task, although generally 1 or 2 will suffice.
They keywords 'match', 'trunc', etc are names of 'functions' to be applied (in the order entered). The currently
available functions are:
When the task is run, if the transformation results in an invalid state (e.g. cutting more characters than there are in
the value), the un-transformed value will be used and the condition will be logged. Transformations may also be
applied to values returned from the web service. That is, one can apply the transformation to a value before
assigning it to a metadata field. In this case, the declaration occurs in the datamap property, not the template:
[taskcode].datamap=//publisher/name=>shorten:dc.publisher,//romeocolor
Here the task will apply the 'shorten' transformation (which must be defined in the same config file) before
assigning the value to 'dc.publisher'.
[taskcode].separator=||
for example, it becomes easy to parse the result string and preserve spaces in the values. This use of the result
string can be very powerful, since you are essentially creating a map of returned values, which can then be used to
populate a user interface, or any other way you wish to exploit the data (drive a workflow, etc).
batch to update a set of items, etc. One excellent configuration is to wire these tasks into submission workflow, so
that 'automatic cataloging' of many fields can be performed on ingest.
#---------------------------------------------------------------#
#----------TRANSLATOR CURATION TASK CONFIGURATIONS--------------#
#---------------------------------------------------------------#
# Configuration properties used solely by MicrosoftTranslator #
# Curation Task (uses Microsoft Translation API v2) #
#---------------------------------------------------------------#
## Translation field settings
##
## Authoritative language field
## This will be read to determine the original language an item was submitted in
## Default: dc.language
translator.field.language = dc.language
## Metadata fields you wish to have translated
translator.field.targets = dc.description.abstract, dc.title, dc.type
## Translation language settings
##
## If the language field configured in translate.field.language is not present
## in the record, set translate.language.default to a default source language
## or leave blank to use autodetection
translator.language.default = en
## Target languages for translation
translator.language.targets = de, fr
## Translation API settings
##
## Your Bing API v2 key and/or Google "Simple API Access" Key
## (note to Google users: your v1 API key will not work with Translate v2,
## you will need to visit https://code.google.com/apis/console and activate
## a Simple API Access key)
##
## You do not need to enter a key for both services.
translator.api.key.microsoft = YOUR_MICROSOFT_API_KEY_GOES_HERE
translator.api.key.google = YOUR_GOOGLE_API_KEY_GOES_HERE
DSpace Configuration
In [dspace]/config/modules/curate.cfg, activate the task:
• Add the plugin to the list of curation tasks.
• Optionally, add the vscan friendly name to the configuration to enable it in the administrative it in the
administrative user interface.
188 http://www.clamav.net/
189 http://www.clamav.net/doc/latest/clamdoc.pdf
190 http://www.clamav.net/doc/latest/clamdoc.pdf
191 http://www.clamav.net/doc/latest/clamdoc.pdf
192 http://www.clamav.net/doc/latest/clamdoc.pdf
clamav.service.host = 127.0.0.1
# Change if not running on the same host as your DSpace installation.
clamav.service.port = 3310
# Change if not using standard ClamAV port
clamav.socket.timeout = 120
# Change if longer timeout needed
clamav.scan.failfast = false
# Change only if items have large numbers of bitstreams
• Finally, if desired virus scanning can be enabled as part of the submission process upload file step. In
[dspace]/config/modules, edit configuration file submission-curation.cfg:
submission-curation.virus-scan = true
submission-curation.virus-scan = true
Command Line
4.4.1.1 Introduction
Terminology
We don't want to give a full introduction into the Semantic Web and its technologies here as this can be easily found
in many places on the web. Nevertheless, we want to give a short glossary of the terms used most often in this
context to make the following documentation more readable.
Semantic Web The term "Semantic Web" refers to the part of the Internet containing Linked
Data. Just like the World Wide Web, the Semantic Web is also woven
together by links among the data.
193 http://googlewebmastercentral.blogspot.de/2008/04/retiring-support-for-oai-pmh-in.html
194 http://www.w3.org/standards/techs/rdf#w3c_all
195 http://www.w3.org/TR/sparql11-query/
Linked Data Data in RDF, following the Linked Data Principles196 are called Linked Data.
The Linked Data Principles describe the expected behavior of data
Linked Open Data publishers who shall ensure that the published data are easy to find, easy to
retrieve, can be linked easily and link to other data as well.
Linked Open Data is Linked Data published under an open license. There is
no technical difference between Linked Data and Linked Open Data (often
abbreviated as LOD). It is only a question of the license used to publish it.
Triple Store A triple store is a database to natively store data following the RDF model.
Just as you have to provide a relational database for DSpace, you have to
provide a Triple Store for DSpace if you want to use the LOD support.
SPARQL The SPARQL Protocol and RDF Query Language is a family of protocols to
query triple stores. Since version 1.1, SPARQL can be used to manipulate
triple stores as well, to store, delete or update data in triple stores. DSpace
uses SPARQL 1.1 Graph Store HTTP Protocol and SPARQL 1.1 Query
Language to communicate with the Triple Store. The SPARQL 1.1 Query
Language is often referred to simply as SPARQL, so expect the SPARQL 1.1
Query Language if no other specific protocol out of the SPARQL family is
explicitly specified.
SPARQL endpoint A SPARQL endpoint is a SPARQL interface of a triple store. Since SPARQL 1.1,
a SPARQL endpoint can be either read-only, allowing only to query the
stored data; or readable and writable, allowing to modify the stored data as
well. When talking about a SPARQL endpoint without specifying which
SPARQL protocol is used, an endpoint supporting SPARQL 1.1 Query
Language is meant.
Architecture / Concept
To publish content stored in DSpace as Linked (Open) Data, the data have to be converted into RDF. The conversion
into RDF has to be configurable as different DSpace instances may use different metadata schemata, different
persistent identifiers (DOI, Handle, ...) and so on. Depending on the content to convert, configuration and other
parameters, conversion may be time-intensive and impact performance. Content of repositories is much more
often read then created, deleted or changed because the main goal of repositories is to safely store their contents.
196 http://www.w3.org/DesignIssues/LinkedData.html
For this reason, the content stored within DSpace is converted and stored in a triple store immediately after it is
created or updated. The triple store serves as a cache and provides a SPARQL endpoint to make the converted data
accessible using SPARQL. The conversion is triggered automatically by the DSpace event system and can be started
manually using the command line interface – both cases are documented below. There is no need to backup the
triple store, as all data stored in the triple store can be recreated from the contents stored elsewhere in DSpace (in
the assetstore(s) and the database). Beside the SPARQL endpoint, the data should be published as RDF serialization
as well. With dspace-rdf DSpace offers a module that loads converted data from the triple store and provides it as
an RDF serialization. It currently supports RDF/XML, Turtle and N-Triples.
Repositories use Persistent Identifiers to make content citable and to address content. Following the Linked Data
Principles, DSpace uses a Persistent Identifier in the form of HTTP(S) URIs, converting a Handle to http://
hdl.handle.net/<handle> and a DOI to http://dx.doi.org/<doi>. Altogether, DSpace Linked Data support spans all
three Layers: the storage layer with a triple store, the business logic with classes to convert stored contents into
RDF, and the application layer with a module to publish RDF serializations. Just like DSpace allows you to choose
Oracle or Postgresql as the relational database, you may choose between different triple stores. The only
requirements are that the triple store must support SPARQL 1.1 Query Language and SPARQL 1.1 Graph Store HTTP
Protocol which DSpace uses to store, update, delete and load converted data in/out of the triple store and uses the
triple store to provide the data over a SPARQL endpoint.
The org.dspace.rdf.conversion197 package contains the classes used to convert the repository content to RDF. The
conversion itself is done by plugins. The org.dspace.rdf.conversion.ConverterPlugin198 interface is really simple, so
take a look at it you if can program in Java and want to extend the conversion. The only thing important is that
plugins must only create RDF that can be made publicly available, as the triple store provides it using a sparql
endpoint for which the DSpace access restrictions do not apply. Plugins converting metadata should check whether
a specific metadata field needs to be protected or not (see org.dspace.app.util.MetadataExposure199 on how to
check that). The MetadataConverterPlugin200 is heavily configurable (see below) and is used to convert the
metadata of Items. The StaticDSOConverterPlugin201 can be used to add static RDF Triples (see below). The
SimpleDSORelationsConverterPlugin202 creates links between items and collections, collections and communities,
subcommunitites and their parents, and between top-level communities and the information representing the
repository itself.
As different repositories uses different persistent identifiers to address their content, different algorithms to create
URIs used within the converted data can be implemented. Currently HTTP(S) URIs of the repository (called local
URIs), Handles and DOIs can be used. See the configuration part of this document for further information. If you
want to add another algorithm, take a look at the org.dspace.rdf.storage.URIGenerator203 interface.
197 https://github.com/DSpace/DSpace/tree/master/dspace-api/src/main/java/org/dspace/rdf/conversion
198 https://github.com/DSpace/DSpace/blob/master/dspace-api/src/main/java/org/dspace/rdf/conversion/
ConverterPlugin.java
199 https://github.com/DSpace/DSpace/blob/master/dspace-api/src/main/java/org/dspace/app/util/MetadataExposure.java
200 https://github.com/DSpace/DSpace/blob/master/dspace-api/src/main/java/org/dspace/rdf/conversion/
MetadataConverterPlugin.java
201 https://wiki.duraspace.org/dspace-api/src/main/java/org/dspace/rdf/conversion/StaticDSOConverterPlugin.java
202 https://wiki.duraspace.org/dspace-api/src/main/java/org/dspace/rdf/conversion/SimpleDSORelationsConverterPlugin.java
203 https://github.com/DSpace/DSpace/blob/master/dspace-api/src/main/java/org/dspace/rdf/storage/URIGenerator.java
Make Fuseki connect to localhost only, by using the argument --localhost when launching if you use the
configuration provided with DSpace! The configuration contains a writeable SPARQL endpoint that allows
any connection to change/delete the content of your triple store.
Use Apache mod proxy, mod rewrite or any other appropriate web server/proxy to make localhost:3030/
dspace/sparql readable from the internet. Use the address under which it is accessible as the address of
your public sparql endpoint (see the property public.sparql.endpoint in the configuration reference(see
page 165) below.).
The configuration provided within DSpace makes it store the files for the triple store under [dspace-install]/
triplestore. Using this configuration, Fuseki provides three SPARQL endpoints: two read-only endpoints and one
that can be used to change the data of the triple store. You should not use this configuration if you let Fuseki
connect to the internet directly as it would make it possible for anyone to delete, change or add information to
the triple store. The option --localhost tells Fuseki to listen only on the loopback device. You can use Apache
mod_proxy or any other web or proxy server to make the read-only SPARQL endpoint accessible from the internet.
With the configuration described, Fueski listens to the port 3030 using HTTP. Using the address http://localhost:
3030/ you can connect to the Fuseki Web UI. http://localhost:3030/dspace/data addresses a writeable SPARQL 1.1
HTTP Graph Store Protocol endpoint, and http://localhost:3030/dspace/get a read-only one. Under http://localhost:
3030/dspace/sparql a read-only SPARQL 1.1 Query Language endpoint can be found. The first one of these
endpoints must be not accessible by the internet, while the last one should be accessible publicly.
204 http://jena.apache.org/documentation/serving_data/index.html#download-fuseki
Configuration Reference
There are several configuration files to configure DSpace's LOD support. The main configuration file can be found
under [dspace-source]/dspace/config/modules/rdf.cfg. Within DSpace we use Spring to define which
classes to load. For DSpace's LOD support this is done within [dspace-source]/dspace/config/spring/api/
rdf.xml. All other configuration files are positioned in the directory [dspace-source]/dspace/config/
modules/rdf/. Configurations in rdf.cfg can be modified directly, or overridden via your local.cfg config file
(see Configuration Reference(see page 552)). You'll have to configure where to find and how to connect to the triple
store. You may configure how to generate URIs to be used within the generated Linked Data and how to convert the
contents stored in DSpace into RDF. We will guide you through the configuration file by file.
[dspace-source]/dspace/config/modules/rdf.cfg
Pro rdf.enabled
pert
y:
Info Defines whether the RDF endpoint is enabled or disabled (disabled by default). If enabled, the RDF
rma endpoint is available at ${dspace.server.url}/${rdf.path}. Changing this value requires rebooting your
tion servlet container (e.g. Tomcat)
al
Not
e:
Pro rdf.path
pert
y:
Info Defines the path of the RDF endpoint, if enabled. For example, a value of "rdf" (the default) means the
rma RDF interface/endpoint is available at ${dspace.server.url}/rdf (e.g. if "dspace.server.url = http://
tion localhost:8080/server", then it'd be available at "http://localhost:8080/server/rdf". Changing this value
al requires rebooting your servlet container (e.g. Tomcat)
Not
e:
Pro rdf.contentNegotiation.enable
pert
y:
Info Defines whether content negotiation should be activated. Set this true, if you use Linked Data support.
rma
tion
al
Not
e:
Pro rdf.contextPath
pert
y:
Info The content negotiation needs to know where to refer if anyone asks for RDF serializations of content
rma stored within DSpace. This property sets the URL where the dspace-rdf module can be reached on the
tion Internet (depending on how you deployed it).
al
Not
e:
Pro rdf.public.sparql.endpoint
pert
y:
Info Address of the read-only public SPARQL endpoint supporting SPARQL 1.1 Query Language.
rma
tion
al
Not
e:
Pro rdf.storage.graphstore.endpoint
pert
y:
Info Address of a writable SPARQL 1.1 Graph Store HTTP Protocol endpoint. This address is used to create,
rma update and delete converted data in the triple store. If you use Fuseki with the configuration provided as
tion part of DSpace 5, you can leave this as it is. If you use another Triple Store or configure Fuseki on your
al own, change this property to point to a writeable SPARQL endpoint supporting the SPARQL 1.1 Graph
Not Store HTTP Protocol.
e:
Pro rdf.storage.graphstore.authentication
pert
y:
Exa rdf.storage.graphstore.authentication = no
mpl
e
Valu
e:
Info Defines whether to use HTTP Basic authentication to connect to the writable SPARQL 1.1 Graph Store
rma HTTP Protocol endpoint.
tion
al
Not
e:
Pro rdf.storage.graphstore.login
pert rdf.storage.graphstore.password
ies:
Info Credentials for the HTTP Basic authentication if it is necessary to connect to the writable SPARQL 1.1
rma Graph Store HTTP Protocol endpoint.
tion
al
Not
e:
Pro rdf.storage.sparql.endpoint
pert
y:
Info Besides a writable SPARQL 1.1 Graph Store HTTP Protocol endpoint, DSpace needs a SPARQL 1.1 Query
rma Language endpoint, which can be read-only. This property allows you to set an address to be used to
tion connect to such a SPARQL endpoint. If you leave this property empty the property $
al {rdf.public.sparql.endpoint} will be used instead.
Not
e:
Pro rdf.storage.sparql.authentication
pert rdf.storage.sparql.login
ies: rdf.storage.sparql.password
Info As for the SPARQL 1.1 Graph Store HTTP Protocol you can configure DSpace to use HTTP Basic
rma authentication to authenticate against the (read-only) SPARQL 1.1 Query Language endpoint.
tion
al
Not
e:
Pro rdf.converter.DSOtypes
pert
y:
Info Define which kind of DSpaceObjects should be converted. Bundles and Bitstreams will be converted as
rma part of the Item they belong to. Don't add EPersons here unless you really know what you are doing. All
tion converted data is stored in the triple store that provides a publicly readable SPARQL endpoint. So all
al data converted into RDF is exposed publicly. Every DSO type you add here must have an HTTP URI to be
Not referenced in the generated RDF, which is another reason not to add EPersons here currently.
e:
Pro rdf.constant.data.GENERAL
pert rdf.constant.data.COLLECTION
ies: rdf.constant.data.COMMUNITY
rdf.constant.data.ITEM
rdf.constant.data.SITE
Info These properties define files to read static data from. These data should be in RDF, and by default Turtle
rma is used as serialization. The data in the file referenced by the property ${rdf.constant.data.GENERAL} will
tion be included in every Entity that is converted to RDF. E.g. it can be used to point to the address of the
al public readable SPARQL endpoint or may contain the name of the institution running DSpace.
Not
e: The other properties define files that will be included if a DSpace Object of the specified type (collection,
community, item or site) is converted. This makes it possible to add static content to every Item, every
Collection, ...
Pro rdf.metadata.mappings
pert
y:
Info Defines the file that contains the mappings for the MetadataConverterPlugin. See below the description
rma of the configuration file [dspace-source]/dspace/config/modules/rdf/metadata-rdf-mapping.ttl.
tion
al
Not
e:
Pro rdf.metadata.schema
pert
y:
Info Configures the URL used to load the RDF Schema of the DSpace Metadata RDF mapping Vocabulary.
rma Using a file:// URI makes it possible to convert DSpace content without having an internet connection.
tion The version of the schema has to be the right one for the used code. In DSpace 5.0 we use the version
al 0.2.0. This Schema can be found here as well: http://digital-repositories.org/ontologies/dspace-
Not metadata-mapping/0.2.0. The newest version of the Schema can be found here: http://digital-
e: repositories.org/ontologies/dspace-metadata-mapping/205.
Pro rdf.metadata.prefixes
pert
y:
Info If you want to use prefixes in RDF serializations that support prefixes, you can define these prefixes in the
rma file referenced by this property.
tion
al
Not
e:
205 http://digital-repositories.org/ontologies/dspace-metadata-mapping/0.2.0
Pro rdf.simplerelations.prefixes
pert
y:
Info If you want to use prefixes in RDF serializations that support prefixes, you can define these prefixes in the
rma file referenced by this property.
tion
al
Not
e:
Pro rdf.simplerelations.site2community
pert
y:
Info Defines the predicates used to link from the data representing the whole repository to the top level
rma communities. Defining multiple predicates separated by commas will result in multiple triples.
tion
al
Not
e:
Pro rdf.simplerelations.community2site
pert
y:
Info Defines the predicates used to link from the top level communities to the data representing the whole
rma repository. Defining multiple predicates separated by commas will result in multiple triples.
tion
al
Not
e:
Pro rdf.simplerelations.community2subcommunity
pert
y:
Info Defines the predicates used to link from communities to their subcommunities. Defining multiple
rma predicates separated by commas will result in multiple triples.
tion
al
Not
e:
Pro rdf.simplerelations.subcommunity2community
pert
y:
Info Defines the predicates used to link from subcommunities to the communities they belong to. Defining
rma multiple predicates separated by commas will result in multiple triples.
tion
al
Not
e:
Pro rdf.simplerelations.community2collection
pert
y:
Info Defines the predicates used to link from communities to their collections. Defining multiple predicates
rma separated by commas will result in multiple triples.
tion
al
Not
e:
Pro rdf.simplerelations.collection2community
pert
y:
Info Defines the predicates used to link from collections to the communities they belong to. Defining multiple
rma predicates separated by commas will result in multiple triples.
tion
al
Not
e:
Pro rdf.simplerelations.collection2item
pert
y:
Info Defines the predicates used to link from collections to their items. Defining multiple predicates
rma separated by commas will result in multiple triples.
tion
al
Not
e:
Pro rdf.simplerelations.item2collection
pert
y:
206 http://purl.org/dc/terms/hasPart,%5C%22%20data-mce-href=
Info Defines the predicates used to link from items to the collections they belong to. Defining multiple
rma predicates separated by commas will result in multiple triples.
tion
al
Not
e:
Pro rdf.simplerelations.item2bitstream
pert
y:
Info Defines the predicates used to link from item to their bitstreams. Defining multiple predicates separated
rma by commas will result in multiple triples.
tion
al
Not
e:
[dspace-source]/dspace/config/modules/rdf/constant-data-*.ttl
As described in the documentation of the configuration file [dspace-source]/dspace/config/modules/rdf.cfg, the
constant-data-*.ttl files can be used to add static RDF to the converted data. The data are written in Turtle, but if
you change the file suffix (and the path to find the files in rdf.cfg) you can use any other RDF serialization you like
to. You can use this, for example, to add a link to the public readable SPARQL endpoint, add a link to the repository
homepage, or add a triple to every community or collection defining it as an entity of a specific type like a
bibo:collection. The content of the file [dspace-source]/dspace/config/modules/rdf/constant-data-general.ttl will
be added to every DSpaceObject that is converted. The content of the file [dspace-source]/dspace/config/modules/
rdf/constant-data-community.ttl to every community, the content of the file [dspace-source]/dspace/config/
modules/rdf/constant-data-collection.ttl to every collection and the content of the file [dspace-source]/dspace/
config/modules/rdf/constant-data-item.ttl to every Item. You can use the file [dspace-source]/dspace/config/
modules/rdf/constant-data-site.ttl to specify data representing the whole repository.
[dspace-source]/dspace/config/modules/rdf/metadata-rdf-mapping.ttl
This file should contain several metadata mappings. A metadata mapping defines how to map a specific metadata
field within DSpace to a triple that will be added to the converted data. The MetadataConverterPlugin uses these
metadata mappings to convert the metadata of a item into RDF. For every metadata field and value it looks if any of
207 http://purl.org/dc/terms/isPartOf,
208 http://purl.org/dc/terms/hasPart,%5C%22%20data-mce-href=
the specified mappings matches. If one does, the plugin creates the specified triple and adds it to the converted
data. In the file you'll find a lot of examples on how to define such a mapping.
For every mapping a metadata field name has to be specified, e.g. dc.title, dc.identifier.uri. In addition you can
specify a condition that is matched against the field's value. The condition is specified as a regular expression (using
the syntax of the java class java.util.regex.Pattern). If a condition is defined, the mapping will be used only on fields
those values which are matched by the regex defined as condition.
The triple to create by a mapping is specified using reified RDF statements. The DSpace Metadata RDF Mapping
Vocabulary209 defines some placeholders that can be used. The most important placeholder is dm:DSpaceObjectIRI
which is replaced by the URI used to identify the entity being converted to RDF. That means if a specific Item is
converted the URI used to address this Item in RDF will be used instead of dm:DSpaceObjectIRI. There are three
placeholders that allow reuse of the value of a meta data field. dm:DSpaceValue will be replace by the value as it is.
dm:LiteralGenerator allows one to specify a regex and replacement string for it (see the syntax of the java classes
java.util.regex.Pattern and java.util.regex.Matcher) and creates a Literal out of the field value using the regex and
the replacement string. dm:ResourceGenerator does the same as dm:LiteralGenerator but it generates a HTTP(S)
URI that is used in place. So you can use the resource generator to generate URIs containing modified field values
(e.g. to link to classifications). If you know regular expressions and turtle, the syntax should be quite self
explanatory.
[dspace-source]/dspace/config/modules/rdf/fuseki-assembler.ttl
This is a configuration for the triple store Fuseki of the Apache Jena project. You can find more information on the
configuration it provides in the section Install a Triple Store(see page 164) above.
[dspace-source]/dspace/config/spring/api/rdf.xml
This file defines which classes are loaded by DSpace to provide the RDF functionality. There are two things you
might want to change: the class that is responsible to generate the URIs to be used within the converted data, and
the list of Plugins used during conversion. To change the class responsible for the URIs, change the following line:
This line defines how URIs should be generated, to be used within the converted data. The LocalURIGenerator
generates URIs using the ${dspace.url} property. The HandleURIGenerator uses handles in form of HTTP URLs. It
uses the property ${handle.canonical.prefix} to convert handles into HTTPS URLs. The class
org.dspace.rdf.storage.DOIURIGenerator uses DOIs in the form of HTTP URLs if possible, or local URIs if there are no
DOIs. It uses the DOI resolver "http://dx.doi.org" to convert DOIs into HTTP URLs. The class
org.dspace.rdf.storage.DOIHandleGenerator does the same but uses Handles as fallback if no DOI exists. The
fallbacks are necessary as DOIs are currently used for Items only and not for Communities or Collections.
All plugins that are instantiated within the configuration file will automatically be used during the conversion. Per
default the list looks like the following:
209 http://digital-repositories.org/ontologies/dspace-metadata-mapping/
<!-- configure all plugins the converter should use. If you don't want to
use a plugin, remove it here. -->
<bean id="org.dspace.rdf.conversion.SimpleDSORelationsConverterPlugin" class="org.dspace.rdf.conversion
.SimpleDSORelationsConverterPlugin"/>
<bean id="org.dspace.rdf.conversion.MetadataConverterPlugin" class="org.dspace.rdf.conversion.MetadataC
onverterPlugin"/>
<bean id="org.dspace.rdf.conversion.StaticDSOConverterPlugin" class="org.dspace.rdf.conversion.StaticDS
OConverterPlugin"/>
You can remove plugins if you don't want them. If you develop a new conversion plugin, you want to add its class to
this list.
Maintenance
As described above (see page 164)you should add rdf to the property event.dispatcher.default.consumers and
in dspace.cfg. This configures DSpace to automatically update the triple store every time the publicly available
content of the repository is changed. Nevertheless there is a command line tool that gives you the possibility to
update the content of the triple store. As the triple store is used as a cache only, you can delete its content and
reindex it every time you think it is necessary of helpful. The command line tool can be started by the following
command which will show its online help:
The online help should give you all necessary information. There are commands to delete one specific entity; to
delete all information stored in the triple store; to convert one item, one collection or community (including all
subcommunities, collections and items) or to convert the complete content of your repository. If you start using the
Linked Open Data support on a repository that already contains content, you should run [dspace-install]/
bin/dspace rdfizer --convert-all once.
Every time content of DSpace is converted or Linked Data is requested, DSpace will try to connect to the triple store.
So ensure that it is running (as you do with e.g. your sevlet container or relational database).
210 https://wiki.lyrasis.org/display/DSPACE/DSpace+Release+7.0+Status
211 https://wiki.lyrasis.org/display/DSPACE/DSpace+Release+7.0+Status
Property: sword-client.targets
Example value:
sword-client.targets = http://localhost:8080/sword/
servicedocument, \
http://client.swordapp.org/client/servicedocument, \
http://dspace.swordapp.org/sword/servicedocument, \
http://sword.eprints.org/sword-app/servicedocument, \
http://sword.intralibrary.com/IntraLibrary-Deposit/service, \
http://fedora.swordapp.org/sword-fedora/servicedocument
Informational note: List of remote Sword servers. Used to build the drop-down list of
selectable SWORD targets.
Property: sword-client.file-types
Informational note: List of file types from which the user can select. If a type is not supported
by the remote server
it will not appear in the drop-down list.
Property: sword-client.package-formats
Example value:
sword-client.package-formats = http://purl.org/net/sword-types/
METSDSpaceSIP
Informational note: List of package formats from which the user can select. If a format is not
supported by the remote server
it will not appear in the drop-down list.
OAI Harvesting is not available in DSpace 7.0. It is scheduled to be restored in a later 7.x release (currently
7.1), see DSpace Release 7.0 Status212
You may also choose to enable the OAI-ORE Harvester. This OAI-ORE Harvester allows one DSpace installation to
harvest Items (via OAI-ORE) from another DSpace Installation (or any other system supporting OAI-ORE). Items are
harvested from a remote DSpace Collection into a local DSpace Collection. Harvesting can also be scheduled to run
automatically (or by demand).
See OAI - Harvesting from another DSpace(see page 181)
4.4.4 OAI
212 https://wiki.lyrasis.org/display/DSPACE/DSpace+Release+7.0+Status
OAI-PMH Server
In the following sections and subpages, you will learn how to configure OAI-PMH server and activate additional OAI-
PMH crosswalks. The user is also referred to OAI-PMH Data Provider(see page 654) for greater depth details of the
program.
The OAI-PMH Interface may be used by other systems to harvest metadata records from your DSpace.
If you modify either of these configuration, you must restart your Servlet Container (usually Tomcat).
• You can test that it is working by sending a request to: [dspace.server.url]/[oai.path]/request?
verb=Identify (e.g. http://localhost:8080/server/oai/request?verb=Identify)
• The response should look similar to the response from the DSpace Demo Server: http://demo.dspace.org/
oai/request?verb=Identify
If you're using a recent browser, you should see a HTML page describing your repository. What you're getting from
the server is in fact an XML file with a link to an XSLT stylesheet that renders this HTML in your browser (client-side).
Any browser that cannot interpret XSLT will display pure XML. The default stylesheet is located in [dspace-
source]/dspace-oai/src/main/resources/static/style.xsl and can be changed by configuring the
stylesheet attribute of the Configuration element in [dspace]/config/crosswalks/oai/xoai.xml.
Relevant Links
• OAI 2.0 Server(see page 189) - basic information needed to configure and use the OAI Server in DSpace
• OAI-PMH Data Provider 2.0 (Internals)(see page 186) - information on how it's implemented
• http://www.openarchives.org/pmh/ - information on the OAI-PMH protocol and its usage (not
DSpace-specific)
213 https://wiki.lyrasis.org/display/DSDOC5x/Scheduled+Tasks+via+Cron
# Update the OAI-PMH index with the newest content (and re-optimize that index) at midnight every day
# NOTE: ONLY NECESSARY IF YOU ARE RUNNING OAI-PMH
# (This ensures new content is available via OAI-PMH and ensures the OAI-PMH index is optimized for better
performance)
0 0 * * * [dspace.dir]/bin/dspace oai import -o > /dev/null
More information about the dspace oai commandline tool can be found in the OAI Manager(see page 191)
documentation.
214 https://wiki.lyrasis.org/display/DSPACE/DSpace+Release+7.0+Status
Property: oai.harvester.eperson
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: oai.url
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 ${dspace.baseUrl}/oai will work
for a typical installation, but should be changed if appropriate. Please note
that dspace.baseUrl is defined in your dspace.cfg configuration file.
Property: oai.ore.authoritative.source
Informational Note: The webapp responsible for minting the URIs for ORE Resource Maps. If
using oai, the oai.url config value must be set.
• When set to 'oai', all URIs in ORE Resource Maps will be relative to the
OAI-PMH URL (configured by oai.url above)