Skip to content
Snippets Groups Projects
Unverified Commit dc8978f9 authored by Martin Weise's avatar Martin Weise
Browse files

Improved the identifier display

parent 31f1f747
No related branches found
No related tags found
4 merge requests!231CI: Remove build for log-service,!228Better error message handling in the frontend,!223Release of version 1.4.0,!215Resolve "Fix the unit independent search"
......@@ -255,6 +255,12 @@ def general_search(search_term=None, t1=None, t2=None, fieldValuePairs=None):
"identifier.*",
"column_type",
"description",
"titles",
"descriptions",
"funders",
"licenses",
"creators",
"visibility",
"title",
"type",
"uri",
......
......@@ -50,6 +50,7 @@
import SearchService from '@/api/search.service'
import CreateDB from '@/components/dialogs/CreateDB'
import AdvancedSearch from '@/components/search/AdvancedSearch'
import IdentifierMapper from '@/api/identifier.mapper'
export default {
components: {
......@@ -202,15 +203,17 @@ export default {
if (this.isDatabase(item) || this.isTable(item) || this.isColumn(item) || this.isView(item) || this.isConcept(item) || this.isUnit(item)) {
return item.name
} else if (this.isIdentifier(item)) {
return item.title
return IdentifierMapper.identifierPreferEnglishTitle(item)
} else if (this.isUser(item)) {
return item.username
}
return null
},
description (item) {
if (this.isDatabase(item) || this.isTable(item) || this.isIdentifier(item) || this.isConcept(item) || this.isUnit(item)) {
if (this.isDatabase(item) || this.isTable(item) || this.isConcept(item) || this.isUnit(item)) {
return item.description
} else if (this.isIdentifier(item)) {
return IdentifierMapper.identifierPreferEnglishDescription(item)
} else if (this.isColumn(item)) {
return null
} else if (this.isView(item)) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment