def __init__(self,**kwargs): """ Initializes `OxfordHandbooksJob` :keyword marc_file: Required input MARC file object from Oxford Handbooks :keyword proxy_filter: Optional, proxy prefix for 856 field default is HANDBOOK_PROXY_FILTER constant. :keyword public_note: Optional, default is 'View Online' :keyword note_prefix: Optional 538 note prefix, default is 'Available via Internet' :keyword type_of: Optional, used when specific collections are loaded, used for XXX field. """ marc_file = kwargs.get('marc_file') collection = kwargs.get('collection') self.handbook_label = None for row in collection: if row.get('name') == collection: self.handbook_label = row.get('handbook_label') if not self.handbook_label: raise ValueError("Collection required to set handbook label") to_unicode = kwargs.get('to_unicode', False) MARCModifier.__init__(self, marc_file, to_unicode) if kwargs.has_key('proxy_filter'): self.proxy_filter = kwargs.get('proxy_filter') else: self.proxy_filter = HANDBOOK_PROXY_FILTER if kwargs.has_key('public_note'): self.public_note = kwargs.get('public_note') else: self.public_note = 'View online' if kwargs.has_key('note_prefix'): self.note_prefix = kwargs.get('note_prefix') else: self.note_prefix='Available via Internet'
def __init__(self, marc_file, **kwargs): """ Creates instance of Early American Imprints process. """ MARCModifier.__init__(self, marc_file) self.field500_stmt = kwargs.get("field500_stmt") self.field730_series = kwargs.get("field730_series")
def __init__(self,marc_file): """ Initializes `ybp_ebl` :param marc_file: File location of MARC records """ MARCModifier.__init__(self, marc_file, False)
def __init__(self, marc_file, **kwargs): """ Initializes `FilmsOnDemand` for conversion process. :param marc_file: MARC file """ MARCModifier.__init__(self, marc_file, True)
def __init__(self, marc_file, **kwargs): """Initializes OxfordScholarshipOnline class Args: marc_file(file): Original MARC21 file collection(str): Oxford Scholarship Online Collection name, optional proxy(str): URL proxy, has default """ MARCModifier.__init__(self, marc_file, True) self.collection = kwargs.get('collection', None) self.proxy = kwargs.get( 'proxy', 'http://0-dx.doi.org.tiger.coloradocollege.edu/')
def __init__(self, marc_file, **kwargs): ''' Creates instance of Springer eBook process. :param proxy: Optional proxy location, default is PROXY_LOCATION constant :param public_note: Optional public note, default is 'View online' :param note_prefix: Optional note prefix, default is 'Available via Internet' ''' MARCModifier.__init__(self, marc_file, True) self.spr_url = 'http://www.springerlink.com/openurl.asp?genre=book&id=doi:' if 'proxy' in kwargs: self.spr_proxy = kwargs.get('proxy') else: self.spr_proxy = PROXY_LOCATION if 'public_note' in kwargs: self.public_note = kwargs.get('public_note') else: self.public_note = 'View online' if 'note_prefix' in kwargs: self.note_prefix = kwargs.get('note_prefix') else: self.note_prefix='Available via Internet'
def __init__(self, marc_file, **kwargs): MARCModifier.__init__(self, marc_file, True)