diff --git a/resources/examples/How_to_use_the_Playground b/resources/examples/How+to+use+the+Playground similarity index 100% rename from resources/examples/How_to_use_the_Playground rename to resources/examples/How+to+use+the+Playground diff --git a/resources/examples/Local_JSON_to_XML_(fix) b/resources/examples/Local+JSON+to+XML+(fix) similarity index 100% rename from resources/examples/Local_JSON_to_XML_(fix) rename to resources/examples/Local+JSON+to+XML+(fix) diff --git a/resources/examples/Local_JSON_to_XML_(morph) b/resources/examples/Local+JSON+to+XML+(morph) similarity index 100% rename from resources/examples/Local_JSON_to_XML_(morph) rename to resources/examples/Local+JSON+to+XML+(morph) diff --git a/resources/examples/OAI-PMH_MODS_to_JSON b/resources/examples/OAI-PMH+MODS+to+JSON similarity index 100% rename from resources/examples/OAI-PMH_MODS_to_JSON rename to resources/examples/OAI-PMH+MODS+to+JSON diff --git a/resources/examples/Web_MarcXML_to_JSON b/resources/examples/Web+MarcXML+to+JSON similarity index 100% rename from resources/examples/Web_MarcXML_to_JSON rename to resources/examples/Web+MarcXML+to+JSON diff --git a/resources/examples/experimental/Large_Input_HTTP b/resources/examples/experimental/Large+Input+HTTP similarity index 100% rename from resources/examples/experimental/Large_Input_HTTP rename to resources/examples/experimental/Large+Input+HTTP diff --git a/resources/examples/experimental/Result_as_file_download b/resources/examples/experimental/Result+as+file+download similarity index 100% rename from resources/examples/experimental/Result_as_file_download rename to resources/examples/experimental/Result+as+file+download diff --git a/resources/examples/experimental/Web_JSON_to_JSON_(fix) b/resources/examples/experimental/Web+JSON+to+JSON+(fix) similarity index 100% rename from resources/examples/experimental/Web_JSON_to_JSON_(fix) rename to resources/examples/experimental/Web+JSON+to+JSON+(fix) diff --git a/resources/examples/experimental/Web_Marc21_to_formeta b/resources/examples/experimental/Web+Marc21+to+formeta similarity index 100% rename from resources/examples/experimental/Web_Marc21_to_formeta rename to resources/examples/experimental/Web+Marc21+to+formeta diff --git a/resources/examples/experimental/Web_Pica-to-MarcXML_(morph) b/resources/examples/experimental/Web+Pica+to+MarcXML+(morph) similarity index 100% rename from resources/examples/experimental/Web_Pica-to-MarcXML_(morph) rename to resources/examples/experimental/Web+Pica+to+MarcXML+(morph) diff --git a/resources/examples/experimental/Web_Pica_to_formeta b/resources/examples/experimental/Web+Pica+to+formeta similarity index 100% rename from resources/examples/experimental/Web_Pica_to_formeta rename to resources/examples/experimental/Web+Pica+to+formeta diff --git a/resources/examples/experimental/XML_repeated_fields b/resources/examples/experimental/XML+repeated+fields similarity index 100% rename from resources/examples/experimental/XML_repeated_fields rename to resources/examples/experimental/XML+repeated+fields diff --git a/src/cljs/metafacture_playground/utils.cljs b/src/cljs/metafacture_playground/utils.cljs index 31fa705..87bc382 100644 --- a/src/cljs/metafacture_playground/utils.cljs +++ b/src/cljs/metafacture_playground/utils.cljs @@ -4,7 +4,7 @@ [clojure.string :as clj-str])) (defn display-name [s] - (clj-str/replace s "_" " ")) + (clj-str/replace s "+" " ")) (defn parse-url [href] (let [query-params (-> href diff --git a/test/cljs/metafacture_playground/event_handler_test.cljs b/test/cljs/metafacture_playground/event_handler_test.cljs index 775d3d4..e799a19 100644 --- a/test/cljs/metafacture_playground/event_handler_test.cljs +++ b/test/cljs/metafacture_playground/event_handler_test.cljs @@ -17,7 +17,7 @@ (def example-name "Local JSON to XML (fix)") -(def example-data (-> (rc/inline "examples/Local_JSON_to_XML_(fix)") +(def example-data (-> (rc/inline "examples/Local+JSON+to+XML+(fix)") utils/parse-url)) ; Initilized db = empty db