Liking cljdoc? Tell your friends :D

hatti.ona.post-process


filter-mediacljs

(filter-media flat-form)

Coll -> Coll

Coll -> Coll
sourceraw docstring

get-attach-mapcljs

(get-attach-map record attachments)

Helper function for integrate attachments; returns a function from a filename to a url-obj (see specs in url-obj function).

Helper function for integrate attachments; returns a function from
a filename to a `url-obj` (see specs in `url-obj` function).
sourceraw docstring

get-matching-namecljs

(get-matching-name fname fnames)

Gets and returns matching name for an attachment that was renamed by appending a hash on the S3 server to avoid duplicating names. e.g. if 1478203839187.jpg was renamed to 1478203839187_wijUzUf.jpg, it returns 1478203839187_wijUzUf.jpg.

Gets and returns matching name for an attachment that was renamed by
appending a hash on the S3 server to avoid duplicating names.
e.g. if 1478203839187.jpg was renamed to 1478203839187_wijUzUf.jpg,
it returns 1478203839187_wijUzUf.jpg.
sourceraw docstring

integrate-attachmentscljs

(integrate-attachments flat-form data & {:keys [attachments]})

Inlines media data from within _attachments into each record. Coll Coll -> Coll

Inlines media data from within _attachments into each record.
Coll Coll -> Coll
sourceraw docstring

integrate-attachments!cljs

(integrate-attachments! app-state
                        flat-form
                        &
                        {:keys [app-data-keys] :or {app-data-keys [:data]}})

Inlines data from within _attachments into each record within app-state.

Inlines data from within _attachments into each record within app-state.
sourceraw docstring

integrate-attachments-in-repeatscljs

(integrate-attachments-in-repeats flat-form data)

Inlines data from within _attachments into each datapoint within repeats.

Inlines data from within _attachments into each datapoint within repeats.
sourceraw docstring

integrate-osm-data!cljs

(integrate-osm-data! app-state form osm-xml app-state-keys)

Given some data post-processed from the ona server (ie, containing _id, _rank), and a string of osm-xml, produce a version with relevant osm data injected in.

Given some data post-processed from the ona server
(ie, containing _id, _rank), and a string of osm-xml, produce a version with
relevant osm data injected in.
sourceraw docstring

(ona-osm-link data form)

Given some data in Ona format, builds a data structure that we will use to link osm data to Ona data.

Given some data in Ona format, builds a data structure that we will use
to link osm data to Ona data.
sourceraw docstring

osm-id->osm-datacljs

(osm-id->osm-data data form osm-xml)

Given some data in OSM format, an Ona Form, and osm xml string, return a map from OSM ID to each osm feature. The map contains: :osm-id, :name, :tags from osm xml, :type, :geom from osm feature's geojson equivalent.

Given some data in OSM format, an Ona Form, and osm xml string,
return a map from OSM ID to each osm feature. The map contains:
:osm-id, :name, :tags from osm xml,
:type, :geom from osm feature's geojson equivalent.
sourceraw docstring

osm-xml->geojsoncljs

(osm-xml->geojson osm-xml-string)

Takes OSM XML in string form, and returns cljs geojson.

Takes OSM XML in string form, and returns cljs geojson.
sourceraw docstring

url-objcljs

(url-obj media-obj)

Calculate full image and thumbnail urls given attachment information.

Calculate full image and thumbnail urls given attachment information.
sourceraw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close