Skip to content

Commit

Permalink
Use CSV fixtures and adapt changes from other pull requests
Browse files Browse the repository at this point in the history
  • Loading branch information
oliver-stoehr committed Dec 20, 2023
1 parent 624240c commit 4e607cd
Show file tree
Hide file tree
Showing 10 changed files with 42 additions and 535 deletions.
14 changes: 14 additions & 0 deletions Tests/Fixtures/Hooks/documents.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
"tx_dlf_documents",,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,
,"uid","pid","tstamp","crdate","cruser_id","deleted","hidden","starttime","endtime","fe_group","prod_id","location","record_id","opac_id","union_id","urn","purl","title","title_sorting","author","year","place","thumbnail","structure","partof","volume","volume_sorting","license","terms","restrictions","out_of_print","rights_info","collections","mets_label","mets_orderlabel","owner","solrcore","status","document_format"
,1001,20000,1631775000,1631775000,2,0,0,0,0,,,https://digital.slub-dresden.de/data/kitodo/10Kepi_476251419/10Kepi_476251419_mets.xml,oai:de:slub-dresden:db:id-476251419,476251419,476251419,,http://digital.slub-dresden.de/id476251419,10 Keyboard pieces - Go. S. 658,10 Keyboard pieces - Go. S. 658,,[1759-1800],[S.l.],https://digital.slub-dresden.de/data/kitodo/10Kepi_476251419/10Kepi_476251419_tif/jpegs/00000003.tif.thumbnail.jpg,59,0,,,,,,,,,10 Keyboard pieces - Go. S. 658,10 Keyboard pieces - Go. S. 658,10001,1,0,METS
,1002,20000,1631774000,1631774000,2,0,0,0,0,,,https://digital.slub-dresden.de/data/kitodo/6Saso_476248086/6Saso_476248086_mets.xml,oai:de:slub-dresden:db:id-476248086,476248086,476248086,urn:nbn:de:bsz:14-db-id4762480864,http://digital.slub-dresden.de/id476248086,6 Sacred songs - Go. S. 591,6 Sacred songs - Go. S. 591,,[1840-1860],[S.l.],https://digital.slub-dresden.de/data/kitodo/6Saso_476248086/6Saso_476248086_tif/jpegs/00000001.tif.thumbnail.jpg,59,0,,,,,,,,,6 Sacred songs - Go. S. 591,6 Sacred songs - Go. S. 591,10001,1,0,METS
,1003,20000,1631776000,1631776000,2,0,0,0,0,,,https://digital.slub-dresden.de/data/kitodo/6FuG_476251729/6FuG_476251729_mets.xml,oai:de:slub-dresden:db:id-476251729,476251729,476251729,urn:nbn:de:bsz:14-db-id4762517292,http://digital.slub-dresden.de/id476251729,6 Fugues - Go. S. 317,6 Fugues - Go. S. 317,,[um 1820],[S.l.],https://digital.slub-dresden.de/data/kitodo/6FuG_476251729/6FuG_476251729_tif/jpegs/00000001.tif.thumbnail.jpg,59,0,,,,,,,,3,6 Fugues - Go. S. 317,6 Fugues - Go. S. 317,10001,1,0,METS
tx_dlf_collections,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,
,uid,pid,tstamp,crdate,cruser_id,deleted,l18n_parent,l18n_diffsource,hidden,fe_group,fe_cruser_id,fe_admin_lock,label,index_name,index_search,oai_name,description,thumbnail,priority,documents,owner,status,,,,,,,,,,,,,,,
,1101,20000,1631279509,1631279509,2,0,0,"a:8:{s:5:""label"";N;s:10:""index_name"";N;s:8:""oai_name"";N;s:11:""description"";N;s:9:""documents"";N;s:5:""owner"";N;s:6:""status"";N;s:16:""sys_language_uid"";N;}",0,,0,0,Musik,Musik,,music,,,3,0,0,0,,,,,,,,,,,,,,,
,1102,20000,1631279509,1631279509,2,0,0,"a:8:{s:5:""label"";N;s:10:""index_name"";N;s:8:""oai_name"";N;s:11:""description"";N;s:9:""documents"";N;s:5:""owner"";N;s:6:""status"";N;s:16:""sys_language_uid"";N;}",0,,0,0,Collection with single document,collection-with-single-document,,collection-with-single-document,,,4,0,0,0,,,,,,,,,,,,,,,
tx_dlf_relations,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,
,uid,uid_local,uid_foreign,tablenames,sorting,sorting_foreign,ident,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,
,1202,1002,1101,,,,docs_colls,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,
,1203,1003,1101,,,,docs_colls,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,
,1204,1001,1102,,,,docs_colls,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,
222 changes: 0 additions & 222 deletions Tests/Fixtures/Hooks/documents.xml

This file was deleted.

12 changes: 12 additions & 0 deletions Tests/Fixtures/Hooks/metadata.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
tx_dlf_metadata,,,,,,,,,,,,,,,,,,,,,,,,,,
,uid,pid,tstamp,crdate,cruser_id,deleted,sys_language_uid,l18n_parent,l18n_diffsource,hidden,sorting,label,index_name,format,default_value,wrap,index_tokenized,index_stored,index_indexed,index_boost,is_sortable,is_facet,is_listed,index_autocomplete,status
,5001,20000,1638557803,1631532810,1,0,0,0,,0,32,Titel,title,1,,,0,1,1,1,1,0,1,1,0
,5002,20000,1638557803,1631532810,1,0,0,0,,0,32,Sammlungen,collection,1,,,1,0,1,1,0,1,0,0,0
tx_dlf_metadataformat,,,,,,,,,,,,,,,,,,,,,,,,,,
,uid,pid,tstamp,crdate,cruser_id,deleted,parent_id,encoded,xpath,xpath_sorting,mandatory,,,,,,,,,,,,,,,
,5101,20000,1638557803,1631532810,1,0,5001,5202,concat(./mods:titleInfo/mods:nonSort,./mods:titleInfo/mods:title,0,,,,,,,,,,,,,,,
,5102,20000,1638557803,1631532810,1,0,5002,5202,"./mods:relatedItem[@type=""series""]/mods:titleInfo/mods:title[@lang=""ger""]",,0,,,,,,,,,,,,,,,
tx_dlf_formats,,,,,,,,,,,,,,,,,,,,,,,,,,
,uid,pid,tstamp,crdate,cruser_id,deleted,type,root,namespace,class,,,,,,,,,,,,,,,,
,5201,0,1638557803,1631532810,1,0,ALTO,alto,http://www.loc.gov/standards/alto/ns-v2#,Kitodo\Dlf\Format\Alto,,,,,,,,,,,,,,,,
,5202,0,1638557803,1631532810,1,0,MODS,mods,http://www.loc.gov/mods/v3,Kitodo\Dlf\Format\Mods,,,,,,,,,,,,,,,,
113 changes: 0 additions & 113 deletions Tests/Fixtures/Hooks/metadata.xml

This file was deleted.

Loading

0 comments on commit 4e607cd

Please sign in to comment.