CDRH / sparc

Salmon Pueblo Archaeological Research Collection (SPARC) Rails Site
https://salmonpueblo.org/
0 stars 0 forks source link

Map Links #199

Closed jduss4 closed 6 years ago

jduss4 commented 6 years ago

Chaco Map

Should link to "room" panel view of filtered units (only Mixed Chacoan / San Juan and Chacoan) OR possibly just the "W" unit

San Juan Map

Should link to "room" panel view of unfiltered units (all occupations). Will need to strip letters from unit names in order to go straight to room instead of unit.

Trenches Map

Waiting further instruction

jduss4 commented 6 years ago

Possible links:

/explore/map  (main map page, no change in URL when switching occupations)

With parameters:

/explore/zone/110?occ=chaco
/explore/zone/110   (San Juan is not filtered, therefore do not pass parameter)

With URL segment

/explore/zone/110/chaco  (optional ending to URL that would specify occupation)
ccheitman commented 6 years ago

Spoke to Paul about this. A slight modification/question with regard to the initial summary above. Can we use the "occupation" field in the Units table to filter the Chaco and mixed Chaco/San Juan units for the Chaco era map? If so, that programmatic solution would save having to identify the various exceptions to the "W unit=Chacoan" rule.

jduss4 commented 6 years ago

@ccheitman definitely! That is what I had written down initially and it will be equally easy to implement!

jduss4 commented 6 years ago

Addressed in https://github.com/CDRH/sparc/pull/216