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

[FEATURE] Support for musical sources, multi-level metadata and experimental annotations #1281

Merged
merged 17 commits into from
Jul 20, 2024

Conversation

sebastian-meyer
Copy link
Member

This adds support for musical sources with MEI-encoded scores. They are visualized using Verovio. Furthermore, musical sources can be navigated page-based (like every other document) or alternatively based on measurement information.

In addition, this adds support for multi-level metadata (i. e. metadata grouping) for all documents.

This also adds experimental support for annotations.

chrizzor and others added 10 commits July 8, 2024 10:25
Co-authored-by: Frank Schirlitz <[email protected]>
Co-authored-by: Sebastian Meyer <[email protected]>
Co-authored-by: Sebastian Meyer <[email protected]>
Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: Matthias Richter <[email protected]>
Co-authored-by: Hizkiel Alemayehu <[email protected]>
Co-authored-by: Daniel Röwenstrunk <[email protected]>
Co-authored-by: Hizkiel Alemayehu <[email protected]>
Co-authored-by: Christopher Timm <[email protected]>
Co-authored-by: Sebastian Meyer <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Beatrycze Volk <[email protected]>
Co-authored-by: frank-ulrich-weber <[email protected]>
@sebastian-meyer sebastian-meyer added the ⚙ feature A new feature or enhancement. label Jul 20, 2024
@sebastian-meyer
Copy link
Member Author

Review already happened when merging the original branches into source branch.


$.ajax({url}).done(function (data, status, jqXHR) {
try {
let score = tk.renderData(jqXHR.responseText, verovioSettings);

Check warning

Code scanning / CodeQL

Useless assignment to local variable Warning

The initial value of score is unused, since it is always overwritten.
return;
}

var pdfFormat = "A4";

Check warning

Code scanning / CodeQL

Useless assignment to local variable Warning

The initial value of pdfFormat is unused, since it is always overwritten.
}

var pdfFormat = "A4";
var pdfOrientation = "portrait";

Check warning

Code scanning / CodeQL

Useless assignment to local variable Warning

The initial value of pdfOrientation is unused, since it is always overwritten.
var parser = new DOMParser();
var xmlDoc = parser.parseFromString(tk.getMEI(), "text/xml");
var work = xmlDoc.getElementsByTagName("work");
var pdfTitle = work[0].getElementsByTagName("title")[0].textContent;

Check notice

Code scanning / CodeQL

Unused variable, import, function or class Note

Unused variable pdfTitle.
pdf_tk.renderData(tk.getMEI(), pdfOptions);
var parser = new DOMParser();
var xmlDoc = parser.parseFromString(tk.getMEI(), "text/xml");
var work = xmlDoc.getElementsByTagName("work");

Check notice

Code scanning / CodeQL

Unused variable, import, function or class Note

Unused variable work.
* @access protected
*/
protected ?Document $document;
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This line is a cause for #1293

@@ -532,6 +828,7 @@ dlfViewer.prototype.init = function(controlNames) {

// Initiate loading fulltexts
this.initLoadFulltexts();
this.initLoadScores();
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If score is empty, this breaks loading the fulltext.
error: dlfScoreUtil = undefined

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for reporting this! I've opened a new issue: #1407

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
⚙ feature A new feature or enhancement.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants