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