EPrints Technical Mailing List Archive

See the EPrints wiki for instructions on how to join this mailing list and related information.

Message: #02520


< Previous (by date) | Next (by date) > | < Previous (in thread) | Next (in thread) > | Messages - Most Recent First | Threads - Most Recent First

[EP-tech] Re: Understanding how data objects link


On 15/01/14 12:02, Sebastien Francois wrote:
On 15/01/14 12:00, Ian Stuart wrote:
Yes!! good hint!
That sent me off to look at the History dataObj - and that showed that I
needed:

		{ name=>"datasetid", type=>"text", text_index=>0, },

Just a detail - /datasetid/ should be of type "id" not "text"
Nope - text

In DataObj::SubObject::get_parent -

 $datasetid = $self->get_value( "datasetid" ) unless defined $datasetid;
 $objectid = $self->get_value( "objectid" ) unless defined $objectid;

 my $ds = $session->get_repository->get_dataset( $datasetid );
 my $parent = $ds->get_object( $session, $objectid );

.... and both of these calls are looking for string names

(but I'll test some more)

--

Ian Stuart.
Developer: ORI, RJ-Broker, and OpenDepot.org
Bibliographics and Multimedia Service Delivery team,
EDINA,
The University of Edinburgh.

http://edina.ac.uk/

This email was sent via the University of Edinburgh.

The University of Edinburgh is a charitable body, registered in
Scotland, with registration number SC005336.