Refnotes Plugin: New update 1.8.0 - 1.9.0

The links will appear after you imported the entries (here bibtex entries).
So, I believe the actions shall be appear on the [[Import Bibtex]] tiddler or $:/Import

My previous explanation may be confusing! @saqimtiaz may have better explanation here.

@Mohammad you might not believe it. I installed this plugin only an hour ago, and I opened this forum to create a thread to thank you for your incredible work. Which is when I saw the new update thread.

I am writing a literature review of my research topic, and your plugin turned out to be a lifesaver. Wonderful plugin!

Thanks a lot.

1 Like

Two questions,

  1. Is it possible to show references in numbered format like instead of “(Lee et al., 2009) proposed…”, the plugin shows it as “They [19] proposed…”. And the numbered reference updates with the insertion and deletion of other references.

  2. What’s the best way you to stay up to date with your plugins? I have set a repeating reminder in my todo list that reminds me to download the latest source from Github repository of commander and ref plugins, and place them in my tiddler’s plugin folder. Is there a better or easier way for plugins to auto-update?

The older version used numbered style, you can download from GitHub repo, but the newer (I think from 1.5) uses APA7 style. There were many requests to use APA instead of simple numbered style.
I have seen the possibility to switch the style in the code, but it takes time to implement this style switching feature.

I use the kookma library. A simple click on update button lets me to get the latest plugin. All updates are announced in the forum. Codes are on GitHub so, if you like you can track also the repo.

1 Like

Hi there, hi Mohammad!

First, I may seem new here, but I’m following the projects since a while now and just wanted to thank you, and @jeremyruston and actually everyone contributing to TW and the wonderful plugins’ ecosystem. I’m converting right now my post-guttenberg Phd thesis “manuscript” to an actual non linear pieces of texts that is matching our modern way of reading, thinking and writing, and I really enjoy it thanks to all of you guys. Cheers to that, I’m trying to follow the tracks of Molina : http://tesis.tiddlyspot.com

And @Mohammad, you are so facilitating this enterprise, maybe Molina would have loved this too back that time. I will share with you as soon it is ready.

Meanwhile, serious and quick question about APA7’ style.
Let’s say I want to quote you and this plugin, as for an example.

APA’ strict style would give something like:

Rahmani, M. (2022). Refnotes Plugin (1.8.4). "https://“doi.org”/"tw.refnotes.1.8.4

(what about italicizations of titles or journals?)

Let’s simplify, cause we don’t have a D.O.I., or an url yet, but it could/should be displayed eventually?

Rahmani, M. (2022). Refnotes Plugin (1.8.4).

Now, It seems that Refnotes would naturally output this:

Mohammad Rahmani. Refnotes Plugin (1.8.4). (2022)

Honestly and subjectively, I don’t really like APA anyway, but, it’s a standard, so… we have to comply. But I really prefer this way of presenting citations, because I’m also an human, and I don’t recall “Rahmani, M.” like a APA cog machine, just Mohammad Rahmani, because this is actually how I would call you If I had to. Right, this is confusing.

Anyway, this is not really a proposal for debates about APA’s way of thinking human-machines recognition, but I’m curious, why this way of presenting citations inside your popovers if it’s not APA7?

Cheers :wave:

2 Likes

Sorry, we always say a picture is worth a thousand words:

But… why? :relaxed:

2 Likes

Hi @prb
Welcome to the community. I am glad you found Refnotes useful.
I would be happy to see your finished work once it is ready.

You are right. Refnotes needs to have options to allow users select their style of choice. The older version uses Numbered style and you can download it (not recommended), then there were many requests to switch to APA7. For technical reason it was not possible to have several styles at the same time.

Now, it can be feasible to support several styles. I add this to my todo list! but I need to find some free times to do it as it affects several shadow tiddlers in Refnotes.

2 Likes

