mirror of
				https://github.com/qurator-spk/modstool.git
				synced 2025-11-04 03:14:14 +01:00 
			
		
		
		
	🧹 Do not duplicate ALTO metadata
This commit is contained in:
		
							parent
							
								
									6e2e0bd67a
								
							
						
					
					
						commit
						102b15ffa9
					
				
					 1 changed files with 1 additions and 5 deletions
				
			
		| 
						 | 
					@ -116,12 +116,8 @@ def process(alto_files: List[str], output_file: str, output_csv: str, output_xls
 | 
				
			||||||
                with warnings.catch_warnings(record=True) as caught_warnings:
 | 
					                with warnings.catch_warnings(record=True) as caught_warnings:
 | 
				
			||||||
                    warnings.simplefilter('always')  # do NOT filter double occurrences
 | 
					                    warnings.simplefilter('always')  # do NOT filter double occurrences
 | 
				
			||||||
 | 
					
 | 
				
			||||||
                    # MODS
 | 
					                    # ALTO
 | 
				
			||||||
                    d = flatten(alto_to_dict(alto, raise_errors=True))
 | 
					                    d = flatten(alto_to_dict(alto, raise_errors=True))
 | 
				
			||||||
                    # METS
 | 
					 | 
				
			||||||
                    d_alto = flatten(alto_to_dict(alto, raise_errors=True))
 | 
					 | 
				
			||||||
                    for k, v in d_alto.items():
 | 
					 | 
				
			||||||
                        d[f"alto_{k}"] = v
 | 
					 | 
				
			||||||
                    # "meta"
 | 
					                    # "meta"
 | 
				
			||||||
                    d['alto_file'] = alto_file
 | 
					                    d['alto_file'] = alto_file
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue