...
 
Commits (164)
......@@ -110,7 +110,7 @@ function xc_browse_schema() {
'length' => '256',
'not null' => FALSE,
),
'default_query' => array(
'default_query' => array(
'description' => t('The default query creating the browseable list. Use Solr query syntax, put the schema field name into brackets like {xc:type007}.'),
'type' => 'text',
'size' => 'medium',
......@@ -196,13 +196,6 @@ function xc_browse_schema() {
'not null' => FALSE,
'default' => 'none',
),
'query_type' => array(
'description' => t('Solr query type to apply when searching (keyword, phrase, proximity etc.).'),
'type' => 'varchar',
'length' => '256',
'not null' => FALSE,
'default' => 'none',
),
'query_type' => array(
'description' => t('Solr query type to apply when searching (keyword, phrase, proximity etc.).'),
'type' => 'varchar',
......@@ -224,7 +217,7 @@ function xc_browse_schema() {
'not null' => TRUE,
'default' => 0
),
'sorting' => array(
'sorting' => array(
'description' => t('Sorting order if the element is populated by facet values.'),
'type' => 'varchar',
'length' => '5',
......@@ -317,7 +310,7 @@ function xc_browse_schema() {
'default' => 1,
'not null' => TRUE
),
'sorting' => array(
'sorting' => array(
'description' => t('Sorting order if the element is populated by facet values.'),
'type' => 'varchar',
'length' => '5',
......
......@@ -4649,6 +4649,15 @@ function xc_metadata_menu() {
'weight' => 10
);
$items['node/%node/xc/schema'] = array(
'title' => 'View XC Schema Record',
'page callback' => 'xc_download_all',
'page arguments' => array(1),
'access callback' => 'xc_metadata_check_rights',
'access arguments' => array(ACCESS_METADATA_SCHEMA, 1),
'type' => MENU_CALLBACK,
'weight' => 10
);
$items['node/%node/xc/solr'] = array(
'title' => 'View Solr record structure',
'page callback' => 'xc_solr_structure',
......
......@@ -2950,7 +2950,7 @@ function xc_search_show_item_array($doc, $highlight_obj = NULL, $i = -1, $search
'sibling_link' => xc_search_get_sibling_link($xc_record),
'mlt_link' => xc_search_get_mlt_link($xc_record),
'remote_xml_link' => xc_search_get_remote_xml_link($xc_record),
'schema_record_link' => l(t('XC Schema Record'), 'node/' . $xc_record['node_id'] . '/xc/download'),
'schema_record_link' => l(t('XC Schema Record'), 'node/' . $xc_record['node_id'] . '/xc/schema'),
);
if ($xc_statistics_enabled) {
......@@ -3519,7 +3519,7 @@ function xc_search_block($op='list', $delta=0, $edit=array()) {
if ($xc_search_frd->show_navigation == 0) {
break;
}
if (!(arg(0) == 'node' && arg(2) . '/' . arg(3) == 'xc/download')) {
if (!(arg(0) == 'node' && arg(2) . '/' . arg(3) == 'xc/schema')) {
$result = xc_search_block_info_bar('top');
}
break;
......@@ -4100,7 +4100,7 @@ function xc_search_full($xc_record, $doc = NULL) {
'xc_search/ajax/remove_bookmark_item',
array('absolute' => TRUE)),
'schema_record_url' => url(
'node/' . $xc_record['node_id'] . '/xc/download',
'node/' . $xc_record['node_id'] . '/xc/schema',
array('absolute' => TRUE)),
)
),
......
"sid";"location_id";"name";"host";"port";"path";"description"
"1";"1";"";"localhost";"8983";"/solr";"Default Solr server"
"1";"1";"Default";"localhost";"8983";"/solr";"Default Solr server"