Open Kotodevochka opened 7 years ago
For now, it is seems that it is not possible to query by the following fields:
Also, i need column stratigraphy_free from specimen->stratigraphy table and taxon ID from specimen->specimenidentification->taxon table
Please also add following fields: specimen.num_specmien_images specimen.specimen_id
We still need following fields: specimen.specimen_id (e.g GIT 114-23) specimen->specimen_image.image_url
API updated. Specimen images, references and identifications are now retrieved as related data. num_images field comes from specimen_union table, that is currently not included in API. Need that?
@urtson Unfortunately, we need to have specimen_identification.name available not only in related data, but also as a search criterion. Same goes for reference. Maybe you could at least allow searching by these fields without actually returning them? (I know, specimen has many-to-many relationship with reference and identification)
No, it turned out that we do not really need num_images.
We need following fields as search criteria:
API updated. If many-to-many fields are not specified in returned fields then it is ok. Otherwise you may get duplicate results
@urtson
Could you also please database__acronym field? Currently there are full names of institutions which is not exactly what we need to search by institutions.
Also, hierarchy search does not work for multi_search queries: https://api.arendus.geokogud.info/specimen/?multi_search=value:a;fields:stratigraphy__stratigraphy,stratigraphy__stratigraphy_en;lookuptype:hierarchy Is there are any reason for that or it can be fixed? (:
Could you maybe return all fields by default except these many-to-many fields as it used to be before? It is kind of needed for our details dialogue. Or better we explicitly specify fields that we need for every query?
Thank you for your effort!
Hierarchy multi_field search now possible. Hierarchy lookuptype can be combined with other types:
As a user, I would like to search for specimens.
Acceptance criteria: