Hi Lyn,
just to make sure, you did:
1. Add dc.description.consignmentnumber to the metadata registry of your
instance
2. change
[dspace-source]/dspace/modules/xmlui/src/main/weppapp/i18n/messages.xml
to include
<message
key="xmlui.ArtifactBrowser.Navigation.browse_consignmentnumber">Consignment
Number</message>
<message
key="xmlui.ArtifactBrowser.ConfigurableBrowse.title.metadata.consignmentnumber">Browsing
{0} by Consignment Number {1}</message>
<message
key="xmlui.ArtifactBrowser.ConfigurableBrowse.trail.metadata.consignmentnumber">Browsing
{0} by Consignment Number</message>
3. change [dspace-source]/dspace/config/dspace.cfg
webui.browse.index[newNumber] =
consignmentnumber:metadata:dc.description.consignmentnumber:text
4. run mvn clean package
5. run ant init_configs update
6. stop your servlet container
7. run [dspace]/bin/index-init
8. deploy [dspace]/webapp/xmlui
9. start your servlet container
just tried it on 1.5.x and it worked fine.
Btw which database in which version are you using?
Claudia Jürgen
Lyn Amery schrieb:
> I've heard nothing back on this one. I'm still having the problem and
> it is
>
> just about to drive me insane. I've carefully rebuilt and restarted
> everything,
>
> the database, dspace, the server... and run index-init, but nothing
> seems to
>
> help. As soon as I put in any data in one of the new browse fields, I
> get
>
> a bunch of stacktraces. I *must* be missing something.
>
>
>
> As far as I can tell from the system doc, all I should have to do is add
> the
>
> webui.browse.index.[n] line to dspace.cfg, run index-init and it should
> just
>
> work. Am I wrong? (I've also tried rebuilding dspace, restarting
> tomcat
>
> and the database afterwards, but no change.)
>
>
>
> My next option is to rebuild from the release version and hope that
> works.
>
> It would be unfortunate however, as I really needed the embargo
>
> functionality, and that has to be applied as a patch to the source code.
>
>
>
> Any ideas or suggestions welcome.
>
>
>
> Lyn
>
>
>
> Lyn Amery
>
> Web Analyst/Programmer
>
> State Records Office
>
> (08) 9427 3493
>
> [email protected] <mailto:[email protected]>
>
> ________________________________
>
> From: Lyn Amery [mailto:[email protected]]
> Sent: Monday, 23 February 2009 12:40 PM
> To: [email protected]
> Subject: [Dspace-tech] Browse index on new DC field
>
>
>
> Hi all,
>
>
>
> I've installed 1.5.1 (using the source release) on a Ubuntu 8 system
>
> and using XML/Manakin. I want to be able to browse using a new
>
> metadata field I have added to the DC schema. I have added the
> parameter
>
> in dspace.cfg as follows:
>
>
>
> webui.browse.index.5 =
> consignmentnumber:metadata:dc.description.consignmentnumber:text
>
>
>
> As long as there's no actual data in the "consignmentnumber" field in
> any
>
> of the items, selecting "Browse by Consignment No." seems to work. At
>
> least a page is delivered, looking like what you'd expect, but with no
> items
>
> matching. As soon as I put some data into this field in an item, a page
>
> stating
>
>
>
> An error has occured
>
> java.lang.NullPointerException
>
>
>
> is delivered instead, complete with Cocoon and Java stacktraces, which
>
> don't mean much to me.
>
>
>
> I had this feature running on a test system which I put together with
> the
>
> release version of 1.5.1. It's possible I missed something when I
> brought
>
> the mods across. I tend to think, though, that the config is correct as
> I
>
> can search by consignmentnumber, and that browsing seems to work at
>
> least as long as there's no data in the field.
>
>
>
> Perhaps there's a patch somewhere?
>
>
>
> Cheers,
>
> Lyn
>
>
>
> Lyn Amery
>
> Web Analyst/Programmer
>
> State Records Office
>
> (08) 9427 3493
>
> [email protected] <mailto:[email protected]>
>
>
>
>
>
>
> ------------------------------------------------------------------------
>
> ------------------------------------------------------------------------------
> 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
------------------------------------------------------------------------------
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