I just noticed this fault in my code...since getCitations is dependent on an input object from searchWordsPubMed, changing the order of results that searchWordsPubMed produces would silently break getCitations because it looks for results[6] in the output of the first function.
I need to go back and either get it to pull out the ID using $ID or something like that...or integrate getCitations into searchwordspubmed() as an option, since the two functions are never meant to be run separately.
I just noticed this fault in my code...since getCitations is dependent on an input object from searchWordsPubMed, changing the order of results that searchWordsPubMed produces would silently break getCitations because it looks for results[6] in the output of the first function.
I need to go back and either get it to pull out the ID using $ID or something like that...or integrate getCitations into searchwordspubmed() as an option, since the two functions are never meant to be run separately.