Help needed with citation style

I'm back again.

My .CSL style is located here:

https://gist.github.com/Damianeire/36169e0fcc14f2a7a3a0


I am getting the url when I cite a book (the URL is usually google books, where I drew down the citation info, I can delete it if need be, but sometimes it's handy).

For example:

Bourdieu, Pierre: The logic of practice, (Stanford University Press, 1990) [accessed 4 November 2014].

I found I could remove the url easily enough, but only by killing the url for web blogs etc too. I found the 'if url exists then print it' command, and tried to insert a 'but not if it's a book' but it only had 'if type is' and not a 'if type is not'. But I can just delete the url's from book entries if need be.

I have a second question (please let me know if I should do this on a new post)

My Ibid.'s are working fine now except that if the page number changes, it doesn't show up on the ibid. Could someone tell me how to go about that please?

Many thanks,
Damian
  • (same post for 2nd question; I'm super busy right now, so I'd likely take a couple of days to answer, but Rintze or zuphilip may be around earlier).
  • edited February 18, 2015
    Thanks adamsmith.

    I made an error in my first post and have since fixed it, so the correct .csl file should be in the github, and the questions both still stand.

    Many thanks,
    Damian
  • I found the 'if url exists then print it' command, and tried to insert a 'but not if it's a book' but it only had 'if type is' and not a 'if type is not'.
    Try to make these tests nested, i.e. something like
    <choose>
    <if type="book" match="none">
    <choose>
    <if variable="url">
    ...
    My Ibid.'s are working fine now except that if the page number changes, it doesn't show up on the ibid.
    Can you give a specific example what you meant?
  • edited February 19, 2015
    Thanks zuphillip.

    Nesting the conditions like this:

    0 access-note (macro)
    1 Conditional
    2If NOT (book)
    3 Group
    4 Conditional
    5 If graphic OR report
    5 Else-If NOT (article-journa...
    3 Conditional
    3 If URL
    3 URL (variable)
    3 Group

    EDIT: I can't seem to make these indent, whether I format as text or html. I'm inserting a number in front for the level of nesting. Hope that's clear.

    Resulting in losing the URL for blog posts as well.

    I've tried it a number of ways, including trying to set up a new group that has the if NOT book clause, and then everything else after it in a Else-if.

    I could do a screen shot of that section if that helped. I'm working on it in the inline citations, I'm thinking maybe I should be changing the macros if I want the same affect in the bibliography. I'm sorry I'm a bit rubbish at this, could you give me one or two more tips, I have tried 10 different ways at this point.

    In regards Ibid. I'm coming from Scannable cites in Scrivener so I have something like this

    Bourdieu says this. 1 But later on he says this. 2

    1. { | Bourdieu, 1990 |100 | |zu:38089:83S33587}
    2. { | Bourdieu, 1990 |200 | |zu:38089:83S33587}


    After running it through the odf scanner and importing into libreoffice I get this:

    Bourdieu, Pierre: The logic of practice, (Stanford University Press, 1990), 100
    Ibid.

    Whereas what I need is this:

    Bourdieu, Pierre: The logic of practice, (Stanford University Press, 1990), 100
    Ibid., 200

    Thanks again.
    Damian
  • For 1: Try this (not tested):

    <macro name="access-note">
    ...
    <choose>
    <if type="book" match="none">
    <choose>
    <if variable="URL">
    <text variable="URL" prefix=" &lt;" suffix="&gt;"/>
    <group prefix=" [" suffix="]">
    <text term="accessed"/>
    <date variable="accessed">
    <date-part name="day" prefix=" "/>
    <date-part name="month" prefix=" "/>
    <date-part name="year" prefix=" "/>
    </date>
    </group>
    </if>
    </choose>
    </if>
    </choose>
    </macro>


    For 2: Replace "point-locators-subsequent" with "point-locators"
  • Such joy. I was trying something pretty damn close to that for the URL, I just don't quite have my CSL coding happening yet.

    I've got to export it over to libreoffice etc to test the ibid, but that looks like it will do the trick. Many many thanks once again.
  • so you're all good now, right? Or is there still an open question?
  • No questions. All good. :)
Sign In or Register to comment.