Adding publisher meta data

Change-Id: I357887378408329d8f950c1af54a96ee420c1a85
diff --git a/irish2tei.py b/irish2tei.py
index 9cffd67..cd468a6 100644
--- a/irish2tei.py
+++ b/irish2tei.py
@@ -47,6 +47,8 @@
     titles = root.find(".//*{http://www.tei-c.org/ns/1.0}bibl/{http://www.tei-c.org/ns/1.0}title")
     uris = root.find(".//*{http://www.tei-c.org/ns/1.0}bibl/{http://www.tei-c.org/ns/1.0}pubPlace")
     authors = root.findall(".//*{http://www.tei-c.org/ns/1.0}bibl/{http://www.tei-c.org/ns/1.0}author")
+    txtPublisher = root.find(".//*{http://www.tei-c.org/ns/1.0}bibl/{http://www.tei-c.org/ns/1.0}publisher")
+    licenses = root.findall(".//*{http://www.tei-c.org/ns/1.0}availability/{http://www.tei-c.org/ns/1.0}licence")
     
     dates = root.find(".//*{http://www.tei-c.org/ns/1.0}bibl/{http://www.tei-c.org/ns/1.0}date")
     texts = root.findall(".//*{http://www.tei-c.org/ns/1.0}body/{http://www.tei-c.org/ns/1.0}div")
@@ -80,7 +82,7 @@
         title = ET.SubElement(titleStmt, "title")
         title.text = titles.text
         
-        #print(textSigle.text, end='\n')
+        print(textSigle.text, end='\n')
         
         #adding changes to detect multiple authors
         for author in authors :
@@ -88,6 +90,20 @@
             hauthor.text = author.text
             #print(hauthor.text, end='\n')
         imprint = ET.SubElement(sourceDesc, "imprint")
+
+        #adding publisher 
+
+        print('Publisher : ',txtPublisher.text, end='\n')
+        if txtPublisher is None:
+            print('Publisher : ',txtPublisher.text, end='\n')
+        else :
+            publisher = ET.SubElement(imprint, "publisher")
+            publisher.text = txtPublisher.text
+
+        #adding licenses
+        for license in licenses:
+            print('License : ',license.text,end='\n')
+
         pubDateYear = ET.SubElement(imprint, "pubDate")
         pubDateYear.set("type", "year")
         pubDateYear.text = dates.text
diff --git a/output/GA_corpus.p5.xml b/output/GA_corpus.p5.xml
index 3a4e46b..f89c10b 100644
--- a/output/GA_corpus.p5.xml
+++ b/output/GA_corpus.p5.xml
@@ -18,6 +18,7 @@
               <h.author>Uí Laighléis, Gearóidín</h.author>
             </analytic>
             <imprint>
+              <publisher>An Roinn Turasóireachta, Cultúir, Ealaíon, Gaeltachta, Spóirt agus Meán</publisher>
               <pubDate type="year">2020</pubDate>
               <pubDate type="month" />
               <pubDate type="day" />
@@ -77,6 +78,7 @@
               <h.author>Ní Chualáin, Aingeal</h.author>
             </analytic>
             <imprint>
+              <publisher>COMHARTaighde</publisher>
               <pubDate type="year">2015</pubDate>
               <pubDate type="month" />
               <pubDate type="day" />
@@ -113,6 +115,7 @@
               <h.author>Seoighe, Stiofán</h.author>
             </analytic>
             <imprint>
+              <publisher>NAME</publisher>
               <pubDate type="year">2018</pubDate>
               <pubDate type="month" />
               <pubDate type="day" />
@@ -161,6 +164,7 @@
               <h.author>Ó Mainín, Pádraic </h.author>
             </analytic>
             <imprint>
+              <publisher>NAME</publisher>
               <pubDate type="year">2020</pubDate>
               <pubDate type="month" />
               <pubDate type="day" />
@@ -211,6 +215,7 @@
               <h.author>Billings, Cathal</h.author>
             </analytic>
             <imprint>
+              <publisher>COMHARTaighde</publisher>
               <pubDate type="year">2017</pubDate>
               <pubDate type="month" />
               <pubDate type="day" />
@@ -263,6 +268,7 @@
               <h.author>Ní Ainifidh, Niamh</h.author>
             </analytic>
             <imprint>
+              <publisher>NAME</publisher>
               <pubDate type="year">2021</pubDate>
               <pubDate type="month" />
               <pubDate type="day" />
