Changes between Initial Version and Version 1 of facets


Ignore:
Timestamp:
Jun 8, 2015, 8:38:44 AM (9 years ago)
Author:
dwinter
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • facets

    v1 v1  
     1Die Felder aus dem Index die als Facettes ausgewählt werden können. Ist in
     2{{{facetapi.callbacks.inc}}}
     3
     4festgelete.
     5
     6{{{
     7 $facets['author'] = array(
     8    'label' => t('Author'),
     9    'description' => t('Filter by author.'),
     10    'field' => 'author_c',
     11    'facet mincount allowed' => TRUE,
     12
     13  );
     14
     15
     16  $facets['title'] = array(
     17      'label' => t('Title'),
     18      'description' => t('Filter by title.'),
     19      'field' => 'title_s',
     20      'facet mincount allowed' => TRUE,
     21  );
     22
     23
     24  $facets['doc-type'] = array(
     25      'label' => t('Type of item'),
     26      'description' => t('Filter by the type of item (field: doc-type).'),
     27      'field' => 'doc-type',
     28      'facet mincount allowed' => TRUE,
     29      'map callback' => 'solrsearch_map_doc_type',
     30  );
     31
     32  $facets['access-type'] = array(
     33      'label' => t('Access restrictions'),
     34      'description' => t('Filter by Access Type.'),
     35      'field' => 'access-type',
     36      'facet mincount allowed' => TRUE,
     37  );
     38
     39
     40  $facets['collection'] = array(
     41      'label' => t('Filter by collection'),
     42      'description' => t('Filter by Collection (field:collection).'),
     43      'field' => 'collection',
     44      'facet mincount allowed' => TRUE,
     45  );
     46
     47 $facets['provider'] = array(
     48      'label' => t('Filter by provider'),
     49      'description' => t('Filter by Provider.'),
     50      'field' => 'provider',
     51      'facet mincount allowed' => TRUE,
     52  );
     53
     54 $facets['data_provider'] = array(
     55      'label' => t('Filter by data provider'),
     56      'description' => t('Filter by Data provider .'),
     57      'field' => 'data_provider',
     58      'facet mincount allowed' => TRUE,
     59  );
     60
     61
     62 $facets['type'] = array(
     63      'label' => t('Filter bytype'),
     64      'description' => t('Filter by type .'),
     65      'field' => 'type',
     66      'facet mincount allowed' => TRUE,
     67  );
     68
     69
     70  $facets['year'] = array(
     71    'label' => t('Year'),
     72    'description' => t('Filter by the year.'),
     73    'field' => 'year',
     74    'query types' => array('integer'),
     75    'allowed operators' => array(FACETAPI_OPERATOR_AND => TRUE),
     76      'min callback' => 'solrsearch_get_min_integer',
     77      'max callback' => 'solrsearch_get_max_integer',
     78      'gap callback' => 'solrsearch_get_gap_integer',
     79      'default sorts' => array(
     80      array('active', SORT_DESC),
     81      array('indexed', SORT_ASC),
     82    ),
     83  );
     84
     85}}}