Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.
Sign upAPA overhaul #3602
Conversation
bwiernik
added some commits
Jul 7, 2018
This comment has been minimized.
This comment has been minimized.
csl-bot
commented
Jul 10, 2018
Awesome! You just created a pull request to the Citation Styles Language styles repository. One of our human volunteers will try to get in touch soon (usually within a week). In the meantime, I will run some automated checks. You should be notified of the results in a few minutes. If you haven't done so yet, please make sure your style validates and follows all our other Style Requirements. To update this 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. If you have any questions, please leave a comment and we'll get back to you. While we usually respond in English, feel free to write in whatever language you're most comfortable. |
This comment has been minimized.
This comment has been minimized.
csl-bot
commented
Jul 10, 2018
|
This comment has been minimized.
This comment has been minimized.
Happy to discuss some of the decisions that had to be made. Specific areas that were challenging were accommodating:
I added a few additional hard-coded strings (marked as in need of localization). Most of them should come up fairly rarely I suspect, but we can consider some alternative options if we want to break localization less until more terms can be added to CSL. |
This comment has been minimized.
This comment has been minimized.
Question: Is there any way to get a Produces: Rather than: I had thought this code would produce the latter output (essentially all of the types inside a single At minimum, it seems like there should be a way to specify that |
This comment has been minimized.
This comment has been minimized.
No -- every |
This comment has been minimized.
This comment has been minimized.
Here’s a more common example: If I have a chapter in a book with an editor and a translator (different people), then the existing APA style renders as: Rather than with the ampersand: This CSL behavior seems very counter intuitive to me. Particularly frustrating is that |
This comment has been minimized.
This comment has been minimized.
(But thanks for the clarification!) |
This comment has been minimized.
This comment has been minimized.
csl-bot
commented
Jul 13, 2018
|
This comment has been minimized.
This comment has been minimized.
csl-bot
commented
Jul 13, 2018
|
This comment has been minimized.
This comment has been minimized.
csl-bot
commented
Jul 13, 2018
|
This comment has been minimized.
This comment has been minimized.
csl-bot
commented
Jul 14, 2018
|
This comment has been minimized.
This comment has been minimized.
csl-bot
commented
Jul 14, 2018
|
bwiernik
added some commits
Jul 14, 2018
This comment has been minimized.
This comment has been minimized.
@adam3smith Okay, I've run through a bunch of tests, and everything is looking good on my end. Once you've had a chance to review, I will port the changes over to the other APA versions. |
This comment has been minimized.
This comment has been minimized.
csl-bot
commented
Jul 14, 2018
|
adam3smith
reviewed
Aug 4, 2018
Some comments/questions, some things that definitely need fixing. More generally, do you have a test set of references you could share. This change is pretty massive & is going to influence lots of users, it'd be good to have a second pair of eyes on the actual testing rather than just the code. |
This comment has been minimized.
This comment has been minimized.
Oh, and of course thanks for doing this in the first place. (And so far I've only reviewed the APA changes. |
bwiernik
added some commits
Feb 20, 2019
This comment has been minimized.
This comment has been minimized.
csl-bot
commented
Feb 20, 2019
|
This comment has been minimized.
This comment has been minimized.
Okay, all 251 items in the test library render correctly, or as correctly as they reasonably can. https://www.zotero.org/groups/2205533/test_items_library In the library, items that produce output that deviates from the APA manual are tagged with It should be ready for your review now @adam3smith |
This comment has been minimized.
This comment has been minimized.
csl-bot
commented
Feb 20, 2019
|
This comment has been minimized.
This comment has been minimized.
@adam3smith Would it be helpful to schedule a call to talk through this style? |
This comment has been minimized.
This comment has been minimized.
@agruber reached out and is also interested in helping out here. |
This comment has been minimized.
This comment has been minimized.
This is next up on my list to review. I figured what I'd do is go through this, including with the test library, and flag anything that I think is unreasonable or too fragile (as well, of course, as anything that I think is actually wrong). If there's a lot, jumping on a phone call will probably be most efficient, if there's just a couple of things we can hash them out here for transparency. |
This comment has been minimized.
This comment has been minimized.
OK, I'm about 1/3 through, looking very good so far, I only have a handful of notes. Will send all together once I'm done. |
adam3smith
reviewed
Mar 18, 2019
OK, I've done a code review and except for a couple of nits and a couple of questions, this looks all great. Very helpful comments, too, so thanks for that. Using this as a test case for style-specific test-suites would be great (needn't be prior to accepting this, though -- I think once we settled on the few remaining issues, we can take this). |
<text variable="genre"/> | ||
<text term="issue" form="short" text-case="capitalize-first"/> | ||
</group> | ||
<text variable="genre"/> |
This comment has been minimized.
This comment has been minimized.
adam3smith
Mar 18, 2019
Member
I don't like genre
for U.S. Patent. I usually do authority
which has the added benefit of being in the Zotero model as issuingAuthority
-- I'm not sure we should add "type" to patent.
This comment has been minimized.
This comment has been minimized.
bwiernik
Mar 19, 2019
Author
Contributor
I didn't change this at all. APA style wants U.S. patent No. 12345
.
I agree that authority
would be good for the country—importing from Google Patents puts the full "United States" in issuingAuthority
, PATO.gov leaves it empty; we can rely on users to shorten to "US" if desired.
That leaves out the word "patent". We could add change it year to show both authority
then either genre
(if present) or hard-coded text "patent" (and replace with term="patent"
when available), like we do with dataset
.
This comment has been minimized.
This comment has been minimized.
bwiernik
Mar 19, 2019
Author
Contributor
The reason to include genre
here would be to accommodate things like trademark applications, which have the same citation form.
This comment has been minimized.
This comment has been minimized.
adam3smith
Mar 20, 2019
Member
How about something like this (conceptually):
<text variable="authority"/>
<group delimiter=" ">
<choose>
<if variable="genre">
<text variable="genre"/>
</if>
<else>
<text value="patent"/>
</else>
</choose>
<group delimter=" ">
<text term="issue" form="short"/>
</text variable="number"/>
</group>
</group>
This follows the same logic we do for presentations and personal communication. And then handle the bibliography in a similar way.
apa.csl Outdated
apa.csl Outdated
apa.csl Outdated
This comment has been minimized.
This comment has been minimized.
csl-bot
commented
Mar 19, 2019
|
This comment has been minimized.
This comment has been minimized.
csl-bot
commented
Mar 20, 2019
|
This comment has been minimized.
This comment has been minimized.
csl-bot
commented
Mar 22, 2019
|
This comment has been minimized.
This comment has been minimized.
I think we have everything covered then, right? Ready to pull the trigger? |
This comment has been minimized.
This comment has been minimized.
I will copy the changes to the other APA styles this afternoon. Then, we can pull the trigger. |
This comment has been minimized.
This comment has been minimized.
csl-bot
commented
Mar 24, 2019
|
This comment has been minimized.
This comment has been minimized.
csl-bot
commented
Mar 24, 2019
|
This comment has been minimized.
This comment has been minimized.
csl-bot
commented
Mar 24, 2019
|
This comment has been minimized.
This comment has been minimized.
Okay, @adam3smith, let's pull the trigger! |
bwiernik commentedJul 10, 2018
I've done testing, but I need to do more checking still. Is there a good set of test items available to start with to check that all of the conditionals are working? I can make my own test suite, but if there is a good starting set that will save a lot of time.