From 39a70aa4649104c5d9b016a8796c34964f7fafe1 Mon Sep 17 00:00:00 2001 From: Alex Liebowitz Date: Sat, 27 Aug 2016 02:37:35 -0400 Subject: [PATCH] Support both versions of content_type field on Show page Just needed for transition to new metadata system --- js/page/show.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/js/page/show.js b/js/page/show.js index 63500e190..ee40643de 100644 --- a/js/page/show.js +++ b/js/page/show.js @@ -23,8 +23,7 @@ var FormatItem = React.createClass({ var author = claimInfo.author; var language = claimInfo.language; var license = claimInfo.license; - var fileContentType = claimInfo['content-type']; - + var fileContentType = (claimInfo.content_type || claimInfo['content-type']); var available = this.props.available; var amount = this.props.amount || 0.0;