chenejac / VIVOTestMigrationJIRANotClosed

0 stars 0 forks source link

VIVO-1694: Faceted browsing in browse and search page - Cineca custom #123

Open chenejac opened 5 years ago

chenejac commented 5 years ago

alessandro galasso (Migrated from VIVO-1694) said:

The Cineca Faceted browsing functionality:  object oriented decomposition:

1)

new DocumentModifier based on json configuration file that can add new fields to the document (SOLR) with a recoursive approach:

configuration example:

 

{ 
   "solr":"principal-investigator",
   "qualifiedByDomain": "http://vivoweb.org/ontology/core#Project",
   "configContextFor": "http://purl.obolibrary.org/obo/BFO_0000055",
   "qualifiedBy": "http://vivoweb.org/ontology/core#ResearcherRole",
     "pivotsIndexProperty":{
      "configContextFor": "http://purl.obolibrary.org/obo/RO_0000052",
      "qualifiedBy": "http://xmlns.com/foaf/0.1/Person",

       "pivotsIndexProperty":{
        "configContextFor": "http://www.w3.org/2000/01/rdf-schema#label",
        "qualifiedBy": null,
       },
     },
  },

 

2) SearchQuery improvment to process the new fields  grouped by type and classgroup,

solr query :

 


q= .....
&facet=true
&facet.pivot=type,freetextKeyword_facets
&facet.pivot=type,Position_facets

 

3) view-template improvment to show the facets values and add filters

 

I think we can start to share the code for the DocumentModifier with a PR and then we make a decision if this is the rigth approach for the community code base.

 

 

 

 

 

 

 

 

 

chenejac commented 5 years ago

Andrew Woods said:

I think we can start to share the code for the DocumentModifier with a PR and then we make a decision if this is the rigth approach for the community code base.

Sounds like a good plan!

chenejac commented 5 years ago

alessandro galasso said:

[~accountid:60785ded115da6006f540529] here my PR for the DocumentModifier :

[https://github.com/vivo-project/Vitro/pull/123]

 

chenejac commented 5 years ago

Andrew Woods said:

Pending response to code review.