-
Notifications
You must be signed in to change notification settings - Fork 25
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
Support for musical sources (and prototype annotations) #230
Support for musical sources (and prototype annotations) #230
Conversation
@haogatyp Please resolve the merge conflicts. |
6e28f2d
to
ef9146a
Compare
…-main Full text features main
…res-main 13.02.
Hotfix vom 16.10.
# Conflicts: # Build/package-lock.json # Classes/Controller/UriController.php # Resources/Private/JavaScript/dfgviewerScripts.js # Resources/Private/Less/all.less # Resources/Private/Less/components/audioplayer.less # Resources/Private/Less/components/controls.less # Resources/Private/Less/modules/home.less # Resources/Private/Partials/ControlBar.html # Resources/Private/Partials/PageView.html # Resources/Public/Css/allStyles.css # Resources/Public/Css/webStyles.css # Resources/Public/JavaScript/allScripts.js # Resources/Public/JavaScript/webScripts.js
|
||
// toggle for full metadata display in sidebar | ||
if ($('.control-bar .metadata-basic dl.tx-dlf-metadata-titledata').length > 1) { | ||
metadataToggleLabelMore = ($('html[lang^="de"]')[0]) ? 'mehr Metadaten anzeigen' : 'more Metadata'; |
Check warning
Code scanning / CodeQL
Missing variable declaration Warning
// toggle for full metadata display in sidebar | ||
if ($('.control-bar .metadata-basic dl.tx-dlf-metadata-titledata').length > 1) { | ||
metadataToggleLabelMore = ($('html[lang^="de"]')[0]) ? 'mehr Metadaten anzeigen' : 'more Metadata'; | ||
metadataToggleLabelLess = ($('html[lang^="de"]')[0]) ? 'weniger Metadaten anzeigen' : 'less Metadata'; |
Check warning
Code scanning / CodeQL
Missing variable declaration Warning
Co-authored-by: Sebastian Meyer <sebastian.meyer@opencultureconsulting.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Last fixes for the remaining static code analyzer issues. Also, please have a look at the Codacy issues: https://app.codacy.com/gh/slub/dfg-viewer/pull-requests/230/issues
…k/dfg-viewer into Full-text-features-main
Co-authored-by: Sebastian Meyer <sebastian.meyer@opencultureconsulting.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good work! This is ready for testing, now!
The only remaining issue is with the new Grunt version. Could you please check that?
(see https://github.com/slub/dfg-viewer/actions/runs/9877302151/job/27494458932?pr=230)
It looks like Thomas Jung @gnuj has set the version of grunt in the package.json to ^1.6. The installed version therefore does not match the specification in the package-lock.json file. Perhaps Thomas Jung still needs to commit the lock file? I'm not sure. |
@beatrycze-volk From my point of view, this is ready for merging. The corresponding PR kitodo/kitodo-presentation#1281 has been merged. This can be tested at https://test.dfg-viewer.de The remaining Grunt issue should be easily fixed by running |
Thats completely correct. This will probably be significantly less work than if I start a complete new branch including a merge request. If this is important for organisational reasons just hit me up. |
Since we all can't access the source branch (and @chrizzor isn't available for the next two months), I propose merging this, then immediately run |
Hi @sebastian-meyer, I currently have no access to my computer so please feel free to make it :) |
OK, you are the release manager, I'll do as you say! ;o) |
I'm afraid that Resources/Public/Css/allStyles.css.map should not have been added. Pull request #294 removes it again. |
For future contributions it would be good to set a valid author name. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@sebastian-meyer Unfortunately this PR has broken few functionalities inside the DFG Viewer. eg. the calendar view for the newspapers is gone, the fulltext window is gone. I have to revert those changes.
I have left few review comments, but they contain only the problems discovered on the first look. After they are fixed and the removed functionalities are restored, I will make more through review.
@@ -8,7 +8,7 @@ config { | |||
removeDefaultJS = 1 | |||
|
|||
# concatenate all Javascript files by default | |||
concatenateJs = 1 | |||
concatenateJs = 0 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should not be changed.
@@ -35,6 +36,11 @@ page { | |||
includeJSFooterlibs { | |||
dfgviewer = EXT:dfgviewer/Resources/Public/JavaScript/allScripts.js | |||
} | |||
footerData { | |||
# Add OpenLayers styling for the scores (This is 'dirty' integrated via footerData to ensure that it overrides the styles brought by DLF and other extensions) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think that's not the right solution.
@@ -57,6 +57,34 @@ | |||
<source><![CDATA[Thumbnail Preview]]></source> | |||
<target><![CDATA[Vorschaubilder]]></target> | |||
</trans-unit> | |||
<trans-unit id="multiview.add_document.description"> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
camelCase should be used in he names to keep consistency with the rest of the labels.
@@ -13,6 +13,14 @@ | |||
bottom: 0; | |||
background: #fff; | |||
text-align: left; | |||
|
|||
display: none; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fulltext can't be hidden. It breaks one of the main functionalities of DFG Viewer!
@@ -0,0 +1,21 @@ | |||
<!-- ###TEMPLATE### begin --> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not even sure what has happend here...
<div class="score-tool"> | ||
<f:if condition="{scoreAvailable.{iterator.index}}"> | ||
<f:then> | ||
<a class="select switchoff" id="tx-dlf-tools-score-{iterator.index}" title="" data-dic="fulltext:{f:translate(key: 'tools.score')} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this fulltext or score tool?
</f:else> | ||
</f:if> | ||
<f:comment> | ||
<f:cObject typoscriptObjectPath="plugin.tx_dlf_scoretool" /> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There shouldn't be commented code introduced.
<div id="svg_output" style="overflow:hidden;"></div> | ||
</div> | ||
|
||
<f:comment> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As previously mentioned no commented code.
@@ -3,7 +3,7 @@ | |||
<div xmlns="http://www.w3.org/1999/xhtml" lang="en" xmlns:f="http://typo3.org/ns/TYPO3/CMS/Fluid/ViewHelpers"> | |||
|
|||
<f:section name="Content"> | |||
<f:format.raw>{content}</f:format.raw> | |||
<f:format.raw>{ccontent}</f:format.raw> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why the name is changed?
/** | ||
* @return {ol.style.Style} | ||
*/ | ||
dlfViewerOLStyles.hoverStyle = function () { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Are open layer not included in kitodo presentation? Why additionally here?
This reverts commit 7261790.
@chrizzor has to take a look at this and fix these issues, since it's his work. But he won't be back before end of september. |
No description provided.