Contribute to the DSpace Development Fund

The newly established DSpace Development Fund supports the development of new features prioritized by DSpace Governance. For a list of planned features see the fund wiki page.

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Next »

Fix+?some.key.name?

The Messages.properties file has name and value pairs separated by the equal sign. The name is a dot separated set of labels, in some cases this name is replaced by the value for the labelling of buttons in the jspui web interface.

jsp.adminhelp = Admin Help...
jsp.administer = Administer
jsp.admintools = Admin Tools

File:

Instructions:

  1. Search for the string inside the question marks in the Messages.properties file.
  2. Search for the same string inside the JSP; it should be the value of a
    key
    attribute to a
    <fmt:message>
    element. If both the JSP and Messages.properties appear to contain the string, be sure the strings match exactly.
  3. If Messages.properties does not contain the string, add it:
    some.key.name=Text that should appear 
  4. Perform the steps in Rebuild+DSpace.

Use cases:

## --- 0 - a button has a strange looking label
## for DSpace 1.5.1
## after creating a community, the 'Admin Tool' panel of the webpage has
## underneath the buttons edit, create collection, create sub-community
## a button with the label "???jsp.mydspace.request.export.community.???" 

## --- 1 - the fix
## add a missing line to the Messages.properties file

## --- 2 - Copy & edit file
## look for the original Messages.properties file in
[dspace-source]/dspace-api/src/main/resources/Messages.properties

## copy it to 
[dspace-source]/dspace/modules/jspui/src/main/resources

## add this line to Messages.properties
jsp.mydspace.request.export.community                           = Export Community

## where once there was a "jsp" directory in earlier versions of DSpace
## that now resides in
[dspace-source]/dspace-jspui/dspace-jspui-webapp/src/main/webapp

## generally put changes in here to keep original files intact
[dspace-source]/dspace/modules/jspui/src/main/webapp

## rebuild DSpace

## You can spot actual occurences of this term in use by
find dspace-1.5.1-src-release |fgrep jsp |xargs fgrep -i request.export.community |cat -n

  • No labels