EPrints Technical Mailing List Archive
See the EPrints wiki for instructions on how to join this mailing list and related information.
Message: #07959
< Previous (by date) | Next (by date) > | < Previous (in thread) | Next (in thread) > | Messages - Most Recent First | Threads - Most Recent First
Re: [EP-tech] Getting Data from the EPrints Database - not urgent
- To: "eprints-tech@ecs.soton.ac.uk" <eprints-tech@ecs.soton.ac.uk>, "James Kerwin" <jkerwin2101@gmail.com>
- Subject: Re: [EP-tech] Getting Data from the EPrints Database - not urgent
- From: "Alan.Stiles" <alan.stiles@open.ac.uk>
- Date: Thu, 29 Aug 2019 11:04:38 +0000
Hi James, Once you have the eprint object, I’d have expected something like my $elements_id = $eprint->get_value(“elemid”); Though I’m just back from holiday and that’s come from my partially functional brain. Alan From: eprints-tech-bounces@ecs.soton.ac.uk <eprints-tech-bounces@ecs.soton.ac.uk>
On Behalf Of James Kerwin via Eprints-tech Hello everyone, I altered the staff/admin view of our EPrints installation at the start of February this year so that it displays both a link to the EPrints record and a link to the corresponding Elements record: I managed to successfully grab the Elements ID from the Crosswalks and add it as a new field in the EPrints database ("eprint" table) under a field name of "elemid". The link only shows if an item has an elements ID and so far I've not
had any problems with it. I'm just not sure the way I'm grabbing the elements ID from the eprints database is correct. When I get the eprint ID I do the following in my local copy of View.pm: my $eprint = $self->{processor}->{eprint}; $eprint->id; I know there's other STUFF elsewhere in this module that handles getting the eprint and ID. No matter what I do I can't get the Elements ID in this way and I have to use a small function to perform a SQL query to get "elemid". Is there
a way I could more easily/cleanly get the elemid without writing a SQL query? I'm assuming there is and I'm totally misunderstanding what's happening. Thanks, James |
- Follow-Ups:
- Re: [EP-tech] Getting Data from the EPrints Database - not urgent
- From: "Alan.Stiles" <alan.stiles@open.ac.uk>
- Re: [EP-tech] Getting Data from the EPrints Database - not urgent
- References:
- [EP-tech] Getting Data from the EPrints Database - not urgent
- From: James Kerwin <jkerwin2101@gmail.com>
- Re: [EP-tech] Getting Data from the EPrints Database - not urgent
- From: "Alan.Stiles" <alan.stiles@open.ac.uk>
- [EP-tech] Getting Data from the EPrints Database - not urgent
- Prev by Date: [EP-tech] Getting Data from the EPrints Database - not urgent
- Next by Date: Re: [EP-tech] Getting Data from the EPrints Database - not urgent
- Previous by thread: [EP-tech] EPrints/CRIS
- Next by thread: [EP-tech] DOI handling in orcid_support_advance
- Index(es):