Suggest journal keywords during submission#5265
Suggest journal keywords during submission#5265kopfduenger wants to merge 1 commit intoopenlibhums:masterfrom
Conversation
|
This PR adds journal-level keyword suggestions to the submission metadata keyword field. The goal is to make the existing journal disciplines/keywords more useful during submission: when authors or editors enter article keywords, the Tag-it field now receives The implementation also escapes the rendered keyword values for JavaScript output, and I added tests for both submission and metadata-edit views to confirm that journal keywords appear as suggestions. |
|
Thanks for this submission. I can see it would work well for a small set of keywords, however, we'd need this solution to work well for n+1 keywords. As an example the OLH along has 56,000 keywords in its database. |
|
Good point, thanks. The current implementation inlines the journal keyword list into the page, which is fine for a small controlled discipline list but would not scale for large keyword sets such as OLH’s. I’ll rework this to use server-side autocomplete instead: the form will request matching keyword suggestions only after the user starts typing, and the backend will return a limited result set. That should avoid loading all keywords into the page while preserving the suggestion behaviour. |
We're standardising our approach to reactive interfaces using HTMX, not sure if that's something you've come across before. |
|
Thanks, that makes sense. I’m familiar with the general idea of HTMX, though I haven’t used it much in Janeway yet. |
|
I had a quick look through the current codebase and couldn’t find existing HTMX usage or established |
|
You are correct. We have some PRs in the works that we're using HTMX for, I can pull some out this afternoon and send them to you. |
|
Great, thank you. |
No description provided.