source: main/trunk/model-sites-dev/pei-jones/collect/written-works/README.txt@ 32143

Last change on this file since 32143 was 31797, checked in by kjdon, 7 years ago
File size: 1.2 KB
Line 
1Adding extra material from /nzdl-storage/other-projects/pei-jones/JOnes_Collection
2
3Am just copying .item files, OCR/.txt files, tif/.tif files. (not jpg/.jpg files, or OCR/.html files)
4
5Have done 3B*, 3C*, 3D*
6
7Copied into import.
8
9Ran sed to convert metadata to pj.metadata.
10
11find . -name "*.item" -exec sed -i 's/<Title>/<pj.Title>/g' {} \;
12find . -name "*.item" -exec sed -i 's/<Provenance>/<pj.Provenance>/g' {} \;
13find . -name "*.item" -exec sed -i 's/<Year>/<pj.Year>/g' {} \
14find . -name "*.item" -exec sed -i 's/<Location>/<pj.Location>/g' {} \;
15find . -name "*.item" -exec sed -i 's/<Media>/<pj.Document-Type>/g' {} \;
16find . -name "*.item" -exec sed -i 's/<Notes>/<pj.Notes>/g' {} \;
17
18Ran import.pl -keepold to add new documents to archives.
19buildcol.pl -site pei-jones written-works
20mv building index
21and re configure message router (or restart server)
22
23NOTE!! pj.metadata from item file gets added as ex.pj.metadata into archives.
24For the docs mentioned above, I have run sed on the archives to remove the ex.
25But we need to modify the plugin process to not add the metadata as ex.pj.
26Actually, maybe the new plugin can take eg Location from the item file and store it as pj.Location directly.
27
Note: See TracBrowser for help on using the repository browser.