|
@@ 465-469 (lines=5) @@
|
| 462 |
|
} |
| 463 |
|
|
| 464 |
|
// case 3: exact match on alternate label |
| 465 |
|
foreach ($results as $res) { |
| 466 |
|
if (isset($res['altLabel']) && $res['altLabel'] == $label) { |
| 467 |
|
$hits[] = $res; |
| 468 |
|
} |
| 469 |
|
} |
| 470 |
|
if (sizeof($hits) > 0) return $hits; |
| 471 |
|
|
| 472 |
|
|
|
@@ 474-478 (lines=5) @@
|
| 471 |
|
|
| 472 |
|
|
| 473 |
|
// case 4: case-insensitive match on alternate label |
| 474 |
|
foreach ($results as $res) { |
| 475 |
|
if (isset($res['altLabel']) && strtolower($res['altLabel']) == strtolower($label)) { |
| 476 |
|
$hits[] = $res; |
| 477 |
|
} |
| 478 |
|
} |
| 479 |
|
if (sizeof($hits) > 0) return $hits; |
| 480 |
|
|
| 481 |
|
return $hits; |