From 416b46daf7d32fa4a46d1234894b1726cb2382bf Mon Sep 17 00:00:00 2001 From: Christian Holm Date: Tue, 31 Jan 2017 10:02:10 +0100 Subject: [PATCH] Add support for identifier --- lib/xlsx/xform/core/core-xform.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/lib/xlsx/xform/core/core-xform.js b/lib/xlsx/xform/core/core-xform.js index b9c8486a6..61efa4d06 100644 --- a/lib/xlsx/xform/core/core-xform.js +++ b/lib/xlsx/xform/core/core-xform.js @@ -35,7 +35,8 @@ var props = { description: 'Comments', language: 'Language', keywords: 'Tags', - category: 'Categories' + category: 'Categories', + identifier: 'Identifier' }; var CoreXform = module.exports = function() { @@ -44,6 +45,7 @@ var CoreXform = module.exports = function() { 'dc:title': new StringXform({tag: 'dc:title'}), 'dc:subject': new StringXform({tag: 'dc:subject'}), 'dc:description': new StringXform({tag: 'dc:description'}), + 'dc:identifier': new StringXform({tag: 'dc:identifier'}), 'dc:language': new StringXform({tag: 'dc:language'}), 'cp:keywords': new StringXform({tag: 'cp:keywords'}), 'cp:category': new StringXform({tag: 'cp:category'}), @@ -78,6 +80,7 @@ utils.inherits(CoreXform, BaseXform, { this.map['dc:title'].render(xmlStream, model.title); this.map['dc:subject'].render(xmlStream, model.subject); this.map['dc:description'].render(xmlStream, model.description); + this.map['dc:identifier'].render(xmlStream, model.identifier); this.map['dc:language'].render(xmlStream, model.language); this.map['cp:keywords'].render(xmlStream, model.keywords); this.map['cp:category'].render(xmlStream, model.category); @@ -127,6 +130,7 @@ utils.inherits(CoreXform, BaseXform, { title: this.map['dc:title'].model, subject: this.map['dc:subject'].model, description: this.map['dc:description'].model, + identifier: this.map['dc:identifier'].model, language: this.map['dc:language'].model, keywords: this.map['cp:keywords'].model, category: this.map['cp:category'].model,