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

Properly support personal communications in APA #3005

Open
wants to merge 1 commit into
base: master
from

Conversation

Projects
None yet
5 participants
@bwiernik
Copy link
Contributor

bwiernik commented Oct 4, 2017

APA specifies that personal communications should be cited with a
unique in-text style and should be omitted from the bibliography. This
change supports that.

The in-text format is:
(J. P. Campbell, personal communication, August 16, 2010)

To get the “personal communication” term, I applied a locale to
“interview”, which fits conceptually and is not otherwise used in APA.
This could be changed if a “personal-communication” term is added in a
future CSL update (which has been suggested). If there is a better way
to do that, let me know.

If this works, I can make parallel changes to the other APA styles.

Properly support personal communications in APA
APA specifies that personal communications should be cited with a
unique in-text style and should be omitted from the bibliography. This
change supports that.

The in-text format is:
(J. P. Campbell, personal communication, August 16, 2010)

To get the “personal communication” term, I applied a locale to
“interview”, which fits conceptually and is not otherwise used in APA.
This could be changed if a “personal-communication” term is added in a
future CSL update (which has been suggested). If there is a better way
to do that, let me know.

If this works, I can make parallel changes to the other APA styles.
@csl-bot

This comment has been minimized.

Copy link

csl-bot commented Oct 4, 2017

Awesome! You've created a pull request to the Citation Styles Language styles repository. We'll get in touch soon (usually within a day or two). In the meantime, our automated test system will go ahead and run some checks on your pull request. In a few minutes you'll be notified of the test results.

If you haven't done so yet, please make sure your style validates and follows all our other Style Requirements.

To update the current pull request, visit the "Files changed" tab above, and click on the pencil icon (see below) in the top-right corner of your style to start editing.

image

If you need assistance at any point, please leave a comment and we'll get back to you (feel free to write in Dutch, English, French, German, Portuguese, or Spanish).

@csl-bot

This comment has been minimized.

Copy link

csl-bot commented Oct 4, 2017

😃 Your submission passed all our automated tests.

@adam3smith

This comment has been minimized.

Copy link
Member

adam3smith commented Oct 4, 2017

I'm pretty sure this will throw an error in the bibliography -- CSL (or rather: citeproc-js) doesn't like empty references.

@bwiernik

This comment has been minimized.

Copy link
Contributor Author

bwiernik commented Oct 4, 2017

It works fine in Zotero 5.0.22-beta.6+f7e2cd634 (with and without Propachi enabled). I think that Frank changed citeproc-js's behavior at some point to ignore empty bibliography entries, rather than throwing an error.

example

@rmzelle

This comment has been minimized.

Copy link
Member

rmzelle commented Oct 6, 2017

I think that Frank changed citeproc-js's behavior at some point to ignore empty bibliography entries, rather than throwing an error.

But even if citeproc-js can handle this, it's not behavior that's addressed at all in the CSL 1.0.1 spec.

Also, documents can currently quite reliably switch between numeric and author-date styles. But in my experience, numeric styles still want authors to use full in-text descriptions of personal communication, which we (currently) can't support. (see e.g. http://aem.asm.org/site/misc/journal-ita_org.xhtml#04: "In the text, references are cited parenthetically by number in sequential order. Data that are not published or not peer reviewed are simply cited parenthetically in the text")

@bwiernik

This comment has been minimized.

Copy link
Contributor Author

bwiernik commented Oct 6, 2017

If the spec doesn’t support it, then this change probably shouldn’t be merged obviously (Though I think we should consider it for a future CSL version).

I’m not sure I follow your second comment. Seems to me the solution would be for a similar change to be made to numeric styles with such a requirement? I’m not sure how this change here impacts changing between styles in a meaningful way?

@adam3smith

This comment has been minimized.

Copy link
Member

adam3smith commented Oct 6, 2017

The problem with numeric styles v would be that they then skip a number in the reference list where the blank citation is (since every item has a citation - number

@bwiernik

This comment has been minimized.

Copy link
Contributor Author

bwiernik commented Oct 6, 2017

I see, so supporting reference-free citations in numeric styles would involve a bigger change to CSL.

@rmzelle

This comment has been minimized.

Copy link
Member

rmzelle commented Oct 6, 2017

I see, so supporting reference-free citations in numeric styles would involve a bigger change to CSL.

Yes. It's worth leaving this pull request open if people have thoughts on how to best implement this, but to properly support this for numeric styles we'd need quite big changes to CSL. And we don't want styles that break documents in a weird way when users switch from an author-date to a numeric format.

The problem with numeric styles v would be that they then skip a number in the reference list where the blank citation is (since every item has a citation - number

Yeah, for numeric styles these in-text personal-communication entries are typically entirely detached from the bibliography.

@bwiernik

This comment has been minimized.

Copy link
Contributor Author

bwiernik commented Oct 6, 2017

At present, I think most users who want to enter in-text personal-communication entries just manually type them, but I think it would be nice for these citations of this sort to be handled by CSL. When you say this style would break documents in a weird way, that is because a person-communication item would go from being cited in text as (J. Campbell, personal communication, 2017) with no bibliography entry to a number with a bibliography entry (rather than staying as parenthetical in-text note)?

@adam3smith

This comment has been minimized.

Copy link
Member

adam3smith commented Oct 7, 2017

The choices you have for numeric styles currently are
a) Print a reference number and an entry in the reference list, which is wrong or
b) Print a parenthetical citations and no entry in the reference list, which leads to a skipped number in the reference list.

Both fall under "weird failure," I'd say, the latter more so than the former.

@bwiernik

This comment has been minimized.

Copy link
Contributor Author

bwiernik commented Oct 7, 2017

It seems like there would need to be an option to specify "no-number" for these types of citations in numeric styles (which might also be needed for history/religious studies--not sure how common numeric styles are in those fields?).

@bwiernik

This comment has been minimized.

Copy link
Contributor Author

bwiernik commented Oct 16, 2017

It seems like adding a "no-number" property to the citation layout (which skips number for the citations it is applied to) would be a relatively straightforward way to address these types of citations without much in the way of side effects.

@stale

This comment has been minimized.

Copy link

stale bot commented Dec 28, 2018

This issue hasn't seen any activity in the past 30 days. It will be automatically closed if no further activity occurs in the next two weeks.

@stale stale bot added the waiting label Dec 28, 2018

@bwiernik

This comment has been minimized.

Copy link
Contributor Author

bwiernik commented Dec 29, 2018

@adam3smith Do we want to move this issue about no-Number items somewhere else?

@fbennett

This comment has been minimized.

Copy link
Member

fbennett commented Jan 27, 2019

@bwiernik could you clarify the no-number proposal? By property on the citation layout, do you mean an attribute somewhere within the scope of cs:citation? Or do you mean a value passed as a property on the JSON citation object fed to a CSL processor?

@bwiernik

This comment has been minimized.

Copy link
Contributor Author

bwiernik commented Jan 27, 2019

So, for example, a journal might require that unpublished data or personal communications be cited in text as “(Author, Year, unpublished data)” and not included in the bibliography. For author-date styles, this produces no real problem—the item can just be be excluded from the cs:bibliography layout use choose.

For numeric styles, it is more complex. The items need to both be excluded from the bibliography and not take up a citation number in the list.

Thinking about this issue, I think a general solution might be best. Another common request is to be able to have separate bibliography layouts for different types of items (primary vs secondary, cases vs articles, etc.). Both the no-number issue and the separate bibliography issue could be addressed by allowing multiple layouts to be specified. choose-like conditionals can be used to allocate items to the correct layout, and there can be argument given to layout to specify what numbering sequence to use (e.g., maybe these could take arbitrary user-specified names number-sequence="primary", number-sequence="secondary", number-sequence="none", with number-sequence="default" if none is specified). Each number-sequence would get its own numbering.

