LocaliseCreativeCommons

From DSpace Wiki

Jump to: navigation, search

[edit] Localising the Creative Commons license.

[edit] Changing the default version of the Creative Commons license

We wanted the students that submit to our DSpace to use the Canadian version of the Creative Commons license instead of the default one. This is not set in the default.license file in $DSPACE/config, since thas is the deposit license - a licence that the depositor grants to the repository. It is not optional, and does not display to users in the item display. For many institutions, it is a legal requirement. It is a standard 'click-thru' license in the sense that the grantor can only accept or reject it. The way to change the other Creative Commons license, the one that the author grants to consumers of his/her work and which displays on the show item page is like follows:


1. Determine the jurisdiction code of the Creative Commons license version that you want to use. See the international page on the Creative Commons web site to determine this country code: it is the part after international in, in our case, creativecommons.org/international/ca/ - i.e ca.

2. Open DSPACE_SRC/jsp/submit/creative-commons.jsp in an editor and look for this piece of code:

<iframe src="http://creativecommons.org/license/?partner=dspace
&stylesheet=<%= java.net.URLEncoder.encode(ssURL)%>
&exit_url=<%= java.net.URLEncoder.encode(exitURL)%> width="100%" height="540">
<fmt:message key="jsp.submit.creative-commons.info3"/></iframe>

3. Add the jurisdiction parameter with your country code:

<iframe src="http://creativecommons.org/license/?partner=dspace
&stylesheet=<%= java.net.URLEncoder.encode(ssURL)%>
&exit_url=<%= java.net.URLEncoder.encode(exitURL)%> 
&jurisdiction=ca" width="100%" height="540">
<fmt:message key="jsp.submit.creative-commons.info3"/></iframe>

4. Save the file and rebuild DSpace:

server:~ cd $DSPACE_SRC 
server:~ $CATALINA_HOME/bin/shutdown.sh
server:~ rm -r $CATALINA_HOME/webapps/dspace
server:~ rm -r $CATALINA_HOME/webapps/dspace-oai
server:~ ant -Dconfig=$DSPACE/config/dspace.cfg update
server:~ cp build/*.war $CATALINA_HOME/webapps/
server:~ $DSPACE/bin/index-all
server:~ $CATALINA_HOME/bin/startup.sh

For more information about Creative Commons URL variables, see this CC Wiki page.

Luthien 13:28, 11 January 2008 (EST) @ thanks Richard for pointing me to the solution and clarifying the difference between the deposit and the author licenses.

Personal tools