def get_work_label(self, urn):
        """

        Get the label corresponding to the work identified
        by the input CTS URN.

        try to get an lang=en label
        try to get a lang=la label
        try to get a lang=None label

        returns None if no title is found

        """
        work = self.get_resource_by_urn(urn)
        titles = work.get_titles()
        en_titles = [title[1] for title in titles if title[0] == "en"]
        try:
            assert len(en_titles) > 0
            return en_titles[0]
        except Exception as e:
            la_titles = [title[1] for title in titles if title[0] == None]
            try:
                assert len(la_titles) > 0
                return la_titles[0]
            except Exception as e:
                none_titles = [title[1] for title in titles if title[0] == "la"]
                try:
                    return none_titles[0]
                except Exception as e:
                    return None
def get_work_label ( self , urn ) : work = self . get_resource_by_urn ( urn ) titles = work . get_titles ( ) en_titles = [ title [ 1 ] for title in titles if title [ 0 ] == "en" ] try : assert len ( en_titles ) > 0 return en_titles [ 0 ] except Exception as e : la_titles = [ title [ 1 ] for title in titles if title [ 0 ] == None ] try : assert len ( la_titles ) > 0 return la_titles [ 0 ] except Exception as e : none_titles = [ title [ 1 ] for title in titles if title [ 0 ] == "la" ] try : return none_titles [ 0 ] except Exception as e : return None
Get the label corresponding to the work identified
        by the input CTS URN.

        try to get an lang=en label
        try to get a lang=la label
        try to get a lang=None label

        returns None if no title is found