add review
This commit is contained in:
parent
3d8761c899
commit
2aec886a84
|
@ -109,7 +109,8 @@ public class OPACConfig {
|
|||
* @return boolean if catalog is configured to use FileUpload
|
||||
*/
|
||||
public static boolean getFileUploadConfig(String catalogName) {
|
||||
return getCatalog(catalogName).getBoolean("fileUpload");
|
||||
return getCatalog(catalogName).containsKey("fileUpload")
|
||||
&& getCatalog(catalogName).getBoolean("fileUpload");
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
@ -45,7 +45,6 @@ import org.xml.sax.SAXException;
|
|||
|
||||
public class FileUploadDialog extends MetadataImportDialog {
|
||||
|
||||
private UploadedFile file;
|
||||
private String selectedCatalog;
|
||||
private static final Logger logger = LogManager.getLogger(FileUploadDialog.class);
|
||||
|
||||
|
@ -113,14 +112,6 @@ public class FileUploadDialog extends MetadataImportDialog {
|
|||
return catalogsWithFileUpload;
|
||||
}
|
||||
|
||||
/**
|
||||
* Set the file.
|
||||
* @param file the file to upload
|
||||
*/
|
||||
public void setFile(UploadedFile file) {
|
||||
this.file = file;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get selectedCatalog.
|
||||
* @return the selected catalog.
|
||||
|
|
|
@ -157,6 +157,7 @@ cannotDeleteProject=Das Projekt kann nicht gel\u00F6scht werden, solange Vor\u00
|
|||
cannotDeleteTemplate=Die Produktionsvorlage kann nicht gel\u00F6scht werden, da bereits Vor\u00E4nge auf dieser Grundlage erzeugt wurden.
|
||||
changeDocstructType=Typ des Strukturelements \u00E4ndern
|
||||
choice=Aktionen
|
||||
chooseFile=Datei auswählen
|
||||
citation.accessTimestamp=Zugriff\:
|
||||
citation.containedIn=In\:
|
||||
citation.quotes.close=\u201C
|
||||
|
|
|
@ -161,6 +161,7 @@ cannotDeleteProject=The project cannot be deleted when processes exist in this p
|
|||
cannotDeleteTemplate=This template cannot be deleted because it has already been used to create processes.
|
||||
changeDocstructType=Change docstruct type
|
||||
choice=Actions
|
||||
chooseFile=Choose file
|
||||
citation.accessTimestamp=Accessed\:
|
||||
citation.containedIn=In\:
|
||||
citation.pages=Pages
|
||||
|
@ -677,6 +678,7 @@ newProcess.catalogueSearch.manyChildrenWarning={0} child processes have been fou
|
|||
newProcess.catalogueSearch.parentIDMetadataMissing=No parent ID metadata ("higherlevelIdentifier") found in ruleset! Resetting import depth to 1.
|
||||
newProcess.catalogueSearch.parentIDParameterMissing=Parameter for retrieving child documents of a specific parent document not configured in kitodo_opac.xml for selected catalog (missing element "parentElement")!
|
||||
newProcess.catalogueSearch.savingSecondaryProcesses=Saving secondary processes
|
||||
newProcess.fileUpload.heading=Fileupload
|
||||
newProcess.titleGeneration.creationRuleNotFound=No title creation rules found for docType \u201E{0}\u201C in ruleset \u201E{1}\u201C!
|
||||
newProject=New project
|
||||
newRole=New role
|
||||
|
|
|
@ -46,8 +46,7 @@
|
|||
<p:panelGrid>
|
||||
<p:row>
|
||||
<div>
|
||||
<p:fileUpload value="#{CreateProcessForm.fileUploadDialog.file}"
|
||||
rendered="#{CreateProcessForm.fileUploadDialog.selectedCatalog ne null}"
|
||||
<p:fileUpload rendered="#{CreateProcessForm.fileUploadDialog.selectedCatalog ne null}"
|
||||
fileUploadListener="#{CreateProcessForm.fileUploadDialog.handleFileUpload}"
|
||||
allowTypes="/(\.|\/)(xml)$/"
|
||||
skinSimple="true"
|
||||
|
|
Loading…
Reference in New Issue