It would be powerful if RefNotes can integrate with Citation Style Lanuage (Developers - Citation Style Language) with js library (GitHub - Juris-M/citeproc-js: A JavaScript implementation of the Citation Style Language (CSL) https://citeproc-js.readthedocs.io).

2 Likes

I welcome this if a volunteer can develop this as a subplugin or addon

Hey there,

Again, I’m totally okay-iiish with APA7, I remember and can’t imagine the work to go from IEEE bracket’ style-iiish (which was kind of a csl abberation over which you made finally sense inside TW btw…).
I’m okay with anything that is human readable, especially if you don’t have to click and go somewhere from where you won’t be able to get back on your track (TW also annihilate this “navigation” probelm btw…).

This is why my point about what you did inside popovers is actually a true compliment, because it seems to me like the most naturally human readable.

And I don’t really mean we should change anything for now.
But @Zheng_Bangyou is right, If any future dev around styles should undergo, it then should be with CSL and API in order to facilitate the big mess around with citation standards (both human and machines fail on this, mostly because of us, humans). I also have my own “personal human readable” .csl with emoji-ready identification type of sources. But It’s another story hhh.

Unfortunately, this dev around the .csl is way above my knowledge. I hope It would suggest interest for those who see something interesting here. :slight_smile:

Refnotes just got a new update.

See original post above: Refnotes Plugin: New update 1.8.0 - 1.8.5 - Plugins - Talk TW (tiddlywiki.org)

2 Likes

Hi Mohammad,

Thanks for creating Refnotes. It’s really useful!

One problem I’m experiencing is, after importing a bibtex entry, the titles of most articles cannot be converted properly, as they often contain “{ }”. For example:

Emergence of {White}-{Lie} {Telling} in {Children} {Between} 3 and 7 {Years} of {Age}

I’m not sure what caused this. I’ve been only using Zotero to export bibtex.

Have you heard about this problem from others?

Thanks,
Yi

1 Like

Zotero requires a few configuration to work better with refnotes. See my notes from here: Using Refnotes and Zotero in Tiddlywiki | Bangyou Zheng

4 Likes

If the attached view template is imported, any bibtex-entry tiddler will render links to Zotero and major web links,

image

$__plugins_kookma_refnotes_viewtemplates_links.json (2.0 KB)

2 Likes

The Tutorial states " From Refnotes 1.8.4 it is recommended to use cite macro instead of ref. By the way they are exactly the same."

If I use “cite” instead of “ref” in 1.8.5 the bibtex-entry-tiddler shows: "Cited in No tiddler has cited this reference.
Using “ref” lists the tiddlers, that cite the reference, correctly.

Thank you for reporting the issue. I will push a patch.

Bye the way, cite is a synonyme to ref, it is more meaningful and is inspired from bibtex.

Fixed in Refnotes 1.8.6. See Refnotes Plugin: New update 1.8.0 - 1.8.6 above!

Could we implement two new filters 1) all tiddlers citing a literature 2) all literature cited in a tiddler?

I try to work on it, but beyond my knowledge of js and tiddlywiki.

This is my current implementation of cited filter which seems working. But I am sure the regular expression is not correct as I don’t know how to convert the regular expression from wikitext to js string

  <$let pattern-ref ="""<<ref[\s\['"]*?$refname$['"\s\]]*?.*>>""" 
        pattern-cite="""<<cite[\s\['"]*?$refname$['"\s\]]*?.*>>""" 	
	>
/*\
title: $:/plugins/kookma/refnotes/filters/cited.js
type: application/javascript
module-type: filteroperator

Filter operator for list cited literature

\*/
(function(){

/*jslint node: true, browser: true */
/*global $tw: false */
"use strict";

/*
Export our filter function
*/
exports.cited = function(source,operator,options) {
	var results = [];
    source(function(tiddler,title) {
		var patternref = '<<ref.*' + title + '.*>>';
        var patterncite = '<<cite.*' + title + '.*>>';
        var pattern = "[all[tiddlers]search:text:regexp[" + patternref + "]sort[title]] [all[tiddlers]search:text:regexp[" + patterncite + "]sort[title]]";
        var data = options.wiki.filterTiddlers(pattern);
        results.push(...data);
	});
	return results;
};

})();

$__plugins_kookma_refnotes_filters_cited.js.json (1.1 KB)

Hi @Zheng_Bangyou

I think Refnotes has both of these macros.

  1. showres lists all references in a tiddler
  2. any bibtex entry (e.g. any reference) uses viewtemplate to list all tiddlers cited it

Thanks @Mohammad, I know these macro, but want to use them in the filter to display relationship of citing and cited.