Thursday, May 19, 2022

MediaFilters for full-text search and thumbnail creation

Thumbnails of documents give more visibility for PDF documents of books, reports, articles and magazines. DSpace filter-media script extracts the PDF files for full-text search and thumbnail creation. and after submitting an item. Here is the view of an item without a thumbnail,


Filter-Media script can run either individually after submission of an item for the instant result. Apply the following command to run filter-media,

sudo /dspace/bin/dspace filter-media

The filter-Media command can be added to Crontab to schedule the filter-media command. Add these cron settings under the Linux user account which is running Tomcat (and owns the dspace installation directory).

crontab -e

If the DSpace run on a 24x7 working server machine, add the following entries into the Crontab,

# Run the media filter at 03:00 am every day.
0 3 * * * /dspace/bin/dspace filter-media

If you would like to change the timing, add a convenient time. See the different Cron time examples available here. See the thumbnails along with the item after applying the filter-media script.

References

Media filters for Transforming DSpace Content
https://wiki.lyrasis.org/display/DSDOC7x/Mediafilters+for+Transforming+DSpace+Content


Wednesday, May 18, 2022

OAI-PMH / OAI-ORE Harvester


OAI-PMH and OAI-ORE are the standards for the description and exchange of metadata and digital objects for archives. DSpace is compatible with OAI-PMH and OAI-ORE. It means, it's possible to import metadata and digital objects (e.g. text, images, data, and video) into DSpace. A DSpace administrator can import metadata from an e-journal/e-book/institutional repository (e.g. arxiv.org, doabooks.org, doaj.org). Harvesting metadata and digital objects from an external source will enrich the institutional repository run on DSpace and it also enhance the user experience. Following are the steps to harvest content from an external source.

Friday, October 11, 2019

Install DSpace 6.x on Debian 9 (Stretch)

Installation of prerequisite applications
Open  Applications > Accessories > Terminal and execute the following commands. Apply following commands,

sudo apt update
sudo apt upgrade
sudo apt install leafpad openjdk-8-jdk ant maven postgresql

Thursday, October 10, 2019

Install DSpace 6.x on Ubuntu 16.04 LTS

Installation of prerequisite applications
Open  Applications > Accessories > Terminal and execute the following commands. Apply following commands,

sudo apt update
sudo apt upgrade
sudo apt install leafpad openjdk-8-jdk ant maven

Thursday, November 2, 2017

Edit news in XMLUI front page


Open a Terminal and apply the following command to open the news file;

leafpad /dspace/config/news-xmlui.xml

Change the new content.
If you wish to add hyperlink of any website, please see the script beloow,

<xref target="https://mgucat.mgu.ac.in"><head>Online Catalogue</head></xref>

Save and close the file. Then see the changes in Dspace XMLUI interface.

Tuesday, October 31, 2017

http status 404


If Dspace shows the error of "http status 404", it means that Tomcat user has no permission to make changes in Dspace folders. 

The lack of Tomcat user  on Dspace folders can also generate problem of reluctant to upload the documents.

Solution
We need to give the permission to the Tomcat user to access Dspace folders, upload and assetstore. First find the Tomcat user name in the Dspace computer. My Tomcat user name is tomcat. Then assign all permissions to write changes in the folders. Open a Terminal and apply following commands:

sudo su
chown -R tomcat /dspace/upload 
chown -R tomcat /dspace/assetstore

Thursday, October 19, 2017

Customise the logo of XMLUI interface

Prepare a logo as follows (125x74 pixel). Here image format is PNG.

Place the image in home folder (e.g. /home/vimal).
Open a Linux Terminal and apply following command to copy the logo image to the folder.

cp logo.png /opt/tomcat/webapps/xmlui/themes/Mirage/images

Open the css file to change the logo image attribute. Open a terminal and apply following command. Here Dspace webapps directory located in /opt/tomcat/. Dspace webapps may be located in /dspace folder. Confirm it before the execution of the below command;

leafpad /opt/tomcat/webapps/xmlui/themes/Mirage/lib/css/style.css

Find the following portion from the file.

change the width and height of the logo. Change the logo name.
Go to the Dspace XMLUI home page and refresh the browser.