slub/dfg-viewer

Error at OpenLayers

Closed this issue · 15 comments

I get an error, while opening a METS-File (http://www.lwl.org/325dig-download/Lesesaal-Digitalisate/C_Adelsarchive/Ber/Ber.Hss/Ber_Hss_RT_3-5/METS.xml) in the Demonstrator V3. The old Version works without problems.

Details zum Fehler auf der Webseite

Benutzer-Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; .NET4.0C; .NET4.0E)
Zeitstempel: Wed, 5 Mar 2014 11:01:01 UTC

Meldung: 'null' ist Null oder kein Objekt
Zeile: 138
Zeichen: 9
Code: 0
URI: http://dfg-viewer.de/typo3conf/ext/dlf/lib/OpenLayers/lib/OpenLayers/Tile.js

Doesn't work with Firefox or Chrome, too.

Thank you for this issue. I can reproduce it and we will explore the reason.

I found the reason for this behaviour. It's the URI of the images in the given METS-file which contains spaces. By proper escaping the URI we will fix this issue soon.

Thank you for this information!
Is there any timeframe, when the V3 should be online?
Any information concerning this issue would be appreciated!

This bug was fixed in commit f2e89efe1067126c90e4f43d9c0af7e147d5bfc1 in Goobi.Presentation.

Good Morning,

Is this fix deployed yet?
I get still the same Error on the Demonstrator!

Best Regards

S. Makowski

