Tuesday, November 25, 2014

Document viewer in DSpace with JSPUI

Open the [utils.js] file in any editor

sudo gedit /dspace/webapps/jspui/utils.js

copy the following code in utils.js file

-------------------copy bellow lines in utils.js at the end of all codes--------

var flag=0
$( document ).ready(function() {
  jQuery(this).css("text-decoration", "underline");
  jQuery(this).css("cursor", "pointer");

  jQuery(".metadataFieldLabel").each( function(index){     
if(jQuery(this).text().trim().replace(/:/g, '').replace(" ",'') == 'EnteredBy'){
} });
    jQuery(".standard").find("a[target='_blank']").on( "click", function() {   
jQuery( this ).parents('table').parents('table').eq(0).find('tr:last').remove();
jQuery( this ).parents('table').parents('table').eq(0).find('tr:last').remove();
jQuery( this ).parents('table').parents('table').eq(0).append("<tr><td><object style='overflow: auto;' data='"+jQuery( this ).attr('value')+"' type='application/pdf' width='100%' height='548px'></object><td><tr>");   
jQuery( this ).parents('table').parents('table').eq(0).append("<tr><td><object style='overflow: auto;' data='"+jQuery( this ).attr('value')+"' type='application/pdf' width='100%' height='548px'></object><td><tr>");   


---------------------end up the code-------------------------------------

Document viewer can look like bellow

Monday, November 17, 2014

How To Change Tomcat Default Port on Ubuntu debian

If two web server conflict the ports

(like Koha and DSpace)
Question: My koha is already occupied 8080 port by apache2 in my Ubuntu machine how do I install my tomcat6 for DSpace like?

ANS: the issue is the conflict that you may have with apache2. If you are not running an apache server on 8080 port for Koha. then it should not be an issue at all. Just keep in mind you cannot bind two daemons to the same port at the same time.
But if you are using your koha apache2 on 8080 port you will have to change your new installation dspace tomcat port from 8080 to any one. Like 8081

Make sure that apache2 is turned off; if it is installed to avoid conflict on port 8080.

sudo service apache2 stop

Check that there are not services listening onport 80

netstat -aunt | grep 80

Here is the basic configuration changes that need to be made in

sudo gedit /etc/tomcat6/server.xml

<!--Connectorport="8080" protocol="HTTP/1.1"
redirectPort="8443" /-->

port="8081" protocol="HTTP/1.1"
redirectPort="8443" />

Be sure to stop tomcat and then start tomcat and then test.

sudo /etc/init.d/tomcat6 stop

Your's truly,


Installing DSpace 4.2 on Ubuntu 12.01 or 14.04 LTS

Installation of Prerequisites

Open terminal prompt (command prompt window)  


sudo apt-get install openjdk-7-jdk

sudo apt-get install tasksel
sudo tasksel

Select the following packagespe

[*] LAMP server

[*] Tomcat Java server
(do not * postgresql database)

use press (space-bar key) for select the options
Press [OK] button for install selected the application 

Install the Compile / Build tools
sudo apt-get install ant maven

PostgreSql 9.3- Graphical Installer on Ubuntu 12.04/14.x (64bit system)

- for 64bit system type in command 

- for 32bit system type in command 
wget http://get.enterprisedb.com/postgresql/postgresql-9.3.5-3-linux.run

  • enter cd /home/user/
Creating Database [dspace]
  • go to program list {dash home} search pgadmin and click.
    the following dialog window will appeared on screen

Create login role as a {dspace} password a {dspace}, create database {dspace} (see the screen above)

Restart postgres service
/etc/init.d/postgresql-9.3 restart

sudo mkdir /dspace
sudo chown dspace /dspace

Downlaod DSpace 4.2 release

sudo mkdir /build
sudo chmod -R 777 /build
cd /build
Downlaod latest version of DSpace from the repository
sudo cp -r /home/usr/Downloads/dspace-4.2-src-release.tar.gz /build/

cd /build
tar -xvzf dspace-4.2-src-release.tar.gz

cd /build/dspace-4.2-src-release
mvn -U packag OR mvn install

Configure Tomcat to know about the DSpace webapps.
[If the following command not open, check the tomcat version number and apply in the command]

sudo gedit /etc/tomcat6/server.xml
(if gedit is not installed in your system type apt-get install gedit)

------Add bellow lines at the end of & before </host> section-----

<!-- Define a new context path for all DSpace web apps -->
<Context path="/xmlui" docBase="/dspace/webapps/xmlui" allowLinking="true"/>
<Context path="/sword" docBase="/dspace/webapps/sword" allowLinking="true"/>
<Context path="/oai" docBase="/dspace/webapps/oai" allowLinking="true"/>
<Context path="/jspui" docBase="/dspace/webapps/jspui" allowLinking="true"/>
<Context path="/lni" docBase="/dspace/webapps/lni" allowLinking="true"/>
<Context path="/solr" docBase="/dspace/webapps/solr" allowLinking="true"/>

(save and close the file )

sudo chown tomcat6:tomcat6 /dspace -R

Restart Tomcat6 (my system has tomcat 6)

/etc/init.d/tomcat6 restart

Make an initial administrator account (an e-person) in DSpace:

/dspace/bin/dspace create-administrator


Your's Truly,


Saturday, November 8, 2014

The DSpace 5.0 Testathon Begins Nov 10, 2014

–Users/Feedback Wanted!

From Hardy Pottinger, DSpace 5.0 Release Team Member
The first Release Candidate for DSpace 5.0 will be made available for testing on November 6, 2014. New features of interest include:
For all UIs:
• Batch import from Zip files uploaded via the admin interface of either UI
• Easier Database upgrades, thanks to the inclusion of Flyway, an open-source database migration tool
• A feature-complete REST API, supporting both read and write operations
• Linked (Open) Data support
• Metadata for all DSpace Objects
• Improved thumbnail generation (via ImageMagick/Ghostscript)
• Google Analytics integration now tracks "downloads" of bitstreams
• A place to add third-party plugins
For JSPUI only:
• HTML5-based drag and drop upload interface for uploading bitstreams during submission
• Per-item configurable visual indicators for browse and search results
For XMLUI only:
• Mirage2 theme, utilizing many modern web design tools and technologies, facilitating a "responsive" web design, adapting to any screen size
• ORCID integration via an authority plugin, and a new authority cache
• Serpa/Romeo lookup
• Rendering MathML code in abstracts
• Error pages (including page not found) are all styled with your own site styles
• Collection drop down box performance improvements for repositories with a large number of collections
• (Optional) ability to generate citation cover pages on PDFs
• An aspect for adding Google Analytics web usage information to item pages
There's much more. Please see full list on the Release Status page at: https://wiki.duraspace.org/display/DSPACE/DSpace+Release+5.0+Status

Dspace Demo