Browse Source

resolved issue with some Chinese records having doc_ref elsewhere

main
Simon Bowie 2 years ago
parent
commit
96a48f9689
1 changed files with 3 additions and 0 deletions
  1. +3
    -0
      site/solr.php

+ 3
- 0
site/solr.php View File

@@ -81,6 +81,9 @@ function parse_result($id, $input){
if (preg_match('/=D\s(([^\s]*)\s([^\s]*)\s([^\s]*))/', $input, $doc_ref)){
$output['doc_ref'] = str_replace(' ','',$doc_ref[1]);
}
elseif (preg_match('/=D&locale=en_EP\s(([^\s]*)\s([^\s]*)\s([^\s]*))/', $input, $doc_ref)){
$output['doc_ref'] = str_replace(' ','',$doc_ref[1]);
}

// Search for the application ID in the content element and display it
preg_match('/Application.*\n(.*)\n/', $input, $application_id);

Loading…
Cancel
Save