Closed rduivenvoorde closed 10 years ago
It seems that certain esri filled metadata is full of newlines, giving strange results in our result list.
For example search for 'Kunst' in the Nationaal Georegister. The first record then is several lines high.
If you look at the xml in a browser: http://www.nationaalgeoregister.nl/geonetwork/srv/eng/csw?outputFormat=application%2Fxml&service=CSW&outputSchema=http%3A%2F%2Fwww.opengis.net%2Fcat%2Fcsw%2F2.0.2&request=GetRecordById&version=2.0.2&elementsetname=full&id=5687365c-b343-4820-b0df-02757ba9c85c
you see teh dc:type on one line, but if you look into the source, you see it has a lot of newlines in it:
dc:typeVector
Simple Multipoint FALSE 41 TRUE FALSE Composite object 41</dc:type>
So, isn't it best to remove newlines from this result items? Or at least from 'type' but I would think also from 'title'?
@rduivenvoorde fixed in master (1f396d58ce3f57943d57e019b03d27d5134fb65d). Let me know if this works for you.
yep working :-)
closing this one
It seems that certain esri filled metadata is full of newlines, giving strange results in our result list.
For example search for 'Kunst' in the Nationaal Georegister. The first record then is several lines high.
If you look at the xml in a browser: http://www.nationaalgeoregister.nl/geonetwork/srv/eng/csw?outputFormat=application%2Fxml&service=CSW&outputSchema=http%3A%2F%2Fwww.opengis.net%2Fcat%2Fcsw%2F2.0.2&request=GetRecordById&version=2.0.2&elementsetname=full&id=5687365c-b343-4820-b0df-02757ba9c85c
you see teh dc:type on one line, but if you look into the source, you see it has a lot of newlines in it:
dc:typeVector
So, isn't it best to remove newlines from this result items? Or at least from 'type' but I would think also from 'title'?