Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

The search page can be customized in terms of filters and sort options. For the purpose of customizing search page an ontology has been defined.  

...

Code Block
@prefix :      <https://vivoweb.org/ontology/vitro-search-individual/> .
@prefix vitro-search: <https://vivoweb.org/ontology/vitro-search#> .
@prefix auth: <http://vitro.mannlib.cornell.edu/ns/vitro/authorization#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .

:locations_value
        a                        vitro-search:FilterValue ;
        rdfs:label               "Continent"@en-US ;
        vitro-search:id          "http://vivoweb.org/ontology/core#Continent" ;
        vitro-search:public      true ;
        vitro-search:isDefaultForRole  auth:SELF_EDITOR , auth:ADMIN , auth:PUBLIC .

:filter_type vitro-search:hasKnownValue :locations_value .


Sorting

The options for sorting search results can be also customized. The default configuration enables sorting by title ascending, by title descending, and by relevance. However, it is possible to extend list of fields for sorting. For instance, sorting by dates can be added. 

...