- Timestamp:
- 2020-07-28T13:42:10+12:00 (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/trunk/model-sites-dev/twso/README.txt
r34230 r34297 50 50 The 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. 51 51 eg Oliver, Bev and Oliver (Formerly Nation), Beverly 52 52 53 NOTE: 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. 53 54 … … 102 103 ########################## 103 104 104 On commdev, sudo to nzdl-gs3 user. 105 * ssh to commdev 106 107 ssh commdev.nzdl.org 108 109 * sudo to nzdl-gs3 user. 110 111 sudo su - nzdl-gs3 105 112 106 113 * update import folder: … … 131 138 Back as nzdl-gs3 user, backup the new import files to /nzdl-storage/TWSO-Backup/twso-site/collect/twso/import 132 139 133 *************************** 140 If you need to go back and change all occurrences of a name 141 ########################################################### 142 Sometimes 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 144 You can make a backup of import folder first if you like (in case you muck up the commands). 145 cp -r import import.save 146 147 * cd into Programmes folder: 148 cd import/Programmes 149 150 * find all the metadata files: 151 find . -name *metadata.xml 152 153 * test with a grep 154 find . -name *metadata.xml -exec grep Garcia-Gil {} \; 155 - this should list all the lines that you want changing 156 157 * do the replacement 158 find . -name *metadata.xml -exec sed -i 's/Garcia-Gil/Garcia Gil/g' {} \; 159 160 * list all the tilda files 161 find . -name *metadata.xml~ 162 163 * then remove them 164 find . -name *metadata.xml~ -exec rm {} \; 165 166 * check that you have only changed the bits you wanted 167 cd ../../ 168 diff -r import import.save 169 170 ***************************** 134 171 Legacy instructions: 172 ***************************** 135 173 136 174 Extracting the name list
Note:
See TracChangeset
for help on using the changeset viewer.