12.2 KB

How to install the Add-on

The detailed instructions can be found in the docs folder.

It's necessary to have the AddOn Degois6 previously installed

Copy the new files

Copy the new files to the source directory

If you are in Linux

cp -r $PATH_TO _ADDON/setup-data/dspace-source/* $DSPACE_SRC/

Where $PATH_TO ADDON is the directory where you put the add-on for instalation and $DSPACESRC/ is the source directory.

As an example: If the addon is in the opt directory and dspace source is in /src-dspace/dspace52 the command is:

cp -r /opt/setup-data/dspace-source/* /src-dspace/dspace52/

Adding the new entries in the and in

Add the fowlowing messages to Edit $DSPACE_SRC/dspace/dspace-api/src/main/resources/ and add:

sharing.facebook.title = Share this item over Facebook
sharing.facebook.alt = Facebook
sharing.twitter.title = Share this item over Twitter
sharing.twitter.alt = Twitter
sharing.linkedin.title = Share this item over LinkedIn
sharing.linkedin.alt = LinkedIn
sharing.delicious.title = Share this item over Delicious
sharing.delicious.alt = Delicious
sharing.digg.title = Share this item over Digg
sharing.digg.alt = Digg
sharing.googlebookmark.title = Add this item to Google Bookmarks
sharing.googlebookmark.alt = Google Bookmarks
sharing.myspace.title = Share this item over MySpace
sharing.myspace.alt = MySpace
sharing.orkut.title = Share this item over Orkut
sharing.orkut.alt = Orkut
sharing.bibtex.title = Export this item to BibTex Format
sharing.bibtex.alt = BibTex Format
sharing.mendeley.title = Add this item to Mendeley
sharing.mendeley.alt = Mendeley
sharing.endnote.title = Export this item to Endnote Format
sharing.endnote.alt = Endnote
sharing.orcid.title = Add this item to Orcid
sharing.orcid.alt = Orcid

sharing.orcid.title = Orcid
sharing.orcid.success.title = Item successfully added to Orcid
sharing.orcid.success.content = The item was successfully added to Orcid. Now you can close this window.
sharing.orcid.error.title = Error while adding the item to Orcid
sharing.orcid.error.content = An error has occurred while adding the item to Orcid.
sharing.orcid.error.content.1 = An error has occurred while adding the item to Orcid.
sharing.orcid.error.content.2 = An error has occurred while adding the item to Orcid.

sharing.degois.title = DeGóis Curricula
sharing.degois.description = Add item to DeGóis Curricula
sharing.degois.area = Knowledge Area
sharing.degois.area.natural = Natural Sciences = Engineering and Technology
sharing.degois.area.medical = Medical Sciences
sharing.degois.area.human = Humanities
sharing.degois.area.agrarian = Agrarian Sciences = Social Sciences
sharing.degois.area.exact = Exact Sciences
sharing.degois.form.submit = Send
sharing.degois.form.user = Username
sharing.degois.form.pass = Password
sharing.degois.create = Create DeGóis Curricula account

sharing.degois.success.title = Item Successfully added to DeGóis Curricula
sharing.degois.success.content = The item was successfully added to your DeGóis curricula. Now you can close this window.
sharing.degois.error.connection.title = Error while connecting with DeGóis
sharing.degois.error.connection.content = Repository wasn't able to connect with DeGóis, please, try again.
sharing.degois.error.user.title = Wrong user credentials
sharing.degois.error.user.content = Wrong username/password given.
sharing.degois.error.goback = Go Back

Add the fowlowing messages to Edit $DSPACE_SRC/dspace/dspace-api/src/main/resources/ and add:

sharing.facebook.title = Partilhe no Facebook
sharing.facebook.alt = Facebook
sharing.twitter.title = Partilhe no Twitter
sharing.twitter.alt = Twitter
sharing.linkedin.title = Partilhe no LinkedIn
sharing.linkedin.alt = LinkedIn
sharing.delicious.title = Partilhe no Delicious
sharing.delicious.alt = Delicious
sharing.digg.title = Partilhe no Digg
sharing.digg.alt = Digg
sharing.googlebookmark.title = Adicionar ao Google Bookmarks
sharing.googlebookmark.alt = Google Bookmarks
sharing.myspace.title = Partilhe no MySpace
sharing.myspace.alt = MySpace
sharing.orkut.title = Partilhe no Orkut
sharing.orkut.alt = Orkut
sharing.bibtex.title = Exporte no formato BibTex
sharing.bibtex.alt = Formato BibTex
sharing.mendeley.title = Adicione ao Mendeley
sharing.mendeley.alt = Mendeley
sharing.endnote.title = Exporte no formato Endnote
sharing.endnote.alt = Endnote
sharing.orcid.title = Adicione ao Orcid
sharing.orcid.alt = Logotipo do Orcid

sharing.orcid.title = Orcid 
sharing.orcid.success.title = Item enviado com sucesso para o Orcid
sharing.orcid.success.content = O item foi enviado com sucesso para o Orcid. Agora pode fechar a janela.
sharing.orcid.error.title = Erro ao enviar o item para o Orcid
sharing.orcid.error.content = Aconteceu um erro durante o envio do item para o Orcid.
sharing.orcid.error.content.1 = Aconteceu um erro durante o envio do item para o Orcid.
sharing.orcid.error.content.2 = Aconteceu um erro durante o envio do item para o Orcid.

sharing.degois.title = Currículo DeGóis
sharing.degois.description = Adicionar item ao DeGóis
sharing.degois.area = Área de conhecimento
sharing.degois.area.natural = Ciências Naturais = Engenharia e Tecnologia
sharing.degois.area.medical = Ciências Médicas
sharing.degois.area.human = Humanidades
sharing.degois.area.agrarian = Ciências Agrárias = Ciências Sociais
sharing.degois.area.exact = Ciências Exactas
sharing.degois.form.submit = Enviar
sharing.degois.form.user = Utilizador
sharing.degois.form.pass = Palavra-chave
sharing.degois.create = Criar Currículo DeGóis

sharing.degois.success.title = Item enviado com sucesso para o Currículo DeGóis
sharing.degois.success.content = O item foi adicionado ao seu Currículo DeGóis com sucesso. Agora pode fechar a janela.
sharing.degois.error.connection.title = Erro ao ligar ao DeGóis
sharing.degois.error.connection.content = O Repositório não conseguiu estabelecer a ligação com o DeGois, por favor, tente novamente.
sharing.degois.error.user.title = Erro nas credenciais
sharing.degois.error.user.content = Utilizador ou Palavra-chave errados
sharing.degois.error.goback = Voltar

Change the dspace.cfg

Edit dspace.cfg in $DSPACE_SRC/dspace/config/dspace.cfg.

#----------------SHARING BAR CONFIGURATIONS---------------------#

# Show sharing bar? = true
# Export templates
sharing.template.dir = ${dspace.dir}/config/sharing/templates

# Items listed at left
sharing.left = \
    facebook, \
    twitter, \
    delicious, \
    linkedin, \
    digg, \
    googlebookmark, \
    myspace, \
#   orkut

# Items listed at right
sharing.right = \
    bibtex, \
    mendeley, \
    endnote, \
    degois, \
#   orcid

# Simple Items
sharing.facebook.type = simple
sharing.twitter.type = simple
sharing.delicious.type = simple
sharing.linkedin.type = simple
sharing.digg.type = simple
sharing.googlebookmark.type = simple
sharing.myspace.type = simple
#sharing.orkut.type = simple
sharing.mendeley.type = simple

# Advanced Items
sharing.bibtex.type = advanced
#sharing.mendeley.type = advanced
sharing.endnote.type = advanced
sharing.degois.type = advanced
#sharing.orcid.type = advanced

# Simple Items URL
sharing.facebook.url =[url]=[$url]&p[title]=[$title]&p[summary]=[$description]
sharing.twitter.url =[$title]-[$url]
sharing.twitter.params.title.maxlength = 85
sharing.delicious.url =[$url]&title=[$title]
sharing.linkedin.url =[$url]&title=[$title]&summary=[$description]
sharing.digg.url =[$url]
sharing.googlebookmark.url =[$url]&title=[$title]
sharing.myspace.url =[$url]
#sharing.orkut.url =[$title]&du=[$url]
sharing.mendeley.url =[$url]#

# Advanced Items Class & Params
sharing.bibtex.class =
#sharing.mendeley.class =
#sharing.mendeley.param.url =
sharing.endnote.class =
sharing.degois.class =
#sharing.orcid.class =
## baseurl and apibaseurl should not contain ending forward slash (e.g., sharing.orcid.param.baseurl =
#sharing.orcid.param.baseurl =
#sharing.orcid.param.apibaseurl =
#sharing.orcid.param.defaultvisibility = private
#sharing.orcid.param.clientid = 
#sharing.orcid.param.clientsecret =

Change the styles.css

Edit styles.css in $DSPACE_SOURCE/dspace-jspui/src/main/webapp/styles.css

Add the following lines:

.sharingbar {
    padding:10px 5px 5px;
    margin-left: auto;
    margin-right: auto;

.sharingbar div.left {

.sharingbar div.left a {

.sharingbar div.right {

.sharingbar div.right a {

.sharingbar div.clear {
    clear: both;

Change web.xml and add the following entries:

Edit web.xml in $DSPACE_SOURCE/dspace-jspui/src/main/webapp/WEB-INF/web.xml After </servlet-mapping> add:


After <!-- Servlet Mappings --> add:


Change display-item.jsp

Edit display-item.jsp in $DSPACE_SOURCE/dspace-jspui/src/main/webapp/display-item.jsp Add after <%@page import="org.dspace.versioning.VersionHistory"%>:

<%@ page import="pt.keep.dspace.sharing.ItemWrapper" %>
<%@ page import="pt.keep.dspace.sharing.SharingManager" %>

and before <%-- Create Commons Link --%>

<% if (ConfigurationManager.getBooleanProperty("", false) && workspace_id != null) { %>
<% // code
SharingManager manager = new SharingManager(new ItemWrapper(item));
     <div class="container well sharingbar" style="height: 35px; padding-left: 10px; padding-right:10px; padding-top:6px">
        <div class="left" style="float: left">
            <%= manager.getItemsAtLeft(request) %>
        <div class="right" style="float: right">
            <%= manager.getItemsAtRight(request) %>
        <div class="clear"></div>
<% } %>

Change the pom.xml

Edit pom.xml

And afeter <dependencies>:


Add also the following lines after <dependencies> if not present:


Build DSpace

Proceed according to DSpace Documentation to build and update your DSpace installation.


The Sharing Bar Add-on was developed in the context of RCAAP ProjectRCAAP by KEEP SOLUTIONS, a spin-off of the University of Minho, specialized in digital preservation and advanced solutions for digital archives and libraries, in partnership with the Documentation Services of the University of Minho.

Need help, or give any type of contribution?

Please contact us at FCT|FCCN or any commiter.


Please contact us at FCT|FCCN.