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