result_display formatting doesn't work and filters don't show when URIs are used as field names, for example, in the result below, "http://purl.org/dc/terms/creator" is used instead of "author", since currently the code assumes . is used to get data from an object, the split turns http://purl.org/dc/terms/creator into ["http://purl", "org/dc/terms/creator"] and breakes the functionality.
I forked the code and did a quick fix but my fix will not allow things like http://purl.org/dc/terms/creator.first_name to work, since it skips the split.
In the fix some jQuery selectors have been replaced with [id=""] syntax, as selectors like jQuery('#facetview_http_//purl_org/dc/terms/creator') don't seem to work using the standard syntax.
{
"_index": "rdfdata",
"_type": "resource",
"_id": "http://www.eea.europa.eu/highlights/check-last-year2019s-water-quality-in-your-favourite-bathing-spot",
"_score": 1.0,
"_source": {
"http://www.eea.europa.eu/portal_types/Highlight#media": "http://www.eea.europa.eu/highlights/check-last-year2019s-water-quality-in-your-favourite-bathing-spot/image_xlarge",
"http://rdfdata.eionet.europa.eu/amp/ontology/managementPlan": "2011",
"http://www.eea.europa.eu/portal_types/Highlight#publishDate": "2008-06-02T08:00:00.0",
"http://www.w3.org/2000/01/rdf-schema#label": "Check last year's water quality in your favourite bathing spot",
"http://www.eea.europa.eu/portal_types/Highlight#text": "<p>With WISE, users can check the water quality on an interactive map. They can also select a country or a region, download the data for their selection and make comparisons with previous years. The downloaded data can also be visualised in geospatial mapping programmes such as Google Earth and Microsoft Live maps.</p> <p>WISE is a partnership between the European Commission (DG Environment, Joint Research Centre and Eurostat) and the European Environment Agency, closely collaborating with EU Member States. An annual assessment of the bathing water quality in the EU will be presented today by the European Commission.</p> <h3>State of bathing water<br /></h3> <ul><li><a href='http://www.eea.europa.eu/themes/water/status-and-monitoring/state-of-bathing-water/state/state-of-bathing-water' class='external-link'>Visit EEA's thematic site on 'state of bathing water'</a></li></ul> <p> </p> <h3>See also</h3> <ul><li>European Commission's press release: <a class='external-link' href='http://europa.eu/rapid/pressReleasesAction.do?reference=IP/08/834&format=HTML&aged=0&language=EN&guiLanguage=en'> Bathing water quality in the EU remains high<br /></a></li></ul> <p> </p>",
"http://purl.org/dc/terms/title": "Check last year's water quality in your favourite bathing spot",
"http://www.w3.org/1999/02/22-rdf-syntax-ns#type": [
"http://rdfdata.eionet.europa.eu/amp/ontology/Output",
"http://purl.org/ontology/bibo/Webpage",
"http://www.eea.europa.eu/portal_types/Highlight#Highlight"
],
"http://www.eea.europa.eu/portal_types/Highlight#themes": [
"coast_sea",
"water"
],
"http://purl.org/dc/terms/modified": "2011-04-13T17:17:40.0",
"http://www.eea.europa.eu/portal_types/Highlight#id": "check-last-year2019s-water-quality-in-your-favourite-bathing-spot",
"http://purl.org/dc/terms/created": "2008-05-30T11:55:18.0",
"http://purl.org/dc/terms/creator": "karadgu",
"http://www.eea.europa.eu/portal_types/Highlight#management_plan": "2011",
"http://www.eea.europa.eu/portal_types/Highlight#visibilityLevel": "middle",
"http://purl.org/dc/terms/issued": "2008-06-02T08:00:00.0",
"http://purl.org/dc/terms/isPartOf": "http://www.eea.europa.eu/highlights",
"http://cr.eionet.europa.eu/ontologies/contreg.rdf#tag": [
"coast_sea",
"water"
],
"http://purl.org/dc/terms/description": "The 'Water Information System for Europe' (WISE) now allows users to view the quality of the bathing water in more than 21 000 coastal beaches and freshwater bathing sites across Europe during the 2007 bathing season. WISE also includes new information on urban wastewater treatment and water quality in European lakes and rivers."
}
},
result_display formatting doesn't work and filters don't show when URIs are used as field names, for example, in the result below, "http://purl.org/dc/terms/creator" is used instead of "author", since currently the code assumes
.is used to get data from an object, the split turnshttp://purl.org/dc/terms/creatorinto["http://purl", "org/dc/terms/creator"]and breakes the functionality.I forked the code and did a quick fix but my fix will not allow things like
http://purl.org/dc/terms/creator.first_nameto work, since it skips the split.In the fix some jQuery selectors have been replaced with
[id=""]syntax, as selectors likejQuery('#facetview_http_//purl_org/dc/terms/creator')don't seem to work using the standard syntax.