EPrints Technical Mailing List Archive

Message: #02518


< 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


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, },
		{ name=>"objectid", type=>"int", },

Seems to work!
(now to re-enable history)
On 15/01/14 11:38, Sebastien Francois wrote:
Hi Ian,

Your problem may come from
perl_lib/EPrints/MetaField/Subobject.pm::get_value


          my $ds = $parent->get_session->dataset( $self->get_property(
"datasetid" ) );

          my $searchexp = $ds->prepare_search();

          if( $ds->base_id eq "document" )
          {
                  $searchexp->add_field(
                          $ds->field( "eprintid" ),
                          $parent->id
                  );
          }
          elsif( $ds->base_id eq "saved_search" )
          {
                  $searchexp->add_field(
                          $ds->field( "userid" ),
                          $parent->id
                  );
          }
          # ETC...


(you should upgrade to 3.3 one day ;-))

Seb.



--

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.