Skip to content

Commit

Permalink
Add support for identifier
Browse files Browse the repository at this point in the history
  • Loading branch information
holm committed Jan 31, 2017
1 parent e0e799b commit 416b46d
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion lib/xlsx/xform/core/core-xform.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,8 @@ var props = {
description: 'Comments',
language: 'Language',
keywords: 'Tags',
category: 'Categories'
category: 'Categories',
identifier: 'Identifier'
};

var CoreXform = module.exports = function() {
Expand All @@ -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'}),
Expand Down Expand Up @@ -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);
Expand Down Expand Up @@ -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,
Expand Down

0 comments on commit 416b46d

Please sign in to comment.