Skip to content

OAI-PMH import for users

Rigel Kent requested to merge oai-imports into develop

The MR adds the possibility for loggged-in users to import corpora from OAI-PMH repositories. The functionality only supports HAL for now, but the import form is made so that future implementations could choose parsers for more repositories supported).

The import effectively creates a corpus under the user's control. The corpus is editable like a normal corpus.

How the feature looks like

A new button is added both in the quick actions, and in the user's corpora list.

Screenshot_2019-08-30_OLKi_-_Home

A thin coloured ribbon is added on the left-hand side of the imported corpus's card in listings.

Screenshot_2019-08-30_OLKi_-Home_1

The import menu lets choose parsers from known repositories, and once choosen, auto-fills the following repository url (which can be changed by the user, would they want to use the parser for a different repository).

Screenshot_2019-08-30_OLKi

Once on the imported corpus page, you can notice a few differences: files are not imported, but instead linked to. This is a shortcut taken in the implementation for now. Comments are otherwise disabled, but can be enabled manually afterwards.

Screenshot_2019-08-30_OLKi_-Corpus-_FRT_presentation_of_the_Onsager_algebras

Edited by Rigel Kent

Merge request reports