@fbennett

This comment has been minimized.

Copy link
Member

fbennett commented Jan 27, 2019

Both the no-number issue and the separate bibliography issue could be addressed by allowing multiple layouts to be specified. choose-like conditionals can be used to allocate items to the correct layout, and there can be argument given to layout to specify what numbering sequence to use

That sounds pretty complicated, but setting aside the specifics, it sounds like the idea would be to implement citation-only items in the CSL of the style. Got that - it makes sense (since in a numeric style a non-bib citation would need to be something descriptive instead of a number).

Thinking about implementation, though, this would take a lot of work. To skip item numbers, the processor would need to maintain a separate numbering sequence for display purposes, which is doable, but not trivial. We would also have a problem with styling on cs:layout, since we may not want descriptive refs to come out superscripted or inside square braces. I guess that would be a point in favor of multiple layouts, but that would be very hard to implement in a flexible way.

There would also be the possibility that a non-bib descriptive item ends up placed in the middle of a series of numeric-ref items in a single citation. That would raise some tough problems. If the layout switched mid-citation, which affixes should be applied, and where should they go? Should the items be reordered by layout? If so, in what order should they be presented?

I see the attraction of managing and citing non-bib items in the usual way, but an attempt at full automation would hit a bunch of tough issues.

As a second-best alternative, though, perhaps the target type (like personal_communication) could be given a descriptive form, and be included in the bibliography if inserted by the ref manager, but with the intent that it be applied by the user by clipboard-copy, pasting it into the manuscript as text. Would that suffice?

@fbennett

This comment has been minimized.

Copy link
Member

fbennett commented Jan 28, 2019

After sleeping on it, I've come up with a workaround for the number-sequence issue, by pushing to-be-excluded items to the bottom of the bibliography before applying citation-number. Not a complete solution, but it could be combined with an option to, say, suppress items of a particular type in the bibliography. You would set up a macro like this:

  <macro name="category">
    <choose>
      <if type="personal_communication">
        <text value="1"/>
      </if>
      <else>
        <text value="0"/>
      </else>
    </choose>
  </macro>

Then the cs:sort node would look like this:

    <sort>
      <key macro="category"/>
      <key variable="citation-number"/>
    </sort>

With that code, the personal_communication items will appear at the end of a numbered bibliography, assigned with the highest citation-number values. Those entries can then be removed at the last stage of manuscript preparation. If a no-number (or no-bib?) option were added to CSL, the entries could be suppressed automatically. [1]

In many numeric styles, you would still have the problem that formatting and affixes set on cs:layout would be applied equally to the descriptive citation form used for the "skipped" entries. But it's at least a partial solution.


[1] In testing, I get an error string for entries with no content in the bibliography. If no-output entries are just disappearing in Zotero, there's probably something else going on there.

@bwiernik

This comment has been minimized.

Copy link
Contributor Author

bwiernik commented Jan 28, 2019

What you are describing using a sorting macro is the current approach which is functional, but obviously limited in a lot of ways. The issue you raise about "non-numbered" entries being mixed in a citation with standard entries is problematic, and I am not sure the best way to deal with that. I thought that this sort of multiple layouts setup might be similar to something you had developed for Juris-M (maybe for Myles?).

Regarding entries with no content in the bibliography, in the past Zotero produced error text, but it hasn't (for me at least) for some time. I'm not sure when or why this changed. In terms of usability, I don't think that the processor should produce an error if an entry produces no content in the bibliography (though it should if it produces no content in the citation).

@adam3smith

This comment has been minimized.

Copy link
Member

adam3smith commented Feb 15, 2019

I think the discussion here is valuable even if it's inconclusive, but I'd like to close the PR which I assume is superseded by #3602 anyway -- @bwiernik would you be willing to copy the key comments over to a new issue on the specification repo?

@bwiernik

This comment has been minimized.

Copy link
Contributor Author

bwiernik commented Feb 15, 2019

Sure will do.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment