Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
DBRepo
Manage
Activity
Members
Labels
Plan
External wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Package registry
Model registry
Operate
Terraform modules
Analyze
Contributor analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
FAIR Data Austria DB Repository
DBRepo
Commits
dc8978f9
Verified
Commit
dc8978f9
authored
1 year ago
by
Martin Weise
Browse files
Options
Downloads
Patches
Plain Diff
Improved the identifier display
parent
31f1f747
No related branches found
No related tags found
4 merge requests
!231
CI: Remove build for log-service
,
!228
Better error message handling in the frontend
,
!223
Release of version 1.4.0
,
!215
Resolve "Fix the unit independent search"
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
dbrepo-search-service/app/opensearch_client.py
+6
-0
6 additions, 0 deletions
dbrepo-search-service/app/opensearch_client.py
dbrepo-ui/pages/search/index.vue
+5
-2
5 additions, 2 deletions
dbrepo-ui/pages/search/index.vue
with
11 additions
and
2 deletions
dbrepo-search-service/app/opensearch_client.py
+
6
−
0
View file @
dc8978f9
...
@@ -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
"
,
...
...
This diff is collapsed.
Click to expand it.
dbrepo-ui/pages/search/index.vue
+
5
−
2
View file @
dc8978f9
...
@@ -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
))
{
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment