Skip to content

Commit

Permalink
Controlled vocabulary support
Browse files Browse the repository at this point in the history
  • Loading branch information
jyhein committed Feb 4, 2025
1 parent d15f1c0 commit 1c1d3e3
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 6 deletions.
15 changes: 10 additions & 5 deletions src/components/Form/fields/Autosuggest.vue
Original file line number Diff line number Diff line change
Expand Up @@ -99,13 +99,18 @@
<li>
{{ suggestion.label }}
</li>
<li v-if="suggestion.identifier?.match(/^http/)">
<a :href="suggestion.identifier" target="_blank" @click.stop>
<li v-if="suggestion.identifier">
<a
v-if="suggestion.identifier.match(/^http/)"
:href="suggestion.identifier"
target="_blank"
@click.stop
>
{{ suggestion.identifier }}
</a>
</li>
<li v-else-if="suggestion.identifier">
{{ suggestion.identifier }}
<template v-else>
{{ suggestion.identifier }}
</template>
</li>
<li
v-for="(extraItem, extraItemKey) in suggestion.extraItems ?? {}"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,6 @@ const {set, form} = useForm(publicationForm);
async function metadataDataChange() {
// Some metadata fields need extra data from db not in publication object
fetchForm();
await fetchForm();
}
</script>

0 comments on commit 1c1d3e3

Please sign in to comment.