wpoa / recitation-bot

MediaWiki bot to upload content to Wikimedia projects and update corresponding citations on Wikipedia.
GNU General Public License v3.0
9 stars 3 forks source link

Add file description from <title> and <caption> elements in PMC XML #3

Open Daniel-Mietchen opened 10 years ago

Daniel-Mietchen commented 10 years ago

The current file descriptions (e.g. "Media belonging to article 10.1371/journal.pbio.1000436 which is cited on Wikipedia, and automatically imported." in https://commons.wikimedia.org/w/index.php?title=File:Tracking-Marsupial-Evolution-Using-Archaic-Genomic-Retroposon-Insertions-pbio.1000436.g002.jpg&oldid=126539861 ) are not very helpful.

The corresponding code should thus be replaced with that in OAMI. Sample upload from PLOS: https://commons.wikimedia.org/wiki/File:Messages-Do-Diffuse-Faster-than-Messengers-Reconciling-Disparate-Estimates-of-the-Morphogen-Bicoid-pcbi.1003629.s006.ogv .

notconfusing commented 10 years ago

fixed https://commons.wikimedia.org/w/index.php?title=File:New-Horned-Dinosaurs-from-Utah-Provide-Evidence-for-Intracontinental-Dinosaur-Endemism-pone.0012292.g006.jpg&diff=prev&oldid=126893533

Daniel-Mietchen commented 10 years ago

Looks good.

Daniel-Mietchen commented 9 years ago

Apparently fixed only partially - see, for instance, https://commons.wikimedia.org/w/index.php?title=File:Modelling-the-Species-Distribution-of-Flat-Headed-Cats-%28Prionailurus-planiceps%29-an-Endangered-South-pone.0009612.g001.jpg&oldid=134060202#Summary , which misses the content of the element (cf. <a href="http://eutils.ncbi.nlm.nih.gov/entrez/eutils/efetch.fcgi?db=pmc&id=2840020">http://eutils.ncbi.nlm.nih.gov/entrez/eutils/efetch.fcgi?db=pmc&id=2840020</a> ).</p> </div> </div> <div class="page-bar-simple"> </div> <div class="footer"> <ul class="body"> <li>© <script> document.write(new Date().getFullYear()) </script> Githubissues.</li> <li>Githubissues is a development platform for aggregating issues.</li> </ul> </div> <script src="https://cdn.jsdelivr.net/npm/jquery@3.5.1/dist/jquery.min.js"></script> <script src="/githubissues/assets/js.js"></script> <script src="/githubissues/assets/markdown.js"></script> <script src="https://cdn.jsdelivr.net/gh/highlightjs/cdn-release@11.4.0/build/highlight.min.js"></script> <script src="https://cdn.jsdelivr.net/gh/highlightjs/cdn-release@11.4.0/build/languages/go.min.js"></script> <script> hljs.highlightAll(); </script> </body> </html>