Hypertopic / Cassandre

Diary for qualitative analysis
https://hypertopic.org/cassandre
GNU Affero General Public License v3.0
24 stars 7 forks source link

Get the item's attributes corresponding to a memo #88

Open Athena-Cataleya opened 5 years ago

Athena-Cataleya commented 5 years ago

Related to : https://github.com/Hypertopic/Cassandre/issues/84

We need to see the item's attributes in the Hypertopic Item for our function : https://github.com/Hypertopic/Porphyry/issues/191

For now you can access to:

GET http://cassandre.hypertopic.org/item/enseignants-decrocheurs/deb51701fe5e555acf3a765a30115e04

{"rows":[ {"key":["http://cassandre.hypertopic.org/text/enseignants-decrocheurs/deb51701fe5e555acf3a765a30115e04"], "value":{"item":{"corpus":"enseignants-decrocheurs", "id":"deb51701fe5e555acf3a765a30115e04"}}} ]}

And we need to access other attributes like :

benel commented 5 years ago

The fix is available on UTT's Cassandre server:

I did it both for item (as asked) but also for corpus (which is the efficient way to go through this:

As you can see, all attributes (e.g. enquêteur and date) are now got. Be careful, the values are either a string or an array of strings.

benel commented 5 years ago

@christophe-lejeune I pushed the fix on v2. Commit 8aad2e6 could probably be cherry-picked (and amended) for v3.