Forum Replies Created

Viewing 1 replies (of 1 total)
  • I would like to display my notes with my bibliographic citations. I’ve been playing around with it myself, and it looks like it would be non-trivial, but possible. So far, what I’ve been able to get it to do was to include notes with a certain by creating a function that is called whenever the $item_type = “note”. The function does an API call for just that note that does not specify a style, and therefore returns an XML document containing the note text. (See below for a sample record.) I’m then able to parse the XML to create HTML of the note text.

    This seems like it might be unnecessarily inefficient, and the notes and citations are all jumbled together. You’ll have a citation for one item, followed by a note that was the child of another item, with no visual indication of how the two are (not) related.

    The XML for the notes contains a value for the parent (<link rel=”up” type=”application/atom+xml” href=”https://api.zotero.org/users/163121/items/E7WV8SJT”/&gt;), but of course, you would have to sort all of this out before printing any of it to the screen, which doesn’t seem to be how things are done currently.

    So I have two questions: (1) would it be possible to have this feature, and (2) am I approaching my attempts to implement it myself the wrong way?

    Thank you,
    Rebecca

    — Sample note record ———–
    <?xml version=”1.0″?>
    <entry xmlns=”https://www.w3.org/2005/Atom&#8221; xmlns:zapi=”https://zotero.org/ns/api”&gt;
    <title>…</title>
    <author>
    <name>rloconne</name>
    <uri>https://zotero.org/rloconne</uri&gt;
    </author>
    <id>https://zotero.org/rloconne/items/UCPZQD6T</id&gt;
    <published>2011-04-08T03:45:17Z</published>
    <updated>2011-04-08T03:45:45Z</updated>
    <link rel=”self” type=”application/atom+xml” href=”https://api.zotero.org/users/163121/items/UCPZQD6T”/&gt;
    <link rel=”up” type=”application/atom+xml” href=”https://api.zotero.org/users/163121/items/E7WV8SJT”/&gt;
    <link rel=”alternate” type=”text/html” href=”https://zotero.org/rloconne/items/UCPZQD6T”/&gt;
    <zapi:key>UCPZQD6T</zapi:key>
    <zapi:itemType>note</zapi:itemType>
    <zapi:numTags>3</zapi:numTags>
    <content type=”xhtml”>
    <div xmlns=”https://www.w3.org/1999/xhtml”&gt;
    <table>
    <tr class=”itemType”>
    <th style=”text-align: right”>Type</th>
    <td>Note</td>
    </tr>
    <tr class=”note”>
    <th style=”text-align: right”>Note</th>
    <td>
    <div style=”background-color:#ffffff;font:normal normal normal 13px/19px Georgia, ‘Times New Roman’, ‘Bitstream Charter’, Times, serif;padding:.6em;margin:0px;”>
    <p>Textual history</p>
    <p>”A text does not fully or unambiguously display its history—even the most insightful of interpretations and analyses are only likely to recover some elements of its fuller history, to notice some textual features that allow for uncertain guesses about their origins…All writing draws on writers’ knowledge, beliefs, and practices, built up through experiences of socially and historically situated life events. Writers themselves are only very partially aware of the many debts they owe to these intertextual and intercontextual influences,” (171).</p>
    </div>
    </td>
    </tr>
    </table>
    </div>
    </content>
    </entry>

Viewing 1 replies (of 1 total)