                   (vm/migrate-umm context
                                   :collection
                                   umm-version/current-version
-                                  preview-gem-umm-schema-version
+                                  (context->preview-gem-umm-version context)
                                   collection))]
     (render-erb (context->jruby-runtime context)
                 collection-preview-erb

                  (getEngineByName "jruby"))]
    (.eval jruby (io/reader bootstrap-rb))
    jruby))

;; Allows easily evaluating Ruby code in the Clojure REPL.
(comment

  [context]
  (get-in context [:system :public-conf :relative-root-url]))

(defn- context->preview-gem-umm-version
  [context]
  (get-in context [:system system-key :preview-gem-umm-version]))

(defn render-collection
  "Renders a UMM-C collection record and returns the HTML as a string."
  [context collection]
