Replace edition identifier input with Vue component #9922
Labels
Affects: Librarians
Issues related to features that librarians particularly need. [managed]
Lead: @mheiman
Needs: Response
Issues which require feedback from lead
Priority: 2
Important, as time permits. [managed]
Type: Refactor/Clean-up
Issues related to reorganization/clean-up of data or code (e.g. for maintainability). [managed]
Proposal
We currently have a vue component,
AuthorIdentifiers
, we use on the authors page for this purpose (eg see the "Identifiers" section on https://openlibrary.org/authors/OL716700A/Francine_Pascal/edit ). We have a very similar component on the editions page for adding edition identifiers (eg Go to the edition tab, and then the "Identifiers" section of https://openlibrary.org/books/OL1088853M/Wizard's_First_Rule/edit ) which does not use Vue. We would like to expandAuthorIdentifiers
with some new options to have it support edition identifiers, and then replace the edition identifiers with this new component.How do they differ?
For legacy reasons, there are some slight differences as to how identifiers are stored on authors vs editions. We want to expand the vue component to support both schemes.
Authors:
Stored like this on the author record (eg https://openlibrary.org/authors/OL716700A/Francine_Pascal.json )
And its passed as a
prop
the identifiers from https://openlibrary.org/config/author .Editions:
Stored like this on the edition record (eg https://openlibrary.org/books/OL1088853M.json)
Note it's a list. The possible identifiers should be passed in from the edition config.
Justification
Breakdown
Requirements Checklist
multiple: true/false
-- whether it's a list or a single valueinput-prefix: str
-- where to save; e.g.author--remote_ids--
for authors, oredition--identifiers--
(or something like this; might need tweaking)AuthorIdentifiers
toIdentifiersInput
and update all references.Tests
Related files
openlibrary/openlibrary/templates/type/author/edit.html
Lines 106 to 110 in 622694d
Stakeholders
@mheiman @RayBB
Instructions for Contributors
Please run these commands to ensure your repository is up to date before creating a new branch to work on this issue and each time after pushing code to Github, because the pre-commit bot may add commits to your PRs upstream.
The text was updated successfully, but these errors were encountered: