forked from kitodo/kitodo-production
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request kitodo#5872 from effective-webwork/handle-missing-…
…meta-xml Handle error opening metadata file
- Loading branch information
Showing
5 changed files
with
70 additions
and
3 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
45 changes: 45 additions & 0 deletions
45
...webapp/WEB-INF/templates/includes/metadataEditor/dialogs/errorLoadingMetadataDialog.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,45 @@ | ||
<!-- | ||
* | ||
* (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="http://www.w3.org/1999/xhtml" | ||
xmlns:h="http://xmlns.jcp.org/jsf/html" | ||
xmlns:ui="http://xmlns.jcp.org/jsf/facelets" | ||
xmlns:p="http://primefaces.org/ui"> | ||
<p:dialog id="errorLoadingMetadataDialog" | ||
widgetVar="errorLoadingMetadataDialog" | ||
width="500px" | ||
showHeader="false" | ||
visible="#{not empty DataEditorForm.metadataFileLoadingError}" | ||
onShow="if($('#loadingScreen').length) {$('#loadingScreen').hide();}" | ||
appendTo="@(body)" | ||
resizable="false" | ||
closable="false" | ||
modal="true"> | ||
<h:panelGroup> | ||
<h3>#{err['errorLoadingMetadataFile']}</h3> | ||
<h:panelGroup layout="block" | ||
styleClass="select-note ui-messages-error"> | ||
<h:outputText value="#{DataEditorForm.metadataFileLoadingError}"/> | ||
</h:panelGroup> | ||
</h:panelGroup> | ||
<h:panelGroup layout="block" | ||
styleClass="dialogButtonWrapper"> | ||
<p:button outcome="/pages/desktop.jsf" | ||
value="#{msgs['ok']}" | ||
styleClass="primary right" | ||
icon="fa fa-close" | ||
iconPos="right"/> | ||
</h:panelGroup> | ||
</p:dialog> | ||
</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