Skip to content

Commit

Permalink
fix(plugin-ris): add non-standard issue mapping
Browse files Browse the repository at this point in the history
Map IS to issue for MGZN (normally M1).

Fix larsgw/citation.js#215
  • Loading branch information
larsgw committed Dec 31, 2021
1 parent b9a2b7d commit fb6ae32
Show file tree
Hide file tree
Showing 2 changed files with 39 additions and 0 deletions.
11 changes: 11 additions & 0 deletions packages/plugin-ris/src/spec/additions.json
Original file line number Diff line number Diff line change
Expand Up @@ -602,5 +602,16 @@
},
"target": false
}
},
{
"source": "IS",
"target": "issue",
"when": {
"source": {
"TY": "MGZN",
"M1": false
},
"target": false
}
}
]
28 changes: 28 additions & 0 deletions packages/plugin-ris/test/input.js
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,34 @@ ER -
accessed: { 'date-parts': [[2019, 9, 18]] }
}
]
],
'https://github.com/larsgw/citation.js/issues/215': [
`TY - MGZN
TI - New Health Center Targets County's Uninsured Patients
AU - Brubaker, Bill
T2 - Washington Post
DA - 2019/03//
PY - 2019
VL - 5
IS - 2
SP - 10
EP - 12
UR - washingtonpost.com`,
[
{
author: [
{ family: 'Brubaker', given: 'Bill' }
],
issued: { 'date-parts': [[2019, 3]] },
page: '10-12',
'container-title': 'Washington Post',
title: "New Health Center Targets County's Uninsured Patients",
type: 'article-magazine',
URL: 'washingtonpost.com',
volume: '5',
issue: '2'
}
]
]
}
}

0 comments on commit fb6ae32

Please sign in to comment.