Skip to content

Commit

Permalink
Merge pull request #68 from FamilySearch/sbritton-prayer-card-record-…
Browse files Browse the repository at this point in the history
…type

Add Prayer Card record type
  • Loading branch information
ranbo authored Oct 25, 2024
2 parents 2dd099a + 4dbd8fb commit 09ff2ab
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -1107,8 +1107,12 @@
}

let type = $("#edit-record-metadata-type").val();
if (type && type !== "http://gedcomx.org/" + type) {
sd.coverage[0].recordType = "http://gedcomx.org/" + type;
let url = "http://gedcomx.org/";
if (type === "PrayerCard") {
url = "http://familysearch.org/types/records/";
}
if (type && type !== url + type) {
sd.coverage[0].recordType = url + type;
}

let date = $("#edit-record-metadata-date").val();
Expand Down Expand Up @@ -4080,6 +4084,7 @@ <h5 class="modal-title" id="edit-record-metadata-label">Update Record Metadata</
<option value="Obituary">Obituary</option>
<option value="Passenger">Passenger</option>
<option value="Pension">Pension</option>
<option value="PrayerCard">Prayer Card</option>
<option value="Probate">Probate</option>
<option value="RelatedDocument">RelatedDocument</option>
<option value="ReligiousCreeds">ReligiousCreeds</option>
Expand Down

0 comments on commit 09ff2ab

Please sign in to comment.