Changeset 34297

Show
Ignore:
Timestamp:
28.07.2020 13:42:10 (7 days ago)
Author:
kjdon
Message:

added some more useful instructions

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • main/trunk/model-sites-dev/twso/README.txt

    r34230 r34297  
    5050The differences will be any new names. Check the master for these new names and make sure that there are not alternate spellings. Also, some names have maiden names. 
    5151eg Oliver, Bev and Oliver (Formerly Nation), Beverly 
     52 
    5253NOTE: master_list_notes.txt has some info about people and different spellings etc. Look through this first before you check the differences - helps you to know what to do when you find some. 
    5354 
     
    102103########################## 
    103104 
    104 On commdev, sudo to nzdl-gs3 user. 
     105 * ssh to commdev 
     106 
     107ssh commdev.nzdl.org 
     108 
     109 * sudo to nzdl-gs3 user. 
     110 
     111sudo su - nzdl-gs3 
    105112 
    106113 * update import folder: 
     
    131138Back as nzdl-gs3 user, backup the new import files to /nzdl-storage/TWSO-Backup/twso-site/collect/twso/import 
    132139 
    133 *************************** 
     140If you need to go back and change all occurrences of a name 
     141########################################################### 
     142Sometimes it turns out that the master name variant you have been using is no longer correct - eg if someone changes their name, so now all the old occurences need to be changed to X (formerly Y), etc. 
     143 
     144You can make a backup of import folder first if you like (in case you muck up the commands). 
     145cp -r import import.save 
     146 
     147* cd into Programmes folder: 
     148cd import/Programmes 
     149 
     150* find all the metadata files: 
     151find . -name *metadata.xml 
     152 
     153* test with a grep 
     154find . -name *metadata.xml -exec grep Garcia-Gil {} \; 
     155  - this should list all the lines that you want changing 
     156 
     157* do the replacement 
     158find . -name *metadata.xml -exec sed -i 's/Garcia-Gil/Garcia Gil/g' {} \; 
     159 
     160* list all the tilda files 
     161find . -name *metadata.xml~ 
     162 
     163* then remove them 
     164find . -name *metadata.xml~ -exec rm {} \; 
     165 
     166* check that you have only changed the bits you wanted 
     167cd ../../ 
     168diff -r import import.save 
     169 
     170***************************** 
    134171Legacy instructions: 
     172***************************** 
    135173 
    136174Extracting the name list