Readme.md
How to install the Add-on
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_SRC/dspace-jspui/src/main/webapp
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/dspace32 the command is:
cp -r /opt/setup-data/* /src-dspace/dspace32/dspace-jspui/src/main/webapp
Change PopupTag.java
Edit $DSPACE_SRC/dspace-jspui/src/main/java/org/dspace/app/webui/jsptag/PopupTag.java
Add to the import delcarations:
import java.util.Locale;
import org.dspace.app.webui.util.UIUtil;
After String actualPage = hrq.getContextPath() + page; add:
if(actualPage.contains("help")){
Locale sessionLocale = UIUtil.getSessionLocale(hrq);
String lang = sessionLocale.getLanguage().toString();
actualPage = lang != "en" ? actualPage.replace("help","help_" + lang) : actualPage;
}
Build DSpace
Change the jsp files
Edit $DSPACE_SRC/dspace-jspui/src/main/webapp/layout/navbar-default.jsp and change "endswith" to "contains":
currentPage.contains( "/help" )...
Edit $DSPACE_SRC/dspace-jspui/src/main/webapp/layout/navbar-admin.jsp nd change "endswith" to "conains":
currentPage.contains( "/help" )...
Build DSpace
Proceed according to DSpace Documentation to build and update your DSpace installation.
Developers
The Sharing Bar Add-on was developed in the context of RCAAP Project RCAAP 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.
License
Please contact us at FCT|FCCN.