Re: [Dspace-tech] Messages.properties customisation

2010-07-08 Thread Claudia Jürgen
Hi Michael,

good to hear, that you solved it.

There is one caveat though with using the jspui overlay message 
catalogue. This will only affect the jspui and not the api part, so 
parts of the emails for workflow notifications or subscriptions will 
still be pulled from the orginal Messages.properties.

Hope that helps

Claudia Jürgen


Am 08.07.2010 11:24, schrieb Michael White:
>> I'm trying to edit some items in Messages.properties (and add some new ones)
>> for a new v1.6 development instance but I'm struggling to understand how to 
>> get
>> my updated Messages.properties file picked up by DSpace.
>
> Thanks everyone for the thoughts and pointers - turned out to be the old 
> chestnut, "permissions" :-)
>
> Poking around my install directory I discovered a few files owned by root - 
> which made me think that I must have done a rebuild/redeploy at some point 
> under root yesterday by mistake (rather than my dspace/tomcat user). I wasn't 
> seeing any obvious errors or warnings when rebuilding so this wasn't 
> immediately apparent.
>
> I "chown -R"ed the src and install directories back to my tomcat user, and it 
> started working like a charm - my updated Messages.properties file is now 
> being picked up and the changes are being reflected in DSpace.
>
> Cheers,
>
> Mike
>
> Michael White
> eLearning Developer
> eLearning Liaison&  Development (eLD)
> 3V3a, Cottrell
> University of Stirling
> Stirling SCOTLAND
> FK9 4LA
> Email: michael.wh...@stir.ac.uk
> Tel: +44 (0) 1786 466877
> Fax: +44 (0) 1786 466880
> http://www.is.stir.ac.uk/aboutis/teams/aldt/eld.php
>
>

-- 
Mit freundlichen Gruessen

Claudia Juergen
Universitaetsbibliothek Dortmund
Eldorado
0231/755-4043
https://eldorado.tu-dortmund.de/

--
This SF.net email is sponsored by Sprint
What will you do first with EVO, the first 4G phone?
Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech


Re: [Dspace-tech] Messages.properties customisation

2010-07-08 Thread Michael White
> I'm trying to edit some items in Messages.properties (and add some new ones) 
> for a new v1.6 development instance but I'm struggling to understand how to 
> get 
> my updated Messages.properties file picked up by DSpace.

Thanks everyone for the thoughts and pointers - turned out to be the old 
chestnut, "permissions" :-)

Poking around my install directory I discovered a few files owned by root - 
which made me think that I must have done a rebuild/redeploy at some point 
under root yesterday by mistake (rather than my dspace/tomcat user). I wasn't 
seeing any obvious errors or warnings when rebuilding so this wasn't 
immediately apparent.

I "chown -R"ed the src and install directories back to my tomcat user, and it 
started working like a charm - my updated Messages.properties file is now being 
picked up and the changes are being reflected in DSpace.

Cheers,

Mike

Michael White 
eLearning Developer
eLearning Liaison & Development (eLD) 
3V3a, Cottrell
University of Stirling 
Stirling SCOTLAND 
FK9 4LA 
Email: michael.wh...@stir.ac.uk 
Tel: +44 (0) 1786 466877 
Fax: +44 (0) 1786 466880
http://www.is.stir.ac.uk/aboutis/teams/aldt/eld.php


-- 
The Sunday Times Scottish University of the Year 2009/2010
The University of Stirling is a charity registered in Scotland, 
 number SC 011159.


--
This SF.net email is sponsored by Sprint
What will you do first with EVO, the first 4G phone?
Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech


Re: [Dspace-tech] Messages.properties customisation

2010-07-07 Thread Hayden Young
Hi

Try deploying your properties files straight to your dspace instance to 
see if they are working correctly;

1. /var/lib/tomcat6/webapps/dspace/jspui/webapps/jspui/WEB-INF/classes 
(change the path to your unpacked dspace war path)

2. Restart tomcat

You could also check that the correct properties files are being 
deployed by checking the above path.

Cheers


Hayden

