Just one way of handling links to bibliographic references

34 views
Skip to first unread message

Charlie Veniot

unread,
Jan 10, 2022, 12:54:20 AM1/10/22
to TiddlyWiki
Just some sample FYI TiddlyWiki code.

Working away at my BASIC Anywhere Machine: Programmer's Reference, I veered off for a little bit to put together a standard method of linking quotes to the bibliographic sources on the web.

Wherever I happen to quote this book, I add the following:
{{TI-99/4A BASIC Reference Manual||tBib}}

The tBib template tiddler has this:

<$vars thisSource={{{ [<currentTiddler>get[url]split[::]first[]] }}}
           thisURL={{{ [<currentTiddler>get[url]split[::]last[]] [<currentTiddler>get[url]] +[first[]] }}}>
{{!!title}}^^<a href={{{ [<thisSource>match[IA]then[https://archive.org/details/]] [<thisURL>] +[join[]] }}} style="text-decoration:none;font-family:Times New Roman" target="_blank"><<thisSource>></a>^^
</$vars>


The idea is to have a link right after the book title.

Since many of my references are hosted on the Internet Archive, I've decided to avoid entering the common part of the URL's ("https://archive.org/details/"), replacing that part for each stored url with "IA::", replacing that with the proper URL prefix when needed.

And the tiddler to display my bibliography :

<$list filter='[tag[BASIC]tag[Bib]]'>

* ''{{||tBib}}''
** Author(s): {{!!by}}
** Published: {{!!pub_date}}, {{!!publisher}}
</$list>




Reply all
Reply to author
Forward
0 new messages