

commons:

Settings  --> duplicate accepatble --> common-beans lib ?

Subsurvey --> out of the scope of the search-problem/design concern (belongs to presentation-problem): solve by filter run after search, on search results: array of ID's (sewarch problem: based Coord's identify data by ID's (IN: Coords OUT: array os ID's; Subsurvey are needed for presentation of the isearch-result)


AuthPolicy - the same as Subsurveys: not in search-problem area ; belongs to seacurity-problem (solve by separate filter run after the search and filtering output ID's)


Coord : duplicate acceptable [ truly common -> (vo-beans? small lib of commons?)]

Inputs : (aggregate of all of the above) ???

SubsurveyId : search inut param and result presentation-problem area
               dacc vlkb-specific: header update feature-related (not part of the strict dacc-problem area)





search-servlet --> auth-filter(output-ID array) --> presentation-xml-filter

dacc-servlet --> auth-filter(input-ID array) --> update fits-header

--------------------------------------------
'Pure' search and 'pure' dacc design:

definitions:
pure-search operates on ObsCore.   Input: coords Output: list of publisher-did's
pure-dacc operates on disk-files:  Input: ID + coords Output: cut data in a file

commons:

Settings -> duplicate ok

Subsurvey metadata -> not needed neither pure-search nor pure-dacc

AuthPolicy -> not needed

Coord: true common (use vo-beans lib approach?)

SubsurveyId -> search-only (input-para-param)


-------------------------------------------------
TODO.

SubsurveyMetadata - table holding in memory subsurveys metadata from csv file read at app init.
                  - provides: extraCards for vlkb-soda to update headers --> needs subsurveyId !!
                              metadata set for search result-xml
(put into all Servlet code : Serlvets must not contain any Survey[] array: loadCsv inside SubsurveyMetadata class; not Servlets)
remains common but later easier to move to Filter

Currently VlkbSql needed in dacc due to resolveByMapping() call using DB to resolve legacy pubdid (generated
from dir and filename of the fitsfile replacing / and spaces with _ and - respectibely - this process being non-reversible)

RESULT: Subsurvey + SubsurveyId = SubsurveyMetadata and should be active only in vlkb-compatibility mode

Additionally:
* search results (for vlkb) must be array if pairs: (publisherDid, [subsurveyId]) ?? check SIAv2 : sia should identify rows in ObsCore ??
* input to dacc (for vlkb-soda) must resolve to hdu or the pair: fitspathanme+hdunnum + [subsurveyID] - if no header-updates, then no subsurveyId needed



