Skip to content

Display fragment labels with identifier and folio on manuscript profiles#300

Draft
Copilot wants to merge 3 commits intomainfrom
copilot/update-manuscript-profile-labels
Draft

Display fragment labels with identifier and folio on manuscript profiles#300
Copilot wants to merge 3 commits intomainfrom
copilot/update-manuscript-profile-labels

Conversation

Copy link
Contributor

Copilot AI commented Nov 17, 2025

Manuscript fragments were listed as "Witness Fragment #1", "#2", etc., making them difficult to identify without clicking through. Fragments should display their shelfmark/citation and folio information.

Changes

Modified manuscriptProfile template in js/deer-config.js to:

  • Fetch fragment data asynchronously using deerUtils.expand(uri)
  • Extract identifier (shelfmark/citation) and _folio (page) properties
  • Display labels with priority: "identifier - folio""identifier""Folio X""Witness Fragment #N"
  • Handle fetch errors gracefully with fallback to numbered labels

Example

Before:

• Witness Fragment #1
• Witness Fragment #2

After:

• St. Gall, Stiftsbibliothek 132 - 45r
• Kuttner, Repertorium - 102v
Original prompt

This section details on the original issue you should resolve

<issue_title>Better labels for manuscript profiles</issue_title>
<issue_description>On manuscript-profile.html, the fragments are listed as "manuscript fragment #2" and just a long series of indexes. When possible, the pattern should be used where we see the fragment label with the reference locator or citation that is associated with it.</issue_description>

Comments on the Issue (you are @copilot in this section)


✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.

Copilot AI and others added 2 commits November 17, 2025 21:37
Co-authored-by: cubap <1119165+cubap@users.noreply.github.com>
Co-authored-by: cubap <1119165+cubap@users.noreply.github.com>
Copilot AI changed the title [WIP] Improve manuscript profile labels and citations Display fragment labels with identifier and folio on manuscript profiles Nov 17, 2025
Copilot AI requested a review from cubap November 17, 2025 21:45
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.

Better labels for manuscript profiles

2 participants