[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[EP-tech] Duplicate subject field.



Hi Dago,
How is the map of values stored in the XML?
Does it use the same subjectids as the LC tree - but with different rendered values?

How big is the external XML file?

You could:

-          create a custom method in the config of the archive (something like: $c->{render_subject_with_external_xml} = sub{ [ code to look up values in XML file in here! ] };

-          create a new OA export plugin that calls this additional method to export the additional data

-          alias the new OA export plugin to the existing one

Would you only need to represent these additional values in the OA export, or would it be useful to be able to render them in the summary/workflow somehow?

With some more detail I may be able to provide some example code to get you started!

Cheers,
John

From: eprints-tech-bounces at ecs.soton.ac.uk [mailto:eprints-tech-bounces at ecs.soton.ac.uk] On Behalf Of dago
Sent: 26 April 2017 03:21
To: eprints-tech at ecs.soton.ac.uk
Subject: Re: [EP-tech] Duplicate subject field.

Hi Adam, is not to modify the subject tree, we have LC and it?s Ok, but a I need a extra (duplicated) DC.subject in the OA export with a second subject tree made on the fly. (the second subject tree is an external XML file).

On Tue, Apr 25, 2017 at 5:54 PM, Adam Field <adam at adamfield.net<mailto:adam at adamfield.net>> wrote:
Depending on your current level of knowledge, the training video might be a good starting point:

https://wiki.eprints.org/w/Training_Video:Subject_Trees

?
Adam


On 25 Apr 2017, at 21:31, dago <dago.salas at gmail.com<mailto:dago.salas at gmail.com>> wrote:

Hello,
Hello, I need to duplicate the subject field when exporting to OA, because we have the subjects with LC and additional we need to comply with another classification, so I need an output like this:

Subjects = "BC Logic"
Subjects = "Humanities"

where "BC Logic" has a mapping with "Humanities" (the relation we have it in an XML file)

My question is, where do I need to start?

Thanks in advance! :-D

--
Dagoberto Salas
dago.salas at gmail.com<mailto:dago.salas at gmail.com>
*** Options: http://mailman.ecs.soton.ac.uk/mailman/listinfo/eprints-tech
*** Archive: http://www.eprints.org/tech.php/
*** EPrints community wiki: http://wiki.eprints.org/
*** EPrints developers Forum: http://forum.eprints.org/


*** Options: http://mailman.ecs.soton.ac.uk/mailman/listinfo/eprints-tech
*** Archive: http://www.eprints.org/tech.php/
*** EPrints community wiki: http://wiki.eprints.org/
*** EPrints developers Forum: http://forum.eprints.org/



--
Dagoberto Salas
dago.salas at gmail.com<mailto:dago.salas at gmail.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.ecs.soton.ac.uk/pipermail/eprints-tech/attachments/20170426/92b70649/attachment-0001.html