advocacy:demonstration_data
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| advocacy:demonstration_data [2008/04/11 10:36] – erickson | advocacy:demonstration_data [2022/02/10 13:34] (current) – external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| + | ===== demo patrons ===== | ||
| + | [[http:// | ||
| + | |||
| + | This is a very simple (brain-dead, | ||
| + | |||
| + | You have to modify the gen_fake_users.pl file and change the following variables to suit your installation: | ||
| + | < | ||
| + | ############################################### | ||
| + | # examples | ||
| + | my @profiles = ( 2, 12, 13, 14 ); | ||
| + | my @ident_types = ( 1, 3 ); | ||
| + | my @home_ou = ( 4, 5, 6, 7, 8, 9 ); | ||
| + | </ | ||
| + | |||
| + | Use the query < | ||
| + | |||
| + | Use the query < | ||
| + | |||
| + | Use the query < | ||
| + | |||
| + | |||
| + | This is how you use the script the with included data files: | ||
| + | < | ||
| + | ./ | ||
| + | </ | ||
| + | |||
| + | It is my belief that the data files I'm including are either not copyrightable (being a list of facts) or are in the public domain, at least in the United States. | ||
| + | |||
| + | The script itself I'm releasing under the GNU GPL, Version 2. | ||
| + | |||
| + | |||
| + | ===== Demo Volume and Copy Data ===== | ||
| + | |||
| + | **Note: | ||
| + | |||
| + | This, too, is a very simple script for generating SQL statements. | ||
| + | |||
| + | < | ||
| + | ''' | ||
| + | ID of the user who is creating the data | ||
| + | everdemo=# select id from actor.usr where usrname=' | ||
| + | ''' | ||
| + | creator_user = 1 | ||
| + | |||
| + | ''' | ||
| + | num_volumes = 5000 | ||
| + | |||
| + | ''' | ||
| + | num_copies = 5000 | ||
| + | |||
| + | ''' | ||
| + | List of orgs to use as volume owning_lib' | ||
| + | evergreen=# select aou.id, aou.shortname from actor.org_unit as aou, | ||
| + | actor.org_unit_type as aout where aou.ou_type = aout.id and aout.can_have_vols; | ||
| + | ''' | ||
| + | org_ids = (4, 5, 6, 7, 8, 9) | ||
| + | </ | ||
| + | |||
| + | Here it is: [[http:// | ||