dse-as / oxygen-framework

Custom oXygen Framework for dse-as
ISC License
0 stars 0 forks source link

Zotero integration #1

Open pdaengeli opened 2 weeks ago

pdaengeli commented 2 weeks ago

Suggestions/experiments welcome, @cforney

cforney commented 2 weeks ago

I tried to use directly the atom format in combination with RegisterSurroundWithElementOperation, but unfortunately this didn't work.

Therefore I created a transformation scenario that queries json and generates an xml lookup file, see https://github.com/dse-as/oxygen-framework/commit/2e79fe18636a5f560e7eabbf89149ee411f7f0dd.

key and title are suitable for the linker I think.

pdaengeli commented 2 weeks ago

Thanks, @cforney.

Your current suggestion

<li id="8IT46F4A" val="Donner überm Meer (8IT46F4A)"/>

is a good starting point.

@el-zm, @1980daniela, given your example entries image

what would be good ways to select entries in a linker (think of a dropdown with value filtering based on the beginning of the string¹)?

For instance: author, title, year?

      ┌────────────────────────────────────────────────────────────────┐
      │Ma                                                              │
      ├────────────────────────────────────────────────────────────────┤
      │ Mann, Erika, "Das Buch von der Riviera", 1931 [TH5SMM7R]       │
      │ Mann, Erika, "Stoffel fliegt übers Meer", 1932 [QR987ST]       │
      │ Matzke, Frank, "Jugend bekennt: So sind wir!", 1930 [744SN8KY] │
      │ Matzke, Frank, "Rudolf Karasek", 1928 [123XYZ4]                │
      │ …                                                              │
      └────────────────────────────────────────────────────────────────┘

Many works will have more than one author/contributor. We could enter them in the lookup list multiple times (always pointing to the same ID, of course), just show the first one or show the first e.g. 2 or 3.

┌────────────────────────────────────────────────────────────────┐       
│|                                                               │       
├────────────────────────────────────────────────────────────────┤       
│ Becker, Walther, "Das Buch von der Riviera", 1931 [TH5SMM7R]   │       
│ …                                                              │       
│ …                                                              │       
│ Grossmann, Rudolf, "Das Buch von der Riviera", 1931 [TH5SMM7R] │       
│ …                                                              │       
│ …                                                              │       
│ …                                                              │       
│ …                                                              │       
│ …                                                              │       
│ Mann, Erika, "Das Buch von der Riviera", 1931 [TH5SMM7R]       │       
│ Mann, Erika, "Stoffel fliegt übers Meer", 1932 [QR987ST]       │       
│ …                                                              │       
│ Mann, Klaus, "Das Buch von der Riviera", 1931 [TH5SMM7R]       │       
│ …                                                              │       
│ Matisse, Henri, "Das Buch von der Riviera", 1931 [TH5SMM7R]    │       
│ …                                                              │       
└────────────────────────────────────────────────────────────────┘   

Maybe this is a bit over the top, given that Zotero also shows just one creator.

image

@christian, is so much "complexity" even possible or do we need to keep it very basic?

And what length of this kind of list is unproblematic?


¹ @cforney, is more flexible filtering possible, too? E.g. middle of the string or even fuzzy (non-contiguous characters)?

el-zm commented 2 weeks ago

Thank you two for looking into it! Just one little correction: Zotero can show multiple creators, even if they have the same name: grafik My upload of the book (from swisscovery) had it just wron. g

el-zm commented 2 weeks ago

Editing AS' feuilleton-reviews it becomes clear, that we need to have at least one more category: film. I just added a movie by jean cocteau (metadata from imdb).