User talk:Diberri/Archive 6

Infobox Disease
I got a message from User:Fvasconcellos asking if there was an easier way to fill out Template:Infobox Disease, so I thought I'd drop you a line. Would it be possible to add this to the template building tool, using the DiseasesDB number as the primary key? It would require two page grabs (from "http://www.diseasesdatabase.com/umls_source_codes.asp?glngUserChoice=THEKEY&bytSRL=1" and "http://www.diseasesdatabase.com/links1.asp?glngUserChoice=THEKEY"), but other than that, it would be similar to the other templates. (Of course, doing a live link for ICD10 would not be possible.) --Arcadian 16:22, 1 May 2007 (UTC)
 * Great idea. Only problem is that I can't seem to find a way to output their search results in XML format, which is much easier to do than plucking fields out of the HTML. I sent off an email to the diseasesdatabase.com folks to see if they'd consider implementing such a feature. I'll keep you posted. --David Iberri (talk) 20:11, 1 May 2007 (UTC)
 * Got a reply from Malcolm at diseasesdatabase.com. He's very interested in helping us out, but doesn't seem to have the resources to implement exactly what we need at the moment. We might be able to work something out; I'll keep you posted. --David Iberri (talk) 15:03, 6 May 2007 (UTC)
 * Malcolm suggests that we send him a list of disease terms that he can batch-run against the diseases database; he'll send the codes back to us in some usable format. I'm not sure this is the best solution because 1) I'm not sure how we'd generate such a list (ideally, we'd have the entire diseases database at our fingertips); 2) I unfortunately can't commit any additional resources to storing the results of the batch run; and 3) screen-scraping isn't pretty but it'd get the job done just fine in this case. Any suggestions? --David Iberri (talk) 16:54, 16 May 2007 (UTC)
 * I agree that the batch-run proposal is not a sustainable solution. If the screen-scraping approach isn't too hard, then that's probably the best way forward (I admit I thought you were using screen-scraping for all of them; I didn't realize you were using XML) -- but if it is a hassle to code, don't worry about it; we've survived without an automated infobox generating tool so far, and we could continue to do so. By the way, have you thought about putting your code on sourceforge? --Arcadian 18:38, 16 May 2007 (UTC)
 * Looks like we might be getting an XML version after all. Malcolm has done some great work and has sent me over some mock-ups that would work just great. The next step is to decide whether he's going to make this available for online queries on-the-fly. Once that happens, the ball will be in my court to implement the template filler, and that shouldn't take more than a day or so. Cheers, David Iberri (talk) 17:48, 18 May 2007 (UTC)
 * Malcolm has delivered. See . I'll be adding a DiseasesDatabase plugin to the template filler soon. --David Iberri (talk) 16:38, 19 June 2007 (UTC)

Template Filling: Additional Function Request
Would you be able to add another function so that webpages could be cited? Ideally, you'd insert the webaddress and your program would query the page to get whatever information (e.g. the title) that it could, throw in the access date etc and give me something to copy and paste? --Seans Potato Business 09:55, 6 May 2007 (UTC)
 * I like the idea. It's all set now; see http://diberri.dyndns.org/wikipedia/templates/?type=url. --David Iberri (talk) 12:58, 7 May 2007 (UTC)
 * Wow - I didn't think you'd actually do anything! I normally consider myself lucky just to get a response! Thanks :) --Seans Potato Business 22:19, 8 May 2007 (UTC)

PKMzeta
(moved from User talk:Diberri/Articles) Thanks, Dave, for writing a page about PKMζ. I was thinking about doing it, but didn't know how to begin. By the way, since most people would type "PKMzeta," how do you set up a redirect to your page? Thanks again, Todd Sacktor

PubMed citation tool
This tool is great. A couple of suggestions:
 * 1) Could the tool pick up the doi field so users will be able to link to full text?
 * 2) How about formatting as below:

Currently 

Proposed: 

Rationale: Thanks Badgettrg 20:37, 12 May 2007 (UTC)
 * 1) Saves the user time by building the ref tag
 * 2) Avoids references colliding or being duplicated on an article by proposing a unique name  attribute for the ref tag (could substitute isbn, etc for pmid when citing other types of sources)
 * 3) adds the doi to link to the full text of the article


 * Thanks for the suggestions. I've implemented them just now. --David Iberri (talk) 04:39, 13 May 2007 (UTC)
 * Very fast and very nice.Badgettrg 06:26, 13 May 2007 (UTC)

