Esempio n. 1
0
 private void CreateRampRelConformsto(Json json)
 {
     if (RelConformsto != null && RelConformsto.Trim().Length > 0)
     {
         json.WriteTag("dc.relation.conformsto");
         json.WriteText(RelConformsto);
     }
 }
Esempio n. 2
0
 private void CreateRampReady(Json json)
 {
     if (Ready != null && Ready.Trim().Length > 0)
     {
         json.WriteTag("ramp.is_ready");
         json.WriteText(Ready);
     }
 }
Esempio n. 3
0
 private void CreateRampDescriptionHas(Json json)
 {
     if (RampDescriptionHas != null && RampDescriptionHas.Trim().Length > 0)
     {
         json.WriteTag("description.has");
         json.WriteText(RampDescriptionHas);
     }
 }
Esempio n. 4
0
 private void CreateRampFormatMedium(Json json)
 {
     if (FormatMedium != null && FormatMedium.Trim().Length > 0)
     {
         json.WriteTag("dc.format.medium");
         json.WriteRaw(StringWithComma(FormatMedium));
     }
 }
Esempio n. 5
0
 private void CreateRampBroadType(Json json)
 {
     if (BroadType != null && BroadType.Trim().Length > 0)
     {
         json.WriteTag("broad_type");
         json.WriteText(BroadType);
     }
 }
Esempio n. 6
0
 private void CreateRampScriptureScope(Json json)
 {
     if (TitleScriptureScope != null && TitleScriptureScope.Trim().Length > 0)
     {
         json.WriteTag("dc.title.scriptureScope");
         json.WriteRaw(StringWithComma(TitleScriptureScope));
     }
 }
Esempio n. 7
0
 private void CreateRampVersionType(Json json)
 {
     if (VersionType != null && VersionType.Trim().Length > 0)
     {
         json.WriteTag("version.type");
         json.WriteText(VersionType);
     }
 }
Esempio n. 8
0
 private void CreateRampFormatExtentImages(Json json)
 {
     if (FormatExtentImages != null && FormatExtentImages.Trim().Length > 0)
     {
         json.WriteTag("format.extent.images");
         json.WriteText(FormatExtentImages);
     }
 }
Esempio n. 9
0
 private void CreateRampFormatExtentText(Json json)
 {
     if (FormatExtentText != null && FormatExtentText.Trim().Length > 0)
     {
         json.WriteTag("format.extent.text");
         json.WriteText(FormatExtentText);
     }
 }
Esempio n. 10
0
 private void CreateRampDomainSubTypeLing(Json json)
 {
     if (DomainSubTypeLing != null && DomainSubTypeLing.Trim().Length > 0)
     {
         json.WriteTag("type.domainSubtype.LING");
         json.WriteRaw(StringWithComma(DomainSubTypeLing));
     }
 }
Esempio n. 11
0
 private void CreateRampSilDomain(Json json)
 {
     if (SilDomain != null && SilDomain.Trim().Length > 0)
     {
         json.WriteTag("dc.subject.silDomain");
         json.WriteRaw(StringWithComma(SilDomain));
     }
 }
Esempio n. 12
0
 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();
     }
 }
Esempio n. 13
0
 /// <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);
         }
     }
 }
Esempio n. 14
0
        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();
            }
        }
Esempio n. 15
0
 private void CreateVernacularMaterialType(Json json)
 {
     if (VernacularmaterialsType != null && VernacularmaterialsType.Trim().Length > 0)
     {
         json.WriteTag("ramp.vernacularmaterialstype");
         json.WriteText(VernacularmaterialsType);
     }
 }
Esempio n. 16
0
 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();
     }
 }
Esempio n. 17
0
        private void CreateTypeScriptureType(Json json)
        {
            if (TypeScriptureType != null && TypeScriptureType.Trim().Length > 0)
            {
                json.WriteTag("dc.type.scriptureType");
                json.WriteText(TypeScriptureType);
            }

        }
Esempio n. 18
0
 private void CreateRampModifiedDate(Json json)
 {
     if (ModifiedDate != null && ModifiedDate.Trim().Length > 0)
     {
         json.WriteTag("dc.date.modified");
         json.WriteText(ModifiedDate);
     }
 }
Esempio n. 19
0
 private void CreateRampHelperVernacularContent(Json json)
 {
     if (HelperVernacularContent != null && HelperVernacularContent.Trim().Length > 0)
     {
         json.WriteTag("helper.subject.vernacularContent");
         json.WriteRaw(StringWithComma(HelperVernacularContent));
     }
 }
Esempio n. 20
0
 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();
     }
 }
Esempio n. 21
0
 private void CreateRampDescStage(Json json)
 {
     if (DescStage != null && DescStage.Trim().Length > 0)
     {
         json.WriteTag("dc.description.stage");
         json.WriteText(DescStage);
     }
 }
Esempio n. 22
0
 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();
     }
 }
Esempio n. 23
0
 private void CreateRampTypeMode(Json json)
 {
     if (TypeMode != null && TypeMode.Trim().Length > 0)
     {
         json.WriteTag("dc.type.mode");
         json.WriteRaw(StringWithComma(TypeMode));
     }
 }
Esempio n. 24
0
 private void CreateRampSubjectLanguageHas(Json json)
 {
     if (SubjectLanguageHas != null && SubjectLanguageHas.Trim().Length > 0)
     {
         json.WriteTag("subject.subjectLanguage.has");
         json.WriteText(SubjectLanguageHas);
     }
 }
Esempio n. 25
0
 private void CreateRampTitle(Json json)
 {
     if (Title != null && Title.Trim().Length > 0)
     {
         json.WriteTag("dc.title");
         json.WriteText(Title);
     }
 }
Esempio n. 26
0
 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();
     }
 }
Esempio n. 27
0
 private void CreateRampCreatedOn(Json json)
 {
     if (CreatedOn != null && CreatedOn.Trim().Length > 0)
     {
         json.WriteTag("created_at");
         json.WriteText(CreatedOn);
     }
 }
Esempio n. 28
0
 private void CreateRampTypeScholarlyWork(Json json)
 {
     if (TypeScholarlyWork != null && TypeScholarlyWork.Trim().Length > 0)
     {
         json.WriteTag("dc.type.scholarlyWork");
         json.WriteText(TypeScholarlyWork);
     }
 }
Esempio n. 29
0
 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();
     }
 }
Esempio n. 30
0
        private void CreateRampPublisher(Json json)
        {
            if (Publisher != null && Publisher.Trim().Length > 0)
            {
                json.WriteTag("dc.publisher");
                json.WriteText(Publisher);

                if (Publisher.Trim().ToLower() == "wycliffe bible translators")
                {
                    json.WriteTag("dc.identifier.uri");
                    json.WriteText("www.wycliffe.org");
                }
            }
        }