diff --git a/src/js/widgets/abstract/templates/metadata_template.html b/src/js/widgets/abstract/templates/metadata_template.html index 757a54b7d..50b08290a 100644 --- a/src/js/widgets/abstract/templates/metadata_template.html +++ b/src/js/widgets/abstract/templates/metadata_template.html @@ -2,6 +2,9 @@ {{#each author}} {{/each}} +{{#if page}} + +{{/if}} {{#if pubdate}} {{/if}} @@ -16,4 +19,4 @@ {{/if}} {{#if doi}} -{{/if}} \ No newline at end of file +{{/if}} diff --git a/src/js/widgets/abstract/widget.js b/src/js/widgets/abstract/widget.js index 309d5371f..f43a98cb7 100644 --- a/src/js/widgets/abstract/widget.js +++ b/src/js/widgets/abstract/widget.js @@ -39,6 +39,7 @@ define([ abstract: undefined, title: undefined, authorAff: undefined, + page: undefined, pub: undefined, pubdate: undefined, keywords: undefined, @@ -70,6 +71,10 @@ define([ doc.authorAff = _.zip(doc.author, _.range(doc.author.length)); } + if (doc.page && doc.page.length) { + doc.page = doc.page[0]; + } + //only true if there was an author array //now add urls if (doc.authorAff){ @@ -208,7 +213,7 @@ define([ }, defaultQueryArguments: { - fl: 'title,abstract,bibcode,author,keyword,id,citation_count,[citations],pub,aff,volume,pubdate,doi,pub_raw', + fl: 'title,abstract,bibcode,author,keyword,id,citation_count,[citations],pub,aff,volume,pubdate,doi,pub_raw,page', rows: 40 },