- Timestamp:
- 2018-02-19T13:32:34+13:00 (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/trunk/model-sites-dev/pei-jones/collect/written-works/README.txt
r31797 r32145 1 19 Feb 2018 2 3 I modified the archives, to split up pj.Location, pj.Subject, pj.PersonOfInterst, pj.Author, pj.Event. These are the 'multivalued' metadata where you can specify values separated by ;. Current processing will split the values and store them individually in archives. Some values were added before the online processing could handle them. SO I have split any existing values. 4 5 A few I did by hand. The others were done by running the following several times. 6 7 find . -name "doc.xml" -exec sed -i -r 's%(<Metadata .*name="pj.)(Subject|Location|PersonOfInterest|Author)(">)([^;]+);\s*([^\s].+)(</Metadata>)%\1\2\3\4\6\n\1\2\3\5\6%g' {} \; 8 9 ? 2017 10 11 We have changed to using original tif files instead of jpg. 12 13 14 17 Aug 2017 15 16 I have made a new plugin, PJPlugin. It processes the item files, and converts all metadata to pj.metadata, (ignoring any that are empty). It also changes the image file extension from .tif to .jpg. Don't need to do any of the old sed stuff. 17 SO I am using the jpg files instead of the tif files. 18 Copying .item, OCR/.txt, jpg/.jpg 19 20 21 Have done 3A*, 3B*, 3C*, 3D* 22 23 Ran import.pl -keepold to add new documents to archives. 24 buildcol.pl -site pei-jones written-works 25 mv building index 26 and re configure message router (or restart server) 27 28 **** adding the new archives files to svn. Want to add folder and doc.xml, NOT all the images. 29 30 1. add the folder without any contents: 31 svn add --depth=empty foldername 32 You need to add all the folders first, eg 33 svn add --depth=empty 3A* 34 35 2. Set the svn:ignore property. Existing folders will already have it, but need to set it for the new folders. 36 37 Run svn propget svn:ignore . (inside archives). will look something like this: 38 39 >svn propget svn:ignore 40 *.jpeg 41 *.jpg 42 *.JPG 43 *.gif 44 *.png 45 *.tif 46 47 The run propset: 48 49 archives>svn propset svn:ignore "*.jpeg 50 *.jpg 51 *.JPG 52 *.gif 53 *.png 54 *.tif" . --recursive 55 56 Now when you do svn st, should only show the doc.xml files as being unversioned. 57 58 add them: 59 svn add */doc.xml 60 svn commit -m "adding the new archive files" 61 62 (NOTE: if you did "svn add foldername" by mistake and got all the images added, can do 63 "svn rm --keep-local foldername" to undo it. ) 64 65 66 ************************** 67 Old Notes. 68 1 69 Adding extra material from /nzdl-storage/other-projects/pei-jones/JOnes_Collection 2 70
Note:
See TracChangeset
for help on using the changeset viewer.