0% found this document useful (0 votes)
330 views10 pages

Dspace Cris Installation On Centos

This document provides instructions for installing DSpace CRIS 5.8 on CentOS and customizing the installation for the Ministry of Earth Sciences in Delhi, India. It outlines pre-requisites like Java, Tomcat, Maven and downloading the DSpace source. It then details steps for installing PostgreSQL, configuring Tomcat, installing DSpace and creating administrator accounts. It also describes customizing the installation by creating 17 new item types, 6 master tables, modifying metadata fields and values, and customizing headers, footers, navigation and item display based on requirements.

Uploaded by

Jaipal Singh
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
330 views10 pages

Dspace Cris Installation On Centos

This document provides instructions for installing DSpace CRIS 5.8 on CentOS and customizing the installation for the Ministry of Earth Sciences in Delhi, India. It outlines pre-requisites like Java, Tomcat, Maven and downloading the DSpace source. It then details steps for installing PostgreSQL, configuring Tomcat, installing DSpace and creating administrator accounts. It also describes customizing the installation by creating 17 new item types, 6 master tables, modifying metadata fields and values, and customizing headers, footers, navigation and item display based on requirements.

Uploaded by

Jaipal Singh
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
You are on page 1/ 10

6/30/2020 DSpace CRIS

installation on Centos
Version: DSpace CRIS 5.8
Prepared by: Amit Gupta
Document version: 1.0
Date: 30th June 2020
Source: https://wiki.lyrasis.org/display/DSPACECRIS/Installation
https://github.com/4Science/DSpace/tree/dspace-cris-5.8.0

INFORMATICS PUBLISHING LIMITED, BENGALURU


Dspace development manual– Dspace cris 5.8 1

Contents
1. Preparing your System for DSpace ( Pre-requisites)................................................................1
2. DSpace installation...................................................................................................................2
3. Created 17 items types and 6 master table based on the MoES requirements (PDF
attached)..........................................................................................................................................6
4. Customization Header/ Footer/ Navbar..................................................................................8
5. Customization: Item Display.....................................................................................................8

MINISTRY OF EARTH SCEINCES, DELHI INFORMATICS PUBLISHING LIMITED, BENGALURU


Dspace development manual– Dspace cris 5.8 2

1. Preparing your System for DSpace ( Pre-requisites).

a. As per standard installation guide you will need Java(JDK), Apache Tomcat, Apache
Maven,
b. Apache Ant, PostgreSQL and DSpace source. You can download the same from following
c. URLS (Look for appropriate versions 32/64 bits as per your OS)
d. JAVA (JDK) http://www.oracle.com/technetwork/java/javase/downloads/index.html
e. Apache Tomcat http://tomcat.apache.org/download-90.cgi
f. Apache Maven http://maven.apache.org/download.html
g. Apache Ant http://ant.apache.org/bindownload.cgi

2. DSpace installation

a. Login on the Centos server through NIC VPN


b. Login on Koha and Database server through putty.

MINISTRY OF EARTH SCEINCES, DELHI INFORMATICS PUBLISHING LIMITED, BENGALURU


Dspace development manual– Dspace cris 5.8 3

c. yum install postgresql-server


d. yum install ant
e. yum install maven
f. Go go /opt (We have download the apache tomcat)
g. Download JDK from https://www.oracle.com/in/java/technologies/javase/javase-jdk8-
downloads.html

h. Now we need to give “execute” permission to the source file (by default it is having only
read permission)

MINISTRY OF EARTH SCEINCES, DELHI INFORMATICS PUBLISHING LIMITED, BENGALURU


Dspace development manual– Dspace cris 5.8 4

i. Now Check, Which Java you are running by


java –version
openjdk version "1.8.0_252"
OpenJDK Runtime Environment (build 1.8.0_252-b09)
OpenJDK 64-Bit Server VM (build 25.252-b09, mixed mode)
j. Start the tomcat: Go to /opt/apache-tomcat-9.0.37/bin
./startup.sh

k. Create the PostgreSQL 'dspace' database


sudo -u dspace createdb -U dspace -E UNICODE dspace

MINISTRY OF EARTH SCEINCES, DELHI INFORMATICS PUBLISHING LIMITED, BENGALURU


