date_NegativeDateSortViaMacro.json 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. {
  2. "abbreviations": false,
  3. "bibentries": false,
  4. "bibsection": false,
  5. "citation_items": false,
  6. "citations": false,
  7. "csl": "<style \n xmlns=\"http://purl.org/net/xbiblio/csl\"\n class=\"note\"\n version=\"1.0\"><info>\n <id />\n <title />\n <updated>2009-08-10T04:49:00+09:00</updated></info><macro name=\"mydate\">\n <date variable=\"issued\" delimiter=\"-\">\n <date-part name=\"year\"/>\n <date-part name=\"month\" form=\"numeric\"/>\n <date-part name=\"day\" form=\"numeric\"/>\n </date></macro><citation>\n <sort>\n <key macro=\"mydate\"/>\n </sort>\n <layout delimiter=\", \">\n <text macro=\"mydate\"/>\n </layout></citation></style>",
  8. "input": [
  9. {
  10. "id": "ITEM-1",
  11. "issued": {
  12. "date-parts": [
  13. [
  14. -100,
  15. 7,
  16. 13
  17. ]
  18. ]
  19. },
  20. "title": "BookA",
  21. "type": "book"
  22. },
  23. {
  24. "id": "ITEM-2",
  25. "issued": {
  26. "date-parts": [
  27. [
  28. 54,
  29. 10,
  30. 13
  31. ]
  32. ]
  33. },
  34. "title": "BookB",
  35. "type": "book"
  36. },
  37. {
  38. "id": "ITEM-3",
  39. "issued": {
  40. "date-parts": [
  41. [
  42. -44,
  43. 3,
  44. 15
  45. ]
  46. ]
  47. },
  48. "title": "BookC",
  49. "type": "book"
  50. },
  51. {
  52. "id": "ITEM-4",
  53. "issued": {
  54. "date-parts": [
  55. [
  56. 68,
  57. 6,
  58. 11
  59. ]
  60. ]
  61. },
  62. "title": "BookD",
  63. "type": "book"
  64. }
  65. ],
  66. "mode": "citation",
  67. "result": "100BC-7-13, 44BC-3-15, 54AD-10-13, 68AD-6-11"
  68. }