...
Fix for DSpace 1.4.2 and earlier versions
Files:
\[dspace-source\]/config/language-packs/Messages.propertiesunmigrated-wiki-markupWiki Markup - \[dspace-source\]/jsp/local/ (JSP producing {{\
?
\?
\?some.key.name
\?
\?
\?
}} text)
Instructions:
- Search for the string inside the question marks in the Messages.properties file.
- 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. - If Messages.properties does not contain the string, add it:
some.key.name=Text that should appear
- Perform the steps in Rebuild DSpace.
Fix for DSpace 1.5.0 and later
Files:
\[dspace-source\]/dspace-api/src/main/resources/Messages.propertiesWiki Markup \[dspace-source\]/dspace-jspui/dspace-jspui-webapp/src/main/webapp (JSP producing {{\Wiki Markup ?
\?
\?some.key.name
\?
\?
\?
}} text)
Instructions:
- Add the missing line to the Messages.properties file
- Copy & edit file. Look for the original Messages.properties file in
- unmigrated-wiki-markup
- {{\
[dspace-source
\]/dspace-api/src/main/resources/Messages.properties
}} - NOTE: IF you don't have the DSpace Source Code installed locally, you can also download this file via the web. Visit the below site, and browse to the proper version of DSpace, then follow the path (see above) to the proper sub-directory to download the original file.
- {{\
- Copy the original Messages.properties file to this location in your local DSpace install. (NOTE: You may need to create the 'src/main/resource/' directory, as it doesn't exist by default):
- unmigrated-wiki-markup
- {{\
[dspace-source
\]/dspace/modules/jspui/src/main/resources
}}
- {{\
- Add the missing line to Messages.properties. For example, if the text you say is
???my.key.name???
then addCode Block unmigrated-wiki-markupmy.key.name = The Text to Display
- If necessary, you may also wish to copy/change the original JSP file. The original can be found at: {{\
[dspace-source
\]/dspace-jspui/dspace-jspui-webapp/src/main/webapp/
}} generally put changes in here to keep original files intact (again, you may need to create the {{Wiki Markup src/main/webapp
}} directory if it doesn't exist): {{\[dspace-source
\]/dspace/modules/jspui/src/main/webapp
}}
- Perform the steps in Rebuild DSpace.