Skip to content

Commit

Permalink
Update zsc.js
Browse files Browse the repository at this point in the history
using the first three authors is enough for accurate retrieval
  • Loading branch information
nico-zck committed Mar 31, 2020
1 parent a130780 commit 275f70a
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion chrome/content/zsc.js
Original file line number Diff line number Diff line change
Expand Up @@ -240,9 +240,13 @@ zsc.generateItemUrl = function(item) {

let creators = item.getCreators();
if (creators && creators.length > 0) {

// using the first three authors is enough for accurate retrieval
num_creators = creators.length > 3 ? 3 : creators.length;

url += '&as_sauthors=';
url += creators[0].lastName;
for (let idx = 1; idx < creators.length; idx++) {
for (let idx = 1; idx < num_creators; idx++) {
url += '+' + creators[idx].lastName;
}
}
Expand Down

0 comments on commit 275f70a

Please sign in to comment.