Skip to content
This repository has been archived by the owner on Nov 19, 2020. It is now read-only.

Add real configuration #96

Open
6 of 18 tasks
jmartinm opened this issue Nov 28, 2016 · 2 comments
Open
6 of 18 tasks

Add real configuration #96

jmartinm opened this issue Nov 28, 2016 · 2 comments
Assignees

Comments

@jmartinm
Copy link
Contributor

jmartinm commented Nov 28, 2016

In order to start properly testing the editor, the config needs to be amended:

  • Add x_editor_always_show to the fields that should always be present. Current templates are here (files that start with record_<doctype>). For Literature, the files to look are:
    • record_article.xml
    • record_book.xml
    • record_book_chapter.xml
    • record_cdfnote.xml
    • record_preprint.xml
    • record_proceedings.xml
    • record_thesis.xml

The fields that have as content VOLATILE:foo used to be always present in the previous editor. The equivalent field needs to be looked up in this folder in the @hep2marc.over rules. For example, one can see here that 100__a is authors.full_name.

  • Add x_editor_autocomplete to fields:

    • abstracts.source - autocomplete from existing values in that field in Literature.
    • TODO: add here all fields that make sense to autocomplete.
  • Configure all elements with "$ref": "elements/json_reference.json" such as this one. In all those fields there is one field that can be autocompleted from the existing databases, and the $ref and curated_relation can be automatically filled. (see existing example)

  • Add x_editor_disabled to $schema and control_number.

  • Add x_editor_priority to fields.

  • Add previews.

    • Preview arXiv PDF. @annetteholtkamp what logic should be used to find what PDF to preview?
    • Preview publisher landing page. Access the field dois.value and preview URL http://dx.doi.org/<dois.value> @annetteholtkamp what to do if there are several DOIs?
    • Preview current record. Access URL in self field and remove the /api/ part.
@StellaCh
Copy link
Contributor

@harunurhan can you tick the ones above that have been done?
still pending: the fields for the xml templates - will be provided by @michamos

@harunurhan
Copy link
Collaborator

@michamos these templates are actually alwaysShow configs, so you can also change the config. Maybe I can also do a bit of refactoring on the config side, (like dividing it into small parts). So that it will be less confusing.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

4 participants