Von: Sebastian Meyer [mailto:notifications@github.com]
Gesendet: Montag, 7. April 2014 12:18
An: slub/dfg-viewer
Cc: StephanMa
Betreff: Re: [dfg-viewer] Error at OpenLayers (#2)

This bug was fixed in commit f2e89efhttps://github.com/slub/dfg-viewer/commit/f2e89efe1067126c90e4f43d9c0af7e147d5bfc1 in Goobi.Presentation.


Reply to this email directly or view it on GitHubhttps://github.com//issues/2#issuecomment-39714663.

Der LWL im Überblick:
Der Landschaftsverband Westfalen-Lippe (LWL) arbeitet als Kommunalverband mit mehr als 16.000 Beschäftigten für die 8,2 Millionen Menschen in der Region. Der LWL betreibt 35 Förderschulen, 21 Krankenhäuser, 17 Museen und ist einer der größten Hilfezahler für Menschen mit Behinderung. Er erfüllt damit Aufgaben im sozialen Bereich, in der Behinderten- und Jugendhilfe, in der Psychiatrie und in der Kultur, die sinnvollerweise westfalenweit wahrgenommen werden. Ebenso engagiert er sich für eine inklusive Gesellschaft in allen Lebensbereichen. Die neun kreisfreien Städte und 18 Kreise in Westfalen-Lippe sind die Mitglieder des LWL. Sie tragen und finanzieren den Landschaftsverband, dessen Aufgaben ein Parlament mit 106 Mitgliedern aus den westfälischen Kommunen gestaltet.

Der LWL auf Facebook:
http://www.facebook.com/LWL2.0

The fix wasn't deployed until now. Please be sure to reload the tx_dlf_pageview.js file.
Do you still get the errors?

Yes, i still get this error while trying this METS-File in the Demonstrator

http://dfg-viewer.de/v3/?set%5Bmets%5D=http%3A%2F%2Fwww.lwl.org%2F325dig-download%2FLesesaal-Digitalisate%2FC_Adelsarchive%2FBer%2FBer.Hss%2FBer_Hss_RT_3-1%2FMETS.xml

I tried IE and Firefox as well.

Von: Sebastian Meyer [mailto:notifications@github.com]
Gesendet: Dienstag, 8. April 2014 09:37
An: slub/dfg-viewer
Cc: StephanMa
Betreff: Re: [dfg-viewer] Error at OpenLayers (#2)

The fix wasn't deployed until now. Please be sure to reload the tx_dlf_pageview.js file.
Do you still get the errors?


Reply to this email directly or view it on GitHubhttps://github.com//issues/2#issuecomment-39819650.

Der LWL im Überblick:
Der Landschaftsverband Westfalen-Lippe (LWL) arbeitet als Kommunalverband mit mehr als 16.000 Beschäftigten für die 8,2 Millionen Menschen in der Region. Der LWL betreibt 35 Förderschulen, 21 Krankenhäuser, 17 Museen und ist einer der größten Hilfezahler für Menschen mit Behinderung. Er erfüllt damit Aufgaben im sozialen Bereich, in der Behinderten- und Jugendhilfe, in der Psychiatrie und in der Kultur, die sinnvollerweise westfalenweit wahrgenommen werden. Ebenso engagiert er sich für eine inklusive Gesellschaft in allen Lebensbereichen. Die neun kreisfreien Städte und 18 Kreise in Westfalen-Lippe sind die Mitglieder des LWL. Sie tragen und finanzieren den Landschaftsverband, dessen Aufgaben ein Parlament mit 106 Mitgliedern aus den westfälischen Kommunen gestaltet.

Der LWL auf Facebook:
http://www.facebook.com/LWL2.0

I can't reproduce the error anymore. Are you sure your browser properly reloaded the javascript file?
Which version of Firefox and IE do you use?

I cleared the Cache manually in IE (8.0) and Firefox (27). Still no Image.
But Google Chrome Portable (32) works fine!
So I rebooted and cleared any Tempfile by myself. Now it works fine!

Thank you!

Von: Sebastian Meyer [mailto:notifications@github.com]
Gesendet: Dienstag, 8. April 2014 10:00
An: slub/dfg-viewer
Cc: StephanMa
Betreff: Re: [dfg-viewer] Error at OpenLayers (#2)

I can't reproduce the error anymore. Are you sure your browser properly reloaded the javascript file?
Which version of Firefox and IE do you use?


Reply to this email directly or view it on GitHubhttps://github.com//issues/2#issuecomment-39821205.

Der LWL im Überblick:
Der Landschaftsverband Westfalen-Lippe (LWL) arbeitet als Kommunalverband mit mehr als 16.000 Beschäftigten für die 8,2 Millionen Menschen in der Region. Der LWL betreibt 35 Förderschulen, 21 Krankenhäuser, 17 Museen und ist einer der größten Hilfezahler für Menschen mit Behinderung. Er erfüllt damit Aufgaben im sozialen Bereich, in der Behinderten- und Jugendhilfe, in der Psychiatrie und in der Kultur, die sinnvollerweise westfalenweit wahrgenommen werden. Ebenso engagiert er sich für eine inklusive Gesellschaft in allen Lebensbereichen. Die neun kreisfreien Städte und 18 Kreise in Westfalen-Lippe sind die Mitglieder des LWL. Sie tragen und finanzieren den Landschaftsverband, dessen Aufgaben ein Parlament mit 106 Mitgliedern aus den westfälischen Kommunen gestaltet.

Der LWL auf Facebook:
http://www.facebook.com/LWL2.0

We got some errors from other users which use already encoded URIs in their documents. Those got double encoded by the DFG Viewer and therefore caused problems.
Thus we further investigated the issue and had to undo the changes commited as a solution to your problem. The XML Linking Language (XLINK) specification requires values of the xlink:href attributes to be RFC 3986 compliant, which means that spaces have to be encoded as "%20".

So in order to have your METS files work with the DFG Viewer you have to properly encode the URIs.

See also:
http://www.w3.org/TR/xlink11/#link-locators
https://tools.ietf.org/html/rfc3986#section-2

When will you rollback the DFG-Viewer fix?

Then I have to remake all of my METS Files.

We already rolled back the changes for version 3 since it is still not officially productive.

Since last week we get the same error on the following METS-File
http://www.lwl.org/325dig-download/Lesesaal-Digitalisate/C_Adelsarchive/Dül/Dül.Croy/JPEG/NEml/NEml_102/mets.xml
In IE it works fine but in FF and Chrome not.

Suggestion: There aren't any blanks in the Image-URL. Does the ü/Ü need to be encoded, too?

When i try to open an not-encoded Image-URL like
http://www.lwl.org/325dig-download/Lesesaal-Digitalisate/C_Adelsarchive/Dül/Dül.Croy/JPEG/NEml/NEml_102/default/DÜL_NEml_102_0003.jpg
it works. But not in the DFG-Viewer.

Any Help would be appreciated

The URL has to be encoded following the XML datatype of "anyURI". That's part of the xlink specification and not a specific requirement of the DFG Viewer. So, yes, "ü/Ü" has to be encoded, too.

I am sorry I can not provide links to the respective documentation right now, because I am currently sitting in a train. But you should find them quite easily when googling for the xlink and anyURI specifications.

-------- Ursprüngliche Nachricht --------
Von: StephanMa
Datum:02.06.2014 10:45 (GMT+01:00)
An: slub/dfg-viewer
Cc: "Meyer, Sebastian"
Betreff: Re: [dfg-viewer] Error at OpenLayers (#2)

Since last week we get the same error on the following METS-File
http://www.lwl.org/325dig-download/Lesesaal-Digitalisate/C_Adelsarchive/Dül/Dül.Croy/JPEG/NEml/NEml_102/mets.xmlhttp://www.lwl.org/325dig-download/Lesesaal-Digitalisate/C_Adelsarchive/D%C3%BCl/D%C3%BCl.Croy/JPEG/NEml/NEml_102/mets.xml
In IE it works fine but in FF and Chrome not.

Suggestion: There aren't any blanks in the Image-URL. Does the ü/Ü need to be encoded, too?

When i try to open an not-encoded Image-URL like
http://www.lwl.org/325dig-download/Lesesaal-Digitalisate/C_Adelsarchive/Dül/Dül.Croy/JPEG/NEml/NEml_102/default/DÜL_NEml_102_0003.jpghttp://www.lwl.org/325dig-download/Lesesaal-Digitalisate/C_Adelsarchive/D%C3%BCl/D%C3%BCl.Croy/JPEG/NEml/NEml_102/default/D%C3%9CL_NEml_102_0003.jpg
it works. But not in the DFG-Viewer.

Any Help would be appreciated


Reply to this email directly or view it on GitHubhttps://github.com//issues/2#issuecomment-44814099.

With encoded URIs your METS-file is working in the DFG-Viewer. I just tried it.

As Sebastian Meyer mentioned already above, all values of the xlink:href attribute must be "percent encoded" like described in RFC3986.

http://www.w3.org/TR/xlink11/#link-locators
https://tools.ietf.org/html/rfc3986#section-2

The DFG-Viewer version 3.0 is now the default since 22th May.