private void CreateRampRelRequires(Json json) { //" \": \"OFL" if (RelRequires.Count > 0) { CreateRampRelRequiresHas(json); json.WriteTag("dc.relation.requires"); json.StartTag(); for (int i = 0; i < RelRequires.Count; i++) { json.WriteTag(i.ToString()); json.StartTag(); json.WriteText(" \": \"" + RelRequires[i]); json.EndTag(); if (i < RelRequires.Count - 1) json.WriteComma(); } json.EndTag(); json.WriteComma(); } }
private static Json CreateRampFile(string metcFileName) { Json json = new Json(); json.Create(metcFileName); json.StartTag(); return json; }
private void CreateRampDescriptionHas(Json json) { if (RampDescriptionHas != null && RampDescriptionHas.Trim().Length > 0) { json.WriteTag("description.has"); json.WriteText(RampDescriptionHas); } }
private void CreateRampTypeMode(Json json) { if (TypeMode != null && TypeMode.Trim().Length > 0) { json.WriteTag("dc.type.mode"); json.WriteRaw(StringWithComma(TypeMode)); } }
private void CreateRampTitle(Json json) { if (Title != null && Title.Trim().Length > 0) { json.WriteTag("dc.title"); json.WriteText(Title); } }
private void CreateRampHelperVernacularContent(Json json) { if (HelperVernacularContent != null && HelperVernacularContent.Trim().Length > 0) { json.WriteTag("helper.subject.vernacularContent"); json.WriteRaw(StringWithComma(HelperVernacularContent)); } }
private void CreateRampDescStage(Json json) { if (DescStage != null && DescStage.Trim().Length > 0) { json.WriteTag("dc.description.stage"); json.WriteText(DescStage); } }
private void CreateRampFormatExtentText(Json json) { if (FormatExtentText != null && FormatExtentText.Trim().Length > 0) { json.WriteTag("format.extent.text"); json.WriteText(FormatExtentText); } }
private void CreateRampContributor(Json json) { if (Contributor.Count > 0) { json.WriteTag("dc.contributor"); json.StartTag(); for (int i = 0; i < Contributor.Count; i++) { string[] contributors = Contributor[i].Split(','); json.WriteTag(i.ToString()); json.StartTag(); json.WriteText(" \": \"" + contributors[0] + "\", \"role\": \"" + contributors[1]); json.EndTag(); if (i < Contributor.Count - 1) json.WriteComma(); } json.EndTag(); json.WriteComma(); } }
private void CreateRampSilDomain(Json json) { if (SilDomain != null && SilDomain.Trim().Length > 0) { json.WriteTag("dc.subject.silDomain"); json.WriteRaw(StringWithComma(SilDomain)); } }
private void CreateRampFormatExtentImages(Json json) { if (FormatExtentImages != null && FormatExtentImages.Trim().Length > 0) { json.WriteTag("format.extent.images"); json.WriteText(FormatExtentImages); } }
private void CreateRampDomainSubTypeLing(Json json) { if (DomainSubTypeLing != null && DomainSubTypeLing.Trim().Length > 0) { json.WriteTag("type.domainSubtype.LING"); json.WriteRaw(StringWithComma(DomainSubTypeLing)); } }
private void CreateRampSubject(Json json) { //\" \": \"foreign languages and literature; dictionary;lexicon;\", \"lang\": \"eng\" if (Subject.Count > 0) { json.WriteTag("dc.subject"); json.StartTag(); for (int i = 0; i < Subject.Count; i++) { string[] subject = Subject[i].Split(','); json.WriteTag(i.ToString()); json.StartTag(); json.WriteText(" \": \"" + subject[0] + "\", \"lang\": \"" + subject[1]); json.EndTag(); if (i < Subject.Count - 1) json.WriteComma(); } json.EndTag(); json.WriteComma(); } }
/// <summary> /// /// </summary> /// <param name="json"></param> private void CreateRampRelRequiresHas(Json json) { if (RelRequiresHas != null && RelRequiresHas.Trim().Length > 0) { if (RelRequires.Count > 0) { json.WriteTag("relation.requires.has"); json.WriteText(RelRequiresHas); } } }
private void CreateTypeScriptureType(Json json) { if (TypeScriptureType != null && TypeScriptureType.Trim().Length > 0) { json.WriteTag("dc.type.scriptureType"); json.WriteText(TypeScriptureType); } }
private void CreateRampModifiedDate(Json json) { if (ModifiedDate != null && ModifiedDate.Trim().Length > 0) { json.WriteTag("dc.date.modified"); json.WriteText(ModifiedDate); } }
private void CreateRampScriptureScope(Json json) { if (TitleScriptureScope != null && TitleScriptureScope.Trim().Length > 0) { json.WriteTag("dc.title.scriptureScope"); json.WriteRaw(StringWithComma(TitleScriptureScope)); } }
private void CreateRampLanguageScript(Json json) { if (LanguageScript.Count > 0) { json.WriteTag("dc.language.script"); json.StartTag(); for (int i = 0; i < LanguageScript.Count; i++) { json.WriteTag(i.ToString()); json.StartTag(); json.WriteText(" \": \"" + LanguageScript[i]); json.EndTag(); if (i < LanguageScript.Count - 1) json.WriteComma(); } json.EndTag(); json.WriteComma(); } }
private void CreateRampVersionType(Json json) { if (VersionType != null && VersionType.Trim().Length > 0) { json.WriteTag("version.type"); json.WriteText(VersionType); } }
private void CreateRampLanguageIso(Json json) { if (LanguageIso.Count > 0) { json.WriteTag("dc.language.iso"); json.StartTag(); for (int i = 0; i < LanguageIso.Count; i++) { json.WriteTag(i.ToString()); json.StartTag(); json.WriteText("dialect\" : \"\", \" \": \"" + LanguageIso[i]); json.EndTag(); if (i < LanguageIso.Count - 1) json.WriteComma(); } json.EndTag(); json.WriteComma(); } }
private void CreateRampFormatMedium(Json json) { if (FormatMedium != null && FormatMedium.Trim().Length > 0) { json.WriteTag("dc.format.medium"); json.WriteRaw(StringWithComma(FormatMedium)); } }
private void CreateRampSubjectLanguageHas(Json json) { if (SubjectLanguageHas != null && SubjectLanguageHas.Trim().Length > 0) { json.WriteTag("subject.subjectLanguage.has"); json.WriteText(SubjectLanguageHas); } }
private void CreateRampBroadType(Json json) { if (BroadType != null && BroadType.Trim().Length > 0) { json.WriteTag("broad_type"); json.WriteText(BroadType); } }
private void CreateRampSubjectLanguage(Json json) { if (SubjectLanguage.Count > 0) { json.WriteTag("dc.subject.subjectLanguage"); json.StartTag(); for (int i = 0; i < SubjectLanguage.Count; i++) { json.WriteTag(i.ToString()); json.StartTag(); json.WriteText("dialect\" : \"\", \" \": \"" + SubjectLanguage[i]); json.EndTag(); if (i < SubjectLanguage.Count - 1) json.WriteComma(); } json.EndTag(); json.WriteComma(); } }
private void CreateRampReady(Json json) { if (Ready != null && Ready.Trim().Length > 0) { json.WriteTag("ramp.is_ready"); json.WriteText(Ready); } }
private void CreateRampTypeScholarlyWork(Json json) { if (TypeScholarlyWork != null && TypeScholarlyWork.Trim().Length > 0) { json.WriteTag("dc.type.scholarlyWork"); json.WriteText(TypeScholarlyWork); } }
private void CreateRampCreatedOn(Json json) { if (CreatedOn != null && CreatedOn.Trim().Length > 0) { json.WriteTag("created_at"); json.WriteText(CreatedOn); } }
private void CreateVernacularMaterialType(Json json) { if (VernacularmaterialsType != null && VernacularmaterialsType.Trim().Length > 0) { json.WriteTag("ramp.vernacularmaterialstype"); json.WriteText(VernacularmaterialsType); } }
private void CreateRampDescription(Json json) { if (RampDescription != null && RampDescription.Trim().Length > 0) { json.WriteTag("dc.description"); json.StartTag(); int i = 0; json.WriteTag(i.ToString()); json.StartTag(); json.WriteText(" \" : \"" + RampDescription.Replace("\n", " ").Replace("\r", "") + "\", \"lang\": \"eng"); json.EndTag(); json.EndTag(); json.WriteComma(); } }
private void CreateRampRelConformsto(Json json) { if (RelConformsto != null && RelConformsto.Trim().Length > 0) { json.WriteTag("dc.relation.conformsto"); json.WriteText(RelConformsto); } }