Changeset 32145

Show
Ignore:
Timestamp:
19.02.2018 13:32:34 (10 months ago)
Author:
kjdon
Message:
 
Files:
1 modified

Legend:

Unmodified
Added
Removed
  • main/trunk/model-sites-dev/pei-jones/collect/written-works/README.txt

    r31797 r32145  
     119 Feb 2018 
     2 
     3I 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 
     5A few I did by hand. The others were done by running the following several times. 
     6 
     7find . -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 
     11We have changed to using original tif files instead of jpg. 
     12 
     13 
     1417 Aug 2017 
     15 
     16I 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. 
     17SO I am using the jpg files instead of the tif files. 
     18Copying .item, OCR/.txt, jpg/.jpg 
     19 
     20 
     21Have done 3A*, 3B*, 3C*, 3D* 
     22 
     23Ran import.pl -keepold to add new documents to archives. 
     24buildcol.pl -site pei-jones written-works 
     25mv building index 
     26and 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 
     301. 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 
     352. Set the svn:ignore property. Existing folders will already have it, but need to set it for the new folders. 
     36 
     37Run 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 
     47The run propset: 
     48 
     49archives>svn propset svn:ignore "*.jpeg 
     50*.jpg 
     51*.JPG 
     52*.gif 
     53*.png 
     54*.tif" . --recursive 
     55 
     56Now when you do svn st, should only show the doc.xml files as being unversioned. 
     57 
     58add them: 
     59svn add */doc.xml 
     60svn 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************************** 
     67Old Notes. 
     68 
    169Adding extra material from /nzdl-storage/other-projects/pei-jones/JOnes_Collection 
    270