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 =
item.getMetadata("dc", "identifier", "citation", Item.ANY) or do I have to
import another class?
Thanks once again and regards,
Elvi
On Wed, Aug 14, 2013 at 2:58 AM, helix84 <heli...@centrum.sk> wrote:
> 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 find more details here:
>
> http://demo.dspace.org/javadocs/3/apidocs/org/dspace/content/Item.html
>
>
> Regards,
> ~~helix84
>
> Compulsory reading: DSpace Mailing List Etiquette
> https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette
------------------------------------------------------------------------------
Get 100% visibility into Java/.NET code with AppDynamics Lite!
It's a free troubleshooting tool designed for production.
Get down to code-level detail for bottlenecks, with <2% overhead.
Download for free and get started troubleshooting in minutes.
http://pubads.g.doubleclick.net/gampad/clk?id=48897031&iu=/4140/ostg.clktrk
_______________________________________________
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