Ticket #1278: 04-misc-fields.patch

File 04-misc-fields.patch, 1.8 KB (added by fbennett, 8 years ago)
  • chrome/content/zotero/xpcom/csl.js

    Only in zotero-trunk/chrome/content/zotero: addCitationDialog.js.orig
    Only in zotero-trunk/chrome/content/zotero: addCitationDialog.js.rej
    diff -r -u zotero-trunk.orig/chrome/content/zotero/xpcom/csl.js zotero-trunk/chrome/content/zotero/xpcom/csl.js
    old new  
    7070        "recipient":true, 
    7171        "interviewer":true, 
    7272        "collection-editor":true, 
    73         "author":true 
     73        "author":true, 
     74        "contributor":true, 
     75        "container-author":true 
    7476} 
    7577 
    7678/* 
     
    17311733 * Mappings for names 
    17321734 */ 
    17331735Zotero.CSL.Item._zoteroNameMap = { 
    1734         "collection-editor":"seriesEditor" 
     1736    "collection-editor":"seriesEditor", 
     1737    "container-author":"containerAuthor" 
    17351738} 
    17361739 
    17371740/* 
     
    17961799                "call-number":"callNumber", 
    17971800                "note":"extra", 
    17981801                "number":"number", 
    1799                 "references":"history" 
     1802                "references":"history", 
     1803                "issued":"date", 
     1804                "accessed":"accessDate" 
    18001805        }, 
    18011806        "short":{ 
    18021807                "title":["shortTitle", "title"], 
     
    18991904        "issue":"issue", 
    19001905        "number-of-volumes":"numberOfVolumes", 
    19011906        "edition":"edition", 
    1902         "number":"number" 
     1907        "number":"number", 
     1908        "note":"extra", 
     1909        "title":"title", 
     1910        "container-title":"publicationTitle", 
     1911        "issued":"date", 
     1912        "page":"pages", 
     1913        "locator":"locator", 
     1914        "collection-number":"seriesNumber" 
    19031915} 
    19041916/* 
    19051917 * Gets a numeric object for a specific type. <number variable="edition" form="roman"/> 
    19061918 */ 
    1907 Zotero.CSL.Item.prototype.getNumericVariable = function(variable, form) { 
     1919// citationItem argument to function gets access to locator field 
     1920Zotero.CSL.Item.prototype.getNumericVariable = function(variable, citationItem, form) { 
    19081921 
    19091922        if(!Zotero.CSL.Item._zoteroNumberFieldMap[variable]) return ""; 
    19101923