IQSS / dataverse-pm

Project management issue tracker for the Dataverse Project. Note: Related links and documents may not be public.
https://dataverse.org
0 stars 0 forks source link

GREI 5: HDV Task - Test and gather feedback on TK Label vocabulary support on demo.dataverse.org #316

Open cmbz opened 3 months ago

cmbz commented 3 months ago

Overview

Related

cmbz commented 3 months ago

Status: August 2024

cmbz commented 1 month ago

Status: September 2024

sbarbosadataverse commented 1 month ago

From Amber:

Wonderful, I'm in and created a test record with the linkage to a test TK label https://demo.dataverse.org/dataset.xhtml?persistentId=doi:10.70122/FK2/P0KTIF

Few things for later: The TK label box that appears in the metadata and on the dataset landing page is quite large, I get that might be to support many labels/etc. But wonder if this could be optimized to fit the size/number of labels in the future? I wasn't sure if the DOI lookup was ready, I didn't see anything appear when attempting to search for a "doi..." is there a doi you recommend? So I also did notice that it was allowing free-text searching and I linked to a "test TK label" for this dataset, in the future, what will be the recommended workflow/ practice for searching for a LC project? It appears that I can link to anything and everything if I want, and I'm not sure this will work for the LC/ general recommendations and just knowing that a lot of people might see this and link to something inadvertently.... I noticed the LC TK labels URL shows up the Metadata Export JSON record , yay! But is not available for DataCite, or schema.org - looking forward to seeing how those mapping conversations go, and fyi as an aside I recently attended a national metadata group's meeting here in Canada and a Oceans Data group mentioned that they would like to see LC TK labels be mapped into ISO 19115 - Geospatial data as well. I know DV doesn't support that standard metadata (yet!), but just highlights the interest from the community and the wider adoption of LC TK labels in other repositories 🙂 Thats all for now, many thanks!

amberleahey commented 1 hour ago

Issue with the display of the TK labels disappearing after some time image

transfluxus commented 54 minutes ago

https://github.com/gdcc/dataverse-external-vocab-support/blob/5c341a0c2ec727c9c65026faaab7eff5ea221bd9/packages/local_contexts/local_contexts.js#L114

after checking for an uuid, it should also check if its a complete project_url (e.g. https://localcontextshub.org/projects/54be05d7-aa5c-4886-abd9-dc45b2fa8df4 ) and in that case hit the api like with the UUID

change the text here: https://github.com/gdcc/dataverse-external-vocab-support/blob/5c341a0c2ec727c9c65026faaab7eff5ea221bd9/packages/local_contexts/local_contexts.js#L90C1-L90C83

to "Search for a project by name or paste the exact project ID or url"

I dont have my testing instance anymore but something like this:

if (uuid_regex.test(params.term)) {
    //await get_or_fetch(params.term)
    return `${serviceUrl}api/v1/projects/${params.term}`
} else if(params.term.startsWith(`${serviceUrl}projects/`)) {
    const uuid_part = params.term.slice(`${serviceUrl}projects/`.length)
    return `${serviceUrl}api/v1/projects/${uuid_part}`
} else {
    return `${serviceUrl}api/v1/projects/?search=${params.term}`
}
transfluxus commented 53 minutes ago

When entering a UUID into the searchfield searches the project, but the result items, has the UUID as 1. item and the project name as 2nd. It should only have the project name

transfluxus commented 42 minutes ago

the script is making a lot of calls to the LC server, during typing.

also, the script is including an image linking to: https://localcontexts.org/wp-content/uploads/2023/04/White-Background.png

@arojas1 is there a better location, where we can pull it from

sbarbosadataverse commented 39 minutes ago

From Janet (Australia) to Local Content Folks: Q for LC: Will public LC Projects ever be restricted periodically due to cultural reasons? Should LC private projects ever be made available in Dataverse?