Permalink
Name already in use
A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
inc-meta/utilities/2016-10-06/README.md
Go to fileThis commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Handles members.xml schema 1.7, which introduces a mandatory orgID attribute for all Grant and GrantAll elements. Move to presenting the schema from ukf-data/members to the Members constructor; this allows minor additional schema evolutions to be made without needing ukf-members to be rebuilt. utilities/2016-10-06 holds scripts used for the members.xml conversion.
25 lines (14 sloc)
717 Bytes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# `utilities/2016-10-06` | |
These transforms and scripts were used to add an `orgID` attribute to the | |
`Grant` and `GrantAll` elements on all participants in the `members.xml` file. | |
## Step 1 | |
Generate `id-to-name.txt` as follows: | |
xsltproc --output id-to-name.txt gen-id-to-name.xsl members/members.xml | |
This file contains a mapping between organization IDs and canonical | |
organization names, like this: | |
ukforg4590 Ian A. Young | |
The first field is separated from the second by a single tab character. | |
## Step 2 | |
Apply the `patch.pl` script to generate a new version of `members.xml`. | |
./patch.pl members/members.xml >members/members-new.xml | |
Compare the two versions of the file before replacing the old one. |