Hello,
You can find hereafter the reply from Steve Bayliss on this subject a few
months ago:
The URL query parameter should be asOfDateTime, not asOfVersionDate.
It looks like the HTML response to /objects/{pid}/datastreams/{dsid}/history
is incorrect in that the URL it provides for the content link incorrectly
uses asOfVersionDate.
This is a bug, I have raised https://jira.duraspace.org/browse/FCREPO-812
for this.
If you modify your URLs to use asOfDateTime instead of asOfVersionDate, they
should work correctly.
Pending resolution of this bug, you can fix this issue locally by editing
the file $FEDORA_HOME/server/management/viewDatastreamHistory.xslt: search
for asOfVersionDate in this file and replace it with asOfDateTime, and the
"history" URL should then provide the correct links for the datastream
version content
Kind regards,
*Ludovic*
*
*
On Tue, May 3, 2011 at 2:01 PM, Renato Furter <renato.fur...@switch.ch>wrote:
> Ok, got you.
>
> try this:
>
> http://localhost:8080/fedora/objects/test:1/datastreams/DS1/content?asOfDateTime=2011-05-03T11:48:31.337Z
> (asOfDateTime instead of asVersionDate)
>
> - Renato
>
>
> On 03.05.11 13:27, Jörg Panzer wrote:
>
> Hello Renato,
>
> thank you for your answer.
>
> You should see a List of all versions for your datastream here:
> http://localhost:8080/fedora/objects/test:1/datastreams/DS1/history
>
> And there you have the link to each version.
>
>
> The links are there and they pointing to the right datastream
> (.../content?asVersionDate=...) but any link returns just the last ingested
> datastream (the same DS).
>
>
> Greetings
> - Renato
>
> On 03.05.11 12:20, Jörg Panzer wrote:
>
> Hello, I got a problem with versioning of Fedora!
>
>
> if I change a "referenced" datastream and save it with a new dsLocation
> (reference to the new version) a new datastream version will be created.
> This new Version got its own DsId, a Created-Attribute and its own
> dsLocation. So far everything is all right. But with the information stored
> in Created-Attribute, it should be possible to get the desired Version,
> however everytime just the latest Version will be returned.
>
>
> I tried it with:
>
>
>
> http://localhost:8080/fedora/get/test:1/DS1?asOfVersionDate={version-created}
>
> or
>
>
> http://localhost:8080/fedora/objects/test:1/datastreams/DS1/content?asOfVersionDate={version-created}
>
>
> {version-created} - something like 2011-05-03T16:20:24.743Z
>
>
> Does anybody have any suggestion why it does not work as I anticipated?
>
>
> Thanks,
>
> Jorg
>
>
> ---
> Jörg-H. Panzer
>
> Georg-August-Universitaet Goettingen
> State and University Library
> Research and Development Department (RDD)
> Germany
> pan...@sub.uni-goettingen.de <mah...@sub.uni-goettingen.de>
>
>
> ------------------------------------------------------------------------------
> WhatsUp Gold - Download Free Network Management Software
> The most intuitive, comprehensive, and cost-effective network
> management toolset available today. Delivers lowest initial
> acquisition cost and overall TCO of any competing solution.
> http://p.sf.net/sfu/whatsupgold-sd
>
>
> _______________________________________________
> Fedora-commons-users mailing
> listFedora-commons-users@lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/fedora-commons-users
>
>
> --
> SWITCH
> Serving Swiss Universities
> --------------------------
> Renato Furter, NetServices
> Werdstrasse 2, P.O. Box, 8021 Zurich, Switzerland
> phone +41 44 268 15 88, fax +41 44 268 15 68,renato.fur...@switch.ch,
> http://www.switch.ch
>
>
>
> ------------------------------------------------------------------------------
> WhatsUp Gold - Download Free Network Management Software
> The most intuitive, comprehensive, and cost-effective network
> management toolset available today. Delivers lowest initial
> acquisition cost and overall TCO of any competing solution.
> http://p.sf.net/sfu/whatsupgold-sd
> _______________________________________________
> Fedora-commons-users mailing list
> Fedora-commons-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/fedora-commons-users
>
>
--
*Ludovic*
------------------------------------------------------------------------------
WhatsUp Gold - Download Free Network Management Software
The most intuitive, comprehensive, and cost-effective network
management toolset available today. Delivers lowest initial
acquisition cost and overall TCO of any competing solution.
http://p.sf.net/sfu/whatsupgold-sd
_______________________________________________
Fedora-commons-users mailing list
Fedora-commons-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/fedora-commons-users