A suggestion on multiple authors for a specific study.
Currently your tool adds all of the authors for any given study. However WP:MEDMOS says "AMA citation guidelines suggest that if there are more than six authors, include only the first three, followed by et al." Meaning that if a study has 7 authors for instance, you should only list the first three and then follow it by "et al". I know that in some cases this might not work however in most medical articles I think it would be best to follow the MOS. Is there any way you can add another option for instance that says "Trim authors" or something that makes the output list only the first three authors and then "et al"? Wikidudeman  (talk) 03:44, 20 May 2007 (UTC)
 * Done and done. Thanks for the suggestion. --David Iberri (talk) 18:54, 21 May 2007 (UTC)

Bookmarklet for citation tool
Consider adding to the following to http://diberri.dyndns.org/wikipedia/templates/. If you 'edit' this section, you can copy/paste the html to display this.  Bookmarklets for this tool  More information about bookmarklets Install the bookmarklets by bookmarking the links below  Send PMID to Diberri tool Send ISBN to Diberri tool</a> </li> </ul> </li> <li>After installation,to use the bookmarklet, <ul> <li>highlight the PMID or ISBN-10 of your reference at PubMed, Amazon, etc, or other webpage</li> <li>click the appropriate link that you saved in your browser's bookmarks</li> </ul> </li> </ul> Badgettrg 17:08, 25 May 2007 (UTC)
 * Ooh, this is a good idea. Give me some time and I'll see about putting it on the page. Thanks, David Iberri (talk) 20:54, 2 June 2007 (UTC)
 * I've added the bookmarklets to the page (see ), but haven't made the additions live yet because I can't seem to get them working in Firefox (syntax error involving the " "). I unfortunately don't have any time to do debugging myself. Might you have any fixes for this? Cheers, David Iberri (talk) 21:14, 4 June 2007 (UTC)


 * I'm using the bookmarklet (adapted from something at squarefree.com)

javascript:q = "" + (window.getSelection ? window.getSelection : document.getSelection ? document.getSelection : document.selection.createRange.text); if (!q) q = prompt("Enter a PMID:", ""); if (q!=null) location="http://diberri.dyndns.org/wikipedia/templates/?type=pmid&extended=1&add_ref_tag=1&add_text_url=1&dont_strip_trailing_period=1&link_journal=1&id=" + escape(q).replace(/ /g, "+"); void 0
 * which seems to do what I want. Also, for URLs,

javascript:location="http://diberri.dyndns.org/wikipedia/templates/?ddb=&type=url&extended=1&add_accessdate=1&add_ref_tag=1&add_text_url=1&id="+ escape(document.location); void 0 works nicely, off the current URL rather than selected text. Pseudomonas(talk) 16:26, 13 April 2008 (UTC)

Excellent tool
Thank you for creating an excellent citation tool. Demantos 14:32, 30 May 2007 (UTC)
 * You're welcome! Thanks for the kind words. --David Iberri (talk) 20:54, 2 June 2007 (UTC)

New User
I have lots of referencing to do so your tool looks ideal. I am only new to this business of editing, so hope you dont mind some basic guidance/
 * 1) Whilst doing an edit, how do I access the tool, can I set up a permanent shortcut and how/
 * 2) * I set up a shortcut in Firefox. For example, I have http://diberri.dyndns.org/wikipedia/templates/?type=pmid&id=%s bookmarked and set to use "pmid" as a keyword so that whenever I type "pmid XXXX" in my location bar (where XXXX is a PubMed ID), it gives me a full cite journal template code to copy and paste into the Wikipedia article I'm editing. There are some folks that use bookmarklets (eg, the one above) to do more along the lines of what you're asking.
 * 3) Then how do I paste a result into my text edit,ie mark text, right click on text, 'copy' routine, 'back' to edit page,'paste'/or other way?
 * 4) * I keep the Wikipedia article I'm editing open in one tab, then open another tab, type in "pmid XXXX", copy the resulting template code, close the tab, then paste the code into my article.
 * 5) Perhaps some simple guidance added to your tool page would help other newcomers like me?Jagra 02:41, 2 June 2007 (UTC)
 * 6) * I think I might do just that. Most likely I'll put instructions at User:Diberri/Template filler notes or something like that (to be created).
 * Thanks for the suggestions. --David Iberri (talk) 20:54, 2 June 2007 (UTC)


 * Thanks for the quick response David, unfortunately some of it goes over my head! I am using XP so some terms such as 'tabs' and 'booklets' are new to me, I gather though the aim is have two sites and swap between?
 * 1  If I am editing I can have the site you detail above in my "favorites" (bookmarks?)sidebar and go to it when referencing, copy and "back' to the Wp page to paste the REF. Next reference I can "back' again to your site, but need to clean the feilds before entering the new ref ID. Is that why you close each time? Perhaps a "Clear' button might assist dumbos like me?
 * 2  I note when I open your page with the string above it has %s in the number bar (which has to be cleared) and says "Invalid-" I presume that your method somehow replaces the %s with the ID number, so that it opens with the full reference? Can you tell me how to set this up for XP and explorer?


 * I like the idea of a seperate instruction page, but remember to allow for basic users like me,thanks Jagra 06:52, 3 June 2007 (UTC)

Looking for guidance - using Cite templates on a local installation
Hi - I found your terrific tool for generating citations from PubMed, ISBN, etc. First of all, thank you for creating and sharing it.

I was wondering if you could point me in the right direction. I would like to install the "cite_book" capability from Wikipedia on a MediaWiki installation I have. The first question, obviously, is whether it's OK to do that. The harder question is how to do it. Although I've installed and am successfully running Mediawiki on a LINUX server, I'm not deeply enough into the structure and coding to understand what to do. From what I can see, it's a template that refers to a bunch of other templates. If that's the case, then I should be able to get those templates and install them on my system. I haven't been able to find any references or leads to people who might know what has to be done or who might have done it for their own servers. Any ideas?

Mjgreis 17:11, 3 June 2007 (UTC)
 * Hm. I think the folks over at Template talk:Cite book would be a better audience for this question. I'm just the wiki template filler guy, and haven't really been involved in the development of the citation templates. Cheers, David Iberri (talk) 01:45, 4 June 2007 (UTC)

Citation tool doesn't recognize some ISBN's
Your citation tool is the most useful thing I know of in my work on wikipedia - thanks so much for making it! Unfortunately, I've noticed that for me, approximately 25-30% of ISBN's don't work with your citation tool, despite returning the correct book when entered directly into ISBNdb.com. I always try with and without hyphens, and any variant numbers for different editions with no success. My most recent example is 0071391401, a very popular medicine textbook. This is rather frustrating, and I would greatly appreciate it if you could help me out. -RustavoTalk/Contribs 04:56, 6 June 2007 (UTC)
 * Thanks for bringing this to my attention. I'd wondered why some ISBNs failed but had never had a chance to look into it. Seems I've found the problem and fixed it. Now Harrison's and other books for which ISBNdb lacks author information are now able to be queried via the template filler. See for Harrison's. Cheers, David Iberri (talk) 00:58, 7 June 2007 (UTC)
 * Great! I guess the problem must be for medical texts (most of my book sources) which have "editors" rather than "authors" for the book as a whole. I don't suppose there is any way to get the "editors" to show up in the template filler, is there? -RustavoTalk/Contribs 06:59, 8 June 2007 (UTC)
 * If I recall correctly, when I looked at this problem the other day, the ISBNdb data source I'm using didn't actually provide any editors for the Harrison's text (although if you query the isbndb.com website manually, Braunwald appears as editor under the "Notes" section). I'll take another look at this later today. --David Iberri (talk) 11:14, 8 June 2007 (UTC)
 * A search through the ISBNdb developers' docs turned up a separate source for author information. It's much more complete than the other method I was using, so authors should appear more reliably now. For example, here's Harrison's again. Cheers, David Iberri (talk) 17:56, 10 June 2007 (UTC)
 * Looks great! -RustavoTalk/Contribs 02:58, 11 June 2007 (UTC)