@@ -331,6 +337,7 @@
               <h.author>Adams, Róisín Louise </h.author>
             </analytic>
             <imprint>
+              <publisher>NAME</publisher>
               <pubDate type="year">2015</pubDate>
               <pubDate type="month" />
               <pubDate type="day" />
@@ -387,6 +394,7 @@
               <h.author>Coilféir, Máirtín</h.author>
             </analytic>
             <imprint>
+              <publisher>NAME</publisher>
               <pubDate type="year">2012</pubDate>
               <pubDate type="month" />
               <pubDate type="day" />
@@ -435,6 +443,7 @@
               <h.author>Ní Ghallchobhair, Fidelma</h.author>
             </analytic>
             <imprint>
+              <publisher>NAME</publisher>
               <pubDate type="year">2017</pubDate>
               <pubDate type="month" />
               <pubDate type="day" />
@@ -482,6 +491,7 @@
               <h.author>Ó Liatháin, Pádraig </h.author>
             </analytic>
             <imprint>
+              <publisher>NAME</publisher>
               <pubDate type="year">2010</pubDate>
               <pubDate type="month" />
               <pubDate type="day" />
@@ -559,6 +569,7 @@
               <h.author>Nolan, Brian</h.author>
             </analytic>
             <imprint>
+              <publisher>Department of Social Protection. Social Inclusion Division</publisher>
               <pubDate type="year">2011</pubDate>
               <pubDate type="month" />
               <pubDate type="day" />
@@ -633,6 +644,7 @@
               <h.author>Wiki</h.author>
             </analytic>
             <imprint>
+              <publisher>https://ga.wikipedia.org/wiki/</publisher>
               <pubDate type="year">YYYY</pubDate>
               <pubDate type="month" />
               <pubDate type="day" />
@@ -681,6 +693,7 @@
               <h.author>Wiki</h.author>
             </analytic>
             <imprint>
+              <publisher>Vicipéid</publisher>
               <pubDate type="year">YYYY</pubDate>
               <pubDate type="month" />
               <pubDate type="day" />
@@ -719,6 +732,7 @@
               <h.author>Wiki</h.author>
             </analytic>
             <imprint>
+              <publisher>Vicipéid</publisher>
               <pubDate type="year">YYYY</pubDate>
               <pubDate type="month" />
               <pubDate type="day" />
@@ -771,6 +785,7 @@
               <h.author>Wiki</h.author>
             </analytic>
             <imprint>
+              <publisher>Vicipéid</publisher>
               <pubDate type="year">YYYY</pubDate>
               <pubDate type="month" />
               <pubDate type="day" />
@@ -823,6 +838,7 @@
               <h.author>Wiki</h.author>
             </analytic>
             <imprint>
+              <publisher>Vicipéid</publisher>
               <pubDate type="year">YYYY</pubDate>
               <pubDate type="month" />
               <pubDate type="day" />
@@ -876,6 +892,7 @@
               <h.author>Wiki</h.author>
             </analytic>
             <imprint>
+              <publisher>Vicipéid</publisher>
               <pubDate type="year">YYYY</pubDate>
               <pubDate type="month" />
               <pubDate type="day" />
@@ -925,6 +942,7 @@
               <h.author>Wiki</h.author>
             </analytic>
             <imprint>
+              <publisher>Vicipéid</publisher>
               <pubDate type="year">YYYY</pubDate>
               <pubDate type="month" />
               <pubDate type="day" />
@@ -985,6 +1003,7 @@
               <h.author>Wiki</h.author>
             </analytic>
             <imprint>
+              <publisher>Vicipéid</publisher>
               <pubDate type="year">YYYY</pubDate>
               <pubDate type="month" />
               <pubDate type="day" />
@@ -1041,6 +1060,7 @@
               <h.author>Wiki</h.author>
             </analytic>
             <imprint>
+              <publisher>Vicipéid</publisher>
               <pubDate type="year">YYYY</pubDate>
               <pubDate type="month" />
               <pubDate type="day" />
@@ -1096,6 +1116,7 @@
               <h.author>Wiki</h.author>
             </analytic>
             <imprint>
+              <publisher>Vicipéid</publisher>
               <pubDate type="year">YYYY</pubDate>
               <pubDate type="month" />
               <pubDate type="day" />
@@ -1149,6 +1170,7 @@
               <h.author>Wiki</h.author>
             </analytic>
             <imprint>
+              <publisher>Vicipéid</publisher>
               <pubDate type="year">YYYY</pubDate>
               <pubDate type="month" />
               <pubDate type="day" />
@@ -1205,6 +1227,7 @@
               <h.author>Wiki</h.author>
             </analytic>
             <imprint>
+              <publisher>Vicipéid</publisher>
               <pubDate type="year">YYYY</pubDate>
               <pubDate type="month" />
               <pubDate type="day" />
@@ -1273,6 +1296,7 @@
               <h.author>Wiki</h.author>
             </analytic>
             <imprint>
+              <publisher>Vicipéid</publisher>
               <pubDate type="year">YYYY</pubDate>
               <pubDate type="month" />
               <pubDate type="day" />
@@ -1328,6 +1352,7 @@
               <h.author>Wiki</h.author>
             </analytic>
             <imprint>
+              <publisher>Vicipéid</publisher>
               <pubDate type="year">YYYY</pubDate>
               <pubDate type="month" />
               <pubDate type="day" />
@@ -1373,6 +1398,7 @@
               <h.author>Wiki</h.author>
             </analytic>
             <imprint>
+              <publisher>Vicipéid</publisher>
               <pubDate type="year">YYYY</pubDate>
               <pubDate type="month" />
               <pubDate type="day" />
@@ -1423,6 +1449,7 @@
               <h.author>Wiki</h.author>
             </analytic>
             <imprint>
+              <publisher>Vicipéid</publisher>
               <pubDate type="year">YYYY</pubDate>
               <pubDate type="month" />
               <pubDate type="day" />
@@ -1475,6 +1502,7 @@
               <h.author>Wiki</h.author>
             </analytic>
             <imprint>
+              <publisher>Vicipéid</publisher>
               <pubDate type="year">YYYY</pubDate>
               <pubDate type="month" />
               <pubDate type="day" />
@@ -1534,6 +1562,7 @@
               <h.author>Wiki</h.author>
             </analytic>
             <imprint>
+              <publisher>Vicipéid</publisher>
               <pubDate type="year">YYYY</pubDate>
               <pubDate type="month" />
               <pubDate type="day" />
@@ -1586,6 +1615,7 @@
               <h.author>Wiki</h.author>
             </analytic>
             <imprint>
+              <publisher>Vicipéid</publisher>
               <pubDate type="year">YYYY</pubDate>
               <pubDate type="month" />
               <pubDate type="day" />
@@ -1644,6 +1674,7 @@
               <h.author>Wiki</h.author>
             </analytic>
             <imprint>
+              <publisher>Vicipéid</publisher>
               <pubDate type="year">YYYY</pubDate>
               <pubDate type="month" />
               <pubDate type="day" />
@@ -1694,6 +1725,7 @@
               <h.author>Wiki</h.author>
             </analytic>
             <imprint>
+              <publisher>Vicipéid</publisher>
               <pubDate type="year">YYYY</pubDate>
               <pubDate type="month" />
               <pubDate type="day" />
@@ -1745,6 +1777,7 @@
               <h.author>Wiki</h.author>
             </analytic>
             <imprint>
+              <publisher>Vicipéid</publisher>
               <pubDate type="year">YYYY</pubDate>
               <pubDate type="month" />
               <pubDate type="day" />
@@ -1796,6 +1829,7 @@
               <h.author>Wiki</h.author>
             </analytic>
             <imprint>
+              <publisher>Vicipéid</publisher>
               <pubDate type="year">YYYY</pubDate>
               <pubDate type="month" />
               <pubDate type="day" />
@@ -1888,6 +1922,7 @@
               <h.author>Ó Murchú, Helen</h.author>
             </analytic>
             <imprint>
+              <publisher />
               <pubDate type="year">2018</pubDate>
               <pubDate type="month" />
               <pubDate type="day" />
@@ -1935,6 +1970,7 @@
               <h.author>Aontas Eorpach</h.author>
             </analytic>
             <imprint>
+              <publisher>Oifig Foilseachán an Aontais Eorpaigh</publisher>
               <pubDate type="year">2014</pubDate>
               <pubDate type="month" />
               <pubDate type="day" />
@@ -2007,6 +2043,7 @@
               <h.author>Aontas Eorpach</h.author>
             </analytic>
             <imprint>
+              <publisher>Oifig Foilseachán an Aontais Eorpaigh</publisher>
               <pubDate type="year">2017</pubDate>
               <pubDate type="month" />
               <pubDate type="day" />