Skip to content
Permalink
main
Switch branches/tags

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?
Go to file
@iay
Latest commit 7d8851d Oct 8, 2016 History
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.
1 contributor

Users who have contributed to this file

25 lines (14 sloc) 717 Bytes
# `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.