Name Last Update
dspace-source Loading commit data...
Readme.md Loading commit data...

Readme.md

How to install the Add-on

The detailed instructions can be found in the docs folder.

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/

Adding the new entries in the Messages.properties and in Messages_pt_PT.properties

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

jsp.cookieconsent.message = This website uses cookies to ensure you get the best experience on our website.
jsp.cookieconsent.dismiss = Got it

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

jsp.cookieconsent.message = Este website usa cookies para lhe garantir a melhor experi\u00EAncia poss\u00EDvel.
jsp.cookieconsent.dismiss = Entendi

Change header-default.jsp

Edit header-default.jsp in $DSPACE_SOURCE/dspace-jspui/src/main/webapp/header-default.jsp or on your custom layout Add just before </head>:

<!-- Begin Cookie Consent plugin by Silktide - http://silktide.com/cookieconsent -->
<link rel="stylesheet" type="text/css" href="<%= request.getContextPath() %>/static/css/cookieconsent.min.css" />
<script src="<%= request.getContextPath() %>/static/js/cookieconsent.min.js"></script>
<script>
window.addEventListener("load", function(){
window.cookieconsent.initialise({
 "palette": {
   "popup": {
     "background": "#000"
   },
   "button": {
     "background": "#f1d600"
   }
 },
 "showLink": false,
 "theme": "classic",
 "content": {
   "message": "<fmt:message key="jsp.cookieconsent.message" />",
   "dismiss": "<fmt:message key="jsp.cookieconsent.dismiss" />!"
 }
})});
</script>
<!-- End Cookie Consent plugin -->

Build DSpace

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

Need help, or give any type of contribution?

Please contact us at FCT|FCCN or any commiter.

License

Please contact us at FCT|FCCN.