GithubHelp home page GithubHelp logo

joshjhall / zotero-to-tana-exporter Goto Github PK

View Code? Open in Web Editor NEW
13.0 13.0 5.0 25 KB

Export bibliographic information from Zotero to the Tana paste format.

License: MIT License

JavaScript 100.00%
tana zotero

zotero-to-tana-exporter's People

Contributors

joshjhall avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

zotero-to-tana-exporter's Issues

Won't import authors

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

How to change top-level node to Citekey instead of Title

Hi Joshua,
Thank you so much for this incredible tool!

I have no coding experience, so I was wondering if you could give me some simple instructions for how to change the top-level node in Tana (upon pasting copied Zotero metadata) to show citekey rather than title?

For instance, at the moment, it's showing:
image

I'd like the node which is tagged "#paper (Tanarian brain)" to show the citekey instead.

Thanks!

Won't copy a particular reference

I am completely and totally flummoxed. This tool has worked great until this one specific paper that I need it to work for right now and .... nada. I tried it on others, and it worked fine. I tried restarting Zotero and nada. Switched between Zotero 6 & 7, and still nada. If I switch back to betterbibtex then I get something. I am at a total loss.

Here is the paper in question.

DOI: 10.1136/jnis-2023-021126
URL: http://www.ncbi.nlm.nih.gov/pubmed/38195248

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.