Cassandre icon indicating copy to clipboard operation
Cassandre copied to clipboard

Get the item's attributes corresponding to a memo

Open Athena-Cataleya opened this issue 6 years ago • 2 comments

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 :

  • Interviewe (the person being interviewed)
  • Author (the person who interview)
  • Date of the interview

Athena-Cataleya avatar Jun 06 '19 08:06 Athena-Cataleya

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:

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

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 avatar Jun 14 '19 15:06 benel

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

benel avatar Jun 14 '19 15:06 benel