Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Codemeta generator: inconsistencies in management of fields with multiple values #307

Closed
frmichel opened this issue Jun 14, 2023 · 9 comments

Comments

@frmichel
Copy link

Hi there,

I'm using the codemeta generator and experience a few issues with fields that can take multiple values, in particular funder and referencePublication.

If I st funder as this:

    "funder": [
        {
            "@type": "Organization",
            "name": "org1"
        }, {
            "@type": "Organization",
            "name": "org2"
        }
    ],

the import function simply ignores the values. Is it to say that it is invalid or this is just a pb with the generator?

Also, I can import this:

    "referencePublication": [
        "https://hal.science/hal-123456",
        "https://hal.science/hal-654321"
    ],

But when I regenerate the codemeta it is turned into this:

    "referencePublication": "https://hal.science/hal-123456,https://hal.science/hal-654321",

So in the end, can we add arrays of values anywhere or only with some specific fields and which ones?

Thx for your help.

@frmichel frmichel changed the title Generator: inconsistencies in management of fields with multiple values Codemeta generator: inconsistencies in management of fields with multiple values Jun 14, 2023
@progval
Copy link
Member

progval commented Jun 14, 2023

can we add arrays of values anywhere

Yes.

This is a limitation of the codemeta-generator so it doesn't get too complicated

@frmichel
Copy link
Author

Ok cool, thx for your super quick reply! ;)

@frmichel
Copy link
Author

Just a remark: I've also tried on the affiliation of an author, but here the generator explicitly says that an array value is invalid. Couldn't it be an array too?

@progval
Copy link
Member

progval commented Jun 14, 2023

Yes, it can

@frmichel
Copy link
Author

Would be cool to fix these issues in the generator, when you guys have a bit of time ;)

@dgarijo
Copy link
Contributor

dgarijo commented Jun 14, 2023

Yeah, I found a similar thing with descriptions. If you have more than one the generator will tell you it's not valid. But it should be (e.g., i can have short and long description, or descriptions in more than one language)

@progval
Copy link
Member

progval commented Jun 14, 2023

I removed this particular error message for affiliations: codemeta/codemeta-generator#20

Importing multiple organizations, or multiple is still not supported though; the open issues for these are: codemeta/codemeta-generator#3 and codemeta/codemeta-generator#10

@frmichel
Copy link
Author

Thx @progval.

@moranegg
Copy link
Contributor

Thanks for the lively discussion and feedback. Closing this issue.
@frmichel feel free to open issues on the other side at https://github.com/codemeta/codemeta-generator/issues

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants