Referencer does not export notes to BibTeX

Bug #289250 reported by bkloppenborg
4
Affects Status Importance Assigned to Milestone
Referencer
Confirmed
Undecided
Unassigned

Bug Description

There should be an option to export the Notes field to the BibTeX "annote" or "note" field or include the traditional BibTeX fields (Author, Journal, etc.) in a HTML-exported file.

Revision history for this message
Zach (zach-frazier) wrote :

I am also interested in this feature. The annote field is used by many programs, and working with the field within referencer would be nice.

You can get basic note writing support with two lines of code:

diff -r e477f85683a5 src/Document.C
--- a/src/Document.C Sun Mar 08 17:50:56 2009 +0000
+++ b/src/Document.C Fri May 15 13:57:18 2009 -0700
@@ -370,6 +370,7 @@
        writeBibKey (out, "pages", bib_.getPages(), useBraces, utf8);
        writeBibKey (out, "year", bib_.getYear(), useBraces, utf8);
        writeBibKey (out, "doi", bib_.getDoi(), useBraces, utf8);
+ writeBibKey (out, "annote", getNotes(), useBraces, utf8);

        out << "}\n\n";

@@ -410,6 +411,7 @@
        writeBibKey (out, "pages", bib_.getPages(), usebraces, utf8);
        writeBibKey (out, "year", bib_.getYear(), usebraces, utf8);
        writeBibKey (out, "doi", bib_.getDoi(), usebraces, utf8);
+ writeBibKey (out, "annote", getNotes(), usebraces, utf8);

        if (tagUids_.size () > 0) {
                out << "\ttags = \"";

Of course this does not support reading... but that does not look too much harder, and if I need it I will try and submit a patch.

Revision history for this message
John S (jcspray) wrote :

Zach: because different people may use annotate for different things, there are two extra things needed for a notes-export patch:
 - Make it optional with a checkbox in the export dialog.
 - Check for each document that there isn't also a normal field called 'annotate', and if so somehow resolve it.

description: updated
summary: - Notes Field not Searchable. Does not export to BibTeX
+ Referencer does not export notes to BibTeX
Changed in referencer:
status: New → Confirmed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.