| @@ 444-451 (lines=8) @@ | ||
| 441 | } |
|
| 442 | ||
| 443 | // case 3: exact match on alternate label |
|
| 444 | if (sizeof($hits) == 0) { // not yet found |
|
| 445 | foreach ($results as $res) { |
|
| 446 | if (isset($res['altLabel']) && $res['altLabel'] == $label) { |
|
| 447 | $hits[] = $res; |
|
| 448 | } |
|
| 449 | } |
|
| 450 | ||
| 451 | } |
|
| 452 | ||
| 453 | // case 4: case-insensitive match on alternate label |
|
| 454 | if (sizeof($hits) == 0) { // not yet found |
|
| @@ 454-461 (lines=8) @@ | ||
| 451 | } |
|
| 452 | ||
| 453 | // case 4: case-insensitive match on alternate label |
|
| 454 | if (sizeof($hits) == 0) { // not yet found |
|
| 455 | foreach ($results as $res) { |
|
| 456 | if (isset($res['altLabel']) && strtolower($res['altLabel']) == strtolower($label)) { |
|
| 457 | $hits[] = $res; |
|
| 458 | } |
|
| 459 | } |
|
| 460 | ||
| 461 | } |
|
| 462 | ||
| 463 | if (sizeof($hits) == 0) { |
|
| 464 | // no matches found |
|