Skip to content

Commit

Permalink
strip field
Browse files Browse the repository at this point in the history
  • Loading branch information
retorquere committed Feb 26, 2025
1 parent c1ac30e commit b92974d
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
1 change: 1 addition & 0 deletions setup/apis.js
Original file line number Diff line number Diff line change
Expand Up @@ -398,6 +398,7 @@ function KeyManager() {
if (test) apispec[_name].test = test.name
}

section.$ = section.$.filter(s => !s.summary.startsWith('<b>field</b>'))
fs.writeFileSync(path.join(root, 'site/data/citekeyformatters/functions.json'), JSON.stringify(section.$, null, 2))
fs.writeFileSync(path.join(root, 'site/data/citekeyformatters/filters.json'), JSON.stringify(section._, null, 2))

Expand Down
4 changes: 0 additions & 4 deletions site/data/citekeyformatters/functions.json
Original file line number Diff line number Diff line change
Expand Up @@ -63,10 +63,6 @@
"summary": "<b>extra</b>(variable: string)",
"description": "<p>A pseudo-field from the extra field. eg if you have <code>Original date: 1970</code> in your <code>extra</code> field, you can get it as\n<code>extra(originalDate)</code>, or <code>tex.shortauthor: APA</code> which you could\nget with <code>extra('tex.shortauthor')</code>. Any <code>tex.</code> field will be\npicked up, the other fields can be selected from <a href=\"https://retorque.re/zotero-better-bibtex/exporting/extra-fields/\">this list</a>\nof key names.</p>"
},
{
"summary": "<b>field</b>(name: string)",
"description": "<p>Gets the value of the item field</p>\n<p>field can be one of <code>DOI</code>, <code>ISBN</code>, <code>ISSN</code>, <code>abstractNote</code>, <code>accessDate</code>, <code>applicationNumber</code>, <code>archive</code>, <code>archiveID</code>, <code>archiveLocation</code>, <code>artworkMedium</code>, <code>artworkSize</code>, <code>assignee</code>, <code>audioFileType</code>, <code>audioRecordingFormat</code>, <code>authority</code>, <code>billNumber</code>, <code>blogTitle</code>, <code>bookTitle</code>, <code>callNumber</code>, <code>caseName</code>, <code>citationKey</code>, <code>code</code>, <code>codeNumber</code>, <code>codePages</code>, <code>codeVolume</code>, <code>committee</code>, <code>company</code>, <code>conferenceName</code>, <code>country</code>, <code>court</code>, <code>date</code>, <code>dateDecided</code>, <code>dateEnacted</code>, <code>dictionaryTitle</code>, <code>distributor</code>, <code>docketNumber</code>, <code>documentNumber</code>, <code>edition</code>, <code>encyclopediaTitle</code>, <code>episodeNumber</code>, <code>extra</code>, <code>filingDate</code>, <code>firstPage</code>, <code>format</code>, <code>forumTitle</code>, <code>genre</code>, <code>history</code>, <code>identifier</code>, <code>institution</code>, <code>interviewMedium</code>, <code>issue</code>, <code>issueDate</code>, <code>issuingAuthority</code>, <code>journalAbbreviation</code>, <code>label</code>, <code>language</code>, <code>legalStatus</code>, <code>legislativeBody</code>, <code>letterType</code>, <code>libraryCatalog</code>, <code>manuscriptType</code>, <code>mapType</code>, <code>medium</code>, <code>meetingName</code>, <code>nameOfAct</code>, <code>network</code>, <code>numPages</code>, <code>number</code>, <code>numberOfVolumes</code>, <code>organization</code>, <code>pages</code>, <code>patentNumber</code>, <code>place</code>, <code>postType</code>, <code>presentationType</code>, <code>priorityNumbers</code>, <code>proceedingsTitle</code>, <code>programTitle</code>, <code>programmingLanguage</code>, <code>publicLawNumber</code>, <code>publicationTitle</code>, <code>publisher</code>, <code>references</code>, <code>reportNumber</code>, <code>reportType</code>, <code>reporter</code>, <code>reporterVolume</code>, <code>repository</code>, <code>repositoryLocation</code>, <code>rights</code>, <code>runningTime</code>, <code>scale</code>, <code>section</code>, <code>series</code>, <code>seriesNumber</code>, <code>seriesText</code>, <code>seriesTitle</code>, <code>session</code>, <code>shortTitle</code>, <code>status</code>, <code>studio</code>, <code>subject</code>, <code>system</code>, <code>thesisType</code>, <code>title</code>, <code>type</code>, <code>university</code>, <code>url</code>, <code>versionNumber</code>, <code>videoRecordingFormat</code>, <code>volume</code>, <code>websiteTitle</code>, <code>websiteType</code></p>"
},
{
"summary": "<b>firstpage</b>",
"description": "<p>The number of the first page of the publication (Caution: this\nwill return the lowest number found in the pages field, since\nBibTeX allows <code>7,41,73--97</code> or <code>43+</code>.)</p>"
Expand Down

0 comments on commit b92974d

Please sign in to comment.