extending your reference tool
Hi, I had a look at your really helpful reference tool.

I'm interested in developing an extension of your tool. As far as I understand it, you just call a site like ISBNdb.com and parse the result and then reformat it to get the Wikipedia citation templates filled, right?

I'm thinking of some real database, i.e. not just something retrieving the details via the ISBN etc., but having in store all of the information. A definitive advantage should be that people are then able to look for books not just by their ISBN but by title and author. Moreover, helpful additional information like urls etc. could then be added by people.

Would you be interested in participating in developing this database? Right now, I just started. The main question is, of course, how to get all the data in the database. I thought, one might somehow scan Wikipedia pages containing ISBN numbers, then get the data from ISBNdb, as you apparently do. Additionally, people should be able to add or modify existing items. In addition to a database of books, I plan one for authors and publishers (appropriately linked to the books) and possibly also for scientific papers in journals.

Let me know what you think of this..., Cheers Jakob.scholbach 02:40, 9 June 2007 (UTC)
 * Thanks for your comments, Jakob. This is definitely a great idea and a big project to undertake. Rather than solving the problem with a simple wiki (which among other limitations, would be difficult to query programmatically), it may be easier to use something like Wikidata, whenever it's ready for prime-time. Unfortunately my summer is rather booked, so I wouldn't be able to contribute much to the project aside from the occasional email. Best wishes, David Iberri (talk) 16:37, 10 June 2007 (UTC)

how about a barnstar?


I am truly impressed. Also, now that I have buttered you up (but in all sincerity...), I have a request. Can you figure out how to take a reference created by a program like EndNote and reformat it into a wikipedia citation with the vertical dividers, etc? EndNote can export in almost any academic format including all the biomedical, scientific, APA, and Harvard styles, but I can't figure out how to automatically put the vertical dividing lines into it. Any ideas, especially for the citations that don't have a PMID? I am actually planning to go back and reference that hundred articles or so that I wrote off the top of my head-- or at least some of them, but would like to avoid retyping. alteripse 01:06, 14 June 2007 (UTC)
 * Thanks for the butter. I'm familiar with EndNote but have never used it and don't have a copy handy. Do you have any examples of the citation format the EndNote uses? I'm mostly curious about this vertical divider business, since I can't seem to imagine what that refers to. If you've got something handy, I'd love to see it and figure out whether I can munge it into a WP format. Thanks, David Iberri (talk) 15:49, 18 June 2007 (UTC)
 * A bit late, but I think they meant (by "vertical dividers") a pipe - i.e. | --Seans Potato Business 23:11, 27 November 2007 (UTC)

The da Vinci Barnstar

 * Much appreciated! --David Iberri (talk) 16:27, 19 June 2007 (UTC)

MVP
My references are specific, satisfy multiple fact tags, and pass RS and V. I responded on the article talk page, however I have re-added your primary source, and see no reason that my edits need be reverted en masse. the_undertow talk  19:06, 13 July 2007 (UTC)

Citation tool
It appears to be down. --Arcadian 21:21, 15 July 2007 (UTC)
 * Should be back up now. Thanks, David Iberri (talk) 23:32, 15 July 2007 (UTC)
 * Thank you! --Arcadian 01:27, 16 July 2007 (UTC)

Parsing error in journal field for :

Regards, Una Smith 14:54, 19 July 2007 (UTC)


 * The issue was that the journal has an equal sign (=) in it, which breaks the template code. I've replaced it with the equivalent entity (&amp;#61;) and things are working just fine now. Cheers, David Iberri (talk) 15:06, 19 July 2007 (UTC)

I really like your citation tool. I have one question / comment. I notice that the journal title shows in sentence case (New england journal of medicine), but I think it should be capitalised (New England Journal of Medicine). Is this an easy fix? Cheers, --G716 20:52, 30 July 2007 (UTC)
 * Without doing any research into it, it seems like that may be a difficult task. I'll look into it when I have a spare moment though. --David Iberri (talk) 15:59, 21 August 2007 (UTC)

HTML2Wiki Down!
Hello David, your hosted HTML2Wiki conversion site is down. I had actually planned an important migration for our corporate Wiki and was gonna use your great tool to help migrate from HTML to Wiki. I see that's it's hosted on dyndns, so probably out of your home. I am currently trying to install the Perl modules, but I am a little bit struggling with that as I am a newbie to Perl. Anyway, if you happen to read this message and you have any chance to get your site online again, I would owe you tons!! Cheers, Andreas Rindler 11:49, 16 July 2007 (UTC) (Email address removed. -- Dave)
 * Hi Andreas, thanks for the message. I also got your email. Things are fixed for the time being. Not sure what's going on with the server, as this is the second time it's bombed in less than 24 hours. Should be safe to use for now though. Cheers, David Iberri (talk) 13:21, 16 July 2007 (UTC)
 * Great, thanks!! Andreas Rindler 13:56, 16 July 2007 (UTC)

And again
Hi Dave—the magic template builder appears to be down again. You must be getting tired of doing the tech support thing, but I assure you that I wouldn't be complaining if your tool wasn't so darn useful :) Fvasconcellos (t·c) 20:59, 22 July 2007 (UTC)
 * No worries. It's only aggravating in that I can't get figure out what's going wrong with my server. Hopefully I'll get to the bottom of it soon. Thanks for being patient. :-) Best, David Iberri (talk) 01:57, 23 July 2007 (UTC)
 * No problem. Fvasconcellos (t·c) 15:06, 23 July 2007 (UTC)

ISBNs
Hi, just started using the tool for ISBNs as well as PubMeds. Seems some ISBNs it states can't find, eg 3805568274, yet the link to the source used did find this. Regards David Ruben Talk 21:09, 27 July 2007 (UTC)
 * Hmm. I'm able to load up that isbn just fine using the citation maker. See . --David Iberri (talk) 22:00, 27 July 2007 (UTC)

HGNC ID
A small issue -- on the template filler, when selecting on an HGNC ID, regardless of the ID chosen, the response is "Could not find a protein matching the given HGNC ID". (The rest of the template filler is working fine.) Thanks again for building and continually improving the tool. --Arcadian 02:11, 8 August 2007 (UTC)
 * Gotcha. I'll take a look at this in the next week and a half or so. Unfortunately I don't have internet access at my apartment right now. --David Iberri (talk) 15:57, 21 August 2007 (UTC)
 * By the way, it appears that they've moved their site from "www.gene.ucl.ac.uk" to "www.genenames.org". I've already updated Template:Gene and Template:Protein, but I wouldn't be surprised if this is the issue that is affecting the template filling tool. --Arcadian 19:10, 21 August 2007 (UTC)
 * Okay, so I got impatient and checked out the problem using a campus computer. Turns out you were right -- I just needed to update the URL. Things should be working fine now. Thanks for the heads-up. --David Iberri (talk) 19:26, 21 August 2007 (UTC)
 * It's working great now -- thanks! --Arcadian 23:13, 21 August 2007 (UTC)

Barnstar
Ah, if only that citation tool was around two years ago. :-) [By the way, you might consider displaying your barnstars on your userpage.] Best wishes. Axl 19:24, 14 August 2007 (UTC)


 * Thanks! --David Iberri (talk) 15:57, 21 August 2007 (UTC)
 * You are indeed the man. Now go read your Netter.--Dr.michael.benjamin 07:06, 22 October 2007 (UTC)

Citation tool hosting
I noticed that your citation tool was on DynDNS, which makes me think it might be on a personal computer. If you're interested in getting permanent hosting for your excellent tool, let me know. Obviously this would be at no cost. If I'm wrong about the server, apologies - consider this a "thanks" for the tool! Ante lan  <sup style="color:darkred;">talk  15:03, 20 August 2007 (UTC)
 * I've actually got it hosted on a Go Daddy server at the moment -- I'd completely forgotten I was using DynDNS as well. :-) Thanks for the offer though! Cheers, David Iberri (talk) 15:56, 21 August 2007 (UTC)

?huh
Dave, what were you thinking? JFW | T@lk  00:30, 22 August 2007 (UTC)
 * Hehe. The truth is I have this nervous habit of selecting/deselecting text all over a page. My heart stopped when I clicked that rollback button though. :-) Sorry 'bout that. A totally mindless mistake. --David Iberri (talk) 17:10, 22 August 2007 (UTC)