joshjhall / zotero-to-tana-exporter

Export bibliographic information from Zotero to the Tana paste format.
MIT License
14 stars 5 forks source link

Won't import authors #2

Open craiguffman opened 1 year ago

craiguffman commented 1 year ago

Following up on the CF posts from yesterday. Still can't get this to work. I edited the Zotero output to put Publishers prior to Authors to see if that made a difference, and received this interesting result. It's the first time I have been able to get authors to show up. Hoping it's a clue to the problem.

%%tana%%

screenshot 3

Here is an edited output including ONLY the title and author info and the resulting screenshot which lists no authors:

%%tana%%

screenshot 4

Here's another full example using the book chapter supertag: %%tana%%

screenshot 5

Here's another example, this time replacing my code with yours for all source status options, authorTag. and authorField.

%%tana%%

Here I tried an experiment. First, I will show the original output from Zotero and its result in Tana. Then I will show the experiment: I deleted the "Author(s)::" line, and pasted the author information beneath the Topic(s) line, and it displayed the author properly as a topic. ORIGINAL %%tana%%

screenshot 8

EXPERIMENT #1 %%tana%%

EXPERIMENT #2 In a second experiment, I deleted everything in the Zotero output file but title, publisher and author information. In the first example (below), I put the title and publisher data before the author lines. In the second example, I put the author lines first, followed by the title and publisher lines. It made a difference.

%%tana%%

%%tana%%

screenshot 9

craiguffman commented 1 year ago

I was convinced the problem was with Tana and my Author(s) field, so I did another experiment. I created a new field in my book tag called Placeholder_Author(s), leaving the old Author(s) field in place. I then mapped the author information to the new field. It worked just fine!

The Author(s) field is the only one in my #book supertag that appears in many other supertags (like #quote and #highlight and for which I having lots of [existing] data (as one of the images shows).
screenshot 11

I am still at an impasse. I can't simply add a new field to source types to address this, because the field needs to appear in #quote and #highlights, too. As soon as I add it to those, the Tana Paste fails.

My takeaway is that the problem is NOT with the Tana Metadata Exported, but a problem Tana has in recognizing the Author(s) field in my graph.

%%tana%%

joshjhall commented 1 year ago

Thanks for all of the excellent research @craiguffman! This is very helpful indeed. Based upon your conversation on Slack (https://tanacommunity.slack.com/archives/C02DP78UXHP/p1681482307787709) and this, I agree with your conclusion that the bug is in Tana (at least this time). At some point I turned off the auto-initialize on my Author(s) field (possibly because I was having trouble when testing early on, and promptly forgot I made the change).

I'm setting up a vanilla copy of Tanarian Brain, so I can test these situations more accurately moving forward. My live graph has drifted a bit faster from the original than I'd expected, and I wasn't really thinking about this plugin in the context of software to test and release... just something for my personal use I decided to share after the fact.