forked from kitodo/kitodo-production
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactory js modules, add milliseconds selection and fix tiny bugs
- Loading branch information
1 parent
e4f0425
commit ce1be47
Showing
8 changed files
with
106 additions
and
63 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
26 changes: 26 additions & 0 deletions
26
...EB-INF/templates/includes/metadataEditor/partials/media-detail-audio-waveform-tools.xhtml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
<!-- | ||
* | ||
* (c) Kitodo. Key to digital objects e. V. <[email protected]> | ||
* | ||
* This file is part of the Kitodo project. | ||
* | ||
* It is licensed under GNU General Public License version 3 or later. | ||
* | ||
* For the full copyright and license information, please read the | ||
* GPL3-License.txt file that was distributed with this source code. | ||
* | ||
--> | ||
|
||
<ui:composition | ||
xmlns:h="http://xmlns.jcp.org/jsf/html" | ||
xmlns:p="http://primefaces.org/ui" | ||
xmlns:ui="http://xmlns.jcp.org/jsf/facelets"> | ||
<p:outputPanel id="audioWaveformTools" rendered="#{fn:startsWith(selectedGalleryMediaContent.mediaViewMimeType, 'audio') and DataEditorForm.galleryPanel.isAudioMediaViewWaveform()}"> | ||
<div> | ||
<label><h:outputText value="#{msgs.audioWaveformToolsZoom}"/>: <input type="range" min="0" max="250" value="0"/></label> | ||
</div> | ||
<div> | ||
<label><h:outputText value="#{msgs.audioWaveformToolsCenteredCursor}"/>: <input type="checkbox" checked="" value="autoCenter"/></label> | ||
</div> | ||
</p:outputPanel> | ||
</ui:composition> |
64 changes: 64 additions & 0 deletions
64
...EB-INF/templates/includes/metadataEditor/partials/media-detail-media-formatted-time.xhtml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,64 @@ | ||
<!-- | ||
* | ||
* (c) Kitodo. Key to digital objects e. V. <[email protected]> | ||
* | ||
* This file is part of the Kitodo project. | ||
* | ||
* It is licensed under GNU General Public License version 3 or later. | ||
* | ||
* For the full copyright and license information, please read the | ||
* GPL3-License.txt file that was distributed with this source code. | ||
* | ||
--> | ||
|
||
<ui:composition | ||
xmlns:h="http://xmlns.jcp.org/jsf/html" | ||
xmlns:p="http://primefaces.org/ui" | ||
xmlns:ui="http://xmlns.jcp.org/jsf/facelets" | ||
xmlns:a="http://xmlns.jcp.org/jsf/passthrough"> | ||
|
||
<p:outputPanel id="mediaDetailMediaFormattedTime" rendered="#{DataEditorForm.galleryPanel.mediaPartialsPanel.enabled}" > | ||
<p:commandButton title="#{msgs.jumpBackwardOnSecond}" | ||
type="button" | ||
icon="fa fa-step-backward" | ||
styleClass="secondary" | ||
a:data-media-formatted-time-jump-milliseconds="-1000"/> | ||
<p:commandButton title="#{msgs.jumpBackwardOnHundredMilliseconds}" | ||
type="button" | ||
icon="fa fa-chevron-left" | ||
styleClass="media-formatted-time-jump-button secondary" | ||
a:data-media-formatted-time-jump-milliseconds="-100"/> | ||
<p:commandButton title="#{msgs.jumpBackwardTenMilliseconds}" | ||
type="button" | ||
icon="fa fa-angle-double-left" | ||
styleClass="media-formatted-time-jump-button secondary" | ||
a:data-media-formatted-time-jump-milliseconds="-10"/> | ||
<p:commandButton title="#{msgs.jumpBackwardOneMillisecond}" | ||
type="button" | ||
icon="fa fa-angle-left" | ||
styleClass="media-formatted-time-jump-button secondary" | ||
a:data-media-formatted-time-jump-milliseconds="-1"/> | ||
<p:commandButton title="#{msgs.jumpForwardOneMillisecond}" | ||
type="button" | ||
icon="fa fa-angle-right" | ||
styleClass="media-formatted-time-jump-button secondary" | ||
a:data-media-formatted-time-jump-milliseconds="1"/> | ||
<p:commandButton title="#{msgs.jumpForwardTenMilliseconds}" | ||
type="button" | ||
icon="fa fa-angle-double-right" | ||
styleClass="media-formatted-time-jump-button secondary" | ||
a:data-media-formatted-time-jump-milliseconds="10"/> | ||
<p:commandButton title="#{msgs.jumpForwardOnHundredMilliseconds}" | ||
type="button" | ||
icon="fa fa-chevron-right" | ||
styleClass="media-formatted-time-jump-button secondary" | ||
a:data-media-formatted-time-jump-milliseconds="100"/> | ||
<p:commandButton title="#{msgs.jumpForwardOneSecond}" | ||
type="button" | ||
icon="fa fa-step-forward" | ||
styleClass="media-formatted-time-jump-button secondary" | ||
a:data-media-formatted-time-jump-milliseconds="1000"/> | ||
</p:outputPanel> | ||
<h:outputScript a:type="module" name="js/modules/media_detail_media_formatted_time.js" rendered="#{DataEditorForm.galleryPanel.mediaPartialsPanel.enabled}" /> | ||
|
||
</ui:composition> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters