User talk:Diberri/Archive 6

Page contents not supported in other languages.
From Wikipedia, the free encyclopedia

Infobox Disease[edit]

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)[reply]

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)[reply]
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)[reply]
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)[reply]
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)[reply]
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)[reply]
Malcolm has delivered. See [1]. I'll be adding a DiseasesDatabase plugin to the template filler soon. --David Iberri (talk) 16:38, 19 June 2007 (UTC)[reply]

Template Filling: Additional Function Request[edit]

Resolved

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)[reply]

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)[reply]
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)[reply]

PKMzeta[edit]

(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[edit]

Resolved

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

{{cite journal |author=Lindström J, Ilanne-Parikka P, Peltonen M, Aunola S, Eriksson JG, Hemiö K, Hämäläinen H, Härkönen P, Keinänen-Kiukaanniemi S, Laakso M, Louheranta A, Mannelin M, Paturi M, Sundvall J, Valle TT, Uusitupa M, Tuomilehto J |title=Sustained reduction in the incidence of type 2 diabetes by lifestyle intervention: follow-up of the Finnish Diabetes Prevention Study |journal=Lancet |volume=368 |issue=9548 |pages=1673-9 |year=2006 |pmid=17098085}}

Proposed:

<ref name="pmid17098085">{{cite journal |author=Lindström J, Ilanne-Parikka P, Peltonen M, Aunola S, Eriksson JG, Hemiö K, Hämäläinen H, Härkönen P, Keinänen-Kiukaanniemi S, Laakso M, Louheranta A, Mannelin M, Paturi M, Sundvall J, Valle TT, Uusitupa M, Tuomilehto J |title=Sustained reduction in the incidence of type 2 diabetes by lifestyle intervention: follow-up of the Finnish Diabetes Prevention Study |journal=Lancet |volume=368 |issue=9548 |pages=1673-9 |year=2006 |pmid=17098085|doi=10.1016/S0140-6736(06)69701-8}}</ref>

Rationale:

  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 Badgettrg 20:37, 12 May 2007 (UTC)[reply]

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

A suggestion on multiple authors for a specific study.[edit]

Resolved

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)[reply]

Done and done. Thanks for the suggestion. --David Iberri (talk) 18:54, 21 May 2007 (UTC)[reply]

Bookmarklet for citation tool[edit]

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

  • <a href="http://en.wikipedia.org/wiki/Bookmarklets">More information</a> about bookmarklets
  • Install the bookmarklets by bookmarking the links below
  • After installation,to use the bookmarklet,
    • highlight the PMID or ISBN-10 of your reference at PubMed, Amazon, etc, or other webpage
    • click the appropriate link that you saved in your browser's bookmarks

Badgettrg 17:08, 25 May 2007 (UTC)[reply]

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)[reply]
I've added the bookmarklets to the page (see [2]), but haven't made the additions live yet because I can't seem to get them working in Firefox (syntax error involving the "<i>"). 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)[reply]
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)[reply]

Excellent tool[edit]

Thank you for creating an excellent citation tool. Demantos 14:32, 30 May 2007 (UTC)[reply]

You're welcome! Thanks for the kind words. --David Iberri (talk) 20:54, 2 June 2007 (UTC)[reply]

New User[edit]

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/
    • 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.
  2. 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?
    • 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.
  3. Perhaps some simple guidance added to your tool page would help other newcomers like me?Jagra 02:41, 2 June 2007 (UTC)[reply]
Thanks for the suggestions. --David Iberri (talk) 20:54, 2 June 2007 (UTC)[reply]
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)[reply]

Looking for guidance - using Cite templates on a local installation[edit]

Resolved

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)[reply]

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)[reply]

Citation tool doesn't recognize some ISBN's[edit]

Resolved

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)[reply]

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 [3] for Harrison's. Cheers, David Iberri (talk) 00:58, 7 June 2007 (UTC)[reply]
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)[reply]
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)[reply]
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)[reply]
Looks great! -RustavoTalk/Contribs 02:58, 11 June 2007 (UTC)[reply]

extending your reference tool[edit]

Resolved

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)[reply]

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)[reply]

how about a barnstar?[edit]

A barnstar for Diberri for his peerless citation tool

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)[reply]

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)[reply]
A bit late, but I think they meant (by "vertical dividers") a pipe - i.e. | --Seans Potato Business 23:11, 27 November 2007 (UTC)[reply]

The da Vinci Barnstar[edit]

The da Vinci Barnstar
I'm awarding you this "Da vinci" barnstar for your enhancement of wikipedia through your technical knowledge, especially concerning your amazing citation tool which has helped numerous editors improve medical article citations. Booyah! Wikidudeman (talk) 05:21, 19 June 2007 (UTC)[reply]
Much appreciated! --David Iberri (talk) 16:27, 19 June 2007 (UTC)[reply]

MVP[edit]

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)[reply]

Citation tool[edit]

It appears to be down. --Arcadian 21:21, 15 July 2007 (UTC)[reply]

Should be back up now. Thanks, David Iberri (talk) 23:32, 15 July 2007 (UTC)[reply]
Thank you! --Arcadian 01:27, 16 July 2007 (UTC)[reply]

Parsing error in journal field for PMID 9402482: [1]

  1. ^ Ohama K, Nagase H, Ogino K; et al. (1997). "Alpha-fetoprotein (AFP) levels in normal children". European journal of pediatric surgery : official journal of Austrian Association of Pediatric Surgery ... [et al] = Zeitschrift für Kinderchirurgie. 7 (5): 267–9. PMID 9402482. {{cite journal}}: Explicit use of et al. in: |author= (help)CS1 maint: multiple names: authors list (link)

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

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 (&#61;) and things are working just fine now.[4] Cheers, David Iberri (talk) 15:06, 19 July 2007 (UTC)[reply]

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)[reply]

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)[reply]

HTML2Wiki Down![edit]

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)[reply]

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)[reply]
Great, thanks!! Andreas Rindler 13:56, 16 July 2007 (UTC)[reply]

And again[edit]

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)[reply]

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)[reply]
No problem. Fvasconcellos (t·c) 15:06, 23 July 2007 (UTC)[reply]

ISBNs[edit]

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)[reply]

Hmm. I'm able to load up that isbn just fine using the citation maker. See [5]. --David Iberri (talk) 22:00, 27 July 2007 (UTC)[reply]

HGNC ID[edit]

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)[reply]

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)[reply]
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)[reply]
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)[reply]
It's working great now -- thanks! --Arcadian 23:13, 21 August 2007 (UTC)[reply]

Barnstar[edit]

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)[reply]


What a Brilliant Idea Barnstar
To Diberri, for his amazing citation tool. Axl 19:24, 14 August 2007 (UTC)[reply]
Thanks! --David Iberri (talk) 15:57, 21 August 2007 (UTC)[reply]
You are indeed the man. Now go read your Netter.--Dr.michael.benjamin 07:06, 22 October 2007 (UTC)[reply]

Citation tool hosting[edit]

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! Antelan talk 15:03, 20 August 2007 (UTC)[reply]

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)[reply]

?huh[edit]

Dave, what were you thinking? JFW | T@lk 00:30, 22 August 2007 (UTC)[reply]

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)[reply]