Closed aso2101 closed 7 years ago
This may be a holdover, if it doesn't effect the code it is fine to delete it.
That seems reasonable.
model('data') is where data returned by the query (varies depending on which query is calling it) is stored. TEIPublisher uses the $model('data') to store data passed to the view.html page.
@aso2101 I think this has been superseded by #22 and #22 .
I notice that
browse.html
currently calls one important function (app:browse-get-inscriptions
), which puts all of the documents that match the facets into the model in a variablehits
. A couple of questions about how the code inapp.xql
works with this data (since I'm beginning to clean upapp.xql
):app:dynamic-map-data
begins looking for things inhits
that have teo:geo data, but since inscriptions don't have geo:geo data, I'm not sure what this is for... (and it doesn't seem to hurt if I delete it)app:dynamic-map-data
so that if the model has "hits" (i.e., inscriptions) rather than "places" or "persons" it will only populate the map with places that are the<origPlace>
of inscriptions (see 4e9563be8eb184c91c8da2a719bfae9254fc24aa — previously it was also putting places on the map that were merely mentioned in each inscription)model("data")
used?