Skip to content

Commit

Permalink
Fix author split in T&F ebooks
Browse files Browse the repository at this point in the history
  • Loading branch information
adam3smith committed Mar 5, 2024
1 parent e84ecfb commit d2965fe
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Taylor & Francis eBooks.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"inRepository": true,
"translatorType": 4,
"browserSupport": "gcsibv",
"lastUpdated": "2022-07-13 18:40:48"
"lastUpdated": "2024-02-27 13:57:59"
}

/*
Expand Down Expand Up @@ -102,8 +102,8 @@ function scrape(doc, url, itemType) {
if (itemType == 'bookSection') {
item.bookTitle = text(doc, 'a.product-book-link');
}
for (let creator of text(doc, '.product-banner-author-name').split(", ")) {

for (let creator of text(doc, '.product-banner-author-name').split(",")) {
let creatorType = text(doc, '.product-banner-author').includes('Edited')
? 'editor'
: 'author';
Expand Down

0 comments on commit d2965fe

Please sign in to comment.