def trans_bnf_preferred_name_for_person(self): """Transformation preferred_name_for_person 200 $a $b.""" if self.logger and self.verbose: self.logger.info('Call Function', 'trans_preferred_name_for_person') preferred_name_for_person = \ build_string_list_from_fields(self.marc, '200', 'ab', ', ') numbers = \ build_string_list_from_fields(self.marc, '200', 'd', ', ') if preferred_name_for_person: self.json_dict['preferred_name_for_person'] = \ '{name} {number}'.format( name=preferred_name_for_person[0], number=numbers[0] ).strip()
def trans_bnf_variant_name_for_person(self): """Transformation variant_name_for_person 400 $a $b.""" if self.logger and self.verbose: self.logger.info('Call Function', 'trans_variant_name_for_person') variant_name_for_person = \ build_string_list_from_fields(self.marc, '400', 'ab', ', ') if variant_name_for_person: self.json_dict['variant_name_for_person'] = variant_name_for_person
def trans_rero_preferred_name_for_person(self): """Transformation preferred_name_for_person 100 $a.""" if self.logger and self.verbose: self.logger.info('Call Function', 'trans_rero_preferred_name_for_person') preferred_name_for_person = \ build_string_list_from_fields(self.marc, '100', 'a', ', ') if preferred_name_for_person: self.json_dict['preferred_name_for_person'] = \ preferred_name_for_person[0]
def trans_bnf_preferred_name_for_person(self): """Transformation preferred_name_for_person 200 $a $b.""" if self.logger and self.verbose: self.logger.info("Call Function", "trans_preferred_name_for_person") preferred_name_for_person = \ build_string_list_from_fields(self.marc, '200', 'ab', ', ') if preferred_name_for_person: self.json_dict['preferred_name_for_person'] = \ preferred_name_for_person[0]
def trans_rero_authorized_access_point_representing_a_person(self): """Trans authorized_access_point_representing_a_person 100 abcd.""" if self.logger and self.verbose: self.logger.info( 'Call Function', 'trans_rero_authorized_access_point_representing_a_person') authorized_access_point_representing_a_person = \ build_string_list_from_fields(self.marc, '100', 'abcd', ', ') if authorized_access_point_representing_a_person: self.json_dict['authorized_access_point_representing_a_person'] = \ authorized_access_point_representing_a_person[0]
def trans_rero_biographical_information(self): """Transformation biographical_information 680 $a.""" if self.logger and self.verbose: self.logger.info('Call Function', 'trans_rero_biographical_information') biographical_information = [] for tag in [680]: biographical_information += \ build_string_list_from_fields(self.marc, str(tag), 'a', ', ') if biographical_information: self.json_dict['biographical_information'] = \ biographical_information
def trans_bnf_biographical_information(self): """Transformation biographical_information 300 $a 34x $a.""" if self.logger and self.verbose: self.logger.info('Call Function', 'trans_biographical_information') tag_34x = range(340, 349 + 1) # 340:349 tag_list = [300] + [*tag_34x] # 300, 340:349 biographical_information = [] for tag in tag_list: biographical_information += \ build_string_list_from_fields( self.marc, str(tag), 'a', ', ') if biographical_information: self.json_dict['biographical_information'] = \ biographical_information
def trans_bnf_authorized_access_point_representing_a_person(self): """Transformation authorized_access_point_representing_a_person. 200 abcdf """ if self.logger and self.verbose: self.logger.info( "Call Function", 'trans_authorized_access_point_representing_a_person') authorized_access_point_representing_a_person = \ build_string_list_from_fields(self.marc, '200', 'abcdf', ', ') if authorized_access_point_representing_a_person: self.json_dict['authorized_access_point_representing_a_person'] = \ authorized_access_point_representing_a_person[0]