Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Won't import authors #2

Open
craiguffman opened this issue Apr 14, 2023 · 2 comments
Open

Won't import authors #2

craiguffman opened this issue Apr 14, 2023 · 2 comments

Comments

@craiguffman
Copy link

craiguffman commented Apr 14, 2023

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%%

  • A Living Covenant: The Innovative Spirit in Traditional Judaism #[[book^_6xx5XgHAU]]
  • Publisher^68nuw_HxwE:: Jewish Lights #[[organization^_8MjQoFEGw]]
  • Author(s)::
    • David Hartman #[[author^7G81unl1cH]]
  • Title^cCIpbmPUkw:: A Living Covenant: The Innovative Spirit in Traditional Judaism
  • Source Status (Tanarian Brain):: [[📚 To Read]]
  • Citation Key^xHHQDBpmEC:: @hartman2013living
  • Zotero Link^QzmszpD0DS:: zotero://select/items/1_K4G79TBL
  • Topic(s)^KThVXIs3hS::

screenshot 3

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

%%tana%%

  • A Living Covenant: The Innovative Spirit in Traditional Judaism #[[book^_6xx5XgHAU]]
    • Title^cCIpbmPUkw:: A Living Covenant: The Innovative Spirit in Traditional Judaism
    • Author(s)^UcvyeZjVKB::
      • David Hartman #[[author^7G81unl1cH]]

screenshot 4

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

  • Barth and Near and Distant Neighbors #[[chapter^dIU07ObqlD]]
    • Title^cCIpbmPUkw:: Barth and Near and Distant Neighbors
    • Source Status (Tanarian Brain):: [[📚 To Read]]
    • Citation Key^xHHQDBpmEC:: @woodard-lehman2019barth
    • Zotero Link^QzmszpD0DS:: zotero://select/items/1_THHAXTWN
    • Topic(s)^KThVXIs3hS::
    • Book^D_zqxLtwdZ::
      • The Wiley Blackwell Companion to Karl Barth #[[book^_6xx5XgHAU]]
        • Title^cCIpbmPUkw:: The Wiley Blackwell Companion to Karl Barth
        • Source Status (Tanarian Brain):: [[📚 To Read]]
        • Author(s)^UcvyeZjVKB::
          • George Hunsinger #[[author^7G81unl1cH]]
          • Keith L. Johnson #[[author^7G81unl1cH]]
          • Derek Alan Woodard‐Lehman #[[author^7G81unl1cH]]
        • Topic(s)^KThVXIs3hS::

screenshot 5

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

%%tana%%

  • Barth and Near and Distant Neighbors #[[chapter^dIU07ObqlD]]
    • Title^cCIpbmPUkw:: Barth and Near and Distant Neighbors
    • Source Status (Tanarian Brain):: [[📚 To Read]]
    • Citation Key^xHHQDBpmEC:: @woodard-lehman2019barth
    • Zotero Link^QzmszpD0DS:: zotero://select/items/1_THHAXTWN
    • Topic(s)^KThVXIs3hS::
    • Book^D_zqxLtwdZ::
      • The Wiley Blackwell Companion to Karl Barth #[[book^_6xx5XgHAU]]
        • Title^cCIpbmPUkw:: The Wiley Blackwell Companion to Karl Barth
        • Source Status (Tanarian Brain):: [[📚 To Read]]
        • Author(s)::
          • George Hunsinger #[[author]]
          • Keith L. Johnson #[[author]]
          • Derek Alan Woodard‐Lehman #[[author]]
        • Topic(s)^KThVXIs3hS::
          screenshot 6

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%%

  • Freedom and Authority - The Ethics of Revelation in Karl Barth #[[book^_6xx5XgHAU]]
    • Title^cCIpbmPUkw:: Freedom and Authority - The Ethics of Revelation in Karl Barth
    • Source Status (Tanarian Brain):: [[📚 To Read]]
    • Citation Key^xHHQDBpmEC:: @woodard-lehman2014FreedomAuthorityEthics
    • Zotero Link^QzmszpD0DS:: zotero://select/items/1_8VWCZEB7
    • Author(s)::
      • Derek Woodard-Lehman #[[author]]
    • Topic(s)^KThVXIs3hS::
    • Publisher^68nuw_HxwE:: Princeton University #[[organization^_8MjQoFEGw]]

screenshot 8

EXPERIMENT #1
%%tana%%

  • Freedom and Authority - The Ethics of Revelation in Karl Barth #[[book^_6xx5XgHAU]]
    • Title^cCIpbmPUkw:: Freedom and Authority - The Ethics of Revelation in Karl Barth
    • Source Status (Tanarian Brain):: [[📚 To Read]]
    • Citation Key^xHHQDBpmEC:: @woodard-lehman2014FreedomAuthorityEthics
    • Zotero Link^QzmszpD0DS:: zotero://select/items/1_8VWCZEB7
    • Topic(s)^KThVXIs3hS::
      • Derek Woodard-Lehman #[[author]]
    • Publisher^68nuw_HxwE:: Princeton University #[[organization^_8MjQoFEGw]]
      screenshot 7

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%%

  • Freedom and Authority - The Ethics of Revelation in Karl Barth #[[book^_6xx5XgHAU]]
    • Title^cCIpbmPUkw:: Freedom and Authority - The Ethics of Revelation in Karl Barth
    • Publisher^68nuw_HxwE:: Princeton University #[[organization^_8MjQoFEGw]]
    • Author(s)::
      • Derek Woodard-Lehman #[[author]]

%%tana%%

  • Freedom and Authority - The Ethics of Revelation in Karl Barth #[[book^_6xx5XgHAU]]
    • Author(s)::
      • Derek Woodard-Lehman #[[author]]
    • Title^cCIpbmPUkw:: Freedom and Authority - The Ethics of Revelation in Karl Barth
    • Publisher^68nuw_HxwE:: Princeton University #[[organization^_8MjQoFEGw]]

screenshot 9

@craiguffman
Copy link
Author

craiguffman commented Apr 14, 2023

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%%

  • Freedom and Authority - The Ethics of Revelation in Karl Barth #[[book^_6xx5XgHAU]]
    • Title^cCIpbmPUkw:: Freedom and Authority - The Ethics of Revelation in Karl Barth
    • Source Status (Tanarian Brain):: [[📚 To Read]]
    • Citation Key^xHHQDBpmEC:: @woodard-lehman2014FreedomAuthorityEthics
    • Zotero Link^QzmszpD0DS:: zotero://select/items/1_8VWCZEB7
    • Placeholder_Author(s)^y96zlUYvCA::
      • Derek Woodard-Lehman #[[author]]
    • Publisher^68nuw_HxwE:: Princeton University #[[organization^_8MjQoFEGw]]
      screenshot 10

@joshjhall
Copy link
Owner

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants