Ampersands in article metadata are not entity-escaped in OAI-PMH feed
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 70/100
Research direction
Start with the OAI-PMH record template at src/templates/common/apis/OAI_record.xml, around line 38, where the page range value is rendered. Check whether autoescaping is turned off there or the value is marked safe, then apply an escape filter such as escape to the string fields. Done when an article with an ampersand in its page range produces an OAI record that parses as valid XML.
Written by the indexing model from the issue text.
Description
Problem
CLOCKSS reported that they could not load an OAI-PMH feed on UGent because of a bare ampersand in the value of a page range field.
Ticket: https://janeway.freshdesk.com/a/tickets/13012
Template where string needs needing entity-escaping: https://github.com/openlibhums/janeway/blob/4699e72244f384217e1551ea2e5da97dc02116a1/src/templates/common/apis/OAI_record.xml#L38
Solution
Use a template filter in all string values in the OAI-PMH template to escape ampersands.
- Dominant language
- Python
- Stars
- 241
- Forks
- 97
- Avg merge
- 3d 40m
- Merged PRs (30d)
- 10
Getting set up
- Ships a Dockerfile or Docker Compose file
- No pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from openlibhums/janeway
-
Duplicate English (en) entries in the language switcherPossibly taken @ajrbyers claimed this 1 day ago. Openbug
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
openlibhums/janeway#5672 · 1 comment · 1 assignee ·
Maintainers usually reply within 1 day
-
enhancement Repositories
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
openlibhums/janeway#5660 ·
Maintainers usually reply within 1 day
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
openlibhums/janeway#5639 · 2 comments ·
Maintainers usually reply within 1 day
-
enhancement new feature
Difficulty 2/5 1-3 hours Newbie friendliness 62/100
openlibhums/janeway#5637 ·
Maintainers usually reply within 1 day
-
Difficulty 1/5 Under an hour Newbie friendliness 85/100
openlibhums/janeway#5634 · 1 reaction ·
Maintainers usually reply within 1 day
All issues in openlibhums/janeway
Similar issues
-
release
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
MichaelYcJo/SpecSeal#1535 ·
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
valentinfrlch/ha-llmvision#769 ·
Maintainers usually reply within 1 day
-
bug
Difficulty 1/5 Under an hour Newbie friendliness 75/100
daniel-ospina/tortoise#11937 · 1 comment ·
Maintainers usually reply within 1 day
-
good first issue help wanted python up-for-grabs
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
andrewsiah/agentswarm-data-tasks#238 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
cadence-workflow/cadence-ai-samples#175 ·
Maintainers usually reply within 1 day