dainst / ariadne-portal

MIT License
0 stars 1 forks source link

Add link to parent in subject index #137

Closed scuy closed 8 years ago

scuy commented 8 years ago

There should be a link to the parent subject so that the "what" browse section can reproduce the hierarchy of the Getty AAT for the referenced concepts.

eafiontzi commented 8 years ago

Is the "broader" term sufficient for this?

 {
            "_index": "aat",
            "_type": "terms",
            "_id": "300253481",
            "_score": 1,
            "_source": {
               "prefLabels": [
                  {
                     "label": "tankhouses",
                     "lang": "es"
                  },
                  {
                     "label": "tankhouses",
                     "lang": "nl"
                  },
                  {
                     "label": "tankhouses",
                     "lang": "en"
                  },
                  {
                     "label": "tankhouse",
                     "lang": "es"
                  },
                  {
                     "label": "tankhouse",
                     "lang": "nl"
                  },
                  {
                     "label": "tankhouse",
                     "lang": "en"
                  }
               ],
               "prefLabel": "tankhouses",
               "providerMappings": [],
               "id": "300253481",
               "broader": [
                  {
                     "prefLabel": "water towers",
                     "id": "300006204",
                     "uri": "http://vocab.getty.edu/aat/300006204"
                  }
               ],
               "uri": "http://vocab.getty.edu/aat/300253481",
               "altLabels": [],
               "scopeNote": "Water towers wholly or partly boxed in by walls; the interior spaces of the tower below are thus available for, for example, storage or offices."
            }
         },
scuy commented 8 years ago

In order to be able to find all narrower terms when searching for a broader term, it would be good if we could include not only the parent term, but all ancestors.

gavrilis commented 8 years ago

which broader ? There are two different types of broader terms (generic, preffered)

scuy commented 8 years ago

Sorry, I was on the wrong track here, I thought this was about the resources index. I think we only need the direct parent in the AAT index. So I would say: yes, this is sufficient.

eafiontzi commented 8 years ago

great :+1: