Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Next revisionBoth sides next revision
dev:translators:coding [2020/03/12 01:59] – [Writing Translator Code] dstillmandev:translators:coding [2021/07/19 16:53] – [Saving Single Items] Notes don't have a 'title' property dstillman
Line 15: Line 15:
  
 <code javascript>function detectWeb(doc, url) { <code javascript>function detectWeb(doc, url) {
-  
  if (url.indexOf("search/results") != -1) {  if (url.indexOf("search/results") != -1) {
  return "multiple";  return "multiple";
- } else if (url.indexOf("content/article") != -1) {+ } 
 + else if (url.indexOf("content/article") != -1) {
  return "journalArticle";  return "journalArticle";
  }  }
 + return false;
 }</code> }</code>
  
Line 89: Line 90:
 === Notes === === Notes ===
  
-Notes are saved similarly to attachments. The content of the note, which should consist of a string, should be stored in the ''note'' property of the item's ''notes'' property. A title, stored in the ''title'' property, is optional. E.g.:+Notes are saved similarly to attachments. The content of the note, which should consist of a string, should be stored in the ''note'' property of the item's ''notes'' property. E.g.:
  
 <code javascript>bbCite = "Bluebook citation: " + bbCite + "."; <code javascript>bbCite = "Bluebook citation: " + bbCite + ".";
dev/translators/coding.txt · Last modified: 2023/08/04 01:14 by dstillman