Dspace development manual– Dspace cris 5.8 5

l. Download Dspace CRIS version 5.8 from


https://github.com/4Science/DSpace/tree/dspace-cris-5.8.0
m. tar -zxf dspace-cris-5.8-src-release.tar.gz
cd /build/dspace-cris-5.8-src-release
mvn -U package
n. cd dspace/target/dspace-installer
sudo ant fresh_install
o. /dspace/bin/dspace create-administrator

p. Go to /opt/apache-tomcat-9.0.12/conf
Vi server.xml
Add the line at the before </Host>
<Context path="/jspui" docBase="/dspace/webapps/jspui" allowLinking="true"/>
<Context path="/xmlui" docBase="/dspace/webapps/xmlui" allowLinking="true"/>
<Context path="/solr" docBase="/dspace/webapps/solr" allowLinking="true"/>
<Context path="/rest" docBase="/dspace/webapps/rest" />
<Context path="/oai" docBase="/dspace/webapps/oai" allowLinking="true"/>
q. Restart the tomcat go to /opt/apache-tomcat-9.0.12/bin
sh shutdown.sh
sh startup.sh
r. http://koha.moes.gov.in:8083/jspui/

MINISTRY OF EARTH SCEINCES, DELHI INFORMATICS PUBLISHING LIMITED, BENGALURU


Dspace development manual– Dspace cris 5.8 6

Login page:
http://koha.moes.gov.in:8083/jspui/password-login

3. Created 17 items types and 6 master table based on the MoES requirements
(PDF attached)
a. Created different values based on http://koha.moes.gov.in:8083/jspui/dspace-
admin/metadata-field-registry?dc_schema_id=1

b. Meta data values

MINISTRY OF EARTH SCEINCES, DELHI INFORMATICS PUBLISHING LIMITED, BENGALURU


Dspace development manual– Dspace cris 5.8 7

c. To populate values/Text fields in DSpace we have added XML Tag values in the input-
forms.xml file and path is /dspace/config/input-forms.xml
d. Item type Book form

MINISTRY OF EARTH SCEINCES, DELHI INFORMATICS PUBLISHING LIMITED, BENGALURU


Dspace development manual– Dspace cris 5.8 8

4. Customization Header/ Footer/ Navbar


Files Located in:
/dspace/webapps/jspui/layoutChange the HTML in header-default.jsp, footer-default.jsp,
navbar-default.jsp, location-bar.jsp, ...N.B.
If you don’t want something to be appeared in the site, just comment it using <%-- and --
%>Example: <%-- <form method="get" action="<%= request.getContextPath() %>/simple-
search"> --%>Remember:
After making the necessary changes, just refresh the page to get effects

5. Customization: Item Display


In dspace.cfg, add the new field to be displayed/ or change the order to display
webui.itemdisplay.default = dc.title, dc.title.alternative,
dc.contributor.author(itemcrisref), \dc.subject(nobreakline), dc.date.issued(date),
dc.publisher, \ dc.identifier.citation, dc.relation(itemcrisref), \
dc.relation.publication(itemref), dc.relation.dataset(itemref),\
dc.relation.ispartof(itemcrisref), dc.relation.ispartofseries,\
dc.relation.conference(itemcrisref), dc.description.abstract, dc.description, \
dc.identifier.govdoc, dc.identifier.uri(link), \ dc.identifier.isbn, dc.identifier.issn, \
dc.identifier.ismn, dc.identifier, dc.identifier.doi(doi), dc.rights, dc.ebook.url(link),
dc.video.link(link), dc.key
In Messages.properties
name the field to be
displayedmetadata.dc.title = Title
metadata.dc.title.alternative = Other Titles

MINISTRY OF EARTH SCEINCES, DELHI INFORMATICS PUBLISHING LIMITED, BENGALURU


Dspace development manual– Dspace cris 5.8 9

metadata.dc.contributor.* = Authors
metadata.dc.file.number = File number
metadata.dc.keywords.moes = MoES Keyword
metadata.dc.ebook.url = Ebook URL
metadata.dc.video.link = Video link

MINISTRY OF EARTH SCEINCES, DELHI INFORMATICS PUBLISHING LIMITED, BENGALURU

You might also like