Mvolz has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/231254

Change subject: Remove Zotero library specific keys from citation
......................................................................

Remove Zotero library specific keys from citation

In validateZotero, remove two keys, itemVersion and
itemKey. These are Zotero library specific keys
and are not relevant for users of the service.

Bug: T101878
Change-Id: Iaa262bdcd49b6b1b7155be6d5e0f66b03afdf2d8
---
M lib/Exporter.js
1 file changed, 2 insertions(+), 0 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/services/citoid 
refs/changes/54/231254/1

diff --git a/lib/Exporter.js b/lib/Exporter.js
index b175af3..5827533 100644
--- a/lib/Exporter.js
+++ b/lib/Exporter.js
@@ -355,6 +355,8 @@
  */
 var validateZotero = BBPromise.method(function(url, cr){
        var citation = cr.response.citation[0];
+       delete citation.itemKey;
+       delete citation.itemVersion;
        stripCitation(citation);
        fixURL(url, citation);
        fixAccessDate(citation);

-- 
To view, visit https://gerrit.wikimedia.org/r/231254
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: Iaa262bdcd49b6b1b7155be6d5e0f66b03afdf2d8
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/services/citoid
Gerrit-Branch: master
Gerrit-Owner: Mvolz <[email protected]>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to