Re: [Dspace-tech] How to look up other fields in DSpaceObject?

2013-08-14 Thread Nemiz, Elvi
Hi Brian and Helix, Thanks for the info, I managed to fetched the metadata using item.getMetadata. I'm confused though, if item.getDC was deprecated, why is it still using the deprecated org.dspace.content.DCValue class? I'm using this code to fetch the citation of an item: DCValue[] citationDC =

Re: [Dspace-tech] How to look up other fields in DSpaceObject?

2013-08-14 Thread helix84
On Wed, Aug 14, 2013 at 1:17 PM, Nemiz, Elvi esne...@seafdec.org.ph wrote: Thanks for the info, I managed to fetched the metadata using item.getMetadata. I'm confused though, if item.getDC was deprecated, why is it still using the deprecated org.dspace.content.DCValue class? I'm using this

[Dspace-tech] How to look up other fields in DSpaceObject?

2013-08-13 Thread Nemiz, Elvi
Dear all, While searching for the code on how to look up the item title, I found this code in SuggestServlet.java: DCValue[] titleDC = item.getDC(title, null, Item.ANY). I want to know the syntax if I want to get other fields like for example dc.identifier.citation? Thanks in advance. -- Elvi

Re: [Dspace-tech] How to look up other fields in DSpaceObject?

2013-08-13 Thread helix84
Hi Elvi, you could use getDC() to get any dc.*.* metadata, but I recommend you to use the more generic getMetadata() method, which can get metadata from other namespaces, too. You can use it either as getMetadata(schema.element.qualifier) or as getMetadata(schema, element, qualifier). You can