Skip to content
Please note that GitHub no longer supports your web browser.

We recommend upgrading to the latest Google Chrome or Firefox.

Learn more
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

Create uni-bern-institut-fur-musikwissenschaft-note.csl #4401

Open
wants to merge 4 commits into
base: master
from

Conversation

@denismaier
Copy link
Contributor

denismaier commented Nov 8, 2019

No description provided.

@csl-bot

This comment has been minimized.

Copy link

csl-bot commented Nov 8, 2019

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.

@csl-bot

This comment has been minimized.

Copy link

csl-bot commented Nov 8, 2019

😟 There are some issues with your submission.

4 tests failed

uni-bern-institut-fur-musikwissenschaft-note: must define a citation-format (<category citation-format="..."/>)

expected: not nil
     got: nil

uni-bern-institut-fur-musikwissenschaft-note: must have a "class" attribute that matches the "citation-format" attribute

expected: "in-text"
     got: "note"

(compared using ==)

uni-bern-institut-fur-musikwissenschaft-note: may not have any unused macros

expected: []
     got: ["motion-picture-contributor", "origyear-book"]

(compared using ==)

uni-bern-institut-fur-musikwissenschaft-note: style ID must be of the form "http://www.zotero.org/styles/" + style file name (without ".csl" extension, e.g. "http://www.zotero.org/styles/apa")

expected: "http://www.zotero.org/styles/uni-bern-institut-fur-musikwissenschaft-note"
     got: "http://www.zotero.org/styles/uni-bern-institut-fur-musikwissenschaft"

(compared using ==)

Please check the test report for details.

Fix test failures
@csl-bot

This comment has been minimized.

Copy link

csl-bot commented Nov 12, 2019

😟 There are some issues with your submission.

1 test failed

uni-bern-institut-fur-musikwissenschaft-note: "self" link must match the style ID

expected: "http://www.zotero.org/styles/uni-bern-institut-fur-musikwissenschaft"
     got: "http://www.zotero.org/styles/uni-bern-institut-fur-musikwissenschaft-note"

(compared using ==)

Please check the test report for details.

Fix test failures again
@csl-bot

This comment has been minimized.

Copy link

csl-bot commented Nov 12, 2019

😃 Your submission passed all our automated tests.

Below are some sample citations generated based on your proposed changes:

uni-bern-institut-fur-musikwissenschaft-note.csl (rendering failure)
Copy link
Member

adam3smith left a comment

Thanks!
Some comments/change requests in line.

</macro>
<macro name="sort-2">
<choose>
<if type="motion_picture" match="none">

This comment has been minimized.

Copy link
@adam3smith

adam3smith Nov 13, 2019

Member

you can just use primary-contributor here, no?

This comment has been minimized.

Copy link
@denismaier

denismaier Nov 28, 2019

Author Contributor

Same as above. Deleted the macro

<choose>
<if type="motion_picture" match="none"/>
</choose>
<names variable="composer">

This comment has been minimized.

Copy link
@adam3smith

adam3smith Nov 13, 2019

Member

You're making your substitute elements way too complicated. This should just be

<names variable="composer">
  <name delimiter=" / " name-as-sort-order="all"/>
  <label prefix=" (" suffix=")" form="short"/>
  <substitute>
    <names variable="author"/>
    <names variable="editor"/>
</substitute>
</names>

This comment has been minimized.

Copy link
@adam3smith

adam3smith Nov 13, 2019

Member

and ditto for all other substitues

This comment has been minimized.

Copy link
@denismaier

denismaier Nov 28, 2019

Author Contributor

Thanks, will correct.

</macro>
<macro name="primary-contributor">
<choose>
<if type="motion_picture" match="none"/>

This comment has been minimized.

Copy link
@adam3smith

adam3smith Nov 13, 2019

Member

This does nothing at all. I assume you want to move the

</if>
</choose>

down?

This comment has been minimized.

Copy link
@denismaier

denismaier Nov 28, 2019

Author Contributor

Hmm; I don't really know what this should do. Have removed it completely for now. Probably a left-over from an earlier version and not need anymore...

<macro name="details-motion-picture">
<choose>
<if type="motion_picture" match="any">
<group delimiter=", ">

This comment has been minimized.

Copy link
@adam3smith

adam3smith Nov 13, 2019

Member

groups around single elements don't do anything

This comment has been minimized.

Copy link
@denismaier

denismaier Nov 28, 2019

Author Contributor

Thanks. Will remove those.

</else>
</choose>
</macro>
<macro name="no-date">

This comment has been minimized.

Copy link
@adam3smith

adam3smith Nov 13, 2019

Member

I don't really see the use of single-line macros. They likely have an (albeit tiny) negative effect on performance, increase style length and decrease legibility.

This comment has been minimized.

Copy link
@denismaier

denismaier Nov 28, 2019

