Style Request: International Journal of Law, Policy and Family

edited 15 days ago
Hi,

I need help to create the following citation style https://academic.oup.com/lawfam/pages/General_Instructions

In-text citation:
1
2
etc

Bibliography/footnote:
1 J. L. Campbell and O.K. Pedersen, 'The varieties of capitalism and hybrid success' (2007) 40 (1) Comparative Political Studies 307–332

2 I. Mares, 'Firms and the welfare state: When, why, and how does social policy matter to employers?' in P. A. Hall and D. Soskice (Eds.), Varieties of capitalism. The institutional foundations of comparative advantage (Oxford University Press, 2001) 184–213

3 ibid.

4 ibid. 184

5 ibid. 185-186

6 Campbell and Pedersen (n 1)

7 Mares (n 2) 184

8 Campbell and Pederes (n 1) 307-308

samples OA publications:
https://academic.oup.com/lawfam/article/36/1/ebac014/6661206?searchresult=1
https://academic.oup.com/lawfam/article/37/1/ebad030/7444853?searchresult=1
https://academic.oup.com/lawfam/article/35/1/ebab051/6448242?searchresult=1

In short I need footnote citation, pages are just added as numbers, no p. or pp. or whatever. Similarly, when ibid. is used, pages should just be numbers.

When citing an earlier cited source it should provide [AUTHOR] (n #), the note ref being in parenthesis, but the author name outside the parenthesis.

I've been using Transnational Environmental Law as my template, but I'm having a hard time figuring out.

Any help would be greatly appreciated!
  • edited 15 days ago
    https://github.com/citation-style-language/styles/blob/master/REQUESTING.md#requesting-csl-styles

    (no need to make a new thread, but please change the title of this thread, please)
  • edited 15 days ago
    Thanks. I hope this is correct form and understandable.

    The numbers should be superscript as in a footnote, but < sup > didn't work.

  • edited 15 days ago
    All right. So I've used the Visual Editor. Almost all good, but for some reason I get an end bracket ] instead of end parenthesis ) seemingly randomly.

    This is the current code:

    |?xml version="1.0" encoding="utf-8"?>
    |style xmlns="http://purl.org/net/xbiblio/csl" class="note" version="1.0" and="symbol" page-range-format="minimal" demote-non-dropping-particle="sort-only" default-locale="en-GB">
    |!-- This style was edited with the Visual CSL Editor (https://editor.citationstyles.org/visualEditor/) -->
    |info>
    |title xml:lang="EN">International Journal of Law, Policy and Family|/title>
    |title-short>IJLPF|/title-short>
    ...SNIP...
    |category citation-format="note"/>
    |category field="political_science"/>
    ...SNIP...
    |rights license="http://creativecommons.org/licenses/by-sa/3.0/">This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 License|/rights>
    |/info>
    |macro name="author">
    |names variable="author">
    |name initialize-with="."/>
    |label form="short" prefix=" (" suffix=")"/>
    |substitute>
    |names variable="editor"/>
    |names variable="translator"/>
    |/substitute>
    |/names>
    |/macro>
    |macro name="editor">
    |names variable="editor">
    |name initialize-with="."/>
    |label form="short" prefix=" (" suffix=")"/>
    |/names>
    |/macro>
    |macro name="year-date">
    |choose>
    |if variable="issued">
    |date date-parts="year" form="text" variable="issued"/>
    |/if>
    |else>
    |text term="no date" form="short"/>
    |/else>
    |/choose>
    |/macro>
    |macro name="publisher">
    |group prefix="(" suffix=")">
    |text variable="publisher" suffix=", "/>
    |text macro="year-date"/>
    |/group>
    |/macro>
    |macro name="edition">
    |choose>
    |if is-numeric="edition">
    |group delimiter=" ">
    |number variable="edition" form="ordinal"/>
    |text term="edition" form="short"/>
    |/group>
    |/if>
    |else>
    |text variable="edition"/>
    |/else>
    |/choose>
    |/macro>
    |macro name="citation-locator">
    |choose>
    |if variable="locator">
    |choose>
    |if match="any" position="subsequent">
    |group delimiter=" ">
    |label variable="locator" form="short"/>
    |text variable="locator"/>
    |/group>
    |/if>
    |else>
    |choose>
    |if type="bill book graphic legal_case legislation motion_picture report song" match="any">
    |group delimiter=" " prefix=", ">
    |text term="at"/>
    |label variable="page" form="short"/>
    |text variable="locator"/>
    |/group>
    |/if>
    |else>
    |group delimiter=" " prefix=", ">
    |text term="at"/>
    |text variable="locator"/>
    |/group>
    |/else>
    |/choose>
    |/else>
    |/choose>
    |/if>
    |/choose>
    |/macro>
    |citation>
    |layout suffix="." delimiter="; ">
    |choose>
    |if position="ibid">
    |text term="ibid" suffix=" "/>
    |/if>
    |else-if match="any" position="subsequent">
    |group delimiter=", ">
    |text macro="author"/>
    |group delimiter=" ">
    |text value="n" prefix="("/>
    |text variable="first-reference-note-number" suffix=")"/>
    |/group>
    |/group>
    |/else-if>
    |else>
    |text macro="author" suffix=", "/>
    |choose>
    |if type="bill book graphic legal_case legislation motion_picture report song" match="any">
    |group delimiter=" ">
    |text variable="title" font-style="italic"/>
    |text macro="edition"/>
    |text macro="publisher"/>
    |/group>
    |/if>
    |else-if type="chapter paper-conference" match="any">
    |text variable="title" quotes="true" suffix=", "/>
    |text term="in" suffix=" "/>
    |text macro="editor" suffix=", "/>
    |text variable="container-title" form="short" text-case="title" font-style="italic" suffix=", "/>
    |text macro="edition" suffix=", "/>
    |text macro="publisher" suffix=", "/>
    |group delimiter=" ">
    |text variable="page"/>
    |/group>
    |/else-if>
    |else-if type="patent">
    |group delimiter=", ">
    |text variable="title"/>
    |text variable="number"/>
    |text macro="year-date"/>
    |/group>
    |/else-if>
    |else-if type="thesis">
    |group delimiter=", ">
    |text variable="title" quotes="true"/>
    |group delimiter=", " prefix="(" suffix=")">
    |text variable="genre"/>
    |text variable="publisher"/>
    |date date-parts="year-month" form="text" variable="issued"/>
    |/group>
    |/group>
    |/else-if>
    |else-if type="webpage post-weblog" match="any">
    |group delimiter=": ">
    |text term="available at" text-case="capitalize-first"/>
    |text variable="URL"/>
    |/group>
    |/else-if>
    |else>
    |group delimiter=" ">
    |text variable="title" quotes="true"/>
    |text macro="year-date" prefix="(" suffix=")"/>
    |group>
    |text variable="volume" suffix=" "/>
    |text variable="issue" prefix="(" suffix=")"/>
    |/group>
    |text variable="container-title" text-case="title" font-style="italic" suffix=","/>
    |group delimiter=" ">
    |text variable="page" form="short"/>
    |/group>
    |/group>
    |/else>
    |/choose>
    |/else>
    |/choose>
    |text macro="citation-locator"/>
    |/layout>
    |/citation>
    |/style>


  • I think you misread the guide to you.
    It requests a few pieces of information so we can find a closely matching style or make one for said journal.

    The superscripting of footnote numbers is dealt with by Word/LibreOffice, not a citation style.
  • edited 15 days ago
    Possibly, but I'd already provided a style that was close in the original post: Transnational Environmental Law.

    I provided three links to open acces (OA) publications using the style I was looking for (see URLs above)

    I provided the citation style tweaks I needed, as per the instructions following the link you provided (the superscript comment was a reference to the comment, not zotero, my bad for lack for clarity). This is maybe where I misread the instructions?

    I have now tried to use the visual editor, and it is almost perfect, but for some reason it produces ] in places where it should produce ). However, not consistently. Some places are correct.

    Image of issue:
    https://s3.amazonaws.com/zotero.org/images/forums/u150641/1wzldlec6scmwfii1an7.png
  • All right. Figured it out. :-)

    Thanks for the links, it led me in the right direction.
  • That square bracket is due to a double bracket. It does that so it can distinguish where what starts/ends.

    If you want, submit the style to the repository and we can see where the issue stems from:
    https://github.com/citation-style-language/styles/blob/master/CONTRIBUTING.md
  • I placed the ( and ) in the wrong prefix and suffix, using trial and error in the Visual Editor I went up "a level" in the group, and it is now working as it should.

    Thanks.
  • I believe this is where the error was:

    |/if>
    |else-if match="any" position="subsequent">
    |group delimiter=", ">
    |text macro="author"/>
    |group delimiter=" ">
    |text value="n" prefix="("/>
    |text variable="first-reference-note-number" suffix=")"/>
    |/group>

    I changed it to this:
    |/if>
    |else-if match="any" position="subsequent">
    |group delimiter=", ">
    |text macro="author"/>
    |group delimiter=" " prefix="(" suffix=")">
    |text value="n" text-case="lowercase"/>
    |text variable="first-reference-note-number" text-case="lowercase"/>
    |/group>

    (I assume the text-case="lowercase" is redundant, but I was trying many different things :-D ).

    I works as it should now at least. Which means I can submit this week, wohoo!
Sign In or Register to comment.