-name = Z39.50/SRU metasearch
-description = Metasearching of Z39.50 and other targets via Index Data's Pazpar2 and associated tool stack.
+name = Pazpar2 metasearch integration
+description = Metasearching of Z39.50, SRU and SOLR targets via Index Data's Pazpar2 and associated tool stack.
core = 6.x
switch ($op) {
case 'list':
// facet blocks
+ // D6 has no setting for note type visibility, set
+ // the default to limit facet display to this type
+ $visPHP = '<?php
+ if (arg(0) == "node" && is_numeric(arg(1))) {
+ $node = node_load(array("nid" => arg(1)));
+ return $node->type == "mkdru";
+ }
+?>';
+
// NB: block caching is redundant for static content
$blocks['mkdru_sources']['info'] = t('mkdru - source facets');
$blocks['mkdru_sources']['cache'] = BLOCK_NO_CACHE;
+ $blocks['mkdru_sources']['visibility'] = 2;
+ $blocks['mkdru_sources']['pages'] = $visPHP;
$blocks['mkdru_subjects']['info'] = t('mkdru - subject facets');
$blocks['mkdru_subjects']['cache'] = BLOCK_NO_CACHE;
+ $blocks['mkdru_subjects']['visibility'] = 2;
+ $blocks['mkdru_subjects']['pages'] = $visPHP;
$blocks['mkdru_authors']['info'] = t('mkdru - author facets');
$blocks['mkdru_authors']['cache'] = BLOCK_NO_CACHE;
+ $blocks['mkdru_authors']['visibility'] = 2;
+ $blocks['mkdru_authors']['pages'] = $visPHP;
// search blocks
$result = db_query("SELECT title, nid FROM {node} WHERE type = 'mkdru';");
while ($node = db_fetch_object($result)) {