Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Returned more results now, also fixed an error.

  • Loading branch information...
commit c1ad7e6ca5da4c39c504c5792516e9acedf61ba8 1 parent d9c56df
@nigelgbanks nigelgbanks authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 islandora_authority.module
View
4 islandora_authority.module
@@ -221,7 +221,7 @@ function islandora_authority_get_fields(&$build_id, &$element_hash, &$form_state
);
$element_types = islandora_authority_elements();
foreach ($parent->toArray() as $sibling) {
- if (is_array($sibling) && array_key_exists($sibling['#type'], $element_types)) {
+ if (is_array($sibling) && isset($sibling['#type']) && array_key_exists($sibling['#type'], $element_types)) {
$toReturn['fields'][$sibling['#hash']] = array(
'search_field_name' => $sibling['#user_data']['islandora_authority_solr_search_field'],
'display_field_name' => (!empty($sibling['#user_data']['islandora_authority_solr_display_field']) ?
@@ -244,7 +244,7 @@ function islandora_authority_autocomplete($build_id, $element, $string = '') {
$matches = array();
// FIXME (minor): If this could be cached at some level, it would be great...
$fields = islandora_authority_get_fields($build_id, $element);
- $results = $solr->search($string, 0, 10, array(
+ $results = $solr->search($string, 0, 100000, array(
'qf' => $fields['fields'][$element]['search_field_name'],
'fl' => implode(',', (array) $fields['fl']),
'fq' => implode(' ', $fields['fq']),
Please sign in to comment.
Something went wrong with that request. Please try again.