mycore-org / mets-model Goto Github PK
View Code? Open in Web Editor NEWSimple METS Api
License: GNU General Public License v3.0
Simple METS Api
License: GNU General Public License v3.0
Is the MIMETYPE attribute realy mandatory for <mets:file>
java.lang.IllegalArgumentException: MIMETYPE or ID of a mets:file must not be null
at org.mycore.mets.model.Mets.createFileSec(Mets.java:420)
at org.mycore.mets.model.Mets.<init>(Mets.java:140)
at org.mycore.mets.iiif.MCRMetsMods2IIIFConverter.<init>(MCRMetsMods2IIIFConverter.java:89)
from org.mycore.mets.model.Mets
:
for (Element aFile : filesXP.evaluate(aFileGroup)) {
String id = aFile.getAttributeValue("ID");
String mimeType = aFile.getAttributeValue("MIMETYPE");
if (id == null || mimeType == null) {
throw new IllegalArgumentException("MIMETYPE or ID of a mets:file must not be null");
}
}
java.util.concurrent.CompletionException: java.lang.StringIndexOutOfBoundsException: begin -1, end 34, length 34 at java.base/java.util.concurrent.CompletableFuture.encodeThrowable(CompletableFuture.java:315) at java.base/java.util.concurrent.CompletableFuture.completeThrowable(CompletableFuture.java:320) at java.base/java.util.concurrent.CompletableFuture$AsyncRun.run(CompletableFuture.java:1807) at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136) at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635) at java.base/java.lang.Thread.run(Thread.java:833) Caused by: java.lang.StringIndexOutOfBoundsException: begin -1, end 34, length 34 at java.base/java.lang.String.checkBoundsBeginEnd(String.java:4601) at java.base/java.lang.String.substring(String.java:2704) at java.base/java.lang.String.substring(String.java:2677) at de.uni_jena.thulb.archive.media.MediaService.isMediaSupported(MediaService.java:180) at de.uni_jena.thulb.archive.media.events.MediaEventHandler.encodeMediaFile(MediaEventHandler.java:91) at de.uni_jena.thulb.archive.media.events.MediaEventHandler.lambda$handlePathCreated$2(MediaEventHandler.java:75) at org.mycore.util.concurrent.MCRTransactionableRunnable.run(MCRTransactionableRunnable.java:82) at java.base/java.util.concurrent.CompletableFuture$AsyncRun.run(CompletableFuture.java:1804)
Currently, mets-model
fails to convert mets:structMap[@TYPE="LOGICAL"]
document section into it's model, if this contains other elements than fptr
or div
- for example, it might also contain mptr
elements.
If Mets#processLogicalChildren encounters mptr
elements, the whole subtree will be ignored. This is even worse, since both fptr
and mptr
elements must be placed before any sibbling divs, so everything will be lost starting with this level.
org.jdom2.JDOMException: Encountered a SAX exception processing the Document:
at org.jdom2.transform.JDOMSource$DocumentReader.parse(JDOMSource.java:565)
at java.xml/com.sun.org.apache.xerces.internal.jaxp.validation.ValidatorHandlerImpl.validate(ValidatorHandlerImpl.java:731)
at java.xml/com.sun.org.apache.xerces.internal.jaxp.validation.ValidatorImpl.validate(ValidatorImpl.java:101)
at java.xml/javax.xml.validation.Validator.validate(Validator.java:124)
at org.mycore.mets.model.Mets.isValid(Mets.java:662)
at org.mycore.mets.model.Mets.<init>(Mets.java:135)
at org.mycore.mets.iiif.MCRMetsMods2IIIFConverter.<init>(MCRMetsMods2IIIFConverter.java:89)
...
Caused by: org.xml.sax.SAXParseException; cvc-type.3.1.1: Element 'mets:note' ist Simple Type und kann daher keine Attribute haben, mit Ausnahme der Attribute, deren Namespace-Name mit 'http://www.w3.org/2001/XMLSchema-instance' identisch ist und deren [lokaler Name] 'type', 'nil', 'schemaLocation' oder 'noNamespaceSchemaLocation' lautet. Es wurde allerdings das Attribut 'ubr:uri' gefunden.
at java.xml/com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.createSAXParseException(ErrorHandlerWrapper.java:204)
at java.xml/com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.error(ErrorHandlerWrapper.java:135)
at java.xml/com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:396)
in Mayx 2018 - Version .12 the METS XML Schema was extended:
Added xsd:anyAttribute with namespace ##other and processContents lax to these elements: agent/note
Please update the internal METS-Schema that my METS document can be validated and parsed!!!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.