Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Chant Detail: Reimplement concordances #1720

Merged
merged 4 commits into from
Dec 2, 2024

Conversation

dchiller
Copy link
Contributor

Reimplements concordances on the Chant Detail page. Requests for concordances are proxied through a view in views/api.py to account for CORS configuration on Cantus Index.

Concordances are fetched on user click. Both a summary and detail table are shown (see screenshot). The detail table can be hidden for ease of navigation around the page. No other table navigation (sorting, etc.) is included in this PR...perhaps this could be a future enhancement.

Initial Chant Detail page

image

Chant Detail page when "Display the concordances..." is clicked

image

Chant Detail page when no concordances exist

image

Relevant tests are added.

Adds the djlint dependency for linting/formatting of Django templates.

Closes #1389.

Create API view to proxy requests for Cantus ID concordances to Cantus Index and Gregorien.info (proxy required due to CORS configuration on Cantus Index).

Update chant_detail.js to parse and display concordances.

Add tests for concordances.

Remove extraneous container classes in `base.html` and `base_page_with_side_cards.html`.
@dchiller dchiller merged commit 1237c89 into DDMAL:develop Dec 2, 2024
1 check passed
@dchiller dchiller deleted the i1389-reimplement-concordances branch December 2, 2024 18:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Chant Detail View: We need to reimplement the displaying of concordances
2 participants