#
# Defines searches to be executed on a "multisearch" – a search across several types of records at once
#
#
# Highlight search terms in results?
do_highlighting = 0
multisearchTypes = {
obras = {
displayName = _(Artworks),
table = ca_objects,
restrictToTypes = [artworks,artwork_parts],
view = Search/multisearch_results_obras_html.php,
itemsPerPage = 10,
# --- sortControlType = dropdown or list
sortControlType = list,
sortBy = {
Relevance = _natural,
Identifier = ca_collections.idno,
Title = ca_collection_labels.name
},
sortDirection = {
Relevance = asc,
Identifier = desc,
Title = asc
},
# caption_template = "^ca_objects.preferred_labels.name"
},
documentos = {
displayName = _(Documents),
table = ca_objects,
restrictToTypes = [file,documents,document_parts],
view = Search/multisearch_results_documentos_html.php,
itemsPerPage = 10,
# --- sortControlType = dropdown or list
sortControlType = list,
sortBy = {
título = ca_objects.hierarchy.preferred_labels,
data = ca_objects.unitdate.date_value,
gênero = ca_objects.document_genre,
espécie = ca_objects.document_type,
evento = ca_occurrences.preferred_labels,
},
sortDirection = {
título = asc,
data = asc,
gênero = asc,
espécie = asc,
evento = asc
}
},
entidades = {
displayName = _(Entities),
table = ca_entities,
restrictToTypes = [],
view = Search/multisearch_results_entidades_html.php,
itemsPerPage = 10,
sortControlType = list,
sortBy = {
Relevance = _natural,
Identifier = ca_entities.idno,
Title = ca_entities_labels.name
},
sortDirection = {
Relevance = asc,
Identifier = desc,
Title = asc
},
options = {
selectMediaUsingRelationshipTypes = []
},
# caption_template = "^ca_entities.preferred_labels.displayname"
},
eventos = {
displayName = _(Events),
table = ca_occurrences,
restrictToTypes = [],
view = Search/multisearch_results_eventos_html.php,
# --- sortControlType = dropdown or list
# sortControlType = list,
itemsPerPage = 10,
# itemsPerColumn = 3,
sortBy = {
Relevance = _natural,
Identifier = ca_occurrences.idno,
Title = ca_occurrence_labels.name
},
sortDirection = {
Relevance = asc,
Identifier = desc,
Title = asc
},
# caption_template = "^ca_occurrences.preferred_labels.name"
}
}
advancedSearchTypes = {
documentos = {
displayName = _(Documentos),
labelSingular = _("documento"),
labelPlural = _("documentos"),
foundSingular = "encontrado",
foundPlural = "encontrados",
table = ca_objects,
restrictToTypes = [file,documents,document_parts],
view = Search/advancedsearch_documentos_html.php,
views = {
list = {
title = "lista"
}
},
sortBy = {
título = ca_objects.hierarchy.preferred_labels,
data = ca_objects.unitdate.date_value,
gênero = ca_objects.document_genre,
espécie = ca_objects.document_type
},
sortDirection = {
título = asc,
data = asc,
gênero = asc,
espécie = asc
}
},
obras = {
displayName = _(Obras),
labelSingular = _("obra"),
labelPlural = _("obras"),
foundSingular = _"encontrada",
foundPlural = "encontradas",
table = ca_objects,
restrictToTypes = [artworks],
view = Search/advancedsearch_obras_html.php,
views = {
list = {
title = "lista"
}
},
sortBy = {
nome = ca_object_labels.name,
artista = ca_entities.preferred_labels,
técnica = ca_objects.technique,
data = ca_objects.production_date.production_date_value,
evento = ca_occurrences.preferred_labels
},
sortDirection = {
nome = asc,
artista = asc,
técnica = asc,
data = asc
}
},
eventos = {
displayName = _(Events),
labelSingular = "Event",
labelPlural = "Events",
table = ca_occurrences,
foundSingular = "found",
foundPlural = "found",
restrictToTypes = [],
view = Search/advancedsearch_eventos_html.php,
views = {
list = {
title = "lista"
}
},
sortBy = {
nome = ca_occurrences.preferred_labels,
data = ca_occurrences.event_period.event_period_startdate,
local = ca_entities.preferred_labels,
bienal = ca_occurrences.event_type.event_type_bienal,
tipo = ca_occurrences.event_type.event_type_value
},
sortDirection = {
nome = asc,
data = asc,
local = asc,
bienal = asc,
tipo = asc
}
},
entidades = {
displayName = _(Entidades),
labelSingular = _("entidade"),
labelPlural = _("entidades"),
table = ca_entities,
foundSingular = "encontrada",
foundPlural = "encontradas",
restrictToTypes = [],
view = Search/advancedsearch_entidades_html.php,
views = {
list = {
title = "lista"
}
},
sortBy = {
nome = ca_entities.preferred_labels,
tipo = ca_entities.type_id,
categoria = ca_entities.entity_category,
evento = ca_occurrences.preferred_labels
},
sortDirection = {
nome = asc,
tipo = asc,
categoria = asc,
evento = asc
}
}
}
views = {
images = {
icon = glyphicon-th
},
list = {
icon = glyphicon-list
},
timeline = {
icon = glyphicon-time
},
map = {
icon = glyphicon-globe
}
}
#
# Other options
#
# default number of results per page/ajax load
defaultHitsPerBlock = 36
# add a wildcard "*" to the end of all searches?
matchOnStem = 0