Bug 319182 - Add Bibtex entries by source
Summary: Add Bibtex entries by source
Status: RESOLVED FIXED
Alias: None
Product: tellico
Classification: Applications
Component: general (show other bugs)
Version: 2.3.7
Platform: Other Linux
: NOR wishlist
Target Milestone: ---
Assignee: Robby Stephenson
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-05-01 16:33 UTC by basu123ra
Modified: 2013-07-08 04:48 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In: 2.3.8
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description basu123ra 2013-05-01 16:33:46 UTC
Adding bibtex by source will be a killer feature for tellico. 

The idea is that tellico could recognized something like 

@article {MR1863961,
    AUTHOR = {Johnstone, Iain M.},
     TITLE = {On the distribution of the largest eigenvalue in principal
              components analysis},
   JOURNAL = {Ann. Statist.},
  FJOURNAL = {The Annals of Statistics},
    VOLUME = {29},
      YEAR = {2001},
    NUMBER = {2},
     PAGES = {295--327},
      ISSN = {0090-5364},
     CODEN = {ASTSC7},
   MRCLASS = {62H25 (15A52 33C45 33E17 60F05)},
  MRNUMBER = {1863961 (2002i:62115)},
       DOI = {10.1214/aos/1009210544},
       URL = {http://dx.doi.org/10.1214/aos/1009210544},
}

and transforms it in a correct item inside the current database. 

Reproducible: Always
Comment 1 Robby Stephenson 2013-05-01 21:25:44 UTC
(In reply to comment #0)
> Adding bibtex by source will be a killer feature for tellico. 
> The idea is that tellico could recognized something like 
> 
> @article {MR1863961,
> ...
> }
> 
> and transforms it in a correct item inside the current database. 

I'm not quite sure what you mean. Tellico can import a bibtex file and it gets added to the current collection. Is that what you mean?
Comment 2 basu123ra 2013-05-06 09:18:23 UTC
I tried to explain my idea. Usually when I search papers, I found citations in plain text like 

- https://www.jstor.org/action/downloadSingleCitationSec?userAction=export&format=bibtex&include=abs&singleCitation=true
- http://www.ams.org/mathscinet/search/publications.html?fmt=bibtex&pg1=MR&s1=2218478
- etc.

I think that would be neat if the user could only copy-paste that text in some part in tellico and the software "understands" each entry (author, title, etc) and put it correctly in its respectively field.

Jabref and Bibtex have this feature implemented,

JabRef: http://sourceforge.net/p/jabref/bugs/_discuss/thread/26d66202/4a72/attachment/JabRef%20bug.png

Kbibtex (Look the last option in the dialog box): http://home.gna.org/kbibtex/screenshots/kbibtex-20110222-macosx.png

Best regards.
Comment 3 Robby Stephenson 2013-05-14 23:22:32 UTC
(In reply to comment #2)
> https://www.jstor.org/action/
> downloadSingleCitationSec?userAction=export&format=bibtex&include=abs&singleC
> itation=true
> http://www.ams.org/mathscinet/search/publications.
> html?fmt=bibtex&pg1=MR&s1=2218478

Sorry, I can't test either one of those. I don't have access permissions to read them.

But if you drag a bibtex URL into the tellico window, it will automatically download and import it already. Try going to this website: http://amath.colorado.edu/documentation/LaTeX/basics/steps/BIBtex.html and dragging the top biblio.bib link into Tellico's window in the main area.

Tellico can also import bibtex URLS directly from File->Import->Bibtex. When the file dialog opens, instead of selecting a local file, paste the URL into the Name box at the bottom and click Open.

> I think that would be neat if the user could only copy-paste that text in
> some part in tellico and the software "understands" each entry (author,
> title, etc) and put it correctly in its respectively field.

If you're asking to copy-paste bibtex text directly, then sure, Tellico doesn't do that yet. It also doesn't import bibtex text if you drag the text into the window. I suppose I could figure out a way to add that.

But opening URLs and dragging URLs seems to be what you want and Tellico already does that.
Comment 4 Robby Stephenson 2013-06-09 23:50:14 UTC
Git commit 251b78b631df064f60188b8e3112a48e63c6b1b3 by Robby Stephenson.
Committed on 10/06/2013 at 01:49.
Pushed by rstephenson into branch '2.3'.

Allow Bibtex text to be drag/dropped on the main window to import

The importing is fragile. A Bibliography type collection must currently
be open and the bibtex text must be valid.
FIXED-IN: 2.3.8

M  +4    -0    ChangeLog
M  +20   -1    src/core/drophandler.cpp
M  +1    -0    src/core/drophandler.h
M  +46   -0    src/importdialog.cpp
M  +3    -0    src/importdialog.h
M  +10   -0    src/mainwindow.cpp
M  +2    -1    src/mainwindow.h
M  +4    -0    src/progressmanager.cpp
M  +3    -0    src/translators/bibteximporter.cpp
M  +1    -0    src/translators/bibteximporter.h

http://commits.kde.org/tellico/251b78b631df064f60188b8e3112a48e63c6b1b3
Comment 5 Robby Stephenson 2013-07-02 02:12:18 UTC
Git commit 96df876cd051f33c736ad92b2af07dd3e1d20d38 by Robby Stephenson.
Committed on 09/06/2013 at 23:49.
Pushed by rstephenson into branch 'master'.

Allow Bibtex text to be drag/dropped on the main window to import

The importing is fragile. A Bibliography type collection must currently
be open and the bibtex text must be valid.
FIXED-IN: 2.3.8

M  +4    -0    ChangeLog
M  +20   -1    src/core/drophandler.cpp
M  +1    -0    src/core/drophandler.h
M  +46   -0    src/importdialog.cpp
M  +3    -0    src/importdialog.h
M  +10   -0    src/mainwindow.cpp
M  +2    -1    src/mainwindow.h
M  +4    -0    src/progressmanager.cpp
M  +3    -0    src/translators/bibteximporter.cpp
M  +1    -0    src/translators/bibteximporter.h

http://commits.kde.org/tellico/96df876cd051f33c736ad92b2af07dd3e1d20d38
Comment 6 Robby Stephenson 2013-07-08 04:48:04 UTC
Git commit 15f4cfde92a552b517fd582c11d31a42ce894b83 by Robby Stephenson.
Committed on 09/06/2013 at 23:49.
Pushed by rstephenson into branch 'master'.

Allow Bibtex text to be drag/dropped on the main window to import

The importing is fragile. A Bibliography type collection must currently
be open and the bibtex text must be valid.
FIXED-IN: 2.3.8

M  +4    -0    ChangeLog

http://commits.kde.org/tellico/15f4cfde92a552b517fd582c11d31a42ce894b83