""" harvest_tools.msgcollection """ from gluon.storage import Storage class MsgCollection(Storage): """Messages for a collection. Args: error (str): error when scanning the collection. found (int): number of publication found in the harvester repository. url (str): URL used to scan the harvester repository. title (str): title of the collection. """ def __init__(self, error="", found=0, title="", url=""): Storage.__init__(self) self.error = error self.found = found self.title = title self.url = url def url_hb(self): """ Returns: str: an URL configures to return a list of record in readable format. """ return self.url.replace("of=id", "of=hb")