Exemplo n.º 1
0
    def __init__(self,marc_file):
        """
        Initializes `ybp_ebl`

        :param marc_file: File location of MARC records
        """
        MARCModifier.__init__(self,marc_file)
Exemplo n.º 2
0
    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')
        MARCModifier.__init__(self,marc_file)
        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'
        if kwargs.has_key('type_of'):
            self.handbook_type = kwargs.get('type_of')
        else:
            self.handbook_type = None
Exemplo n.º 3
0
    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')
Exemplo n.º 4
0
    def __init__(self, marc_file, **kwargs):
        """
        Creates instance of `AlexanderStreetPressBase`


        :param marc_file: Alexander Street Press MARC records
        :param asp_code: Alexander Street Press Code, default is asp
        """
        MARCModifier.__init__(self, marc_file, True)
        if not kwargs.has_key('asp_code'):
            self.asp_code = 'asp'
        else:
            self.asp_code = kwargs.get('asp_code')
        self.resolved_baseurl = None
Exemplo n.º 5
0
    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)
        self.spr_url = 'http://www.springerlink.com/openurl.asp?genre=book&id=doi:'
        if kwargs.has_key('proxy'):
            self.spr_proxy = kwargs.get('proxy')
        else:
            self.spr_proxy =  PROXY_LOCATION
        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'