From f2552f195890ae2aa22a09d341c37a5842ea5ee6 Mon Sep 17 00:00:00 2001 From: Ian Sullivan Date: Thu, 8 Oct 2015 22:21:59 -0400 Subject: [PATCH 1/2] added resolver for audio elements to wiki json parsing function --- src/main.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.jsx b/src/main.jsx index 8169dd5..ec6cf7b 100644 --- a/src/main.jsx +++ b/src/main.jsx @@ -177,7 +177,7 @@ function transform1(resource_json) { } else if (_side.fqn == "{http://wikiotics.org/ns/2009/picture}picture") { sides.push({type: "picture", url: resolve_urn(_href) + "?view=image&max_size=250,250"}); } else if (_side.fqn == "{http://wikiotics.org/ns/2010/audio}audio") { - sides.push({type: "audio", url: ""}); + sides.push({type: "audio", url: resolve_urn(_href) + "?view=audio"}); } else { sides.push({type: "unknown"}); } From 89dcb3ea29940dcd6ed780e35f5d9899bd625f72 Mon Sep 17 00:00:00 2001 From: Ian Sullivan Date: Thu, 8 Oct 2015 23:27:56 -0400 Subject: [PATCH 2/2] replaced dumy button with functioning