Git Product home page Git Product logo

dataverse-external-vocab-support's People

Contributors

kadee avatar qqmyers avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

dataverse-external-vocab-support's Issues

compoundDemo example allows free text but you can't save it

Free text is allowed:

Screen Shot 2023-01-26 at 3 23 19 PM

But you get a validation error (the normal one: "Validation Error โ€“ Required fields were missed or there was a validation error. Please scroll down to see details.") and when you scroll down, there are no errors. No * with a hint of what to fix. Nothing in server.log, nothing in the JS console.

@qqmyers says the free text stuff should be controlled by this (so not Dataverse code):

(that's the commit I tested on, by the way, 6055e9a).

Screen Shot 2023-01-26 at 3 27 54 PM

Add HTTP headers customization

The proposal of the issue is to permit HTTP headers customization with external controlled vocabulary services. This headers will be use when Dataverse make request to external vocabulary services.

This issue is linked to IQSS/dataverse#10316

ROR/Author Affiliation example doesn't seem to "just work" as of 5.12

I picked up IQSS/dataverse#9150 but I've been a bit blocked by a working example of an external vocab script.

I tried getting the ROR/Author Affiliation script working, which I had tested early on when this (awesome) PR was created:

However, as of IQSS/dataverse@ecc23c0ebf (post 5.12.1 "develop" branch), the affiliation script doesn't seem to "just work" anymore.

I have a theory that it's breaking because an extra div was introduced in line 286 in this commit: IQSS/dataverse@8c4c3d3#diff-5ff0dd346b5d156cd409cd8a793e99ad72fbbe677bd1ec54e44406b2858cb2b4R286 . If that's right, the affiliation script doesn't work for 5.12 and newer.

Here's my ugly hack to get it working again:

-var authorSelector = "div#metadata_author ~ div.dataset-field-values div.edit-compound-field";
+var authorSelector = "#datasetForm\\:tabView\\:j_idt1619\\:0\\:j_idt1622\\:5\\:editCompoundValueFragment div.dataset-field-values div.edit-compound-field";

Obviously, we don't want those ugly and brittle j_idt1619 values that JSF injects into the pages. I'm not so good with CSS but I'm hoping someone (maybe even the original authors of PR #9, @Kris-LIBIS and @KaDee) might have a better, cleaner suggestion.

Or maybe we need to add more id's to divs in the JSF code? Someday we plan to move to React.

Anyway, with the hack above in place, I can see the magnifying glass and inserting values seems to work. Here are a couple screenshots:

Screen Shot 2023-01-23 at 3 08 34 PM
Screen Shot 2023-01-23 at 3 09 24 PM

There's an issue in this sprint that's even more related to all this:

One final thing I'll mention is that @qqmyers suggested not having "authorAffiliation" twice in examples/config/affiliation.json so I changed field-name to just "author" but I haven't tested this much, but he's right. As soon as I made this switch I was able to see the final HTML annotated with "data cvoc" here and there. So this seems important too as a prerequisite to the the hack above.

   {
-    "field-name": "authorAffiliation",
+    "field-name": "author",
     "term-uri-field": "authorAffiliation",

ORCID search result list ranking

Dear Dataverse Vocab Community!

It appears that the ORCID result list should be reversed when the user enters a query (maybe also other lists in general)

Example: search for my name "Sergej Zerr" (also any other names I tested)

image

Provide a different experience around Term Entry vs Term Search

In a recent demo of external vocab there was text populated in the advanced search page. This is good and we want this, as it greatly increases the usefulness of this feature.

One small change request - there was some text added on the advanced search page - for example, "Add a Term" was shown in at least one of the boxes. This is different than other search boxes which have no text. @qqmyers mentioned that a possible solution would be to make a change to handle the different context (entry vs search) so that the same text is not pre-populated in both scenarios.

Compressed view on dataset creation

In a recent demo of external vocabulary, on the page for creating a dataset, there was a vertically compressed view for adding a term. @qqmyers mentioned that this may be because the JS did not know the size of the box when the page was loaded.

Different Example Vocabularies/Blocks

In a recent demo it was suggested that the test/demo block be renamed to something different than "cvocDemoMetadata" in order to make demos more aligned with actual use. If this get prioritized I'm happy to provide some suggestions!

The skosmos demo server has moved

"skosmos.dev.finto.fi" has to be replaced by "demo.skosmos.org" globally in the relevant examples/config/* files for the Skosmos examples to work.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.