geopython / MetaSearch

*** We have moved! MetaSearch is now a core QGIS plugin! (2014-11-30). See QGIS repository
https://hub.qgis.org/wiki/quantum-gis/MetaSearch
Other
4 stars 11 forks source link

newlines giving strange results in our result list #59

Closed rduivenvoorde closed 10 years ago

rduivenvoorde commented 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.

screenshot from 2014-06-06 10 43 54

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'?

tomkralidis commented 10 years ago

@rduivenvoorde fixed in master (1f396d58ce3f57943d57e019b03d27d5134fb65d). Let me know if this works for you.

rduivenvoorde commented 10 years ago

yep working :-)

closing this one