Hi Van,
The original is in
[dspace-source]dspace-api/src/main/resources/Messages.properties, as you
mention.
Your version should go in
[dspace-source]/dspace/modules/jspui/src/main/resources – that way ant will
always deploy it to [dspace]/webapps when you rebuild.
Jewel, hopefully this helps you as well. For your second question, there is no
“jsp” directory like there was in earlier versions of Dspace, the JSPs are now
in [dspace-source]/dspace-jspui/dspace-jspui-webapp/src/main/webapp
If you want to make alterations to any, it’s best to copy them to
[dspace-source]/dspace/modules/jspui/src/main/webapp and alter them there. This
will keep the originals intact and use your copies in any rebuilds.
Cheers,
Kim
From: Van Ly [mailto:[email protected]]
Sent: Friday, 6 March 2009 7:41 p.m.
To: Kim Shepherd
Cc: [email protected]
Subject: RE: [Dspace-tech] a button
labelled"???jsp.mydspace.request.export.community.???"
Hi Kim,
Thanks.
From [0] I have in Messages.properties a line of value
"jsp.mydspace.request.export.community = Submit"
But which of the Messages.properties is the source for the installation copy?
[1, 2]
Without rebuilding, I copied [x] to [y] and inserted that line and restarted
tomcat, the button looks as it should without the question marks.
I suppose [i] is one source for setting that line... and a DSpace rebuild would
do the trick but I don't recall the Messages.properties file was ever installed
in the first place.
--- details follow
[i] ------------------------------------------------------------------
## 1.5.1 DSpace has dspace-api/src/main/resources/Messages.properties
jsp.mydspace.remove-item.title = Remove Item
jsp.mydspace.request.export.collection = Export Collection
jsp.mydspace.request.export.item = Export Item
jsp.mydspace.subscriptions.info1 = Your
subscriptions have been updated.
[0] ------------------------------------------------------------------
## looking for request.export in jsp files
r...@shibsp# find dspace-1.5.1-src-release |fgrep jsp |xargs fgrep -i
request.export.community |cat -n
1
dspace-1.5.1-src-release/dspace/target/dspace-1.5.1-build.dir/webapps/jspui/community-home.jsp:
<input type="submit" value="<fmt:message
key="jsp.mydspace.request.export.community"/>" \
/>
2
dspace-1.5.1-src-release/dspace/modules/jspui/target/war/work/org.dspace/dspace-jspui-webapp/community-home.jsp:
<input type="submit" value="<fmt:message
key="jsp.mydspace.request.expo\
rt.community"/>" />
3
dspace-1.5.1-src-release/dspace/modules/jspui/target/jspui-1.5.1/community-home.jsp:
<input type="submit" value="<fmt:message
key="jsp.mydspace.request.export.community"/>" />
4
dspace-1.5.1-src-release/dspace-jspui/dspace-jspui-webapp/target/dspace-jspui-webapp-1.5.1/community-home.jsp:
<input type="submit" value="<fmt:message
key="jsp.mydspace.request.export\
.community"/>" />
5
dspace-1.5.1-src-release/dspace-jspui/dspace-jspui-webapp/src/main/webapp/community-home.jsp:
<input type="submit" value="<fmt:message
key="jsp.mydspace.request.export.community"/>" />
------------------------------------------------------------------
## looking for jsp.mydspace.request.export.community
## in /usr/local/dspace/webapps/jspui/WEB-INF/classes/Messages.properties
648 jsp.mydspace.remove-item.remove.button = Remove the Item
649 jsp.mydspace.remove-item.title = Remove Item
650 jsp.mydspace.subscriptions.info1 = Your subscriptions have been
updated.
651 jsp.mydspace.subscriptions.info2 = To subscribe to a collection,
visit the collection's home page, and click on the "Subscribe" button.
[1] ------------------------------------------------------------------
## 1.5.0 source
[r...@shibdspace dspace-1.5.0-src-release]# find . -name Messages.properties
./dspace/target/dspace-1.5.0-build.dir/webapps/jspui/WEB-INF/classes/Messages.properties
./dspace/modules/jspui/src/main/resources/Messages.properties
./dspace/modules/jspui/target/classes/Messages.properties
./dspace/modules/jspui/target/jspui-1.5.0/WEB-INF/classes/Messages.properties
./dspace-api/src/main/resources/Messages.properties
./dspace-api/target/classes/Messages.properties
## 1.5.0 installation
[r...@shibdspace dspace-1.5.0-src-release]# find /dspace -name
Messages.properties
[x] /dspace/webapps/jspui/WEB-INF/classes/Messages.properties
[2] ------------------------------------------------------------------
## 1.5.1 source
r...@shibsp# cd dspace-1.5.1-src-release
r...@shibsp# find . -name Messages.properties
./dspace-api/target/classes/Messages.properties
./dspace-api/src/main/resources/Messages.properties
## 1.5.1 installation
r...@shibsp# find /usr/local/dspace/ -name Messages.properties
[y] /usr/local/dspace/webapps/jspui/WEB-INF/classes/Messages.properties
-- Van Ly . U of Sydney Library
________________________________
From: Kim Shepherd
Sent: Fri 6/03/2009 1:36 PM
To: Van Ly; [email protected]
Subject: RE: [Dspace-tech] a button
labelled"???jsp.mydspace.request.export.community.???"
Hi Van,
Yes, you’re correct, that indicates a missing key from Messages.properties – I
think this one is known to be missing from the 1.5.1 release, but it’s probably
quicker to just add it in yourself rather than try to find it in the tracker.
Cheers,
Kim.
From: Van Ly [mailto:[email protected]]
Sent: Friday, 6 March 2009 3:18 p.m.
To: [email protected]
Subject: [Dspace-tech] a button
labelled"???jsp.mydspace.request.export.community.???"
Hi,
On a new installation of 1.5.1 DSpace, after creating a community, I see in the
Admin Tools part of the web-frontend a button labelled
"???jsp.mydspace.request.export.community.???"
It shows below the buttons edit, create collection, create sub-community.
Does anyone know what's missing? perhaps something related to
Messages.properties?
Thanks in advance.
-- Van Ly
------------------------------------------------------------------------------
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
_______________________________________________
DSpace-tech mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/dspace-tech