v0°7 of bib2wiki

⇠ Back to Blog:Trifles

I updated bib2wiki to:

  • Have the wiki title of papers be their key, as opposed to the title of the paper. This I need for various reasons:
  1. Sometimes different papers have the same title. I already met this problem.
  2. I need access to the key somewhere, maybe nowhere better than in the url itself.
  3. I need to access the wiki page through its key directly.

This is a simple patch:

#	    my $output = "<u>[[" . $title . "]]</u>. ";
	    my $output = "<u>[[" . $bibkey . "|" . $title . "]]</u>. ";
  • Then I also need to remove the necessity of specifying -keys= which is a pain for single entries (that are needed more often than not).

Here too the patch is simple:

push(@mykeys,$ARGV[0]);

I indeed use the -s option of perl but the old way still is an option.

Now these work:

laussy@covid:~/Dropbox/Fabrice/bib/bib2wiki$ ./bib2wiki-v07 delvalle12a
delvalle12a
<u>[[delvalle12a|Theory of Frequency-Filtered and Time-Resolved $N$-Photon Correlations]]</u>. [[E. del Valle]], [[A. González-Tudela]], [[F. P. Laussy]], [[C. Tejedor]] and [[M. J. Hartmann]] in [[Phys. Rev. Lett.]] [http://dx.doi.org/10.1103/PhysRevLett.109.183601 '''109''':183601] ([[2012]]).

laussy@covid:~/Dropbox/Fabrice/bib/bib2wiki$ ./bib2wiki-v07 -keys=delvalle12a delvalle13a
delvalle12a
<u>[[delvalle12a|Theory of Frequency-Filtered and Time-Resolved $N$-Photon Correlations]]</u>. [[E. del Valle]], [[A. González-Tudela]], [[F. P. Laussy]], [[C. Tejedor]] and [[M. J. Hartmann]] in [[Phys. Rev. Lett.]] [http://dx.doi.org/10.1103/PhysRevLett.109.183601 '''109''':183601] ([[2012]]).

delvalle13a
<u>[[delvalle13a|Distilling one, two and entangled pairs of photons from a quantum dot with cavity QED effects and spectral filtering]]</u>. [[E. del Valle]] in [[New J. Phys.]] [http://dx.doi.org/10.1088/1367-2630/15/2/025019 '''15''':025019] ([[2013]]).