georchestra / mapstore2-georchestra

geOrchestra newest viewer
Other
6 stars 23 forks source link

Problem with XML metadatas parsing #587

Open jusabatier opened 1 year ago

jusabatier commented 1 year ago

Describe the bug When clicking on the metadata button of a layer from the TOC, it only show the metadata link in the popup, XML data isn't parsed (title, desc, dates, ...) Here it not works : https://geoportail.lepuyenvelay.fr/mapstore/#/context/Test

It only happen in context, not when using the home viewer. Here it works : https://geoportail.lepuyenvelay.fr/mapstore/msiframe/?x=432356.50&y=5628270.98&z=11&lb=1&layers=plu:zone_urba

To Reproduce Steps to reproduce the behavior:

  1. Open a context
  2. Add some layer from GS's WMS server with both html and xml metadata linked
  3. Select it and click on its metadata button
  4. Only URL appear in popup

Expected behavior We should have all MD informations like title, description, dates, contacts, etc..

Screenshots image

image

landryb commented 1 month ago

the code handling that is in https://github.com/geosolutions-it/MapStore2/blob/2023.02.xx/web/client/epics/catalog.js#L377 - does your text/xml md link finish with the xml view ? here it works fine.

jusabatier commented 1 month ago

I don't think the MD link is the problem as it work fine on the MS home viewer. It looks like it's handled differently on contexts viewers.