datacite / stats-portal

Static website for DataCite summary statistics
https://stats.datacite.org
MIT License
4 stars 0 forks source link

stats portal can't show stats for SPBPU #14

Closed kjgarza closed 6 years ago

kjgarza commented 6 years ago

https://stats.datacite.org/?fq=allocator_facet%3A%22SPBPU+-+Peter+the+Great+Polytechnic+University%22&#tab-datacentres

Solr API can't show result eirther https://search.datacite.org/api?q=*&fq=has_metadata%3Atrue&fq=is_active%3Atrue&fq=allocator_facet%3A%22SPBPU+-+Peter+the+Great+Polytechnic+University%22&

however search and fabrica work ok:

https://search.datacite.org/members/spbpu

[10:21] and fabrica

[10:21] https://doi.datacite.org/providers/spbpu/dois

kjgarza commented 6 years ago

TRailing spaces in the name of the datacentre are causing the error. lupo and bracco should catch this. Potential solution in Lupo :

AutoStripAttributes helps to remove unnecessary whitespaces from ActiveRecord or ActiveModel attributes. It's good for removing accidental spaces from user inputs (e.g. when user copy/pastes some value to a form and the value has extra spaces at the end). https://github.com/holli/auto_strip_attributes

kjgarza commented 6 years ago

more users https://github.com/rmm5t/strip_attributes less fetures

kjgarza commented 6 years ago

Should be fixed by next SOLR index