MetacatUI: Issueshttps://projects.ecoinformatics.org/ecoinfo/https://projects.ecoinformatics.org/ecoinfo/ecoinfo/favicon.ico?14691340362015-02-17T16:18:48ZEcoinformatics Redmine
Redmine Bug #6667 (Closed): My Packages link uses incorrect query formathttps://projects.ecoinformatics.org/ecoinfo/issues/66672015-02-17T16:18:48Zben leinfelderleinfelder@nceas.ucsb.edu
<p>I was looking into a help request about a user's packages not showing up for her, turns out the query has some incorrectly placed escaped quotes around the rightsHolder portion clause.</p>
<p>Here's an example:</p>
<p><a class="external" href="https://knb.ecoinformatics.org/knb/d1/mn/v1/query/solr/fl=id,title,origin,pubDate,dateUploaded,abstract,resourceMap,beginDate,endDate,read_count_i,geohash_9,northBoundCoord,southBoundCoord,eastBoundCoord,westBoundCoord&q=+-obsoletedBy:*+%22%2BrightsHolder%3Auid%3Dkepler%2Co%3Dunaffiliated%2Cdc%3Decoinformatics%2Cdc%3Dorg%22+formatType:METADATA&sort=dateUploaded+desc&wt=json&rows=25&start=0&facet=true&facet.sort=index&facet.field=keywords&facet.field=geohash_1&facet.field=geohash_2&facet.field=geohash_3&facet.field=geohash_4&facet.field=geohash_5&facet.field=geohash_6&facet.field=geohash_7&facet.field=geohash_8&facet.field=geohash_9&facet.mincount=1&facet.limit=-1?start=0">https://knb.ecoinformatics.org/knb/d1/mn/v1/query/solr/fl=id,title,origin,pubDate,dateUploaded,abstract,resourceMap,beginDate,endDate,read_count_i,geohash_9,northBoundCoord,southBoundCoord,eastBoundCoord,westBoundCoord&q=+-obsoletedBy:*+%22%2BrightsHolder%3Auid%3Dkepler%2Co%3Dunaffiliated%2Cdc%3Decoinformatics%2Cdc%3Dorg%22+formatType:METADATA&sort=dateUploaded+desc&wt=json&rows=25&start=0&facet=true&facet.sort=index&facet.field=keywords&facet.field=geohash_1&facet.field=geohash_2&facet.field=geohash_3&facet.field=geohash_4&facet.field=geohash_5&facet.field=geohash_6&facet.field=geohash_7&facet.field=geohash_8&facet.field=geohash_9&facet.mincount=1&facet.limit=-1?start=0</a></p>
<p>The important bit is:<br /><pre>\"+rightsHolder:uid=sjryan3,o=unaffiliated,dc=ecoinformatics,dc=org\"</pre></p>
<p>The quotes should only surround the value, not the field and value.</p>