Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Invalid date string in iso2geoBL.xsl #14

Open
waynegraham opened this issue Mar 11, 2015 · 0 comments
Open

Invalid date string in iso2geoBL.xsl #14

waynegraham opened this issue Mar 11, 2015 · 0 comments
Labels

Comments

@waynegraham
Copy link

Running the iso2geoBL.xsl transform on metadata from GeoNetwork produces a Solr doc that is rejected with the following response:

RSolr::Error::Http - 400 Bad Request
Error: {'responseHeader'=>{'status'=>400,'QTime'=>1},'error'=>{'msg'=>'Invalid Date String:\'2010-11-08\'','code'=>400}}

This appears to be in the layer_modified_dt field. I believe this requires a full timestamp.

https://github.com/geoblacklight/geoblacklight-schema/blob/master/conf/schema.xml#L72

https://cwiki.apache.org/confluence/display/solr/Working+with+Dates

May need to update https://github.com/OpenGeoMetadata/GeoCombine/blob/master/lib/xslt/iso2geoBL.xsl#L218-L229

So the fallback can generate a fake timestamp (maybe with xs:time?).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants