[EP-tech] Subject trees
Alan.Stiles
alan.stiles at open.ac.uk
Wed Jan 6 17:35:01 GMT 2016
Hi all,
Anyone have any experience with updating the subject tree via the API? (using 3.3.10 but current github module for EPrints::DataObj::Subject looks similar)
I'm trying to add a new top level entry with the following code snippet...
my $rootsubj = EPrints::DataObj::Subject->new($repository,"ROOT");
exit unless defined($rootsubj);
my $newsubj = $rootsubj->create_child("newid",[{name=>"New Top Level Subject"}],0);
It creates the subject, but orphaned rather than linked to the ROOT object as I'd expect...
Any clues?
Alan Stiles
Digital Repository Developer
Library Services, The Open University
-- The Open University is incorporated by Royal Charter (RC 000391), an exempt charity in England & Wales and a charity registered in Scotland (SC 038302). The Open University is authorised and regulated by the Financial Conduct Authority.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.ecs.soton.ac.uk/pipermail/eprints-tech/attachments/20160106/30b84b68/attachment.html
More information about the Eprints-tech
mailing list