buda-base / BDRC-Lib-App

5 stars 2 forks source link

Problem with search record for items in an outline #89

Closed JannTibetan closed 3 years ago

JannTibetan commented 3 years ago

I searched on Atisha ཨ་ཏི་ཤ་ IMG_4612

The search results included many outline nodes that include the string ཨ་ཏི་ཤ་ IMG_4614

These search results look pretty good to me. I encounter a problem, however, when I click on a search result that is an outline node. Clicking on the title/outline node takes me to a record in which the outline node is the header and then below it is the list of volumes of the given collection but without any indication about which of these volumes contains the sought after text IMG_4613

This is can feel like trying to find a needle in a haystack. Why doesn't the outline show instead, with the desired text highlighted?

subsystem7 commented 3 years ago

@JannTibetan @eroux I will need help understanding the data specifics. My guess is that this is an index/data issue.

eroux commented 3 years ago

@subsystem7 this is in the app but it should be easy to fix. What happens (I think) is that the app gets the data about MW1KG14557_DC50D3 in workparts/74.json, which reads

{"t": ["རིག་འཛིན་པདྨའི་རྣམ་སྤྲལ་ཨ་ཏི་ཤ"], "id": "MW1KG14557_DC50D3"}

that has no subnodes ("n":[...]). In that case the app shouldn't display any "Parts", since the node doesn't have subnodes. I think it looks at "MW1KG14557" in workparts/74.json which does have all these subparts, but it shouldn't do that

subsystem7 commented 3 years ago

duplicate of #81