Skip to content

Commit

Permalink
put a more reasonable delimiter for creator lists
Browse files Browse the repository at this point in the history
same change probably needs to happen other places where js is casting an
array to a string
  • Loading branch information
patrickmj committed Nov 1, 2018
1 parent 27353bf commit 9daf0ff
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions assets/js/browse.js
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,7 @@ jQuery(document).ready(function($) {
this_doc += "<h4 class='drs-item-title'><a href='"+this_doc_url+"'>" + title + "</a></h4>";
}
if (creator && search_options.indexOf('Creator') > -1){
this_doc += "<h6 class='drs-item-creator'>"+ creator + "</h6>";
this_doc += "<h6 class='drs-item-creator'>" + creator.join('; ') + "</h6>";
}
if (abstract && search_options.indexOf('Abstract') > -1){
this_doc += "<p class='drs-item-abstract'>" + abstract + "</p>";
Expand Down Expand Up @@ -270,7 +270,7 @@ jQuery(document).ready(function($) {
this_doc += "<h5 class='drs-item-title'><a href='"+this_doc_url+"'>"+title+"</a></h5>";
}
if (creator && browse_options.indexOf('Creator') > -1){
this_doc += "<h6 class='drs-item-creator'>"+creator+"</h6>";
this_doc += "<h6 class='drs-item-creator'>" + creator.join('; ') + "</h6>";
}
if (abstract && browse_options.indexOf('Abstract') > -1){
this_doc += "<p class='drs-item-abstract'>"+abstract+"</p>";
Expand Down

0 comments on commit 9daf0ff

Please sign in to comment.