Closed benel closed 4 years ago
Cassandre 3.0 was designed so that a CouchDB database populated with documents from a previous version may be used with no modification required.
This implies that :
contributors
and readers
are not mandatory. The user
field may be used to infer ownership (I am not totally sure)._rev
field shouldn't be modified or removed. It will not affect anything. speeches
will be integrated as the body of the memo. Cassandre will index these speeches (as is) for lexicometrics and KWIC's features.date
is provided, it will be used as creation date. However, Cassandre won't consider a transcript has a creator if the document has no history (as you have experience, the creator is then an empty string). This implies that the first edition of the document (inside Cassandre 3) will be considered as a creation. This may be confusing at first glance... However, it you consider the history of the diary, this makes sense. I would be curious that you test these behaviors (as nobody as done yet up to now, as far as I know).
However, if you dislike default behaviors, you can insert contributors
and readers
(exactly as you assume) and forge a minimal history with the creator as first user and the date when the document was created : "history": [{"user": "acme", "date": "2012-01-01"}]
I didn't updated Cassandre since most of corpora were not used anymore. Therefore I installed another server with another version and just copied a few corpora as diaries.
Here is an extract of the memo in JSON and its HTML display:
As explained earlier, everything works fine except the display of the creator's name since I don't know how to rename interviewer
.
I can also share the memo with you if you want to test different JSON keys.
It seems that I read your answer too fast. OK I will create a minimal history so that the real author can be credited.
It worked. Thanks, Christophe!
To migrate interview transcripts from Cassandre 2 to Cassandre 3, I figured that, from CouchDB interface, I had to:
diary_name
and the corpus ID referenced in transcripts,_rev
removed,"contributors": ["acme"], "readers": ["acme"]
added (where "acme" is the user who should 'own' it),date
and reformatting the value asyear-month-date
.However, I cannot figure out how to rename the attribute for the interviewer. I tried
creator
,author
,user
,interviewer
but I still getCréé par le 1er janvier 2012
(which means that the name is an empty string).