On 07/07/10 23:19, Michael White wrote:
> Hi folks,
>
> I'm trying to edit some items in Messages.properties (and add some new ones) 
> for a new v1.6 development instance but I'm struggling to understand how to 
> get my updated Messages.properties file picked up by DSpace.
>
> I've done this in v1.4 before without problems, but I'm new to 1.6 and 
> struggling to get this to work. I've been through the manual and searched the 
> archives but nothing I'm trying is working so far - hopefully someone will be 
> able to see what I'm doing wrong and point me in the right direction!
>
> If I'm understanding correctly, I should:
>
> - put my updated Messages.properties file here: 
> /usr/src/dspace-1.6.2-src-release/dspace/modules/jspui/src/main/resources
>
> - cd /usr/src/dspace-1.6.2-src-release/dspace/
>
> - run mvn package
>
> - cd /usr/src/dspace-1.6.2-src-release/dspace/target/dspace-1.6.2-build.dir
>
> - run ant -Dconfig=/usr/local/dspace/config/dspace.cfg update
>
> - stop tomcat, redeploy my WAR files, start tomcat
>
> However, after doing this, I don't see the modified text on the screen, and 
> I'm still seeing the "placeholder" labels, such as 
> ???metadata.dc.citation.peerreviewed???, all over the place (even though I've 
> now defined these in Messages.properties).
>
> I've also tried making the changes to Messages.properties directly at 
> /usr/src/dspace-1.6.2-src-release/dspace-api/src/main/resources/Messages.properties
>  (and rebuilding/redeploying), but to no avail.
>
> I have successfully modified some jsps using a local copy in 
> /usr/src/dspace-1.6.2-src-release/dspace/modules/jspui/src/main/webapp, so I 
> know that the mvn, ant, redeploy procedure works in general.
>
> Am I doing anything obviously wrong? If not, then are there any other 
> "gotchas" that I might be falling foul of?
>
> Any assistance very welcome!
>
> Cheers,
>
> Mike
>
> Michael White
> eLearning Developer
> eLearning Liaison&  Development (eLD)
> 3V3a, Cottrell
> University of Stirling
> Stirling SCOTLAND
> FK9 4LA
> Email: michael.wh...@stir.ac.uk
> Tel: +44 (0) 1786 466877
> Fax: +44 (0) 1786 466880
> http://www.is.stir.ac.uk/aboutis/teams/aldt/eld.php
>
>
>
>

-- 
Hayden Young
Managing Director
Wijiti Pty Ltd
p. +61 (0) 8 6102 1198
m. +61 (0) 405 520 778
e. haydenyo...@wijiti.com
w. www.wijiti.com
vcard. www.wijiti.com/vcard/haydenyoung.vcf

NOTICE
This e-mail and any attachments are intended for the addressee(s) only and may 
be confidential. They may contain legally privileged or copyright material. You 
should not read, copy, use or disclose them without authorization. If you are 
not the intended recipient please contact the sender as soon as possible by 
return e-mail and then please delete both messages. This notice should not be 
removed.


--
This SF.net email is sponsored by Sprint
What will you do first with EVO, the first 4G phone?
Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech


[Dspace-tech] Messages.properties customisation

2010-07-07 Thread Michael White
Hi folks,

I'm trying to edit some items in Messages.properties (and add some new ones) 
for a new v1.6 development instance but I'm struggling to understand how to get 
my updated Messages.properties file picked up by DSpace.

I've done this in v1.4 before without problems, but I'm new to 1.6 and 
struggling to get this to work. I've been through the manual and searched the 
archives but nothing I'm trying is working so far - hopefully someone will be 
able to see what I'm doing wrong and point me in the right direction!

If I'm understanding correctly, I should:

- put my updated Messages.properties file here: 
/usr/src/dspace-1.6.2-src-release/dspace/modules/jspui/src/main/resources

- cd /usr/src/dspace-1.6.2-src-release/dspace/

- run mvn package

- cd /usr/src/dspace-1.6.2-src-release/dspace/target/dspace-1.6.2-build.dir

- run ant -Dconfig=/usr/local/dspace/config/dspace.cfg update

- stop tomcat, redeploy my WAR files, start tomcat

However, after doing this, I don't see the modified text on the screen, and I'm 
still seeing the "placeholder" labels, such as 
???metadata.dc.citation.peerreviewed???, all over the place (even though I've 
now defined these in Messages.properties).

I've also tried making the changes to Messages.properties directly at 
/usr/src/dspace-1.6.2-src-release/dspace-api/src/main/resources/Messages.properties
 (and rebuilding/redeploying), but to no avail.

I have successfully modified some jsps using a local copy in 
/usr/src/dspace-1.6.2-src-release/dspace/modules/jspui/src/main/webapp, so I 
know that the mvn, ant, redeploy procedure works in general.

Am I doing anything obviously wrong? If not, then are there any other "gotchas" 
that I might be falling foul of?

Any assistance very welcome!

Cheers,

Mike

Michael White 
eLearning Developer
eLearning Liaison & Development (eLD) 
3V3a, Cottrell
University of Stirling 
Stirling SCOTLAND 
FK9 4LA 
Email: michael.wh...@stir.ac.uk 
Tel: +44 (0) 1786 466877 
Fax: +44 (0) 1786 466880
http://www.is.stir.ac.uk/aboutis/teams/aldt/eld.php



-- 
The Sunday Times Scottish University of the Year 2009/2010
The University of Stirling is a charity registered in Scotland, 
 number SC 011159.


--
This SF.net email is sponsored by Sprint
What will you do first with EVO, the first 4G phone?
Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech