Skip to content

Commit

Permalink
Added author information to v6 API. Closes #370
Browse files Browse the repository at this point in the history
  • Loading branch information
Martin Fenner committed Jul 9, 2015
1 parent 9e7f090 commit 5dc9710
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion app/views/api/v6/recommendations/index.json.jbuilder
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ json.recommendations @recommendations do |recommendation|
json.cache! ['v6', "recommendation", recommendation, params[:work_id], params[:source_id], params[:relation_type_id]], skip_digest: true do
json.(recommendation.work, :id, :publisher_id)
json.(recommendation, :work_id, :source_id, :relation_type_id)
json.(recommendation.work, :title, :issued)
json.(recommendation.work, :author, :title, :issued)
json.set! :"container-title", recommendation.work.container_title
json.(recommendation.work, :volume, :page, :issue, :DOI, :URL, :PMID, :PMCID, :arxiv, :scp, :wos, :ark, :events)
json.(recommendation, :timestamp)
Expand Down
2 changes: 1 addition & 1 deletion app/views/api/v6/references/index.json.jbuilder
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ json.references @reference_relations do |relation|
json.cache! ['v6', "reference", relation, params[:work_id], params[:source_id], params[:relation_type_id]], skip_digest: true do
json.(relation.related_work, :id, :publisher_id)
json.(relation, :work_id, :source_id, :relation_type_id)
json.(relation.related_work, :title, :issued)
json.(relation.related_work, :author, :title, :issued)
json.set! :"container-title", relation.related_work.container_title
json.(relation.related_work, :volume, :page, :issue, :DOI, :URL, :PMID, :PMCID, :arxiv, :scp, :wos, :ark, :events)
json.(relation, :timestamp)
Expand Down
2 changes: 1 addition & 1 deletion app/views/api/v6/works/index.json.jbuilder
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ end

json.works @works do |work|
json.cache! ['v6', work], skip_digest: true do
json.(work, :id, :publisher_id, :title, :issued)
json.(work, :id, :publisher_id, :author, :title, :issued)
json.set! :"container-title", work.container_title
json.(work, :volume, :page, :issue, :DOI, :URL, :PMID, :PMCID, :arxiv, :scp, :wos, :ark, :events, :timestamp)
end
Expand Down
2 changes: 1 addition & 1 deletion app/views/api/v6/works/show.json.jbuilder
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ end

json.work do
json.cache! ['v6', @work], skip_digest: true do
json.(@work, :id, :publisher_id, :title, :issued)
json.(@work, :id, :publisher_id, :author, :title, :issued)
json.set! :"container-title", @work.container_title
json.(@work, :volume, :page, :issue, :DOI, :URL, :PMID, :PMCID, :arxiv, :scp, :wos, :ark, :events, :timestamp)
end
Expand Down

0 comments on commit 5dc9710

Please sign in to comment.