You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Apologies for the gory title, I just couldn't think of a better way to explain the issue I'm having.
We have uploaded (multiple) controlled vocabularies for our DSpace instance, but this issue is preserved across the different fields.
The first issue is that when we go into the submission form and select an entry from the controlled vocabulary for a field (in this case, it's dc.subject, the result on the simple item view is a discovery.xml splitter-separated hierarchy for the term, the last term being the term of interest. We would like for the last term to be the only one to appear on the page. However, we do want the full, splitter-separated path of that term to be browseable when clicked on (currently set to valueList).
The second issue is that when we bulk upload these items, we do so only with the final term of the term hierarchy/path attached. So in this example, "Clinical Follow-Up" is in dc.subject and shows up as linked in the onebox Submission Form. However, when we click on the item, it doesn't expand into its full path; it only browses-by the final term. I suspect this is because these entries simply don't contain the full item path, but is there a way to have them automatically link?
These items are being generated by ds-generic-item-page-field:
aseyedia
changed the title
Subject Hierarchy Shows Explicit Splitter-Separated Subject Hierarchy and Is Not Facetable For Some Entries
Controlled Vocabulary Fields Show Explicit Splitter-Separated Hierarchy and Does Not Automatically Assign Terms
Sep 9, 2024
Not sure if this is the sort of solution you are looking for, but I modified the metadata-values.component.ts file to include a function that split by :: separator:
I generated a quick Python script that will traverse a given XML, assemble the path for each term, and then update the corresponding term in metadatavalue.
Describe the bug
Apologies for the gory title, I just couldn't think of a better way to explain the issue I'm having.
We have uploaded (multiple) controlled vocabularies for our DSpace instance, but this issue is preserved across the different fields.
dc.subject
, the result on the simple item view is adiscovery.xml
splitter-separated hierarchy for the term, the last term being the term of interest. We would like for the last term to be the only one to appear on the page. However, we do want the full, splitter-separated path of that term to be browseable when clicked on (currently set tovalueList
).dc.subject
and shows up as linked in theonebox
Submission Form. However, when we click on the item, it doesn't expand into its full path; it only browses-by the final term. I suspect this is because these entries simply don't contain the full item path, but is there a way to have them automatically link?These items are being generated by
ds-generic-item-page-field
:And are being made browseable in
local.cfg
like so:To Reproduce
local.cfg
like aboveExpected behavior
Related work
Link to any related tickets or PRs here.
The text was updated successfully, but these errors were encountered: