From 83f2d86f4001f240b262ad2e8389da335029e52a Mon Sep 17 00:00:00 2001 From: seesmith Date: Tue, 10 Jul 2018 09:43:33 +0100 Subject: [PATCH] LUC023A-70 Archives Space duplicate records LUC023A-70 Archives Space duplicate records --- .../libraries/solr/solr_client_archivesspace_1.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/application/libraries/solr/solr_client_archivesspace_1.php b/application/libraries/solr/solr_client_archivesspace_1.php index af3ec826..6c51b653 100644 --- a/application/libraries/solr/solr_client_archivesspace_1.php +++ b/application/libraries/solr/solr_client_archivesspace_1.php @@ -250,6 +250,9 @@ function simpleSearch($q = '*:*', $offset = 1, $fq = array(), $operator = 'OR', } } } + //-id:*pui + $url .= '&fq=-id:*pui'; + $url .= '&fq=types:"archival_object"+types:"resource"'; if (count($fq) > 0) { foreach ($fq as $value) @@ -278,7 +281,7 @@ function simpleSearch($q = '*:*', $offset = 1, $fq = array(), $operator = 'OR', $url .= '&spellcheck=true&spellcheck.collate=true&spellcheck.onlyMorePopular=false&spellcheck.count=5'; $url .= '&spellcheck.dictionary=' . $this->dictionary; - // print_r('simple search '. $url); + //print_r('simple search '. $url); $solr_xml = file_get_contents($url); $search_xml = @new SimpleXMLElement($solr_xml); @@ -1191,6 +1194,3 @@ public function getResultsFromSolr($recent_xml, $title) } - - -