PLOS-Web/xmlgroomer — pull request #12 by mcbrandt13 (2013-12-18 23:15:54+00:00)
Title: groom to check pub-date elements and clean up unneeded/unwanted fpage/lpage elements in article meta

I updated the fix_collection groom to handle a few more possible issues, and renamed it to fix_pub_date_elements, as it deals with a multiple pub-date elements with varying attributes of pub-type. Notes in the xmlgroomertest file. If the groom finds an element with 'collection', it checks to make sure that the year is correct, and that the year is the only child element. if it doesn't find an element with 'collection', it builds one and places it in the proper location. It then looks for a pub-date element with 'ppub', and if it finds one, it removes it.

The other groom is for removing null fpage and lpage elements in the article-meta. Typically these appear hand-in-hand with the pub-date element issues in the above groom.