Closed tcatapano closed 4 years ago
this is a website bug. In fact, there are two related website bugs, but first, if the query were to be made correctly, it would be http://z2.punkish.org/v2/treatments?facets=true&stats=true&journalTitle=European%20Jornal%20of%20Taxonomy
which would result in 20 record as the facet suggested
{
"value": {
"search-criteria": {
"journalTitle": "European Jornal of Taxonomy",
"page": "1",
"path": "treatments",
"size": "30",
"sortBy": "treatmentId:ASC",
"xml": "false"
},
"num-of-records": 20,
"_links": {
"self": {
"href": "http://z2.punkish.org/v2/treatments?journalTitle=European Jornal of Taxonomy&page=1&size=30&sortBy=treatmentId:ASC&xml=false"
},
"prev": {
"href": "http://z2.punkish.org/v2/treatments?journalTitle=European Jornal of Taxonomy&page=1&size=30&sortBy=treatmentId:ASC&xml=false"
},
"next": {
"href": "http://z2.punkish.org/v2/treatments?journalTitle=European Jornal of Taxonomy&page=1&size=30&sortBy=treatmentId:ASC&xml=false"
}
},
…
The two problems with the website:
two bonus bugs or issues with the website
a relatively minor UI issue, at least on my browser (Safari), I am not able to really click on the facet checkboxes easily. The checkbox works if I click on the label, but I can't seem to click on the box itself. Could be a CSS issue. As a user @myrmoteras should also test these kinds of issues.
this second one is a rather problematic one that I just noticed. The website URL doesn't change at all. I find the API call displayed to be very helpful while testing the website, thanks for that, but I hope the website URL will be updated with every click. I website that doesn't update the URL (usually a POST action, although this one does seem to be correctly using GET) would break all tenets of the semantic, linked web. One wouldn't be able to bookmark or share URLs. I hope the current behavior will be changed appropriately.
Note: I will try to assign only @teodorgeorgiev to this
@tcatapano - all fixed, please check. All query parameters have been added to the URL, so now you can share searches and report problems. With regards to the Safari issue - we couldn't make to reproduce it, but so far we have tested only on Safari on a virtual box. Sorry, no MAC at home :)
on the test site (http://blr.uplaysandbox.website) a "Journal" search for term "European" (http://z2.punkish.org/v2/treatments?facets=true&stats=true&journalTitle=European) returns a Treatments result set with the following JOURNALTITLE facet values counts:
Setting aside the issue of the misspelled "Jornal" in one of the values, filtering on the value "European Jornal of Taxonomy" does not seem to reduce the results to 20 as would be expected. Possibly related, when the facet value is selected and the results rewritten the API URL does not change to show whether the facet query was made.
Not clear where the bug source is so assigning to both @punkish and @teodorgeorgiev