-
Notifications
You must be signed in to change notification settings - Fork 2
/
index.html
231 lines (215 loc) · 8.73 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>FamilySearch Sandbox Data Copy</title>
<link href="//maxcdn.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap.min.css" rel="stylesheet">
<link href="index.css" rel="stylesheet">
<script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','https://www.google-analytics.com/analytics.js','ga');
ga('create', 'UA-61161051-2', 'auto');
ga('send', 'pageview');
</script>
</head>
<body>
<div class="container">
<h1>FamilySearch Sandbox Data Copy</h1>
<p>Copy data from the FamilySearch production tree into the sandbox (integration) tree. <em>Living persons are not copied.</em></p>
<div id="auth" class="section">
<h3>Sign In</h3>
<div class="row">
<div class="col-sm-6">
<div id="prod-auth" class="panel panel-default auth-panel">
<div class="panel-heading">
<h3 class="panel-title">PRODUCTION</h3>
</div>
<div class="panel-body">
<div class="no-auth">
<button class="btn btn-primary">Sign In</button>
</div>
<div class="auth">
<div class="alert alert-success">You are signed in with production.</div>
</div>
<div class="verify">
<div class="alert alert-warning">Validating session...</div>
</div>
</div>
</div>
</div>
<div class="col-sm-6">
<div id="sandbox-auth" class="panel panel-default auth-panel">
<div class="panel-heading">
<h3 class="panel-title">SANDBOX</h3>
</div>
<div class="panel-body">
<div class="no-auth">
<button class="btn btn-primary">Sign In</button>
</div>
<div class="auth">
<div class="alert alert-success">You are signed in with sandbox.</div>
</div>
<div class="verify">
<div class="alert alert-warning">Validating session...</div>
</div>
</div>
</div>
</div>
</div>
</div>
<div id="start" class="section">
<h3>Starting Person</h3>
<p class="help-block">Enter the ID of a person where the copying will start.</p>
<div class="row">
<div class="col-sm-3">
<div class="form-group">
<input type="text" class="form-control" id="startPersonId" placeholder="PPPP-PPP">
</div>
</div>
<div class="col-sm-9">
<div id="start-person-details">
<div class="name"></div>
<div class="lifespan"></div>
<div class="error"></div>
</div>
</div>
</div>
</div>
<div class="section">
<h3>Who else should we copy?</h3>
<div class="form-group">
<div class="radio">
<label>
<input type="radio" name="traversal-filter" value="ancestry" checked>
<strong>Ancestors</strong> - Only copy direct ancestors.
</label>
</div>
<div class="radio">
<label>
<input type="radio" name="traversal-filter" value="descendancy">
<strong>Descendants</strong> - Only copy direct descendants.
</label>
</div>
<div class="radio">
<label>
<input type="radio" name="traversal-filter" value="ancestry-descendancy">
<strong>Ancestry + Descendancy</strong> - Copy both ancestors and descendants.
</label>
</div>
<div class="radio">
<label>
<input type="radio" name="traversal-filter" value="cousins">
<strong>Cousins</strong> - Copy ancestors, descendants, and cousins (direct descendants of ancestors). Does not include spouses.
</label>
</div>
<div class="radio">
<label>
<input type="radio" name="traversal-filter" value="cousins-spouses">
<strong>Cousins + Spouses</strong> - Copy ancestors, descendants, cousins, and spouses of all those persons.
</label>
</div>
<div class="radio">
<label>
<input type="radio" name="traversal-filter" value="anyone">
<strong>Anyone</strong> - Copy anyone that is found by traveling the tree in all directions.
</label>
</div>
</div>
</div>
<div class="section">
<h3>How many persons?</h3>
<p class="help-block">A hard limit of 100 persons is enforced.</p>
<div class="row">
<div class="col-sm-3">
<div class="form-group">
<input type="text" class="form-control" id="numberPersons" value="5">
</div>
</div>
</div>
</div>
<div class="section">
<h3>Should we copy sources and notes?</h3>
<p class="help-block">This can slow the process down significantly.</p>
<div class="checkbox">
<label>
<input type="checkbox" id="copyNotes"> Copy Notes
</label>
</div>
<div class="checkbox">
<label>
<input type="checkbox" id="copySources"> Copy Sources
</label>
</div>
</div>
<div class="section">
<button id="copy-btn" class="btn btn-primary btn-lg">Copy</button>
</div>
<div class="section">
<h4>Persons</h4>
<table id="person-table" class="table table-bordered">
<tr>
<th>Production ID</th>
<th>Sandbox ID</th>
<th>Name</th>
</tr>
</table>
</div>
<div class="section">
<h4>Couples</h4>
<table id="couple-table" class="table table-bordered">
<tr>
<th>Production ID</th>
<th>Sandbox ID</th>
<th>Names</th>
</tr>
</table>
</div>
<div class="section">
<h4>Child and Parents</h4>
<table id="child-table" class="table table-bordered">
<tr>
<th>Production ID</th>
<th>Sandbox ID</th>
<th>Names</th>
</tr>
</table>
</div>
</div>
<script id="person-row" type="text/html">
<tr class="{{status}}">
<td><a target="_blank" href="https://familysearch.org/tree/person/{{productionId}}/details">{{productionId}}</a></td>
<td><a target="_blank" href="https://integration.familysearch.org/tree/person/{{sandboxId}}/details">{{sandboxId}}</a></td>
<td>{{name}}</td>
</tr>
</script>
<script id="couple-row" type="text/html">
<tr class="{{status}}">
<td><a target="_blank" href="https://familysearch.org/tree/relationship/{{productionId}}/couple">{{productionId}}</a></td>
<td><a target="_blank" href="https://integration.familysearch.org/tree/relationship/{{sandboxId}}/couple">{{sandboxId}}</a></td>
<td>{{names}}</td>
</tr>
</script>
<script id="child-row" type="text/html">
<tr class="{{status}}">
<td><a target="_blank" href="https://familysearch.org/tree/relationship/{{productionId}}/parent-child">{{productionId}}</a></td>
<td><a target="_blank" href="https://integration.familysearch.org/tree/relationship/{{sandboxId}}/parent-child">{{sandboxId}}</a></td>
<td>{{names}}</td>
</tr>
</script>
<script src="//cdnjs.cloudflare.com/ajax/libs/Cookies.js/1.2.1/cookies.min.js"></script>
<script src="//cdnjs.cloudflare.com/ajax/libs/jquery/2.1.4/jquery.min.js"></script>
<script src="//unpkg.com/familysearch-javascript-sdk@2.11.1/dist/familysearch-javascript-sdk.min.js"></script>
<script src="//cdnjs.cloudflare.com/ajax/libs/handlebars.js/4.0.2/handlebars.min.js"></script>
<script src="//cdnjs.cloudflare.com/ajax/libs/async/1.4.2/async.min.js"></script>
<script src="//cdn.jsdelivr.net/fs-traversal/4.1.0/fs-traversal.min.js"></script>
<script src="js/Row.js"></script>
<script src="js/ChildRow.js"></script>
<script src="js/CoupleRow.js"></script>
<script src="js/PersonRow.js"></script>
<script src="index.js"></script>
</body>
</html>