Skip to content
Snippets Groups Projects
Verified 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): ...@@ -255,6 +255,12 @@ def general_search(search_term=None, t1=None, t2=None, fieldValuePairs=None):
"identifier.*", "identifier.*",
"column_type", "column_type",
"description", "description",
"titles",
"descriptions",
"funders",
"licenses",
"creators",
"visibility",
"title", "title",
"type", "type",
"uri", "uri",
......
...@@ -50,6 +50,7 @@ ...@@ -50,6 +50,7 @@
import SearchService from '@/api/search.service' import SearchService from '@/api/search.service'
import CreateDB from '@/components/dialogs/CreateDB' import CreateDB from '@/components/dialogs/CreateDB'
import AdvancedSearch from '@/components/search/AdvancedSearch' import AdvancedSearch from '@/components/search/AdvancedSearch'
import IdentifierMapper from '@/api/identifier.mapper'
export default { export default {
components: { components: {
...@@ -202,15 +203,17 @@ export default { ...@@ -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)) { if (this.isDatabase(item) || this.isTable(item) || this.isColumn(item) || this.isView(item) || this.isConcept(item) || this.isUnit(item)) {
return item.name return item.name
} else if (this.isIdentifier(item)) { } else if (this.isIdentifier(item)) {
return item.title return IdentifierMapper.identifierPreferEnglishTitle(item)
} else if (this.isUser(item)) { } else if (this.isUser(item)) {
return item.username return item.username
} }
return null return null
}, },
description (item) { 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 return item.description
} else if (this.isIdentifier(item)) {
return IdentifierMapper.identifierPreferEnglishDescription(item)
} else if (this.isColumn(item)) { } else if (this.isColumn(item)) {
return null return null
} else if (this.isView(item)) { } else if (this.isView(item)) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment