Hi Ben

Just to clarify, what you've highlighted here is a difference in namespaces
between 3.3 and 3.4 RC1 when getting the object profile.

Is this difference between the old LITE API-A and the new REST API, or did
you notice a difference in the REST API output between 3.3 and 3.4RC1?
(Actually I think there were some changes to some REST API method outputs
due to the XML in fact being invalid wrt the schemas, but your experiences
illustrate that there's a need to highlight this in the release notes).

Thanks
Steve

> -----Original Message-----
> From: Benjamin Ryan [mailto:[email protected]] 
> Sent: 12 August 2010 15:24
> To: [email protected]
> Subject: [fcrepo-dev] Dissemintators not working in 3.4rc1
> 
> 
> Per a request from Steve Bayliss:
> 
> I have a number of dissemintators that worked with version 
> 3.3 but failed with 3.4rc1.
> The root cause was the changes in the REST API (I was getting 
> the object profile to get the PID and then generate iTQL 
> queries that returned related objects, in my case a 
> collection type model).
> The first change was to use the /objects/{pid}?format=xml to 
> get the profile and then to change the access to the 
> disseminators using the new syntax of 
> objects/{pid}/methods/{sdefPid}/{method}.
> 
> All these chnages were made but it still did not work.
> The problem is that the default namespace for the XML 
> returned for the object profile has now changed (it was not 
> set before but it is now to
> 
> xmlns="http://www.fedora.info/definitions/1/0/access/";
> 
> 
> 
> I therefore needed to alter the XSLT script to take account 
> of the default namespace.
> 
> 
> 
> <xsl:stylesheet version="1.0" 
> xmlns:xsl="http://www.w3.org/1999/XSL/Transform"; 
> xmlns:pr="http://www.fedora.info/definitions/1/0/access/";><!--
>  DEFAULT NAMESPACE WITH PREFIX -->
> 
> <xsl:output method="text" indent="no" encoding="UTF-8" />
> 
> <xsl:template match="/pr:objectProfile"><!-- USE OF PREFIX 
> WAS /objectProfile in 3.3 -->
> 
> <xsl:variable name="pid" select="@pid"/>
> 
> <xsl:text>select $collTitle $member $memberTitle from 
> &lt;#ri&gt; where &lt;info:fedora/</xsl:text>
> 
> <xsl:value-of select="$pid" />
> 
> <xsl:text>&gt; &lt;dc:title&gt; $collTitle and $member 
> &lt;fedora-rels-ext:isPartOf&gt; &lt;info:fedora/</xsl:text>
> 
> <xsl:value-of select="$pid" />
> 
> <xsl:text>&gt; and $member &lt;dc:title&gt; $memberTitle</xsl:text>
> 
> </xsl:template>
> 
> </xsl:stylesheet>
> 
> 
> 
> Once these changes were made it all works :)
> 
> 
> 
> Now to get solr to index my docs :(
> 
> 
> 
> Regards,
> 
>   Ben
> 
> ---------------------------------------------------------------------
> Dr Ben Ryan
> Timescapes Archive Technical Officer
> School of Sociology and Social Policy
> Faculty of Education, Social Sciences and Law
> Social Science Building
> The University of Leeds
> Leeds LS2 9JT
> Email: [email protected]<mailto:[email protected]>
> Tel: 0113 343 7319
> Website: 
> http://www.timescapes.leeds.ac.uk<http://www.timescapes.leeds.ac.uk/>
> ---------------------------------------------------------------------
> 
> --------------------------------------------------------------
> ----------------
> This SF.net email is sponsored by 
> 
> Make an app they can't live without
> Enter the BlackBerry Developer Challenge
> http://p.sf.net/sfu/RIM-dev2dev 
> _______________________________________________
> Fedora-commons-developers mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/fedora-commons-developers
> 


------------------------------------------------------------------------------
This SF.net email is sponsored by 

Make an app they can't live without
Enter the BlackBerry Developer Challenge
http://p.sf.net/sfu/RIM-dev2dev 
_______________________________________________
Fedora-commons-developers mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/fedora-commons-developers

Reply via email to