Commit 35eff0fb authored by Tobinsk's avatar Tobinsk
Browse files

Merge branch '3-missing-names' into 'master'

Resolve "Missing names"

Closes #3

See merge request !6
parents 0acb686f 2380fd0c
......@@ -167,11 +167,11 @@ class WikidataNormalizerTransformer extends stream_1.Transform {
getName(obj) {
try {
const name1 = this.getValue(obj, 'P1448', 'text');
if (name1) {
if (name1 !== null) {
return name1;
}
const name2 = this.getValue(obj, 'P1705', 'text');
if (name2) {
if (name2 !== null) {
return name2;
}
return this.getAlternativNames(obj)[0];
......@@ -206,4 +206,4 @@ class WikidataNormalizerTransformer extends stream_1.Transform {
}
}
exports.default = WikidataNormalizerTransformer;
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoid2lraWRhdGEtbm9ybWFsaXplci10cmFuc2Zvcm1lci5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uL3NyYy93aWtpZGF0YS1ub3JtYWxpemVyLXRyYW5zZm9ybWVyLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7O0FBQUEsdURBQXlDO0FBQ3pDLG9DQUFvQztBQUNwQywrQkFBK0I7QUFDL0IsbUNBQWlDO0FBR2pDLDJEQUFrRDtBQUVsRCxNQUFNLDZCQUE4QixTQUFRLGtCQUFTO0lBbUJuRCxZQUFZLE9BQU87UUFDakIsS0FBSyxDQUFDLE9BQU8sQ0FBQyxDQUFDO1FBbkJqQjs7O1dBR0c7UUFDSyxjQUFTLEdBQUcsQ0FBQyxJQUFJLEVBQUUsSUFBSSxFQUFFLElBQUksRUFBRSxJQUFJLENBQUMsQ0FBQztRQWdCM0MsSUFBSSxDQUFDLE1BQU0sR0FBRyxPQUFPLENBQUMsTUFBTSxDQUFDO1FBQzdCLElBQUksQ0FBQyxVQUFVLEdBQUcsT0FBTyxDQUFDLDBCQUEwQixDQUFDO0lBQ3ZELENBQUM7SUFFRDs7Ozs7O09BTUc7SUFDSSxVQUFVLENBQUMsS0FBSyxFQ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2dCQUNwQixLQUFLLENBQUMsSUFBSSxDQUFDLEtBQUssQ0FBQyxDQUFDO2FBQ25CO1NBQ0Y7UUFDRCxnQkFBZ0I7UUFDaEIsT0FBTyxDQUFDLEdBQUcsSUFBSSxHQUFHLENBQUMsS0FBSyxDQUFDLENBQUMsQ0FBQztJQUM3QixDQUFDO0lBRUQ7Ozs7O09BS0c7SUFDSyxRQUFRLENBQUMsR0FBRyxFQUFFLFFBQWdCLEVBQUUsUUFBZ0IsRUFBRTtRQUN4RCxPQUFPLEtBQUssQ0FBQyxJQUFJLENBQUMsQ0FBQyxRQUFRLEVBQUUsUUFBUSxFQUFFLENBQUMsRUFBRSxVQUFVLEVBQUUsV0FBVyxFQUFFLE9BQU8sRUFBRSxLQUFLLENBQUMsRUFBRSxHQUFHLENBQUMsSUFBSSxJQUFJLENBQUM7SUFDbkcsQ0FBQztDQUNGO0FBRUQsa0JBQWUsNkJBQTZCLENBQUMifQ==
\ No newline at end of file
......@@ -187,12 +187,12 @@ class WikidataNormalizerTransformer extends Transform {
private getName(obj): string | null {
try {
const name1 = this.getValue(obj, 'P1448', 'text');
if (name1) {
if (name1 !== null) {
return name1;
}
const name2 = this.getValue(obj, 'P1705', 'text');
if (name2) {
if (name2 !== null) {
return name2;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment