-
Notifications
You must be signed in to change notification settings - Fork 50
pkp/pkp-lib#1550 Controlled vocabulary support #493
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
jyhein
commented
Jan 22, 2025
- Use external source to add new keywords etc. using plugins
- Save extra data (identifier, source) with the term to db
a663eaf
to
9d70718
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@jyhein I added few questions/suggestion, nothing critical . Please take a look when you get time .
function setSuggestion(value) { | ||
const {name, label = null, identifier = null, ...extraItems} = value; | ||
const suggestion = { | ||
value: value, | ||
label: label ?? name, | ||
identifier: identifier, | ||
...(extraItems ? {extraItems: extraItems} : {}), | ||
}; | ||
return suggestion; | ||
} | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Any particular reason we are making this as general method than as the part of component's method ? Also If I understand correctly, this method takes the data coming from plugin and transform it to support the updated schema . If that is the case , perhaps a different name so that it does not confuse the setSuggestions
method coming form FieldBaseAutosuggest
component ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hmmm...shouldn't this be private? When it is outside export
src/pages/workflow/components/publication/WorkflowPublicationForm.vue
Outdated
Show resolved
Hide resolved
1c1d3e3
to
ed64194
Compare