mirror of
				https://github.com/qurator-spk/ocrd-galley.git
				synced 2025-10-31 19:24:12 +01:00 
			
		
		
		
	🐛 ppn2ocr: Fix file:/ links to use file:///, and remove unavaiblable LOCAL file group
This commit is contained in:
		
							parent
							
								
									612d44b074
								
							
						
					
					
						commit
						8024064697
					
				
					 1 changed files with 5 additions and 0 deletions
				
			
		
							
								
								
									
										5
									
								
								ppn2ocr
									
										
									
									
									
								
							
							
						
						
									
										5
									
								
								ppn2ocr
									
										
									
									
									
								
							|  | @ -18,9 +18,14 @@ oai_url="https://digital.staatsbibliothek-berlin.de/oai?verb=GetRecord&metadataP | |||
| echo "$oai_url" | ||||
| curl "$oai_url" | xmlstarlet sel -t -c '//*[local-name()="mets"]' > mets.xml | ||||
| 
 | ||||
| # Fix 'file:/' URLs to 'file:///' | ||||
| sed -i 's#file:/\([^/]\)#file:///\1#' mets.xml | ||||
| 
 | ||||
| # Patch mets.xml to use our NFS mount | ||||
| sed -i 's#file:///goobi/tiff001/sbb/#file:///srv/digisam_images/sbb/#g' mets.xml | ||||
| 
 | ||||
| # Remove LOCAL file group as we do not have access to the files | ||||
| ocrd workspace remove-group -rf --keep-files LOCAL | ||||
| 
 | ||||
| ocrd workspace validate mets.xml | grep -v "<notice>Won't download remote image" | ||||
| 
 | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue