def METHOD_NAME(srcdir, commit=False):
    for xml_file in Path(srcdir).glob("xml/*.xml"):
        tree = ET.parse(xml_file)
        root = tree.getroot()
        id_ = root.get("id")
        volume_type = "journal" if is_journal(id_) else "proceedings"
        for meta in root.findall("./volume/meta"):
            build_anthology_id(id_, meta.getparent().get('id'))
            if meta.getparent().get("type") is not None:
                continue
            meta.getparent().set("type", volume_type)
            if not is_journal(id_):
                continue
            xml_booktitle = meta.find("booktitle")
            booktitle = formatter.as_text(xml_booktitle)
            title, volume_no, issue_no = get_journal_info(id_, booktitle)
            # xml_booktitle.clear()
            # xml_booktitle.text = title
            if volume_no is not None:
                make_simple_element("journal-volume", text=volume_no, parent=meta)
            if issue_no is not None:
                make_simple_element("journal-issue", text=issue_no, parent=meta)
            if title == "American Journal of Computational Linguistics":
                make_simple_element("journal-title", text=title, parent=meta)
        if commit:
            indent(root)
            tree.write(xml_file, encoding="UTF-8", xml_declaration=True)
            # log.info(f"Wrote {added} years to {xml_file.name}")