Hi
I think we have managed to merge most of our old crosswalk (PACrosswalk.java)
into the new DSpace 1.7.2 using OAIDCCrosswalk.java as a template, however we
are stuck on a bit of code which uses the Bundle class:
try
{
Bundle[] bundles = item.getBundles("THUMBNAIL");
if (bundles.length > 0)
{
Bitstream[] bitstreams = bundles[0].getBitstreams();
if (bitstreams.length > 0)
{
metadata.append("<pa:thumbnail>")
.append(ConfigurationManager.getProperty("dspace.url"))
.append("/retrieve/")
.append(bitstreams[0].getID())
.append("/")
.append(UIUtil.encodeBitstreamName(bitstreams[0].getName()))
.append("</pa:thumbnail>");
}
}
}
catch (Exception e)
{
throw new CannotDisseminateFormatException(e.getMessage());
}
We have a feeling we need to use the Thumbnail.java class for this, but not
entirely sure.
Thanks,
Shaun
>>> "Shaun Burriss" <[email protected]> 29/11/2011 11:46 AM >>>
Hi all
We have recently upgraded from DSpace 1.4.2 to 1.7.2 and used a modified
version of the OAIDCCrosswalk.java file for an OAI feed to Picture Australia.
It seems that there has been code changes between versions which means we need
to rewrite the Crosswalk file again, and we need some help with this.
We require the following imports
import org.dspace.content.Bitstream;
import org.dspace.content.Bundle;
import org.dspace.core.ConfigurationManager;
import org.dspace.app.webui.util.UIUtil;
Are there any guides that can help us with adapting our old crosswalk for the
new DSpace?
Thanks,
Shaun
------------------------------------------------------------------------------
All the data continuously generated in your IT infrastructure
contains a definitive record of customers, application performance,
security threats, fraudulent activity, and more. Splunk takes this
data and makes sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-novd2d
_______________________________________________
DSpace-tech mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/dspace-tech
------------------------------------------------------------------------------
All the data continuously generated in your IT infrastructure
contains a definitive record of customers, application performance,
security threats, fraudulent activity, and more. Splunk takes this
data and makes sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-novd2d
_______________________________________________
DSpace-tech mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/dspace-tech