Author Contributor

Ok. That's gone as well.

@@ -0,0 +1,543 @@
<?xml version="1.0" encoding="utf-8"?>
<style xmlns="http://purl.org/net/xbiblio/csl" class="note" version="1.0" names-delimiter=" / " demote-non-dropping-particle="never" default-locale="de">

This comment has been minimized.

Copy link
@adam3smith

adam3smith Nov 13, 2019

Member

while legal as per specs, I'd strongly recommend removing any styling elements on names, bibliograph or citation in style -- it's a mess to troubleshoot.

This comment has been minimized.

Copy link
@denismaier

denismaier Nov 28, 2019

Author Contributor

Done

<macro name="sort">
<choose>
<if match="none" variable="author composer editor">
<text macro="anon"/>

This comment has been minimized.

Copy link
@adam3smith

adam3smith Nov 13, 2019

Member

If you want anonymous works first, I'd make this explicity (i.e. something like text value="1" and then text value="2"` else -- both for legibility and because I'm not 100% sure the specs are clear on which way this should sort.

This comment has been minimized.

Copy link
@denismaier

denismaier Nov 28, 2019

Author Contributor

Ok. Changed that

This comment has been minimized.

Copy link
@denismaier

denismaier Nov 28, 2019

Author Contributor

Oh. After some discussions the department asked for "o.A." in the author field for anonymous works... So, these macros shouldn't be need anyway.

@adam3smith adam3smith added the waiting label Nov 14, 2019
@stale stale bot closed this Nov 27, 2019
Copy link
Contributor Author

denismaier left a comment

Thanks for the review. I'll upload an updated version tomorrow. (Once I figure out how this can be done here...)

<choose>
<if type="motion_picture" match="none"/>
</choose>
<names variable="composer">

This comment has been minimized.

Copy link
@denismaier

denismaier Nov 28, 2019

Author Contributor

Thanks, will correct.

<macro name="details-motion-picture">
<choose>
<if type="motion_picture" match="any">
<group delimiter=", ">

This comment has been minimized.

Copy link
@denismaier

denismaier Nov 28, 2019

Author Contributor

Thanks. Will remove those.

<macro name="sort">
<choose>
<if match="none" variable="author composer editor">
<text macro="anon"/>

This comment has been minimized.

Copy link
@denismaier

denismaier Nov 28, 2019

Author Contributor

Ok. Changed that

<macro name="sort">
<choose>
<if match="none" variable="author composer editor">
<text macro="anon"/>

This comment has been minimized.

Copy link
@denismaier

denismaier Nov 28, 2019

Author Contributor

Oh. After some discussions the department asked for "o.A." in the author field for anonymous works... So, these macros shouldn't be need anyway.

</macro>
<macro name="sort-2">
<choose>
<if type="motion_picture" match="none">

This comment has been minimized.

Copy link
@denismaier

denismaier Nov 28, 2019

Author Contributor

Same as above. Deleted the macro

</macro>
<macro name="primary-contributor">
<choose>
<if type="motion_picture" match="none"/>

This comment has been minimized.

Copy link
@denismaier

denismaier Nov 28, 2019

Author Contributor

Hmm; I don't really know what this should do. Have removed it completely for now. Probably a left-over from an earlier version and not need anymore...

</else>
</choose>
</macro>
<macro name="no-date">

This comment has been minimized.

Copy link
@denismaier

denismaier Nov 28, 2019

Author Contributor

Ok. That's gone as well.

@@ -0,0 +1,543 @@
<?xml version="1.0" encoding="utf-8"?>
<style xmlns="http://purl.org/net/xbiblio/csl" class="note" version="1.0" names-delimiter=" / " demote-non-dropping-particle="never" default-locale="de">

This comment has been minimized.

Copy link
@denismaier

denismaier Nov 28, 2019

Author Contributor

Done

@denismaier

This comment has been minimized.

Copy link
Contributor Author

denismaier commented Nov 28, 2019

Can this be reopened? I have updated the style, but I don't know how I can update the pull request...

@adam3smith adam3smith reopened this Dec 5, 2019
@stale stale bot removed the waiting label Dec 5, 2019
@csl-bot

This comment has been minimized.

Copy link

csl-bot commented Dec 5, 2019

😟 There are some issues with your submission.

Please check the test report for details.

@adam3smith

This comment has been minimized.

Copy link
Member

adam3smith commented Dec 5, 2019

Sorry, not sure why this was auto-closed

@csl-bot

This comment has been minimized.

Copy link

csl-bot commented Dec 5, 2019

😃 Your submission passed all our automated tests.

Below are some sample citations generated based on your proposed changes:

uni-bern-institut-fur-musikwissenschaft-note.csl (rendering failure)
@denismaier denismaier requested a review from adam3smith Dec 5, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
3 participants
You can’t perform that action at this time.