Hi,
The bibliography module is really nice! I will probably try to migrate my publication site into it.
One great improvement would be a bibtex display (and possibly other formats) in the way it is implemented in our proprietary (own, maybe open source, soon) publication manager.
It can be seen at http://www-i6.informatik.rwth-aachen.de/~deselaers/publications.php
I might try to hack that myself, but have never done any java script so far.
If you click on one of the bibtex items, a small popup comes, which is just perfect for copyandpaste.
Cheers!
Thomas
| Comment | File | Size | Author |
|---|---|---|---|
| #11 | biblio.module.gz | 15.42 KB | deselaers |
| #11 | biblio_theme.inc_.gz | 4.56 KB | deselaers |
| #8 | hovertip-6.x.zip | 14.86 KB | rjerome |
| #7 | biblio_theme.inc_.gz | 4.52 KB | deselaers |
Comments
Comment #1
deselaers commentedI just figured, that our other site uses overlib:
http://www.bosrup.com/web/overlib/
Comment #2
rjerome commentedActually, this would be pretty easy to implement using http://drupal.org/project/hovertip. I used this for another purpose and it works quite well.
Ron.
Comment #3
deselaers commentedThanks!
Yes. That looks like a pretty good thing. Unfortunately I am using drupal 6.1 and hovertip is only available for 5.x! Does anybody know whether this would work?
I might try that over the weekend.
Cheers,
thomas
Comment #4
rjerome commentedShould be trivial, since the module really doesn't do anything other than include the appropriate javascript file.
Ron.
Comment #5
rjerome commentedI just implemented this in the 5.x version. It required a few changes to the export functions such that they return the output instead of sending it to a file.
The bottom line is that it works and I'll port it over to the 6.x version.
Ron.
Comment #6
deselaers commentedRon,
that sounds great. I had a look into that myself, but I definitely need to get more understanding of drupal and javascript first.
I am really looking forward to your change. I will be happy to test it.
Cheers!
Thomas
Comment #7
deselaers commentedRon,
I have just been playing with this myself.
I managed to install a patched hovertip (which was easy) and started hacking the biblio_theme.inc.
I managed to insert additional bibtex links using hover/clicktips, but I am not yet sure how to actually include the bibtex into the html file. I tried a bit with iframes... but it did not work, and it seems to be a pretty ugly solution.
I don't know if this helps you at all, nonetheless, I attach my file.
Cheers,
thomas
Comment #8
rjerome commentedIf you get the latest 6.x-dev version, you will see how I implemented it for the tagged format, check out the theme_biblio_tagged_link() function (in biblio_theme.inc).
Attached is the 6.x version of the hovertip module that I'm using.
Ron.
Comment #9
deselaers commentedRon,
I have looked into that, and it works fine for me (although the update.php had some problems when updating to the dev version first... at a second try it worked just fine).
I believe that I might be able to repeat your steps for the other formats as well, and integrate that stuff into the list view, too.
What do you think is necessary for having this merged in the main line.
I think it would be great to have an option to turn hover stuff on and off by users.
Cheers,
thomas
Comment #10
rjerome commentedYes, the intent was to provide this feature for the various formats and have an option to turn it on or off. Things are a bit untable in the 6.x branch right now, but the major changes should be finished in a week or so and then I'll finish this one.
Ron.
Comment #11
deselaers commentedRon,
I have just done this for XML and Bibtex.
However, XML is broken and I don't quite understand why.
Anyway, there was a bug in the hovertip you created, which I fixed and now it uses clicktips pretty much everywhere when the hovertip module is installed.
if you want, you can try out mine:
http://thomas.deselaers.de/publications
I am pretty fine with this now. I now only need to put all my publications into the database [oh btw. I have one paper which has so many authors that not all fit into the field].
I have attached the two files I edited (from the development branch downloaded today (2008-04-05).
Cheers, now I really like biblio!
thomas
Comment #12
rjerome commentedHi Thomas,
You mentioned you found a bug in hovertip, what was it?
While I like your "click tip" implementation, the hovertip type has the advantage of still being able to click the link and have it behave the same as it did before this feature, so I still lean toward that one but I suppose this could also be an admin configuration option.
With regards to your paper with many authors, that will soon be resolved because I'm just finishing a complete rework of the author handling system. The next release will allow any number of authors since the authors will be stored in a separate table rather than a single field within the biblio table. This will also allow distinguishing between two authors with the same name, i.e. if you have two authors with the name John Smith you will now be able to give them separate author id's and thus be able to filter them separately.
I think the XML will be a problem since the browser will try to interpret the xml instead of just displaying it. To make it work the output would probably have to be run through the php function htmlspecialchars() first, then it should display as text.
Thanks for the modifications, I'll put them into the code.
Ron.
Comment #13
rjerome commentedYour patches are now in the -dev version as well as fixes for the XML "clicktip" (which also removes all those database warnings :-)
Ron.
Comment #14
rjerome commentedComment #15
deselaers commentedGreat! Thanks a lot!
I was unsure what led to the database warnings... and would have looked into that today. At some point I figured out that I had no citekey for any of my publications (which renders bibtex unusable) and thus I directly inserted these in the database (which is faster than doing so by editing every single entry) and I was unsure whether this somehow broke the database or whether it was something else.
Anyway... Great! Thanks,
thomas
Comment #16
rjerome commentedThose warning were a result of some changes I made to the export functions. Rather than pass a database pointer, I am now passing the actual node, but I forgot to change the XML function so it was expecting a database pointer and was getting a node object, thus the warnings.
Glad to here it's working, but I should tell you that at this point authors won't be imported from files because I'm still working on that part. It should be functional in a couple of days.
Ron.
Comment #17
deselaers commentedRegarding clicktips, I feel that hardly anybody would download these files unless you are downloading a whole lot. For individual entries people will normally just copy'n'paste into their bibtex database. But I admit that I never used any endnote stuff.
The bug I found was somewhere in your span/div configuration where id/target was somehow confused which made the hover and clicktip thing work in firefox only... but not in safari nor in internet explorer.
I am looking forward to the new author feature and I hope that the existing database is somehow converted into the new format... because otherwise that would mean a lot of work.
Currently the XML seems to be displayed just fine. [you might want to check my site... ] tomorrow, I will try to enter my remaining publications.
Cheers,
thomas
Comment #18
rjerome commentedHi Thomas,
WRT the new author database, yes there will be an automatic upgrade from the existing system to the new one, but obviously this will have to be well tested since it's a rather critical bit of code. If all goes well, I should have something to test later this week.
Ron.
Comment #19
deselaers commentedCool.
I volunteer for testing ;-)
I managed to insert all my (reviewed) publications today. So there are about 50 publications which need conversion.
Cheers,
thomas
Comment #20
Anonymous (not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.