schema icon indicating copy to clipboard operation
schema copied to clipboard

Add `label` attribute to names schema

Open bwiernik opened this issue 5 years ago • 17 comments

Used to override the default label rendered for a role.

Following the discussion at https://github.com/citation-style-language/schema/issues/293 and https://forums.zotero.org/discussion/84042/tromso-recommendations-for-citation-of-research-data-in-linguistics this lets a user enter a more specific role label without requiring such things to have their own variable types. For example, a linguist might cite the person whose speech they are studying as an author with label: "speaker".

Type of change

  • [X] New feature (non-breaking change which adds functionality)
  • [X] This change requires a documentation update

bwiernik avatar Aug 02 '20 15:08 bwiernik

That looks really useful, and I'm absolutely in favor of adding this.

How will that look like in practice? Will you be able to enter "verb" forms of a label?

denismaier avatar Aug 02 '20 18:08 denismaier

How will that look like in practice? Will you be able to enter "verb" forms of a label?

That is a good point.

bwiernik avatar Aug 02 '20 19:08 bwiernik

This here could work:

            "label": {
              "title": "Non-default label to use when rendering name",
              "description": "Overrides the default label for the role. e.g. to indicate a subtype of a role or specific MARC or CRediT roles."
              "verb": {
                "type": "boolean"
              },
},

But, of course, this will only allow one or the other. Don't know if both are needed...

denismaier avatar Aug 02 '20 19:08 denismaier

Does anyone have any concerns about this being locale-specific?

We earlier discussed possiblity of a role or type attribute, with a controlled list, that I imagine would be quite long (say based on the MARC list).

bdarcus avatar Aug 02 '20 21:08 bdarcus

Yes this being locale-specific may be an issue. But I assume @bwiernik has already an idea how this could play nicely with #240

denismaier avatar Aug 02 '20 21:08 denismaier

I mean, keep in mind CSL JSON is already being used as an exchange format, which I expect will increase in the future.

bdarcus avatar Aug 02 '20 21:08 bdarcus

I think we perhaps defer this to 1.2?

bwiernik avatar Aug 12 '20 15:08 bwiernik

Where do we stand on this now? Seems there's some uncertainty.

bdarcus avatar Oct 16 '21 16:10 bdarcus

Well, we've deferred this to 1.2

denismaier avatar Oct 19 '21 17:10 denismaier

Well, we've deferred this to 1.2

Seems like maybe we should close this then without merging, given we don't have a target branch, or an idea of what 1.2 would be?

Alternately, we need a target branch, but I worry that gets a little complicated.

bdarcus avatar Dec 07 '21 16:12 bdarcus

I'm happy to add it to 1.1 if you think that's reasonable.

bwiernik avatar Dec 30 '21 19:12 bwiernik

I'm happy to add it to 1.1 if you think that's reasonable.

Before considering that, can you address this concern I raised?

https://github.com/citation-style-language/schema/pull/337#issuecomment-667726325

bdarcus avatar Dec 30 '21 20:12 bdarcus

I suspect this would be used in 2 ways:

  1. With a syntax like term:cartographer indicating that the CSL term for "cartographer" should be inserted and localized. I would like this syntax to exist for other use cases as well (eg, to enable controlled vocabularies for status or allow styles to specify the terminology used for preprint/working paper or distinguish between podcast/tv broadcast/radio broadcast without needing more types). I don't know that there would be that many additional terms beyond the roles we already have. The major citeprocs do support off-schema terms to be specified in a specific style file's locale section for unofficial user usage.

  2. Very user-specific labels (eg, we've had requests for CrEdit taxonomy roles and for the ability to describe sources of Indigenous Oral History). I would like to support this as an option, and I am not too concerned about localization here.

bwiernik avatar Dec 30 '21 20:12 bwiernik

I suspect this would be used in 2 ways:

  1. With a syntax like term:cartographer indicating that the CSL term for "cartographer" should be inserted and localized. I would like this syntax to exist for other use cases as well (eg, to enable controlled vocabularies for status or allow styles to specify the terminology used for preprint/working paper or distinguish between podcast/tv broadcast/radio broadcast without needing more types). I don't know that there would be that many additional terms beyond the roles we already have. The major citeprocs do support off-schema terms to be specified in a specific style file's locale section for unofficial user usage.
  2. Very user-specific labels (eg, we've had requests for CrEdit taxonomy roles and for the ability to describe sources of Indigenous Oral History). I would like to support this as an option, and I am not too concerned about localization here.

Right now, the PR only applies to the JSON, with a new property that is just a string, without any examples.

Don't we need a more comprehensive solution before actually merging it?

I support the basic idea, but seems there are details to sort out?

cc @cormacrelf

bdarcus avatar Dec 31 '21 15:12 bdarcus

The basic detail is, when a name object contains a label element, that element overrides the label that would be generated based on the role term. That would be described in the specification

bwiernik avatar Dec 31 '21 17:12 bwiernik

The basic detail is, when a name object contains a label element, that element overrides the label that would be generated based on the role term. That would be described in the specification.

That's simple and clear enough. But isn't it inconsistent with how we handle this sort of thing everywhere else?

E.g. it's a completely uncontrolled string, that can't be localized.

Or does that not matter in your view?

PS - Except I'm unclear how the "term:x" thing fits. That seems another detail.

bdarcus avatar Dec 31 '21 17:12 bdarcus

Just chiming in in order to support this PR. In German law discipline, we often cite established collected works by their founding editor. For this, labelling the editor as “founder” and being able to check for that would be very useful, as in the bibliography one needs to distinguish between current editors (abbreviated as Hrsg.) and founding editors (abbreviated as Begr.).

I was directed here from this forum post.

Quintus avatar Feb 23 '22 14:02 Quintus