Beit-Hatfutsot / dbs-front

Frontend code for http://dbs.bh.org.il
GNU Affero General Public License v3.0
10 stars 13 forks source link

When going to advanced fields of the persons form consider the value inside 'Place of Birth / Marriage / Death' field as 'Place of Birth' #364

Closed Inna-r closed 7 years ago

Inna-r commented 7 years ago

Toggling 'show less/more fields' must toggle values inside 'Place of Birth / Marriage / Death' and 'Place of Birth' input fields (if one of these fields is filled)

nuritgazit commented 7 years ago

@Inna-r @TheGrandVizier not sure I understand. Can you maybe add steps to reproduce?

TheGrandVizier commented 7 years ago
  1. Use advanced search with one of the fields described above
  2. Go back to simple fields mode.

Result: 3 place fields are now merged to one. Which value should be rwtaoned in the merged field given all 3 were full?

On May 15, 2017 12:23 PM, "Nurit" notifications@github.com wrote:

@Inna-r https://github.com/inna-r @TheGrandVizier https://github.com/thegrandvizier not sure I understand. Can you maybe add steps to reproduce?

— You are receiving this because you were mentioned.

Reply to this email directly, view it on GitHub https://github.com/Beit-Hatfutsot/dbs-front/issues/364#issuecomment-301422552, or mute the thread https://github.com/notifications/unsubscribe-auth/AOfPtVY9CV46_TCSBVMipz31da9SnusNks5r6BmQgaJpZM4NUAHZ .

Inna-r commented 7 years ago

@nuritgazit @OriHoch

reproduce:

expected (just like old persons search)

My question is what is the meaning of 'place' field? old persons search considers 'place' as 'place of birth'. i think it has to be 'place of birth OR place of marriage OR place of death'. If so API must know how to handle 'place parameter'.

nuritgazit commented 7 years ago

when searching for a place by using the "unified" field (in the simple search), the results should have all people who were either born or married or died in this place

OriHoch commented 7 years ago

@Inna-r I don't understasnd what you mean by "API must know how to handle 'place parameter'"

in any case, this is purely frontend bug - need to decide how to handle it on the frontend, possible options: (when switching from the advanced to simple place fields)

  1. delete the existing values, and go back to empty place field
  2. use the 1st value and use that for the combined place field

in any case, I think it's very low priority bug, not worth to include in high priority front IMO - @TheGrandVizier - up to you..

OriHoch commented 7 years ago

@Inna-r opened a new issue with clear reproduction steps as I understood them

411

please close this issue if it really handles your issue