mirror of
				https://github.com/qurator-spk/modstool.git
				synced 2025-11-04 03:14:14 +01:00 
			
		
		
		
	🐛 Normalize structure type names to lower case
This commit is contained in:
		
							parent
							
								
									939967edc8
								
							
						
					
					
						commit
						8ee4c3d0bc
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		| 
						 | 
					@ -362,7 +362,7 @@ def pages_to_dict(mets, raise_errors=True) -> List[Dict]:
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        # Populate structure type indicator variables
 | 
					        # Populate structure type indicator variables
 | 
				
			||||||
        for struct_div in struct_divs:
 | 
					        for struct_div in struct_divs:
 | 
				
			||||||
            type_ = struct_div.attrib.get("TYPE")
 | 
					            type_ = struct_div.attrib.get("TYPE").lower()
 | 
				
			||||||
            assert type_
 | 
					            assert type_
 | 
				
			||||||
            page_dict[f"structMap-LOGICAL_TYPE_{type_}"] = 1
 | 
					            page_dict[f"structMap-LOGICAL_TYPE_{type_}"] = 1
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue