Re: [Dspace-tech] missing Messages.properties file - re-post

2015-06-12 Thread Yongming Wang
thanks, Mark,

I have forgot to mention that the problem has been solved. Two people helped me 
offline. Basically I need to go to github to download the Messages.properties 
manually and put it in [resources] directory (I created [resources] directory 
because it's not there), and rebuild it. I never suspected that the rebuild is 
so simple and easy.

Thank you very much for your input.


Yongming

-
Yongming Wang
Systems Librarian
The College of New Jersey Library
phone: 609-771-3337
email: wan...@tcnj.edu
-

- Original Message -
From: "Mark H. Wood" 
To: dspace-tech@lists.sourceforge.net
Sent: Friday, June 12, 2015 12:24:45 PM
Subject: Re: [Dspace-tech] missing Messages.properties file - re-post

On Mon, Jun 08, 2015 at 10:30:37AM -0400, Yongming Wang wrote:
> I don't get any response for my previous posting a week ago. So try again. 
> (please see the description below for the problem I encountered.)
> 
> My installation is definitely missing the critical Messages.properties file. 
> The reason, I guess, may be that I downloaded "dspace-5.1-release.tar.gz", 
> which probably doesn't contain Messages.properties. Can anyone tell me if 
> that is why I don't have Messages.properties. Thanks so much.

You are correct.  'dspace-5.1-release.tar.gz' is the precompiled
version, and Messages.properties is packed inside one of the .jar
files that it downloads.

> If that's really the reason, what is the remedy? 

If you unpack a copy of the file, edit it, and place it in
[DSpace]/webapps/jspui/WEB-INF/classes, I think that copy will be
found before the one in the JAR, but I have not tested this.  You can
unpack it this way:

  cd [DSpace]
  jar xf webapps/jspui/WEB-INF/lib/dspace-api-5.1.jar Messages.properties

That should result in a copy of the file being placed in [DSpace].

-- 
Mark H. Wood
Lead Technology Analyst

University Library
Indiana University - Purdue University Indianapolis
755 W. Michigan Street
Indianapolis, IN 46202
317-274-0749
www.ulib.iupui.edu

--

___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech
List Etiquette: https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette

--
___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech
List Etiquette: https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette


Re: [Dspace-tech] missing Messages.properties file - re-post

2015-06-12 Thread Mark H. Wood
On Mon, Jun 08, 2015 at 10:30:37AM -0400, Yongming Wang wrote:
> I don't get any response for my previous posting a week ago. So try again. 
> (please see the description below for the problem I encountered.)
> 
> My installation is definitely missing the critical Messages.properties file. 
> The reason, I guess, may be that I downloaded "dspace-5.1-release.tar.gz", 
> which probably doesn't contain Messages.properties. Can anyone tell me if 
> that is why I don't have Messages.properties. Thanks so much.

You are correct.  'dspace-5.1-release.tar.gz' is the precompiled
version, and Messages.properties is packed inside one of the .jar
files that it downloads.

> If that's really the reason, what is the remedy? 

If you unpack a copy of the file, edit it, and place it in
[DSpace]/webapps/jspui/WEB-INF/classes, I think that copy will be
found before the one in the JAR, but I have not tested this.  You can
unpack it this way:

  cd [DSpace]
  jar xf webapps/jspui/WEB-INF/lib/dspace-api-5.1.jar Messages.properties

That should result in a copy of the file being placed in [DSpace].

-- 
Mark H. Wood
Lead Technology Analyst

University Library
Indiana University - Purdue University Indianapolis
755 W. Michigan Street
Indianapolis, IN 46202
317-274-0749
www.ulib.iupui.edu


signature.asc
Description: Digital signature
--
___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech
List Etiquette: https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette

Re: [Dspace-tech] missing Messages.properties file - re-post

2015-06-08 Thread Yongming Wang
I don't get any response for my previous posting a week ago. So try again. 
(please see the description below for the problem I encountered.)

My installation is definitely missing the critical Messages.properties file. 
The reason, I guess, may be that I downloaded "dspace-5.1-release.tar.gz", 
which probably doesn't contain Messages.properties. Can anyone tell me if that 
is why I don't have Messages.properties. Thanks so much.

If that's really the reason, what is the remedy? 

Here is my directory listing under /local/home/dspace/dspace-5.1-release which 
is [dspace-source]

README
NOTICE
LICENSE_HEADER
LICENSE
pom.xml
LICENSES_THIRD_PARTY
build.properties.orig
target
dspace
build.properties




Thank you in advance.



Yongming

-
Yongming Wang
Systems Librarian
The College of New Jersey Library
phone: 609-771-3337
email: wan...@tcnj.edu
-

- Original Message -
From: "Yongming Wang" 
To: dspace-tech@lists.sourceforge.net
Sent: Thursday, June 4, 2015 1:39:57 PM
Subject: missing Messages.properties file

Hi,

I'm a newbie on DSpace. I just installed DSpace 5.x for my library. We use 
jspui.

I added a new field (advisor) on the Submission form by editing the 
/dspace/config/input-forms.xml file, which works fine.

In order to display it on the default simple item record page, I modified the 
/dspace/config/dspace.cfg file by adding "dc.contributor.advisor" to 
webui.itemdisplay.default = section, like the following:

webui.itemdisplay.default = dc.title, dc.title.alternative, 
dc.contributor.author, dc.contributor.advisor, \
dc.subject(nobreakline), dc.date.issued(date), 
dc.publisher, \
dc.identifier.citation, dc.relation.ispartofseries, 
\
dc.description.abstract, dc.description, \
dc.identifier.govdoc, dc.identifier.uri(link), \
dc.identifier.isbn, dc.identifier.issn, \
dc.identifier.ismn, dc.identifier

The interesting thing is that originally this part is all commented out and I 
had to uncomment it to make my new field to work. 

Now the real challenge comes, the label for the advisor field on the simple 
item record page is: "metadata.dc.contributor.advisor", not simply "advisor" as 
I expected!

After more research, I came to know that I need to change the 
"Messages.properties" file inside my source directory, like the documentation 
told me:

Location of the JSPUI message catalog in the DSpace source tree
[dspace-source]/dspace-api/src/main/resources/Messages.properties

The problem is, I can't find Messages.properties anywhere. It simply doesn't 
exist!

My question: Where is this file hided?
My another question is: Is this the only way to change my label from 
metadata.dc.contributor.advisor to advisor? Because I don't want to rebuild 
dspace just for such a small change.


Thanks in advance for your help!



Yongming

-
Yongming Wang
Systems Librarian
The College of New Jersey Library
phone: 609-771-3337
email: wan...@tcnj.edu
-

--
___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech
List Etiquette: https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette


[Dspace-tech] missing Messages.properties file

2015-06-04 Thread Yongming Wang
Hi,

I'm a newbie on DSpace. I just installed DSpace 5.x for my library. We use 
jspui.

I added a new field (advisor) on the Submission form by editing the 
/dspace/config/input-forms.xml file, which works fine.

In order to display it on the default simple item record page, I modified the 
/dspace/config/dspace.cfg file by adding "dc.contributor.advisor" to 
webui.itemdisplay.default = section, like the following:

webui.itemdisplay.default = dc.title, dc.title.alternative, 
dc.contributor.author, dc.contributor.advisor, \
dc.subject(nobreakline), dc.date.issued(date), 
dc.publisher, \
dc.identifier.citation, dc.relation.ispartofseries, 
\
dc.description.abstract, dc.description, \
dc.identifier.govdoc, dc.identifier.uri(link), \
dc.identifier.isbn, dc.identifier.issn, \
dc.identifier.ismn, dc.identifier

The interesting thing is that originally this part is all commented out and I 
had to uncomment it to make my new field to work. 

Now the real challenge comes, the label for the advisor field on the simple 
item record page is: "metadata.dc.contributor.advisor", not simply "advisor" as 
I expected!

After more research, I came to know that I need to change the 
"Messages.properties" file inside my source directory, like the documentation 
told me:

Location of the JSPUI message catalog in the DSpace source tree
[dspace-source]/dspace-api/src/main/resources/Messages.properties

The problem is, I can't find Messages.properties anywhere. It simply doesn't 
exist!

My question: Where is this file hided?
My another question is: Is this the only way to change my label from 
metadata.dc.contributor.advisor to advisor? Because I don't want to rebuild 
dspace just for such a small change.


Thanks in advance for your help!



Yongming

-
Yongming Wang
Systems Librarian
The College of New Jersey Library
phone: 609-771-3337
email: wan...@tcnj.edu
-

--
___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech
List Etiquette: https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette