Преглед изворни кода

resolved issue with some Chinese records having doc_ref elsewhere

main
Simon Bowie пре 3 година
родитељ
комит
96a48f9689
1 измењених фајлова са 3 додато и 0 уклоњено
  1. +3
    -0
      site/solr.php

+ 3
- 0
site/solr.php Прегледај датотеку

if (preg_match('/=D\s(([^\s]*)\s([^\s]*)\s([^\s]*))/', $input, $doc_ref)){ if (preg_match('/=D\s(([^\s]*)\s([^\s]*)\s([^\s]*))/', $input, $doc_ref)){
$output['doc_ref'] = str_replace(' ','',$doc_ref[1]); $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 // Search for the application ID in the content element and display it
preg_match('/Application.*\n(.*)\n/', $input, $application_id); preg_match('/Application.*\n(.*)\n/', $input, $application_id);

Loading…
Откажи
Сачувај