EPrints Technical Mailing List Archive
Message: #05291
< Previous (by date) | Next (by date) > | < Previous (in thread) | Next (in thread) > | Messages - Most Recent First | Threads - Most Recent First
[EP-tech] Re: Subject trees
- To: "'eprints-tech@ecs.soton.ac.uk'" <eprints-tech@ecs.soton.ac.uk>
- Subject: [EP-tech] Re: Subject trees
- From: John Salter <J.Salter@leeds.ac.uk>
- Date: Wed, 6 Jan 2016 21:20:08 +0000
No experience – but looking at the documentation, you could possibly achieve what you need with the ‘create’ method instead? Other thoughts are: - does anything change when you commit() the new subject? - does reindexing the subjects change anything? Cheers, John From: eprints-tech-bounces@ecs.soton.ac.uk [mailto:eprints-tech-bounces@ecs.soton.ac.uk]
On Behalf Of Alan.Stiles 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.
|
- References:
- [EP-tech] Subject trees
- From: "Alan.Stiles" <alan.stiles@open.ac.uk>
- [EP-tech] Subject trees
- Prev by Date: [EP-tech] Subject trees
- Next by Date: [EP-tech] Items made live, not showing in browse views
- Previous by thread: [EP-tech] Subject trees
- Next by thread: [EP-tech] Re: Subject trees
- Index(es):