icaruseu / mom-ca

Monasterium.net (http://www.monasterium.net/mom) - repository and collaborative archive
https://github.com/icaruseu/mom-ca/wiki
GNU General Public License v3.0
17 stars 11 forks source link

`rect` is missing namespace in svg-files for image annotations #777

Open GVogeler opened 6 years ago

GVogeler commented 6 years ago

In some recently created SVG files in xrx.user/.../metadata.svg the rect element has an empty namespace:

<rect xmlns="" id="DOZA_Urkunden_12250531_c_r_jpg_zone_08754923490124644" x="215" y="67" width="225" height="270" style="stroke:red;stroke-width:2;fill-opacity:0;" onClick="javascript:jQuery(document).imageTool.showMetadata('DOZA_Urkunden_12250531_c_r_jpg_zone_08754923490124644');"/>

Other elements in the files inherit their namespace from <svg xmlns="http://www.w3.org/2000/svg">. This entry is created by the EditMOM3-image annotation application. At least for consistency reasons it thould be checked if the namespace is exected anywhere.

GVogeler commented 6 years ago

https://github.com/icaruseu/mom-ca/blob/57134ff12dc83234e9c32e62889378d6a364381e/my/XRX/src/mom/app/annotation/service/get-svg-file.service.xml#L66 and https://github.com/icaruseu/mom-ca/blob/57134ff12dc83234e9c32e62889378d6a364381e/my/XRX/src/mom/app/collection/service/my-collection-publish.service.xml#L136 use generic namesspace *:rect to adress the element.