citation-js 0.5.4 → 0.5.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/build/citation.js CHANGED
@@ -5721,6 +5721,11 @@ function parseEntryValues(entry) {
5721
5721
 
5722
5722
  for (var property in entry.properties) {
5723
5723
  var value = entry.properties[property];
5724
+
5725
+ if (value === '') {
5726
+ continue;
5727
+ }
5728
+
5724
5729
  output[property] = (0, _value.parse)(value + '', property, output.language);
5725
5730
  }
5726
5731
 
@@ -9131,6 +9136,10 @@ var fetchEngine = function fetchEngine(style, lang, template, retrieveItem, retr
9131
9136
  exports.fetchEngine = fetchEngine;
9132
9137
 
9133
9138
  var prepareEngine = function prepareEngine(data, templateName, language, format) {
9139
+ if (!_citeproc["default"].Output.Formats[format] || !_citeproc["default"].Output.Formats[format]['@bibliography/entry']) {
9140
+ throw new TypeError("Cannot find format '".concat(format, "'"));
9141
+ }
9142
+
9134
9143
  var items = data.reduce(function (store, entry) {
9135
9144
  store[entry.id] = entry;
9136
9145
  return store;
@@ -10639,6 +10648,17 @@ module.exports=[
10639
10648
  },
10640
10649
  "target": false
10641
10650
  }
10651
+ },
10652
+ {
10653
+ "source": "IS",
10654
+ "target": "issue",
10655
+ "when": {
10656
+ "source": {
10657
+ "TY": "MGZN",
10658
+ "M1": false
10659
+ },
10660
+ "target": false
10661
+ }
10642
10662
  }
10643
10663
  ]
10644
10664
 
@@ -11179,6 +11199,23 @@ module.exports=[
11179
11199
  }
11180
11200
  }
11181
11201
  },
11202
+ {
11203
+ "source": "C1",
11204
+ "target": "publisher-place",
11205
+ "when": {
11206
+ "source": {
11207
+ "TY": [
11208
+ "CONF",
11209
+ "CPAPER"
11210
+ ]
11211
+ },
11212
+ "target": {
11213
+ "type": [
11214
+ "paper-conference"
11215
+ ]
11216
+ }
11217
+ }
11218
+ },
11182
11219
  {
11183
11220
  "source": "C1",
11184
11221
  "target": "scale",
@@ -11629,6 +11666,88 @@ module.exports=[
11629
11666
  }
11630
11667
  }
11631
11668
  },
11669
+ {
11670
+ "source": "CY",
11671
+ "target": "publisher-place",
11672
+ "when": {
11673
+ "source": {
11674
+ "TY": [
11675
+ "ADVS",
11676
+ "AGGR",
11677
+ "ANCIENT",
11678
+ "ART",
11679
+ "BLOG",
11680
+ "BOOK",
11681
+ "CHAP",
11682
+ "CHART",
11683
+ "CLSWK",
11684
+ "COMP",
11685
+ "CTLG",
11686
+ "DATA",
11687
+ "DBASE",
11688
+ "DICT",
11689
+ "EBOOK",
11690
+ "ECHAP",
11691
+ "EDBOOK",
11692
+ "EJOUR",
11693
+ "ELEC",
11694
+ "ENCYC",
11695
+ "EQUA",
11696
+ "FIGURE",
11697
+ "GEN",
11698
+ "GOVDOC",
11699
+ "HEAR",
11700
+ "ICOMM",
11701
+ "LEGAL",
11702
+ "MANSCPT",
11703
+ "MAP",
11704
+ "MGZN",
11705
+ "MUSIC",
11706
+ "NEWS",
11707
+ "PAMP",
11708
+ "PCOMM",
11709
+ "RPRT",
11710
+ "SER",
11711
+ "SLIDE",
11712
+ "SOUND",
11713
+ "STAND",
11714
+ "THES",
11715
+ "UNPB",
11716
+ "VIDEO"
11717
+ ]
11718
+ },
11719
+ "target": {
11720
+ "type": [
11721
+ "article-magazine",
11722
+ "article-newspaper",
11723
+ "book",
11724
+ "chapter",
11725
+ "dataset",
11726
+ "entry",
11727
+ "entry-dictionary",
11728
+ "entry-encyclopedia",
11729
+ "figure",
11730
+ "graphic",
11731
+ "interview",
11732
+ "legislation",
11733
+ "manuscript",
11734
+ "map",
11735
+ "musical_score",
11736
+ "pamphlet",
11737
+ "personal_communication",
11738
+ "post",
11739
+ "post-weblog",
11740
+ "report",
11741
+ "review-book",
11742
+ "song",
11743
+ "speech",
11744
+ "thesis",
11745
+ "treaty",
11746
+ "webpage"
11747
+ ]
11748
+ }
11749
+ }
11750
+ },
11632
11751
  {
11633
11752
  "source": "CY",
11634
11753
  "target": "event-place",
@@ -15190,6 +15309,9 @@ var _default = [{
15190
15309
  EP: true
15191
15310
  }
15192
15311
  }
15312
+ }, {
15313
+ source: 'CY',
15314
+ target: 'publisher-place'
15193
15315
  }, {
15194
15316
  source: 'PB',
15195
15317
  target: 'publisher'