Stack Trace | webintegrations/WSCOperation/invokeREST.20 (WSCOperation)
webintegrations/WSCOperation/invoke.9 (WSCOperation)
webintegrations/WSConnection/invoke.10 (WSConnection)
[ :postMap | tempGUID = postMap.>id + "" ; tempWPPostObj.>guid = tempGUID ; debug( "POST Type Received: " + postMap.>type ) ; tempWPPostObj.>name = postMap.>title.>rendered ; tempWPPostObj.>postLink = postMap.>link ; debug( "POST Type Received: " + postMap.>title.>rendered ) ; tempWPPostObj.>timeToRead = "" ; tempWPPostObj.>timeToReadOverride = "" ; tempDateTimestamp = postMap.>date ; if( ifEmpty( tempDateTimestamp, "" ) != "" && tempDateTimestamp.>indexOf( "0001" ) < 0, [ tempWPPostObj.>postTimestamp = #ve/core/TimestampObject/parse( tempDateTimestamp, "yyyy-MM-dd'T'HH:mm:ss" ) ; tempWPPostObj.>postDate = #ve/core/DateObject/parse( tempDateTimestamp, "yyyy-MM-dd'T'HH:mm:ss" ) ], [ tempWPPostObj.>postTimestamp = null ; tempWPPostObj.>postDate = null ] ) ; tempModDateTimestamp = postMap.>modified ; if( ifEmpty( tempModDateTimestamp, "" ) != "" && tempModDateTimestamp.>indexOf( "0001" ) < 0, [ tempWPPostObj.>postModifiedTimestamp = #ve/core/TimestampObject/parse( tempModDateTimestamp, "yyyy-MM-dd'T'HH:mm:ss" ) ; tempWPPostObj.>postModifiedDate = #ve/core/DateObject/parse( tempModDateTimestamp, "yyyy-MM-dd'T'HH:mm:ss" ) ], [ tempWPPostObj.>postModifiedTimestamp = null ; tempWPPostObj.>postModifiedDate = null ] ) ; tempWPPostObj.>active = true ; tempWPPostObj.>overview = postMap.>excerpt.>rendered ; tempWPPostObj.>overviewReadMore = postMap.>content.>rendered ; if( temp_postType == "interactive_map", [ tempWPPostObj.>_postCategory = null ; toBag( postMap.>content_pilot_print.>taxonomies.>interactive_map_taxonomy ).>do( [ :catg | tempWPPostObj.>_postCategory.>add( connection.findDataValue( "wp-taxonomy-values", catg + "", catg + "", true ) ) ] ) ; tempWPPostObj.>subtitle = postMap.>cpwebpilot.>th_map_state ] ) ; tempSectionConfig = toBag( postMap.>cp_print_pilot.>sections ) ; if( tempSectionConfig.>size() > 0, [ sectionConfig = { "ignore" : "" } ; temp_sectionConfigOrder = int( "-1" ) ; toBag( tempSectionConfig ).>do( [ :sc | temp_sectionConfigOrder = int( int( temp_sectionConfigOrder ) + 1 ) ; tempValue = int( temp_sectionConfigOrder ) ; sectionConfig.get( tempValue, [ new( #cpcore/WordpressPost_sectionConfig ) ], true ).>_order_ = tempValue ; sectionConfig.get( tempValue ).>sectionName = sc.>name.>decode( 11 ) ; sectionConfig.get( tempValue ).>isVisible = sc.>visible == "true" || sc.>visible == true ? true : false ; sectionConfig.get( tempValue ).>showLimit = if( docGenType == "cp_on_the_go", [ sc.>global_limit ], [ sc.>limit ] ) ; null ] ) ; if( tempWPPostObj.>sectionConfig.>faultIn().>size() < sectionConfig.>size() - 1, [ tempWPPostObj.>sectionConfig.>addAll( range( tempWPPostObj.>sectionConfig.>size(), sectionConfig.>size() - 2 ).>collect( [ :i | new( #cpcore/WordpressPost_sectionConfig ) ] ) ) ], [ if( tempWPPostObj.>sectionConfig.>size() > sectionConfig.>size() - 1, [ tempWPPostObj.>sectionConfig = tempWPPostObj.>sectionConfig.>slice( 0, sectionConfig.>size() - 1 ) ] ) ] ) ; range( 0, sectionConfig.>size() - 2 ).>do( [ :i | tempWPPostObj.>sectionConfig[ i ].>sectionName = sectionConfig[ i ].>sectionName ; tempWPPostObj.>sectionConfig[ i ].>isVisible = sectionConfig[ i ].>isVisible ; tempWPPostObj.>sectionConfig[ i ].>showLimit = sectionConfig[ i ].>showLimit ; tempWPPostObj.>sectionConfig[ i ].>_order_ = sectionConfig[ i ].>_order_ ; null ] ) ; null ] ) ; if( temp_domainURL.>indexOf( "groom" ) > 0, [ tempWPPostObj.>postParent = postMap.>groom_law.>post_parent.>title.>decode( 11 ) ; null ] ) ; if( temp_domainURL.>indexOf( "goldbergkohn" ) > 0, [ tempWPPostObj.>professionalAffiliationsRTE = postMap.>cpwebpilot.>gk_professional_activities ; null ] ) ; if( temp_domainURL.>indexOf( "thompsonhine" ) > 0, [ tempOverviewReadMore = postMap.>content.>rendered ; debug( "tempOverviewReadMore:1:: " + tempOverviewReadMore ) ; if( postMap.>type == "th_diversity", [ tempOverviewReadMore = tempOverviewReadMore.>replaceAll( "<script type=\"text/javascript\">(.*?)</script>", "" ) ] ) ; tempOverviewReadMore = tempOverviewReadMore.>replaceAll( "<div [^>]*\\bclass=\"wp-block-image\\b(.*?)\"[^>]*>(.*?)</div>", "$2" ) ; tempOverviewReadMore = tempOverviewReadMore.>replaceAll( "<div [^>]*\\bclass=\"wp-block-column\\b(.*?)\"[^>]*>(.*?)</div>", "<td>$2</td>" ) ; debug( "tempOverviewReadMore:2:: " + tempOverviewReadMore ) ; tempOverviewReadMore = tempOverviewReadMore.>replaceAll( "<div [^>]*\\bclass=\"wp-block-columns\\b(.*?)\"[^>]*>(.*?)</div>", "<table><tr>$2</tr></table>" ) ; debug( "tempOverviewReadMore:3:: " + tempOverviewReadMore ) ; tempWPPostObj.>overviewReadMore = tempOverviewReadMore ; null ] ) ; if( temp_domainURL.>indexOf( "ccsb" ) > 0, [ tempWPPostObj.>leadershipRTE = postMap.>cpwebpilot.>ccsb_leadership ; null ] ) ; if( temp_domainURL.>indexOf( "f3law" ) > 0, [ tempWPPostObj.>communityInvolvementRTE = postMap.>cpwebpilot.>f3_law_after_school ; tempWPPostObj.>notableText = first( toBag( postMap.>cpwebpilot.>f3_law_explore ) ) ; tempWPPostObj.>strengthsRTE = first( toBag( postMap.>cpwebpilot.>f3_law_strengths ) ) ; tempWPPostObj.>subtitle = first( toBag( postMap.>cpwebpilot.>f3_law_subtitle ) ) ; null ] ) ; if( temp_domainURL.>indexOf( "susman" ) > 0, [ tempWPPostObj.>educationRTE = postMap.>cpwebpilot.>susman_godfrey_education_rte ; null ] ) ; if( temp_domainURL.>indexOf( "sussman" ) > 0, [ tempWPPostObj.>assistantName = postMap.>cpwebpilot.>sussman_shank_assistant_full_name ; tempWPPostObj.>assistantPhone = postMap.>cpwebpilot.>sussman_shank_assistant_contact_info ; tempWPPostObj.>assistantExt = postMap.>cpwebpilot.>sussman_shank_assistant_extension ; null ] ) ; if( temp_domainURL.>indexOf( "bakerblogs" ) > 0, [ tempWPPostObj.>timeToRead = postMap.>cpwebpilot.>poa_time_to_read ; tempWPPostObj.>timeToReadOverride = postMap.>cpwebpilot.>bh_read_time_override ; tempWPPostObj.>_postTags = null ; toBag( postMap.>content_pilot_print.>taxonomies.>post_tag ).>do( [ :catg | tempWPPostObj.>_postTags.>add( connection.findDataValue( "wp-taxonomy-values", catg + "", catg + "", true ) ) ] ) ; tempWPPostObj.>blogName = postMap.>yoast_head_json.>og_site_name ; tempWPPostObj.>archiveTitle = postMap.>baker_hostetler.>post_archive_title ; tempWPPostObj.>archiveDescription = postMap.>baker_hostetler.>post_archive_description ; tempArchiveImg = postMap.>baker_hostetler.>post_archive_image_url ; temp_imageFile = if( ifEmpty( tempArchiveImg, "" ) != "", [ #webconnections/ExternalWebConnection/getConnection( "GenerateDocument" ).impl.invoke( "DownloadResource", { "domainURL" : tempArchiveImg.>encode( 11 ), "basicAuth" : basicAuth } ) ], null ) ; if( temp_imageFile.>contentType.>indexOf( "image" ) != -1, [ tempWPPostObj.>images.>archiveImage = temp_imageFile ], [ tempWPPostObj.>images.>archiveImage = null ] ) ; null ] ) ; if( temp_domainURL.>indexOf( "lathrop" ) > 0, [ tempWPPostObj.>timeToRead = postMap.>cpwebpilot.>poa_time_to_read ; tempWPPostObj.>_postTags = null ; toBag( postMap.>content_pilot_print.>taxonomies.>post_tag ).>do( [ :catg | tempWPPostObj.>_postTags.>add( connection.findDataValue( "wp-taxonomy-values", catg + "", catg + "", true ) ) ] ) ; tempWPPostObj.>_postTopics = null ; toBag( postMap.>content_pilot_print.>taxonomies.>topic ).>do( [ :catg | tempWPPostObj.>_postTopics.>add( connection.findDataValue( "wp-taxonomy-values", catg + "", catg + "", true ) ) ] ) ; null ] ) ; if( temp_domainURL.>indexOf( "bakerlaw" ) > 0 || temp_domainURL.>indexOf( "bakeralum" ) > 0, [ tempWPPostObj.>communityInvolvementRTE = postMap.>cpwebpilot.>bh_community ; tempWPPostObj.>militaryServiceRTE = postMap.>cpwebpilot.>bh_military_service ; tempWPPostObj.>patentInformationRTE = postMap.>cpwebpilot.>bh_patent_information ; tempWPPostObj.>proBonoExperienceRTE = postMap.>cpwebpilot.>bh_pro_bono_experience ; tempWPPostObj.>timeToRead = postMap.>cpwebpilot.>poa_time_to_read ; tempWPPostObj.>timeToReadOverride = postMap.>cpwebpilot.>bh_read_time_override ; tempWPPostObj.>registerLink = postMap.>cpwebpilot.>bh_event_register ; tempWPPostObj.>eventLocation = postMap.>cpwebpilot.>bh_event_location ; tempWPPostObj.>eventFromDateTime = null ; tempWPPostObj.>eventToDateTime = null ; temp_eventFromDateTime = postMap.>cpwebpilot.>bh_event_date_from ; temp_eventToDateTime = postMap.>cpwebpilot.>bh_event_date_to ; if( ifEmpty( temp_eventFromDateTime, "" ) != "" && temp_eventFromDateTime.>indexOf( "0001" ) < 0, [ temp_eventFromDateTime = temp_eventFromDateTime + " 00:00:00" ; tempWPPostObj.>eventFromDateTime = #ve/core/TimestampObject/parse( temp_eventFromDateTime, "yyyyMMdd HH:mm:ss" ) ], [ tempWPPostObj.>eventFromDateTime = null ] ) ; if( ifEmpty( temp_eventToDateTime, "" ) != "" && temp_eventToDateTime.>indexOf( "0001" ) < 0, [ temp_eventToDateTime = temp_eventToDateTime + " 00:00:00" ; tempWPPostObj.>eventToDateTime = #ve/core/TimestampObject/parse( temp_eventToDateTime, "yyyyMMdd HH:mm:ss" ) ], [ tempWPPostObj.>eventToDateTime = null ] ) ; tempWPPostObj.>eventTime = postMap.>cpwebpilot.>bh_event_time ; tempWPPostObj.>showEventTime = postMap.>cpwebpilot.>bh_event_show_time == "1" ? true : false ; null ] ) ; if( temp_domainURL.>indexOf( "much" ) > 0, [ tempWPPostObj.>awayFromWorkContent = postMap.>cpwebpilot.>much_more_than_work ; tempWPPostObj.>subtitle = postMap.>cpwebpilot.>much_subtitle ; tempWPPostObj.>strengthsRTE = postMap.>cpwebpilot.>much_areas_of_strength ; tempWPPostObj.>trendingIssuesRTE = postMap.>cpwebpilot.>much_horizon_issues ; tempWPPostObj.>externalPublicationCategory = postMap.>cpwebpilot.>much_ext_pub_category ; tempWPPostObj.>externalPublicationTitle = postMap.>cpwebpilot.>much_ext_pub_title ; tempWPPostObj.>externalPublicationName = postMap.>cpwebpilot.>much_ext_pub_name ; tempWPPostObj.>externalPublicationURL = postMap.>cpwebpilot.>much_ext_pub_url ; tempWPPostObj.>externalPublicationDate = postMap.>cpwebpilot.>much_ext_pub_date ; null ] ) ; if( temp_domainURL.>indexOf( "munck" ) > 0, [ tempWPPostObj.>notableText = first( toBag( postMap.>cpwebpilot.>munck_wilson_mandala_at_a_glance_services ) ) ; tempWPPostObj.>timeToRead = postMap.>cpwebpilot.>poa_time_to_read ; tempWPPostObj.>speakingEngagementsRTE = postMap.>cpwebpilot.>munck_wilson_mandala_publications ; null ] ) ; if( temp_domainURL.>indexOf( "jamesbates" ) > 0, [ tempWPPostObj.>timeToRead = postMap.>cpwebpilot.>poa_time_to_read ; tempMapImg = postMap.>content_pilot_print_client_specific.>james_bates_office_map ; temp_imageFile = if( ifEmpty( tempMapImg, "" ) != "", [ #webconnections/ExternalWebConnection/getConnection( "GenerateDocument" ).impl.invoke( "DownloadResource", { "domainURL" : tempMapImg.>encode( 11 ), "basicAuth" : basicAuth } ) ], null ) ; if( temp_imageFile.>contentType.>indexOf( "image" ) != -1, [ tempWPPostObj.>images.>mapImage = temp_imageFile ], [ tempWPPostObj.>images.>mapImage = null ] ) ; null ] ) ; tempWPPostObj.>displayDate = postMap.>meta.>poa_display_date ; tempWPPostObj.>firstName = postMap.>cpwebpilot.>poa_full_name_first_name ; tempWPPostObj.>lastName = postMap.>cpwebpilot.>poa_full_name_last_name ; tempWPPostObj.>middleName = postMap.>cpwebpilot.>poa_full_name_middle_name ; tempWPPostObj.>suffix = postMap.>cpwebpilot.>poa_full_name_suffix ; tempWPPostObj.>prefix = postMap.>cpwebpilot.>poa_full_name_prefix ; tempWPPostObj.>nickName = postMap.>cpwebpilot.>poa_full_name_nick_name ; tempWPPostObj.>preferred = postMap.>cpwebpilot.>poa_full_name_preferred_name ; tempWPPostObj.>certification = postMap.>cpwebpilot.>poa_full_name_certification ; tempWPPostObj.>phone = postMap.>cpwebpilot.>poa_person_contact_phone ; tempWPPostObj.>secondaryPhone = postMap.>cpwebpilot.>poa_person_contact_secondary_phone ; tempWPPostObj.>tertiaryPhone = postMap.>cpwebpilot.>poa_person_contact_tertiary_phone ; tempWPPostObj.>cellPhone = postMap.>cpwebpilot.>poa_person_contact_cell ; tempWPPostObj.>fax = postMap.>cpwebpilot.>poa_person_contact_fax ; tempWPPostObj.>secondaryFax = postMap.>cpwebpilot.>poa_person_contact_secondary_fax ; tempWPPostObj.>tertiaryFax = postMap.>cpwebpilot.>poa_person_contact_tertiary_fax ; tempWPPostObj.>email = postMap.>cpwebpilot.>poa_person_contact_email ; tempWPPostObj.>linkedin = postMap.>cpwebpilot.>poa_person_contact_linkedin ; tempWPPostObj.>facebook = postMap.>cpwebpilot.>poa_person_contact_facebook ; tempWPPostObj.>twitter = postMap.>cpwebpilot.>poa_person_contact_twitter ; tempWPPostObj.>youtube = postMap.>cpwebpilot.>poa_person_contact_youtube ; tempWPPostObj.>instagram = postMap.>cpwebpilot.>poa_person_contact_instagram ; tempWPPostObj.>genderPronouns = first( toBag( postMap.>content_pilot_print.>taxonomies.>poa_gender_pronouns_taxonomy ) ) ; if( temp_domainURL.>indexOf( "bakeralum" ) > 0, [ tempWPPostObj.>workPosition = postMap.>cpwebpilot.>poa_person_contact_work_position ; tempWPPostObj.>workCompany = postMap.>cpwebpilot.>poa_person_contact_work_company ; tempWPPostObj.>workEmail = postMap.>cpwebpilot.>poa_person_contact_email ; tempWPPostObj.>workAddress = postMap.>cpwebpilot.>poa_person_contact_work_address ; tempWPPostObj.>workSuite = postMap.>cpwebpilot.>poa_person_contact_work_suite ; tempWPPostObj.>workCity = postMap.>cpwebpilot.>poa_person_contact_work_city ; tempWPPostObj.>workState = postMap.>cpwebpilot.>poa_person_contact_work_state ; tempWPPostObj.>workZip = postMap.>cpwebpilot.>poa_person_contact_work_zip ; tempWPPostObj.>workCountry = postMap.>cpwebpilot.>poa_person_contact_work_country ; tempWPPostObj.>personalAddress = postMap.>cpwebpilot.>poa_person_contact_personal_address ; tempWPPostObj.>personalSuite = postMap.>cpwebpilot.>poa_person_contact_personal_suite ; tempWPPostObj.>personalCity = postMap.>cpwebpilot.>poa_person_contact_personal_city ; tempWPPostObj.>personalState = postMap.>cpwebpilot.>poa_person_contact_personal_state ; tempWPPostObj.>personalZip = postMap.>cpwebpilot.>poa_person_contact_personal_zip ; tempWPPostObj.>personalCountry = postMap.>cpwebpilot.>poa_person_contact_personal_country ; tempWPPostObj.>personalEmail = postMap.>cpwebpilot.>poa_person_contact_personal_email ; tempHireDates = null ; tempDepartureDates = null ; tempHireDates = toBag( toBag( postMap.>cpwebpilot.>bh_hire_date ) + toBag( postMap.>content_pilot_print.>groups.>bh_additional_hire_dates ).>collect( [ :i | i.>bh_additional_hire_dates_date ] ) ).>reject( [ :i | ifEmpty( i, "" ) == "" ] ) ; tempDepartureDates = toBag( toBag( postMap.>cpwebpilot.>bh_departure_date ) + toBag( postMap.>content_pilot_print.>groups.>bh_additional_departure_dates ).>collect( [ :i | i.>bh_additional_departure_dates_date ] ) ).>reject( [ :i | ifEmpty( i, "" ) == "" ] ) ; if( toBag( tempHireDates ).>size() > 0, [ hireDates = { "ignore" : "" } ; tempbarhireDatesOrder = int( "-1" ) ; toBag( tempHireDates ).>do( [ :st | tempbarhireDatesOrder = int( int( tempbarhireDatesOrder ) + 1 ) ; tempValue = int( tempbarhireDatesOrder ) ; hireDates.get( tempValue, [ new( #cpcore/WordpressPost_hireDates ) ], true ).>_order_ = tempValue ; hireDates.get( tempValue ).>hireDate = #ve/core/DateObject/parse( st, "yyyyMMdd" ) ; null ] ) ; if( tempWPPostObj.>hireDates.>faultIn().>size() < hireDates.>size() - 1, [ tempWPPostObj.>hireDates.>addAll( range( tempWPPostObj.>hireDates.>size(), hireDates.>size() - 2 ).>collect( [ :i | new( #cpcore/WordpressPost_hireDates ) ] ) ) ], [ if( tempWPPostObj.>hireDates.>size() > hireDates.>size() - 1, [ tempWPPostObj.>hireDates = tempWPPostObj.>hireDates.>slice( 0, hireDates.>size() - 1 ) ] ) ] ) ; range( 0, hireDates.>size() - 2 ).>do( [ :i | tempWPPostObj.>hireDates[ i ].>hireDate = hireDates[ i ].>hireDate ; tempWPPostObj.>hireDates[ i ].>_order_ = hireDates[ i ].>_order_ ; null ] ) ; null ] ) ; if( toBag( tempDepartureDates ).>size() > 0, [ departureDates = { "ignore" : "" } ; tempbardepartureDatesOrder = int( "-1" ) ; toBag( tempDepartureDates ).>do( [ :st | tempbardepartureDatesOrder = int( int( tempbardepartureDatesOrder ) + 1 ) ; tempValue = int( tempbardepartureDatesOrder ) ; departureDates.get( tempValue, [ new( #cpcore/WordpressPost_departureDates ) ], true ).>_order_ = tempValue ; departureDates.get( tempValue ).>departureDate = #ve/core/DateObject/parse( st, "yyyyMMdd" ) ; null ] ) ; if( tempWPPostObj.>departureDates.>faultIn().>size() < departureDates.>size() - 1, [ tempWPPostObj.>departureDates.>addAll( range( tempWPPostObj.>departureDates.>size(), departureDates.>size() - 2 ).>collect( [ :i | new( #cpcore/WordpressPost_departureDates ) ] ) ) ], [ if( tempWPPostObj.>departureDates.>size() > departureDates.>size() - 1, [ tempWPPostObj.>departureDates = tempWPPostObj.>departureDates.>slice( 0, departureDates.>size() - 1 ) ] ) ] ) ; range( 0, departureDates.>size() - 2 ).>do( [ :i | tempWPPostObj.>departureDates[ i ].>departureDate = departureDates[ i ].>departureDate ; tempWPPostObj.>departureDates[ i ].>_order_ = departureDates[ i ].>_order_ ; null ] ) ; null ] ) ; tempWPPostObj.>_omitDetails = null ; temp_omitDetails = postMap.>cpwebpilot.>bh_omit_details ; if( ifEmpty( temp_omitDetails, "" ) != "", [ toBag( temp_omitDetails ).>do( [ :catg | tempWPPostObj.>_omitDetails.>add( connection.findDataValue( "wp-taxonomy-values", catg + "", catg + "", true ) ) ] ) ; null ] ) ; null ] ) ; if( temp_domainURL.>indexOf( "sussman" ) > 0, [ tempWPPostObj.>secondaryPhone = postMap.>cpwebpilot.>sussman_shank_office_other_phone ; null ] ) ; if( temp_domainURL.>indexOf( "dgilbert" ) > 0, [ tempWPPostObj.>featuredAnswer = postMap.>cpwebpilot.>davis_gilbert_featured_answer ; tempWPPostObj.>clerkshipsRTE = postMap.>cpwebpilot.>davis_gilbert_clerkship_content ; tempWPPostObj.>certificationsRTE = postMap.>cpwebpilot.>davis_gilbert_professional_certifications_content ; null ] ) ; if( temp_domainURL.>indexOf( "liskow" ) > 0, [ tempWPPostObj.>notableHighlight1 = postMap.>cpwebpilot.>liskow_lewis_experience_highlight_1 ; tempWPPostObj.>notableHighlight2 = postMap.>cpwebpilot.>liskow_lewis_experience_highlight_2 ; tempWPPostObj.>notableText = postMap.>cpwebpilot.>liskow_lewis_experience_text ; tempWPPostObj.>awayFromWorkContent = postMap.>cpwebpilot.>liskow_lewis_after_hours ; tempWPPostObj.>strengthsRTE = postMap.>cpwebpilot.>liskow_lewis_strengths ; tempWPPostObj.>presentationsRTE = postMap.>cpwebpilot.>liskow_lewis_presentations ; tempWPPostObj.>publicationsRTE = postMap.>cpwebpilot.>liskow_lewis_publications ; null ] ) ; if( temp_domainURL.>indexOf( "lathrop" ) > 0, [ tempWPPostObj.>presentationsRTE = postMap.>cpwebpilot.>lathrop_gpm_presentations ; tempWPPostObj.>publicationsRTE = postMap.>cpwebpilot.>lathrop_gpm_publications ; null ] ) ; if( temp_domainURL.>indexOf( "bracewell" ) > 0, [ tempWPPostObj.>publicationsRTE = postMap.>cpwebpilot.>bracewell_publication ; tempDefaultTTR = postMap.>cpwebpilot.>poa_time_to_read ; tempOverrideTTR = postMap.>cpwebpilot.>bracewell_time_to_read_override ; tempWPPostObj.>timeToRead = if( ifEmpty( tempOverrideTTR, "" ) != "", [ tempOverrideTTR ], [ tempDefaultTTR ] ) ; null ] ) ; if( temp_domainURL.>indexOf( "diamond" ) > 0 || temp_domainURL.>indexOf( "ebglaw" ) > 0 || temp_domainURL.>indexOf( "advisors.ebglaw" ) > 0 || temp_domainURL.>indexOf( "ebgadvisors" ) > 0 || temp_domainURL.>indexOf( "ccsb" ) > 0 || temp_domainURL.>indexOf( "thompsonhine" ) > 0 || temp_domainURL.>indexOf( "liskow" ) > 0 || temp_domainURL.>indexOf( "sussman" ) > 0 || temp_domainURL.>indexOf( "f3law" ) > 0 || temp_domainURL.>indexOf( "munck" ) > 0 || temp_domainURL.>indexOf( "jamesbates" ) > 0 || temp_domainURL.>indexOf( "goldbergkohn" ) > 0 || temp_domainURL.>indexOf( "lugenbuhl" ) > 0 || temp_domainURL.>indexOf( "lawla" ) > 0 || temp_domainURL.>indexOf( "kleinhornig" ) > 0 || temp_domainURL.>indexOf( "mccarter" ) > 0 || temp_domainURL.>indexOf( "bracewell" ) > 0 || temp_domainURL.>indexOf( "lathrop" ) > 0, [ secondaryTitles = { "ignore" : "" } ; tempbarsecondaryTitlesOrder = int( "-1" ) ; temp_secondaryTitles = temp_domainURL.>indexOf( "bracewell" ) > 0 ? toBag( postMap.>cpwebpilot.>poa_secondary_title_repeater_field ) : toBag( postMap.>content_pilot_print.>groups.>poa_secondary_title_repeater ) ; temp_secondaryTitles.>do( [ :st | tempbarsecondaryTitlesOrder = int( int( tempbarsecondaryTitlesOrder ) + 1 ) ; tempValue = int( tempbarsecondaryTitlesOrder ) ; tempSTName = temp_domainURL.>indexOf( "bracewell" ) > 0 ? st.>poa_secondary_title_field : st.>poa_secondary_title ; secondaryTitles.get( tempValue, [ new( #cpcore/WordpressPost_secondaryTitles ) ], true ).>_order_ = tempValue ; secondaryTitles.get( tempValue ).>name = tempSTName.>decode( 11 ) ; null ] ) ; if( tempWPPostObj.>secondaryTitles.>faultIn().>size() < secondaryTitles.>size() - 1, [ tempWPPostObj.>secondaryTitles.>addAll( range( tempWPPostObj.>secondaryTitles.>size(), secondaryTitles.>size() - 2 ).>collect( [ :i | new( #cpcore/WordpressPost_secondaryTitles ) ] ) ) ], [ if( tempWPPostObj.>secondaryTitles.>size() > secondaryTitles.>size() - 1, [ tempWPPostObj.>secondaryTitles = tempWPPostObj.>secondaryTitles.>slice( 0, secondaryTitles.>size() - 1 ) ] ) ] ) ; range( 0, secondaryTitles.>size() - 2 ).>do( [ :i | tempWPPostObj.>secondaryTitles[ i ].>name = secondaryTitles[ i ].>name ; tempWPPostObj.>secondaryTitles[ i ].>_order_ = secondaryTitles[ i ].>_order_ ; null ] ) ; null ], [ secondaryTitles = { "ignore" : "" } ; tempbarsecondaryTitlesOrder = int( "-1" ) ; toBag( postMap.>cpwebpilot.>poa_secondary_title ).>do( [ :st | tempbarsecondaryTitlesOrder = int( int( tempbarsecondaryTitlesOrder ) + 1 ) ; tempValue = int( tempbarsecondaryTitlesOrder ) ; secondaryTitles.get( tempValue, [ new( #cpcore/WordpressPost_secondaryTitles ) ], true ).>_order_ = tempValue ; secondaryTitles.get( tempValue ).>name = st.>decode( 11 ) ; null ] ) ; if( tempWPPostObj.>secondaryTitles.>faultIn().>size() < secondaryTitles.>size() - 1, [ tempWPPostObj.>secondaryTitles.>addAll( range( tempWPPostObj.>secondaryTitles.>size(), secondaryTitles.>size() - 2 ).>collect( [ :i | new( #cpcore/WordpressPost_secondaryTitles ) ] ) ) ], [ if( tempWPPostObj.>secondaryTitles.>size() > secondaryTitles.>size() - 1, [ tempWPPostObj.>secondaryTitles = tempWPPostObj.>secondaryTitles.>slice( 0, secondaryTitles.>size() - 1 ) ] ) ] ) ; range( 0, secondaryTitles.>size() - 2 ).>do( [ :i | tempWPPostObj.>secondaryTitles[ i ].>name = secondaryTitles[ i ].>name ; tempWPPostObj.>secondaryTitles[ i ].>_order_ = secondaryTitles[ i ].>_order_ ; null ] ) ; null ] ) ; tempWPPostObj.>type = "" ; toBag( postMap.>content_pilot_print.>taxonomies.>poa_type_taxonomy ).>do( [ :ptype | tempWPPostObj.>type = ptype.>decode( 11 ) ] ) ; tempWPPostObj.>position = "" ; toBag( postMap.>content_pilot_print.>taxonomies.>poa_position_taxonomy ).>do( [ :pos | tempWPPostObj.>position = pos.>decode( 11 ) ] ) ; languages = { "ignore" : "" } ; templanguagesOrder = int( "-1" ) ; toBag( postMap.>content_pilot_print.>taxonomies.>poa_language_taxonomy ).>do( [ :lang | templanguagesOrder = int( int( templanguagesOrder ) + 1 ) ; tempValue = int( templanguagesOrder ) ; languages.get( tempValue, [ new( #cpcore/WordpressPost_languages ) ], true ).>_order_ = tempValue ; languages.get( tempValue ).>name = lang.>decode( 11 ) ; null ] ) ; if( tempWPPostObj.>languages.>faultIn().>size() < languages.>size() - 1, [ tempWPPostObj.>languages.>addAll( range( tempWPPostObj.>languages.>size(), languages.>size() - 2 ).>collect( [ :i | new( #cpcore/WordpressPost_languages ) ] ) ) ], [ if( tempWPPostObj.>languages.>size() > languages.>size() - 1, [ tempWPPostObj.>languages = tempWPPostObj.>languages.>slice( 0, languages.>size() - 1 ) ] ) ] ) ; range( 0, languages.>size() - 2 ).>do( [ :i | tempWPPostObj.>languages[ i ].>name = languages[ i ].>name ; tempWPPostObj.>languages[ i ].>_order_ = languages[ i ].>_order_ ; null ] ) ; tempFeaturedImg = first( toBag( postMap.>content_pilot_print.>media.>featured_image ) ).>full_url ; debug( "tempFeaturedImg >>> " + tempFeaturedImg ) ; temp_imageFile = if( ifEmpty( tempFeaturedImg, "" ) != "", [ #webconnections/ExternalWebConnection/getConnection( "GenerateDocument" ).impl.invoke( "DownloadResource", { "domainURL" : tempFeaturedImg.>encode( 11 ), "basicAuth" : basicAuth } ) ], null ) ; debug( "temp_imageFile.>contentType >>> " + temp_imageFile.>contentType ) ; if( temp_imageFile.>contentType.>indexOf( "image" ) != -1, [ debug( "temp_imageFile.>has file >>> true" ) ; tempWPPostObj.>images.>featuredImage = temp_imageFile ], [ debug( "temp_imageFile.>has file >>> false" ) ; tempWPPostObj.>images.>featuredImage = null ] ) ; if( temp_domainURL.>indexOf( "goldbergkohn" ) > 0 || temp_domainURL.>indexOf( "whistleblower" ) > 0, [ tempBioImg = postMap.>content_pilot_print_client_specific.>gk_pdf_image ], [ tempBioImg = first( toBag( postMap.>content_pilot_print.>media.>biography_image ) ).>full_url ] ) ; debug( "tempBioImg >>> " + tempBioImg ) ; temp_imageFile = if( ifEmpty( tempBioImg, "" ) != "", [ #webconnections/ExternalWebConnection/getConnection( "GenerateDocument" ).impl.invoke( "DownloadResource", { "domainURL" : tempBioImg.>encode( 11 ), "basicAuth" : basicAuth } ) ], null ) ; if( temp_imageFile.>contentType.>indexOf( "image" ) != -1, [ tempWPPostObj.>images.>biographyImage = temp_imageFile ], [ tempWPPostObj.>images.>biographyImage = null ] ) ; tempWPPostObj.>representativeExperience = postMap.>cpwebpilot.>poa_representative_experience_content ; if( temp_domainURL.>indexOf( "wnj" ) > 0, [ tempWPPostObj.>leadershipRTE = postMap.>cpwebpilot.>wnj_leadership ; tempWPPostObj.>speakingEngagementsRTE = postMap.>cpwebpilot.>wnj_speaking_engagement ; tempWPPostObj.>communityInvolvementRTE = postMap.>cpwebpilot.>wnj_community_affiliations ; tempWPPostObj.>awayFromWorkContent = postMap.>cpwebpilot.>wnj_outside_office ; tempWPPostObj.>clerkshipsRTE = postMap.>cpwebpilot.>wnj_clerk_experience ; tempWPPostObj.>teachingRTE = postMap.>cpwebpilot.>wnj_teaching_lecturing ; tempWPPostObj.>affilicationsRTE = postMap.>cpwebpilot.>wnj_civil_affiliations ; tempWPPostObj.>otherDistinctionsRTE = postMap.>cpwebpilot.>wnj_other_distinctions ; tempWPPostObj.>otherPublicationsRTE = postMap.>cpwebpilot.>wnj_other_publications ; tempWPPostObj.>professionalAffiliationsRTE = postMap.>cpwebpilot.>wnj_professional_affiliations ; null ] ) ; tempWPPostObj.>recentWork = postMap.>cpwebpilot.>fz_recent_work_content ; tempWPPostObj.>associationsRTE = postMap.>cpwebpilot.>poa_associations_content ; tempWPPostObj.>honorsRTE = postMap.>cpwebpilot.>poa_honors_and_awards_content ; tempWPPostObj.>pdfCustomStyles = postMap.>content_pilot_print_client_specific.>pdf_custom_styles ; if( temp_domainURL.>indexOf( "kaplan" ) > 0, [ tempWPPostObj.>clerkshipsRTE = postMap.>cpwebpilot.>kkr_clerkship ; tempWPPostObj.>otherPublicationsRTE = postMap.>cpwebpilot.>kkr_resources ; tempWPPostObj.>associationsRTE = postMap.>cpwebpilot.>kkr_organizations ; null ] ) ; if( temp_domainURL.>indexOf( "ccsb" ) > 0, [ tempWPPostObj.>clerkshipsRTE = postMap.>cpwebpilot.>ccsb_clerkship ; null ] ) ; if( temp_domainURL.>indexOf( "lugenbuhl" ) > 0 || temp_domainURL.>indexOf( "lawla" ) > 0, [ tempWPPostObj.>timeToRead = postMap.>cpwebpilot.>poa_time_to_read ; tempWPPostObj.>helpTitle = postMap.>cpwebpilot.>lugenbuhl_how_can_i_help_you_title ; tempWPPostObj.>helpContent = postMap.>cpwebpilot.>lugenbuhl_how_can_i_help_you_content ; tempWPPostObj.>introBlock = postMap.>cpwebpilot.>lugenbuhl_intro_text_box_content ; tempWPPostObj.>representativeExperience = postMap.>cpwebpilot.>lugenbuhl_experience_highlights_content ; tempWPPostObj.>strengthsRTE = postMap.>cpwebpilot.>lugenbuhl_technical_strengths_content ; null ] ) ; if( temp_domainURL.>indexOf( "kleinhornig" ) > 0, [ tempWPPostObj.>strengthsRTE = postMap.>cpwebpilot.>kh_rte_essential_strengths ; if( postMap.>type == "poa_developments", [ tempWPPostObj.>clientName = postMap.>cpwebpilot.>kh_text_client_name ] ) ; null ] ) ; offices = { "ignore" : "" } ; tempOfficesOrder = int( "-1" ) ; if( postMap.>type == "poa_office", [ tempOfficesOrder = int( int( tempOfficesOrder ) + 1 ) ; tempValue = int( tempOfficesOrder ) ; offices.get( tempValue, [ new( #cpcore/WordpressPost_offices ) ], true ).>_order_ = tempValue ; offices.get( tempValue ).>title = postMap.>title.>rendered ; offices.get( tempValue ).>address = postMap.>cpwebpilot.>poa_office_address ; offices.get( tempValue ).>suite = postMap.>cpwebpilot.>poa_office_suite ; offices.get( tempValue ).>city = postMap.>cpwebpilot.>poa_office_city ; offices.get( tempValue ).>state = postMap.>cpwebpilot.>poa_office_state ; offices.get( tempValue ).>zip = postMap.>cpwebpilot.>poa_office_zip ; offices.get( tempValue ).>country = postMap.>cpwebpilot.>poa_office_country ; offices.get( tempValue ).>hours = postMap.>cpwebpilot.>poa_office_hours ; offices.get( tempValue ).>phone = postMap.>cpwebpilot.>poa_office_phone ; offices.get( tempValue ).>fax = postMap.>cpwebpilot.>poa_office_fax ; offices.get( tempValue ).>email = postMap.>cpwebpilot.>poa_office_email ; offices.get( tempValue ).>mapLink = postMap.>cpwebpilot.>poa_office_map ; offices.get( tempValue ).>building = postMap.>cpwebpilot.>poa_office_building ; null ], [ if( postMap.>type == "poa_career" && temp_domainURL.>indexOf( "kleinhornig" ) > 0, [ toBag( postMap.>content_pilot_print.>relationships.>poa_office_to_poa_career ).>do( [ :off | tempOfficesOrder = int( int( tempOfficesOrder ) + 1 ) ; tempValue = int( tempOfficesOrder ) ; offices.get( tempValue, [ new( #cpcore/WordpressPost_offices ) ], true ).>_order_ = tempValue ; offices.get( tempValue ).>title = off ; null ] ) ] ) ; if( postMap.>type == "post" && temp_domainURL.>indexOf( "bracewell" ) > 0, [ toBag( postMap.>content_pilot_print_client_specific.>relationships.>post_to_poa_office ).>do( [ :off | tempOfficesOrder = int( int( tempOfficesOrder ) + 1 ) ; tempValue = int( tempOfficesOrder ) ; offices.get( tempValue, [ new( #cpcore/WordpressPost_offices ) ], true ).>_order_ = tempValue ; offices.get( tempValue ).>title = off.>post_title ; offices.get( tempValue ).>postLink = off.>link ; null ] ) ] ) ; if( postMap.>type == "poa_career" && temp_domainURL.>indexOf( "bakerlaw" ) > 0, [ toBag( postMap.>baker_hostetler.>relationships.>bh_summer_associate_office ).>do( [ :off | tempOfficesOrder = int( int( tempOfficesOrder ) + 1 ) ; tempValue = int( tempOfficesOrder ) ; offices.get( tempValue, [ new( #cpcore/WordpressPost_offices ) ], true ).>_order_ = tempValue ; offices.get( tempValue ).>title = off.>post_title ; offices.get( tempValue ).>postLink = off.>link ; offices.get( tempValue ).>contactName = off.>bh_recruiting_contact_name ; offices.get( tempValue ).>contactPosition = off.>bh_recruiting_contact_position ; offices.get( tempValue ).>contactEmail = off.>bh_recruiting_contact_email ; null ] ) ; toBag( postMap.>baker_hostetler.>relationships.>bh_recruiting_contact_offices ).>do( [ :off | tempOfficesOrder = int( int( tempOfficesOrder ) + 1 ) ; tempValue = int( tempOfficesOrder ) ; offices.get( tempValue, [ new( #cpcore/WordpressPost_offices ) ], true ).>_order_ = tempValue ; offices.get( tempValue ).>title = off.>post_title ; offices.get( tempValue ).>postLink = off.>link ; offices.get( tempValue ).>contactName = off.>contact_name ; offices.get( tempValue ).>contactEmail = off.>contact_email ; null ] ) ], [ toBag( postMap.>content_pilot_print.>offices ).>do( [ :off | tempOfficesOrder = int( int( tempOfficesOrder ) + 1 ) ; tempValue = int( tempOfficesOrder ) ; offices.get( tempValue, [ new( #cpcore/WordpressPost_offices ) ], true ).>_order_ = tempValue ; offices.get( tempValue ).>title = off.>poa_office_title ; offices.get( tempValue ).>postLink = off.>poa_office_link ; offices.get( tempValue ).>address = off.>poa_office_address ; offices.get( tempValue ).>suite = off.>poa_office_suite ; offices.get( tempValue ).>city = off.>poa_office_city ; offices.get( tempValue ).>state = off.>poa_office_state ; offices.get( tempValue ).>zip = off.>poa_office_zip ; offices.get( tempValue ).>country = off.>poa_office_country ; offices.get( tempValue ).>hours = off.>poa_office_hours ; offices.get( tempValue ).>phone = off.>poa_office_phone ; offices.get( tempValue ).>fax = off.>poa_office_fax ; offices.get( tempValue ).>email = off.>poa_office_email ; offices.get( tempValue ).>building = off.>poa_office_building ; null ] ) ] ) ] ) ; if( tempWPPostObj.>offices.>faultIn().>size() < offices.>size() - 1, [ tempWPPostObj.>offices.>addAll( range( tempWPPostObj.>offices.>size(), offices.>size() - 2 ).>collect( [ :i | new( #cpcore/WordpressPost_offices ) ] ) ) ], [ if( tempWPPostObj.>offices.>size() > offices.>size() - 1, [ tempWPPostObj.>offices = tempWPPostObj.>offices.>slice( 0, offices.>size() - 1 ) ] ) ] ) ; range( 0, offices.>size() - 2 ).>do( [ :i | tempWPPostObj.>offices[ i ].>title = offices[ i ].>title ; tempWPPostObj.>offices[ i ].>postLink = offices[ i ].>postLink ; tempWPPostObj.>offices[ i ].>address = offices[ i ].>address ; tempWPPostObj.>offices[ i ].>suite = offices[ i ].>suite ; tempWPPostObj.>offices[ i ].>city = offices[ i ].>city ; tempWPPostObj.>offices[ i ].>state = offices[ i ].>state ; tempWPPostObj.>offices[ i ].>zip = offices[ i ].>zip ; tempWPPostObj.>offices[ i ].>country = offices[ i ].>country ; tempWPPostObj.>offices[ i ].>hours = offices[ i ].>hours ; tempWPPostObj.>offices[ i ].>phone = offices[ i ].>phone ; tempWPPostObj.>offices[ i ].>fax = offices[ i ].>fax ; tempWPPostObj.>offices[ i ].>email = offices[ i ].>email ; tempWPPostObj.>offices[ i ].>mapLink = offices[ i ].>mapLink ; tempWPPostObj.>offices[ i ].>contactName = offices[ i ].>contactName ; tempWPPostObj.>offices[ i ].>contactPosition = offices[ i ].>contactPosition ; tempWPPostObj.>offices[ i ].>contactEmail = offices[ i ].>contactEmail ; tempWPPostObj.>offices[ i ].>building = offices[ i ].>building ; tempWPPostObj.>offices[ i ].>_order_ = offices[ i ].>_order_ ; null ] ) ; education = { "ignore" : "" } ; tempEducationOrder = int( "-1" ) ; toBag( postMap.>content_pilot_print.>groups.>poa_education_repeater ).>do( [ :sch | tempEducationOrder = int( int( tempEducationOrder ) + 1 ) ; tempValue = int( tempEducationOrder ) ; education.get( tempValue, [ new( #cpcore/WordpressPost_education ) ], true ).>_order_ = tempValue ; education.get( tempValue ).>school = sch.>poa_education_school ; education.get( tempValue ).>degree = sch.>poa_education_degree ; education.get( tempValue ).>year = sch.>poa_education_year ; education.get( tempValue ).>distinction = sch.>poa_education_distinction ; education.get( tempValue ).>honors = sch.>poa_education_honors ; if( temp_domainURL.>indexOf( "munck" ) > 0, [ education.get( tempValue ).>major = sch.>munck_wilson_mandala_poa_education_metabox_major ; null ] ) ; null ] ) ; if( tempWPPostObj.>education.>faultIn().>size() < education.>size() - 1, [ tempWPPostObj.>education.>addAll( range( tempWPPostObj.>education.>size(), education.>size() - 2 ).>collect( [ :i | new( #cpcore/WordpressPost_education ) ] ) ) ], [ if( tempWPPostObj.>education.>size() > education.>size() - 1, [ tempWPPostObj.>education = tempWPPostObj.>education.>slice( 0, education.>size() - 1 ) ] ) ] ) ; range( 0, education.>size() - 2 ).>do( [ :i | tempWPPostObj.>education[ i ].>school = education[ i ].>school ; tempWPPostObj.>education[ i ].>degree = education[ i ].>degree ; tempWPPostObj.>education[ i ].>year = education[ i ].>year ; tempWPPostObj.>education[ i ].>distinction = education[ i ].>distinction ; tempWPPostObj.>education[ i ].>honors = education[ i ].>honors ; tempWPPostObj.>education[ i ].>major = education[ i ].>major ; tempWPPostObj.>education[ i ].>_order_ = education[ i ].>_order_ ; null ] ) ; wildcards = { "ignore" : "" } ; tempWildcardsOrder = int( "-1" ) ; tempWildCards1 = toBag( postMap.>content_pilot_print.>groups.>poa_wildcard_content_repeater ) ; if( tempWildCards1.>size() > 0, [ tempWildCards1.>do( [ :wldcrd | tempWildcardsOrder = int( int( tempWildcardsOrder ) + 1 ) ; tempValue = int( tempWildcardsOrder ) ; wildcards.get( tempValue, [ new( #cpcore/WordpressPost_wildcards ) ], true ).>_order_ = tempValue ; wildcards.get( tempValue ).>title = wldcrd.>poa_wildcard_content_title.>decode( 11 ) ; wildcards.get( tempValue ).>wildcardContent = wldcrd.>poa_wildcard_content_content ; null ] ) ; null ] ) ; tempWildCards3 = toBag( postMap.>content_pilot_print.>groups.>poa_wildcard_content_main_repeater ) ; if( tempWildCards3.>size() > 0, [ tempWildCards3.>do( [ :wldcrd | tempWildcardsOrder = int( int( tempWildcardsOrder ) + 1 ) ; tempValue = int( tempWildcardsOrder ) ; wildcards.get( tempValue, [ new( #cpcore/WordpressPost_wildcards ) ], true ).>_order_ = tempValue ; wildcards.get( tempValue ).>title = wldcrd.>poa_wildcard_content_main_title.>decode( 11 ) ; wildcards.get( tempValue ).>wildcardContent = wldcrd.>poa_wildcard_content_main_content ; null ] ) ; null ] ) ; if( tempWPPostObj.>wildcards.>faultIn().>size() < wildcards.>size() - 1, [ tempWPPostObj.>wildcards.>addAll( range( tempWPPostObj.>wildcards.>size(), wildcards.>size() - 2 ).>collect( [ :i | new( #cpcore/WordpressPost_wildcards ) ] ) ) ], [ if( tempWPPostObj.>wildcards.>size() > wildcards.>size() - 1, [ tempWPPostObj.>wildcards = tempWPPostObj.>wildcards.>slice( 0, wildcards.>size() - 1 ) ] ) ] ) ; range( 0, wildcards.>size() - 2 ).>do( [ :i | tempWPPostObj.>wildcards[ i ].>title = wildcards[ i ].>title ; tempWPPostObj.>wildcards[ i ].>wildcardContent = wildcards[ i ].>wildcardContent ; tempWPPostObj.>wildcards[ i ].>_order_ = wildcards[ i ].>_order_ ; null ] ) ; if( temp_domainURL.>indexOf( "mcglinchey" ) > 0 || temp_domainURL.>indexOf( "wnj" ) > 0 || temp_domainURL.>indexOf( "goldbergkohn" ) > 0 || temp_domainURL.>indexOf( "lugenbuhl" ) > 0 || temp_domainURL.>indexOf( "lawla" ) > 0 || temp_domainURL.>indexOf( "bracewell" ) > 0, [ wildcardsSide = { "ignore" : "" } ; tempwildcardsSideOrder = int( "-1" ) ; tempwildcardsSide1 = toBag( postMap.>content_pilot_print.>groups.>poa_wildcard_content_side_repeater ) ; if( tempwildcardsSide1.>size() > 0, [ tempwildcardsSide1.>do( [ :wldcrd | tempwildcardsSideOrder = int( int( tempwildcardsSideOrder ) + 1 ) ; tempValue = int( tempwildcardsSideOrder ) ; wildcardsSide.get( tempValue, [ new( #cpcore/WordpressPost_wildcardsSide ) ], true ).>_order_ = tempValue ; wildcardsSide.get( tempValue ).>title = wldcrd.>poa_wildcard_content_side_title.>decode( 11 ) ; wildcardsSide.get( tempValue ).>wildcardContent = wldcrd.>poa_wildcard_content_side_content ; null ] ) ; null ] ) ; if( tempWPPostObj.>wildcardsSide.>faultIn().>size() < wildcardsSide.>size() - 1, [ tempWPPostObj.>wildcardsSide.>addAll( range( tempWPPostObj.>wildcardsSide.>size(), wildcardsSide.>size() - 2 ).>collect( [ :i | new( #cpcore/WordpressPost_wildcardsSide ) ] ) ) ], [ if( tempWPPostObj.>wildcardsSide.>size() > wildcardsSide.>size() - 1, [ tempWPPostObj.>wildcardsSide = tempWPPostObj.>wildcardsSide.>slice( 0, wildcardsSide.>size() - 1 ) ] ) ] ) ; range( 0, wildcardsSide.>size() - 2 ).>do( [ :i | tempWPPostObj.>wildcardsSide[ i ].>title = wildcardsSide[ i ].>title ; tempWPPostObj.>wildcardsSide[ i ].>wildcardContent = wildcardsSide[ i ].>wildcardContent ; tempWPPostObj.>wildcardsSide[ i ].>_order_ = wildcardsSide[ i ].>_order_ ; null ] ) ; null ] ) ; if( temp_domainURL.>indexOf( "sussman" ) > 0, [ wildcardsImage = { "ignore" : "" } ; tempwildcardsImageOrder = int( "-1" ) ; tempwildcardsImage1 = toBag( postMap.>content_pilot_print.>groups.>sussman_shank_wildcard_image_group ) ; if( tempwildcardsImage1.>size() > 0, [ tempwildcardsImage1.>do( [ :wldcrd | tempwildcardsImageOrder = int( int( tempwildcardsImageOrder ) + 1 ) ; tempValue = int( tempwildcardsImageOrder ) ; wildcardsImage.get( tempValue, [ new( #cpcore/WordpressPost_wildcardsImage ) ], true ).>_order_ = tempValue ; wildcardsImage.get( tempValue ).>title = wldcrd.>sussman_shank_wildcard_image_title.>decode( 11 ) ; wildcardsImage.get( tempValue ).>wildcardContent = wldcrd.>sussman_shank_wildcard_image_content ; tempWCImage = first( toBag( wldcrd.>sussman_shank_wildcard_image_image ) ).>full_url ; debug( "tempWCImage >>> " + tempWCImage ) ; temp_imageFile = if( ifEmpty( tempWCImage, "" ) != "", [ #webconnections/ExternalWebConnection/getConnection( "GenerateDocument" ).impl.invoke( "DownloadResource", { "domainURL" : tempWCImage.>encode( 11 ), "basicAuth" : basicAuth } ) ], null ) ; if( temp_imageFile.>contentType.>indexOf( "image" ) != -1, [ wildcardsImage.get( tempValue ).>wildcardImage = temp_imageFile ], [ wildcardsImage.get( tempValue ).>wildcardImage = null ] ) ; null ] ) ; null ] ) ; if( tempWPPostObj.>wildcardsImage.>faultIn().>size() < wildcardsImage.>size() - 1, [ tempWPPostObj.>wildcardsImage.>addAll( range( tempWPPostObj.>wildcardsImage.>size(), wildcardsImage.>size() - 2 ).>collect( [ :i | new( #cpcore/WordpressPost_wildcardsImage ) ] ) ) ], [ if( tempWPPostObj.>wildcardsImage.>size() > wildcardsImage.>size() - 1, [ tempWPPostObj.>wildcardsImage = tempWPPostObj.>wildcardsImage.>slice( 0, wildcardsImage.>size() - 1 ) ] ) ] ) ; range( 0, wildcardsImage.>size() - 2 ).>do( [ :i | tempWPPostObj.>wildcardsImage[ i ].>title = wildcardsImage[ i ].>title ; tempWPPostObj.>wildcardsImage[ i ].>wildcardContent = wildcardsImage[ i ].>wildcardContent ; tempWPPostObj.>wildcardsImage[ i ].>wildcardImage = wildcardsImage[ i ].>wildcardImage ; tempWPPostObj.>wildcardsImage[ i ].>_order_ = wildcardsImage[ i ].>_order_ ; null ] ) ; null ] ) ; if( temp_domainURL.>indexOf( "sussman" ) > 0, [ wildcards = { "ignore" : "" } ; tempWildcardsOrder = int( "-1" ) ; tempWildCards1 = toBag( postMap.>content_pilot_print.>groups.>sussman_shank_wildcard_group ) ; if( tempWildCards1.>size() > 0, [ tempWildCards1.>do( [ :wldcrd | tempWildcardsOrder = int( int( tempWildcardsOrder ) + 1 ) ; tempValue = int( tempWildcardsOrder ) ; wildcards.get( tempValue, [ new( #cpcore/WordpressPost_wildcards ) ], true ).>_order_ = tempValue ; wildcards.get( tempValue ).>title = wldcrd.>sussman_shank_wildcard_title.>decode( 11 ) ; wildcards.get( tempValue ).>wildcardContent = wldcrd.>sussman_shank_wildcard_content ; tempWCImage = first( toBag( wldcrd.>sussman_shank_wildcard_image ) ).>full_url ; debug( "tempWCImage >>> " + tempWCImage ) ; temp_imageFile = if( ifEmpty( tempWCImage, "" ) != "", [ #webconnections/ExternalWebConnection/getConnection( "GenerateDocument" ).impl.invoke( "DownloadResource", { "domainURL" : tempWCImage.>encode( 11 ), "basicAuth" : basicAuth } ) ], null ) ; if( temp_imageFile.>contentType.>indexOf( "image" ) != -1, [ wildcards.get( tempValue ).>wildcardImage = temp_imageFile ], [ wildcards.get( tempValue ).>wildcardImage = null ] ) ; null ] ) ; null ] ) ; if( tempWPPostObj.>wildcards.>faultIn().>size() < wildcards.>size() - 1, [ tempWPPostObj.>wildcards.>addAll( range( tempWPPostObj.>wildcards.>size(), wildcards.>size() - 2 ).>collect( [ :i | new( #cpcore/WordpressPost_wildcards ) ] ) ) ], [ if( tempWPPostObj.>wildcards.>size() > wildcards.>size() - 1, [ tempWPPostObj.>wildcards = tempWPPostObj.>wildcards.>slice( 0, wildcards.>size() - 1 ) ] ) ] ) ; range( 0, wildcards.>size() - 2 ).>do( [ :i | tempWPPostObj.>wildcards[ i ].>title = wildcards[ i ].>title ; tempWPPostObj.>wildcards[ i ].>wildcardContent = wildcards[ i ].>wildcardContent ; tempWPPostObj.>wildcards[ i ].>wildcardImage = wildcards[ i ].>wildcardImage ; tempWPPostObj.>wildcards[ i ].>_order_ = wildcards[ i ].>_order_ ; null ] ) ; wildcardsSide = { "ignore" : "" } ; tempwildcardsSideOrder = int( "-1" ) ; tempwildcardsSide1 = toBag( postMap.>content_pilot_print.>groups.>sussman_shank_wildcard_sidebar_group ) ; if( tempwildcardsSide1.>size() > 0, [ tempwildcardsSide1.>do( [ :wldcrd | tempwildcardsSideOrder = int( int( tempwildcardsSideOrder ) + 1 ) ; tempValue = int( tempwildcardsSideOrder ) ; wildcardsSide.get( tempValue, [ new( #cpcore/WordpressPost_wildcardsSide ) ], true ).>_order_ = tempValue ; wildcardsSide.get( tempValue ).>title = wldcrd.>sussman_shank_wildcard_sidebar_title.>decode( 11 ) ; wildcardsSide.get( tempValue ).>wildcardContent = wldcrd.>sussman_shank_wildcard_sidebar_content ; tempWCImage = first( toBag( wldcrd.>sussman_shank_wildcard_sidebar_image ) ).>full_url ; debug( "tempWCImage >>> " + tempWCImage ) ; temp_imageFile = if( ifEmpty( tempWCImage, "" ) != "", [ #webconnections/ExternalWebConnection/getConnection( "GenerateDocument" ).impl.invoke( "DownloadResource", { "domainURL" : tempWCImage.>encode( 11 ), "basicAuth" : basicAuth } ) ], null ) ; if( temp_imageFile.>contentType.>indexOf( "image" ) != -1, [ wildcards.get( tempValue ).>wildcardImage = temp_imageFile ], [ wildcards.get( tempValue ).>wildcardImage = null ] ) ; null ] ) ; null ] ) ; if( tempWPPostObj.>wildcardsSide.>faultIn().>size() < wildcardsSide.>size() - 1, [ tempWPPostObj.>wildcardsSide.>addAll( range( tempWPPostObj.>wildcardsSide.>size(), wildcardsSide.>size() - 2 ).>collect( [ :i | new( #cpcore/WordpressPost_wildcardsSide ) ] ) ) ], [ if( tempWPPostObj.>wildcardsSide.>size() > wildcardsSide.>size() - 1, [ tempWPPostObj.>wildcardsSide = tempWPPostObj.>wildcardsSide.>slice( 0, wildcardsSide.>size() - 1 ) ] ) ] ) ; range( 0, wildcardsSide.>size() - 2 ).>do( [ :i | tempWPPostObj.>wildcardsSide[ i ].>title = wildcardsSide[ i ].>title ; tempWPPostObj.>wildcardsSide[ i ].>wildcardContent = wildcardsSide[ i ].>wildcardContent ; tempWPPostObj.>wildcardsSide[ i ].>wildcardImage = wildcardsSide[ i ].>wildcardImage ; tempWPPostObj.>wildcardsSide[ i ].>_order_ = wildcardsSide[ i ].>_order_ ; null ] ) ; null ] ) ; if( temp_domainURL.>indexOf( "sussman" ) > 0, [ quotesArray = { "ignore" : "" } ; tempquotesArrayOrder = int( "-1" ) ; tempquotesArray1 = toBag( postMap.>content_pilot_print.>groups.>sussman_shank_quote_group ) ; if( tempquotesArray1.>size() > 0, [ tempquotesArray1.>do( [ :tempquote | tempquotesArrayOrder = int( int( tempquotesArrayOrder ) + 1 ) ; tempValue = int( tempquotesArrayOrder ) ; quotesArray.get( tempValue, [ new( #cpcore/WordpressPost_quotesArray ) ], true ).>_order_ = tempValue ; quotesArray.get( tempValue ).>quoteRTE = tempquote.>sussman_shank_quote_content ; null ] ) ; null ] ) ; if( tempWPPostObj.>quotesArray.>faultIn().>size() < quotesArray.>size() - 1, [ tempWPPostObj.>quotesArray.>addAll( range( tempWPPostObj.>quotesArray.>size(), quotesArray.>size() - 2 ).>collect( [ :i | new( #cpcore/WordpressPost_quotesArray ) ] ) ) ], [ if( tempWPPostObj.>quotesArray.>size() > quotesArray.>size() - 1, [ tempWPPostObj.>quotesArray = tempWPPostObj.>quotesArray.>slice( 0, quotesArray.>size() - 1 ) ] ) ] ) ; range( 0, quotesArray.>size() - 2 ).>do( [ :i | tempWPPostObj.>quotesArray[ i ].>quoteRTE = quotesArray[ i ].>quoteRTE ; tempWPPostObj.>quotesArray[ i ].>_order_ = quotesArray[ i ].>_order_ ; null ] ) ; null ] ) ; barAdmissions = { "ignore" : "" } ; tempbarAdmissionsOrder = int( "-1" ) ; barAdmissionsTaxonomy = toBag( postMap.>content_pilot_print.>taxonomies.>poa_bar_admission_taxonomy ) ; barAdmissionsArray = toBag( postMap.>content_pilot_print.>groups.>poa_bar_admissions_repeater ) ; barAdmissionType = "" ; availableBarAdmissions = null ; if( barAdmissionsTaxonomy.>size() > 0, [ availableBarAdmissions = barAdmissionsTaxonomy ; barAdmissionType = "taxonomy" ], [ if( barAdmissionsArray.>size() > 0, [ availableBarAdmissions = barAdmissionsArray ; barAdmissionType = "array" ], [ ] ) ] ) ; availableBarAdmissions.>do( [ :badm | tempbarAdmissionsOrder = int( int( tempbarAdmissionsOrder ) + 1 ) ; tempValue = int( tempbarAdmissionsOrder ) ; barAdmissions.get( tempValue, [ new( #cpcore/WordpressPost_barAdmissions ) ], true ).>_order_ = tempValue ; if( barAdmissionType == "taxonomy", [ barAdmissions.get( tempValue ).>name = badm.>decode( 11 ) ] ) ; if( barAdmissionType == "array", [ barAdmissions.get( tempValue ).>name = badm.>poa_bar_admissions_state.>decode( 11 ) ; barAdmissions.get( tempValue ).>year = badm.>poa_bar_admissions_year.>decode( 11 ) ; barAdmissions.get( tempValue ).>status = badm.>poa_bar_admissions_status.>decode( 11 ) ; null ] ) ; null ] ) ; if( tempWPPostObj.>barAdmissions.>faultIn().>size() < barAdmissions.>size() - 1, [ tempWPPostObj.>barAdmissions.>addAll( range( tempWPPostObj.>barAdmissions.>size(), barAdmissions.>size() - 2 ).>collect( [ :i | new( #cpcore/WordpressPost_barAdmissions ) ] ) ) ], [ if( tempWPPostObj.>barAdmissions.>size() > barAdmissions.>size() - 1, [ tempWPPostObj.>barAdmissions = tempWPPostObj.>barAdmissions.>slice( 0, barAdmissions.>size() - 1 ) ] ) ] ) ; range( 0, barAdmissions.>size() - 2 ).>do( [ :i | tempWPPostObj.>barAdmissions[ i ].>name = barAdmissions[ i ].>name ; tempWPPostObj.>barAdmissions[ i ].>year = barAdmissions[ i ].>year ; tempWPPostObj.>barAdmissions[ i ].>status = barAdmissions[ i ].>status ; tempWPPostObj.>barAdmissions[ i ].>_order_ = barAdmissions[ i ].>_order_ ; null ] ) ; courtAdmissions = { "ignore" : "" } ; tempbarcourtAdmissionsOrder = int( "-1" ) ; courtAdmissionsTaxonomy = toBag( postMap.>content_pilot_print.>taxonomies.>poa_court_admission_taxonomy ) ; courtAdmissionsArray = toBag( postMap.>content_pilot_print.>groups.>poa_court_admissions_repeater ) ; courtAdmissionType = "" ; availableCourtAdmissions = null ; if( courtAdmissionsTaxonomy.>size() > 0, [ availableCourtAdmissions = courtAdmissionsTaxonomy ; courtAdmissionType = "taxonomy" ], [ if( courtAdmissionsArray.>size() > 0, [ availableCourtAdmissions = courtAdmissionsArray ; courtAdmissionType = "array" ], [ ] ) ] ) ; availableCourtAdmissions.>do( [ :cadm | tempbarcourtAdmissionsOrder = int( int( tempbarcourtAdmissionsOrder ) + 1 ) ; tempValue = int( tempbarcourtAdmissionsOrder ) ; courtAdmissions.get( tempValue, [ new( #cpcore/WordpressPost_courtAdmissions ) ], true ).>_order_ = tempValue ; if( courtAdmissionType == "taxonomy", [ courtAdmissions.get( tempValue ).>name = cadm.>decode( 11 ) ] ) ; if( courtAdmissionType == "array", [ courtAdmissions.get( tempValue ).>name = cadm.>poa_court_admissions_jurisdiction.>decode( 11 ) ; courtAdmissions.get( tempValue ).>district = cadm.>poa_court_admissions_district.>decode( 11 ) ; courtAdmissions.get( tempValue ).>state = cadm.>poa_court_admissions_state.>decode( 11 ) ; courtAdmissions.get( tempValue ).>year = cadm.>poa_court_admissions_year.>decode( 11 ) ] ) ; null ] ) ; if( tempWPPostObj.>courtAdmissions.>faultIn().>size() < courtAdmissions.>size() - 1, [ tempWPPostObj.>courtAdmissions.>addAll( range( tempWPPostObj.>courtAdmissions.>size(), courtAdmissions.>size() - 2 ).>collect( [ :i | new( #cpcore/WordpressPost_courtAdmissions ) ] ) ) ], [ if( tempWPPostObj.>courtAdmissions.>size() > courtAdmissions.>size() - 1, [ tempWPPostObj.>courtAdmissions = tempWPPostObj.>courtAdmissions.>slice( 0, courtAdmissions.>size() - 1 ) ] ) ] ) ; range( 0, courtAdmissions.>size() - 2 ).>do( [ :i | tempWPPostObj.>courtAdmissions[ i ].>name = courtAdmissions[ i ].>name ; tempWPPostObj.>courtAdmissions[ i ].>district = courtAdmissions[ i ].>district ; tempWPPostObj.>courtAdmissions[ i ].>state = courtAdmissions[ i ].>state ; tempWPPostObj.>courtAdmissions[ i ].>year = courtAdmissions[ i ].>year ; tempWPPostObj.>courtAdmissions[ i ].>_order_ = courtAdmissions[ i ].>_order_ ; null ] ) ; relationshipPractice = { "ignore" : "" } ; temprelationshipPracticeOrder = int( "-1" ) ; temp_relationshipPrac = null ; if( temp_domainURL.>indexOf( "deflaw" ) > 0 || temp_domainURL.>indexOf( "ebglaw" ) > 0 || temp_domainURL.>indexOf( "advisors.ebglaw" ) > 0 || temp_domainURL.>indexOf( "ebgadvisors" ) > 0 || temp_domainURL.>indexOf( "wnj" ) > 0 || temp_domainURL.>indexOf( "dgilbert" ) > 0 || temp_domainURL.>indexOf( "thompsonhine" ) > 0 || temp_domainURL.>indexOf( "much" ) > 0 || temp_domainURL.>indexOf( "kaplan" ) > 0 || temp_domainURL.>indexOf( "liskow" ) > 0 || temp_domainURL.>indexOf( "f3law" ) > 0 || temp_domainURL.>indexOf( "groom" ) > 0 || temp_domainURL.>indexOf( "merchant" ) > 0 || temp_domainURL.>indexOf( "bakerlaw" ) > 0 || temp_domainURL.>indexOf( "bakeralum" ) > 0 || temp_domainURL.>indexOf( "goldbergkohn" ) > 0 || temp_domainURL.>indexOf( "kleinhornig" ) > 0 || temp_domainURL.>indexOf( "bracewell" ) > 0 || temp_domainURL.>indexOf( "lathrop" ) > 0 || temp_domainURL.>indexOf( "mcglinchey" ) > 0 || temp_domainURL.>indexOf( "nge" ) > 0, [ if( temp_domainURL.>indexOf( "thompsonhine" ) > 0, [ if( postMap.>type == "poa_person", [ temp_relationshipPrac = toBag( postMap.>thompsonhine.>relationships.>poa_practice_to_poa_person ) ] ) ; if( postMap.>type == "poa_industry", [ temp_relationshipPrac = toBag( postMap.>content_pilot_print.>relationships.>poa_industry_to_poa_practice ) ] ) ; if( postMap.>type == "poa_practice", [ temp_relationshipPrac = toBag( postMap.>thompsonhine.>relationships.>poa_practice_to_poa_practice ) ] ) ; if( postMap.>type == "poa_firm", [ temp_relationshipPrac = toBag( postMap.>content_pilot_print.>relationships.>poa_firm_to_poa_practice ) ] ) ; if( postMap.>type == "poa_office", [ temp_relationshipPrac = toBag( postMap.>content_pilot_print.>relationships.>poa_office_to_poa_practice ) ] ) ; if( postMap.>type == "post", [ temp_relationshipPrac = toBag( postMap.>content_pilot_print.>relationships.>post_to_poa_practice ) ] ) ; null ] ) ; if( temp_domainURL.>indexOf( "dgilbert" ) > 0, [ if( postMap.>type == "poa_person", [ temp_relationshipPrac = toBag( postMap.>davis_gilbert.>relationships.>poa_practice_to_poa_person ) ] ) ; null ] ) ; if( temp_domainURL.>indexOf( "deflaw" ) > 0, [ if( postMap.>type == "poa_practice", [ temp_relationshipPrac = toBag( postMap.>drew_eckl.>relationships.>poa_practice_to_poa_practice ) ] ) ; if( postMap.>type == "poa_person", [ temp_relationshipPrac = toBag( postMap.>drew_eckl.>relationships.>poa_practice_to_poa_person ) ] ) ; null ] ) ; if( temp_domainURL.>indexOf( "ebglaw" ) > 0, [ if( postMap.>type == "poa_person", [ temp_relationshipPrac = toBag( postMap.>ebglaw.>relationships.>poa_practice_to_poa_person ) ] ) ; if( postMap.>type == "poa_practice", [ temp_relationshipPrac = toBag( postMap.>ebglaw.>relationships.>poa_practice_to_poa_practice ) ] ) ; if( postMap.>type == "poa_industry", [ temp_relationshipPrac = toBag( postMap.>ebglaw.>relationships.>poa_industry_to_poa_practice ) ] ) ; if( postMap.>type == "ebg_trending_issue", [ temp_relationshipPrac = toBag( postMap.>ebglaw.>relationships.>ebg_trending_issue_to_poa_practice ) ] ) ; if( postMap.>type == "poa_firm", [ ] ) ; if( postMap.>type == "poa_office", [ ] ) ; if( postMap.>type == "poa_career", [ ] ) ; if( postMap.>type == "post", [ temp_relationshipPrac = toBag( postMap.>ebglaw.>relationships.>post_to_poa_practice ) ] ) ; if( postMap.>type == "page", [ temp_relationshipPrac = toBag( postMap.>ebglaw.>relationships.>page_to_poa_practice ) ] ) ; null ] ) ; if( temp_domainURL.>indexOf( "wnj" ) > 0, [ if( postMap.>type == "poa_person", [ temp_relationshipPrac = toBag( postMap.>wnj.>relationships.>poa_practice_to_poa_person ) ] ) ; if( postMap.>type == "poa_practice", [ temp_relationshipPrac = toBag( postMap.>wnj.>relationships.>poa_practice_to_poa_practice ) ] ) ; if( postMap.>type == "poa_industry", [ temp_relationshipPrac = toBag( postMap.>wnj.>relationships.>poa_industry_to_poa_practice ) ] ) ; if( postMap.>type == "poa_firm", [ ] ) ; if( postMap.>type == "poa_office", [ ] ) ; if( postMap.>type == "poa_career", [ ] ) ; if( postMap.>type == "post", [ temp_relationshipPrac = toBag( postMap.>wnj.>relationships.>post_to_poa_practice ) ] ) ; if( postMap.>type == "page", [ temp_relationshipPrac = toBag( postMap.>wnj.>relationships.>page_to_poa_practice ) ] ) ; null ] ) ; if( temp_domainURL.>indexOf( "bakerlaw" ) > 0, [ if( postMap.>type == "poa_person", [ temp_relationshipPrac = toBag( postMap.>baker_hostetler.>relationships.>poa_practice_to_poa_person ) ] ) ; if( postMap.>type == "poa_practice", [ temp_relationshipPrac = toBag( postMap.>baker_hostetler.>relationships.>poa_practice_to_poa_practice ) ] ) ; if( postMap.>type == "poa_industry", [ temp_relationshipPrac = toBag( postMap.>baker_hostetler.>relationships.>poa_industry_to_poa_practice ) ] ) ; if( postMap.>type == "poa_firm", [ ] ) ; if( postMap.>type == "poa_office", [ ] ) ; if( postMap.>type == "poa_career", [ ] ) ; if( postMap.>type == "post", [ temp_relationshipPrac = toBag( postMap.>baker_hostetler.>relationships.>post_to_poa_practice ) ] ) ; if( postMap.>type == "page", [ temp_relationshipPrac = toBag( postMap.>baker_hostetler.>relationships.>page_to_poa_practice ) ] ) ; null ] ) ; if( temp_domainURL.>indexOf( "bakeralum" ) > 0, [ if( postMap.>type == "poa_person", [ temp_relationshipPrac = toBag( postMap.>content_pilot_print.>taxonomies.>bh_alumni_practice ) ] ) ; null ] ) ; if( temp_domainURL.>indexOf( "much" ) > 0, [ if( postMap.>type == "poa_person", [ temp_relationshipPrac = toBag( postMap.>much_shelist.>relationships.>poa_practice_to_poa_person ) ] ) ; if( postMap.>type == "poa_practice", [ temp_relationshipPrac = toBag( postMap.>much_shelist.>relationships.>poa_practice_to_poa_practice ) ] ) ; if( postMap.>type == "poa_industry", [ temp_relationshipPrac = toBag( postMap.>much_shelist.>relationships.>poa_industry_to_poa_practice ) ] ) ; if( postMap.>type == "poa_firm", [ ] ) ; if( postMap.>type == "poa_office", [ ] ) ; if( postMap.>type == "poa_career", [ ] ) ; if( postMap.>type == "post", [ temp_relationshipPrac = toBag( postMap.>much_shelist.>relationships.>post_to_poa_practice ) ] ) ; if( postMap.>type == "page", [ temp_relationshipPrac = toBag( postMap.>much_shelist.>relationships.>page_to_poa_practice ) ] ) ; null ] ) ; if( temp_domainURL.>indexOf( "merchant" ) > 0, [ if( postMap.>type == "poa_person", [ temp_relationshipPrac = toBag( postMap.>merchant_gould.>relationships.>poa_practice_to_poa_person ) ] ) ; if( postMap.>type == "poa_practice", [ temp_relationshipPrac = toBag( postMap.>merchant_gould.>relationships.>poa_practice_to_poa_practice ) ] ) ; if( postMap.>type == "poa_industry", [ temp_relationshipPrac = toBag( postMap.>merchant_gould.>relationships.>poa_industry_to_poa_practice ) ] ) ; if( postMap.>type == "poa_firm", [ ] ) ; if( postMap.>type == "poa_office", [ ] ) ; if( postMap.>type == "poa_career", [ ] ) ; if( postMap.>type == "post", [ temp_relationshipPrac = toBag( postMap.>merchant_gould.>relationships.>post_to_poa_practice ) ] ) ; if( postMap.>type == "page", [ temp_relationshipPrac = toBag( postMap.>merchant_gould.>relationships.>page_to_poa_practice ) ] ) ; null ] ) ; if( temp_domainURL.>indexOf( "kaplan" ) > 0, [ if( postMap.>type == "poa_person", [ temp_relationshipPrac = toBag( postMap.>kaplan_kirsch.>relationships.>primary_practice ) ; temp_relationshipPrac.do( [ :el | el.post_category = { "Primary" } ] ) ; temp_relationshipPrac += toBag( postMap.>kaplan_kirsch.>relationships.>poa_practice_to_poa_person ) ] ) ; if( postMap.>type == "poa_practice", [ temp_relationshipPrac = toBag( postMap.>kaplan_kirsch.>relationships.>poa_practice_to_poa_practice ) ] ) ; if( postMap.>type == "poa_industry", [ temp_relationshipPrac = toBag( postMap.>kaplan_kirsch.>relationships.>poa_industry_to_poa_practice ) ] ) ; if( postMap.>type == "poa_office", [ temp_relationshipPrac = toBag( postMap.>kaplan_kirsch.>relationships.>poa_office_to_poa_practice ) ] ) ; if( postMap.>type == "poa_firm", [ temp_relationshipPrac = toBag( postMap.>kaplan_kirsch.>relationships.>poa_firm_to_poa_practice ) ] ) ; if( postMap.>type == "post", [ temp_relationshipPrac = toBag( postMap.>kaplan_kirsch.>relationships.>post_to_poa_practice ) ] ) ; if( postMap.>type == "page", [ temp_relationshipPrac = toBag( postMap.>kaplan_kirsch.>relationships.>page_to_poa_practice ) ] ) ; if( postMap.>type == "kkr_project", [ temp_relationshipPrac = toBag( postMap.>kaplan_kirsch.>relationships.>poa_practice_to_kkr_project ) ] ) ; null ] ) ; if( temp_domainURL.>indexOf( "liskow" ) > 0, [ if( postMap.>type == "poa_person", [ temp_relationshipPrac = toBag( postMap.>liskow_lewis.>relationships.>poa_practice_to_poa_person ) ] ) ; if( postMap.>type == "poa_practice", [ temp_relationshipPrac = toBag( postMap.>liskow_lewis.>relationships.>poa_practice_to_poa_practice ) ] ) ; if( postMap.>type == "poa_industry", [ temp_relationshipPrac = toBag( postMap.>liskow_lewis.>relationships.>poa_industry_to_poa_practice ) ] ) ; if( postMap.>type == "poa_office", [ temp_relationshipPrac = toBag( postMap.>liskow_lewis.>relationships.>poa_office_to_poa_practice ) ] ) ; if( postMap.>type == "poa_firm", [ temp_relationshipPrac = toBag( postMap.>liskow_lewis.>relationships.>poa_firm_to_poa_practice ) ] ) ; if( postMap.>type == "post", [ temp_relationshipPrac = toBag( postMap.>liskow_lewis.>relationships.>post_to_poa_practice ) ] ) ; if( postMap.>type == "page", [ temp_relationshipPrac = toBag( postMap.>liskow_lewis.>relationships.>page_to_poa_practice ) ] ) ; null ] ) ; if( temp_domainURL.>indexOf( "mcglinchey" ) > 0, [ if( postMap.>type == "poa_person", [ temp_relationshipPrac = toBag( postMap.>mcglinchey.>relationships.>poa_practice_to_poa_person ) ] ) ; null ] ) ; if( temp_domainURL.>indexOf( "f3law" ) > 0, [ if( postMap.>type == "poa_person", [ temp_relationshipPrac = toBag( postMap.>f3law.>relationships.>poa_practice_to_poa_person_group_chairs ) ] ) ; if( postMap.>type == "poa_practice", [ temp_relationshipPrac = toBag( postMap.>f3law.>relationships.>poa_practice_to_poa_practice ) ] ) ; if( postMap.>type == "poa_industry", [ temp_relationshipPrac = toBag( postMap.>f3law.>relationships.>poa_industry_to_poa_practice ) ] ) ; if( postMap.>type == "poa_office", [ temp_relationshipPrac = toBag( postMap.>f3law.>relationships.>poa_office_to_poa_practice ) ] ) ; if( postMap.>type == "poa_firm", [ temp_relationshipPrac = toBag( postMap.>f3law.>relationships.>poa_firm_to_poa_practice ) ] ) ; if( postMap.>type == "poa_client", [ temp_relationshipPrac = toBag( postMap.>f3law.>relationships.>poa_client_to_poa_practice ) ] ) ; if( postMap.>type == "post", [ temp_relationshipPrac = toBag( postMap.>f3law.>relationships.>post_to_poa_practice ) ] ) ; if( postMap.>type == "page", [ temp_relationshipPrac = toBag( postMap.>f3law.>relationships.>page_to_poa_practice ) ] ) ; null ] ) ; if( temp_domainURL.>indexOf( "advisors.ebglaw" ) > 0 || temp_domainURL.>indexOf( "ebgadvisors" ) > 0, [ if( postMap.>type == "poa_person", [ temp_relationshipPrac = toBag( postMap.>ebgadvisors.>relationships.>poa_practice_to_poa_person ) ] ) ; if( postMap.>type == "poa_practice", [ temp_relationshipPrac = toBag( postMap.>ebgadvisors.>relationships.>poa_practice_to_poa_practice ) ] ) ; if( postMap.>type == "poa_industry", [ temp_relationshipPrac = toBag( postMap.>ebgadvisors.>relationships.>poa_industry_to_poa_practice ) ] ) ; if( postMap.>type == "ebg_trending_issue", [ temp_relationshipPrac = toBag( postMap.>ebgadvisors.>relationships.>ebg_trending_issue_to_poa_practice ) ] ) ; if( postMap.>type == "poa_firm", [ ] ) ; if( postMap.>type == "poa_office", [ ] ) ; if( postMap.>type == "poa_career", [ ] ) ; if( postMap.>type == "post", [ temp_relationshipPrac = toBag( postMap.>ebgadvisors.>relationships.>post_to_poa_practice ) ] ) ; if( postMap.>type == "page", [ temp_relationshipPrac = toBag( postMap.>ebgadvisors.>relationships.>page_to_poa_practice ) ] ) ; null ] ) ; if( temp_domainURL.>indexOf( "groom" ) > 0, [ if( postMap.>type == "poa_person", [ temp_relationshipPrac = toBag( postMap.>content_pilot_print.>relationships.>poa_practice_to_poa_person ) ] ) ; if( postMap.>type == "poa_industry", [ temp_relationshipPrac = toBag( postMap.>content_pilot_print.>relationships.>poa_industry_to_poa_practice ) ] ) ; if( postMap.>type == "poa_practice", [ temp_relationshipPrac = toBag( postMap.>content_pilot_print.>relationships.>poa_practice_to_poa_practice ) ] ) ; if( postMap.>type == "poa_firm", [ temp_relationshipPrac = toBag( postMap.>content_pilot_print.>relationships.>poa_firm_to_poa_practice ) ] ) ; if( postMap.>type == "poa_office", [ temp_relationshipPrac = toBag( postMap.>content_pilot_print.>relationships.>poa_office_to_poa_practice ) ] ) ; if( postMap.>type == "post", [ temp_relationshipPrac = toBag( postMap.>groom_law.>relationships.>post_to_poa_practice ) ] ) ; null ] ) ; if( temp_domainURL.>indexOf( "goldbergkohn" ) > 0, [ if( postMap.>type == "poa_person", [ temp_relationshipPrac = toBag( postMap.>content_pilot_print_client_specific.>relationships.>poa_practice_to_poa_person ) ] ) ; if( postMap.>type == "poa_practice", [ temp_relationshipPrac = toBag( postMap.>content_pilot_print_client_specific.>relationships.>poa_practice_to_poa_practice ) ] ) ; null ] ) ; if( temp_domainURL.>indexOf( "kleinhornig" ) > 0 || temp_domainURL.>indexOf( "lathrop" ) > 0 || temp_domainURL.>indexOf( "nge" ) > 0, [ if( postMap.>type == "post", [ temp_relationshipPrac = toBag( postMap.>content_pilot_print_client_specific.>relationships.>post_to_poa_practice ) ] ) ; if( postMap.>type == "poa_developments", [ temp_relationshipPrac = toBag( postMap.>content_pilot_print_client_specific.>relationships.>poa_developments_to_poa_practice ) ] ) ; if( postMap.>type == "poa_person", [ temp_relationshipPrac = toBag( postMap.>content_pilot_print_client_specific.>relationships.>poa_practice_to_poa_person ) ] ) ; if( postMap.>type == "poa_practice", [ temp_relationshipPrac = toBag( postMap.>content_pilot_print_client_specific.>relationships.>poa_practice_to_poa_practice ) ] ) ; if( postMap.>type == "poa_industry", [ temp_relationshipPrac = toBag( postMap.>content_pilot_print_client_specific.>relationships.>poa_industry_to_poa_practice ) ] ) ; null ] ) ; if( temp_domainURL.>indexOf( "bracewell" ) > 0, [ if( postMap.>type == "poa_person", [ temp_relationshipPrac = toBag( postMap.>content_pilot_print_client_specific.>relationships.>poa_practice_to_poa_person ) ] ) ; if( postMap.>type == "post", [ temp_relationshipPrac = toBag( postMap.>content_pilot_print_client_specific.>relationships.>post_to_poa_practice ) ] ) ; if( postMap.>type == "br_resources", [ temp_relationshipPrac = toBag( postMap.>content_pilot_print_client_specific.>relationships.>poa_practice_to_br_resources ) ] ) ; if( postMap.>type == "poa_industry", [ temp_relationshipPrac = toBag( postMap.>content_pilot_print_client_specific.>relationships.>poa_industry_to_poa_practice ) ] ) ; if( postMap.>type == "poa_practice", [ temp_relationshipPrac = toBag( postMap.>content_pilot_print_client_specific.>relationships.>poa_practice_to_poa_practice ) ] ) ; null ] ) ; null ], [ if( postMap.>type == "poa_person", [ temp_relationshipPrac = toBag( postMap.>content_pilot_print.>relationships.>poa_practice_to_poa_person ) ] ) ; if( postMap.>type == "poa_industry", [ temp_relationshipPrac = toBag( postMap.>content_pilot_print.>relationships.>poa_industry_to_poa_practice ) ] ) ; if( postMap.>type == "poa_practice", [ temp_relationshipPrac = toBag( postMap.>content_pilot_print.>relationships.>poa_practice_to_poa_practice ) ] ) ; if( postMap.>type == "poa_firm", [ temp_relationshipPrac = toBag( postMap.>content_pilot_print.>relationships.>poa_firm_to_poa_practice ) ] ) ; if( postMap.>type == "poa_office", [ temp_relationshipPrac = toBag( postMap.>content_pilot_print.>relationships.>poa_office_to_poa_practice ) ] ) ; if( postMap.>type == "post", [ temp_relationshipPrac = toBag( postMap.>content_pilot_print.>relationships.>post_to_poa_practice ) ] ) ; null ] ) ; if( temp_domainURL.>indexOf( "ebglaw" ) > 0 || temp_domainURL.>indexOf( "advisors.ebglaw" ) > 0 || temp_domainURL.>indexOf( "ebgadvisors" ) > 0 || temp_domainURL.>indexOf( "wnj" ) > 0 || temp_domainURL.>indexOf( "dgilbert" ) > 0 || temp_domainURL.>indexOf( "thompsonhine" ) > 0 || temp_domainURL.>indexOf( "much" ) > 0 || temp_domainURL.>indexOf( "kaplan" ) > 0 || temp_domainURL.>indexOf( "liskow" ) > 0 || temp_domainURL.>indexOf( "f3law" ) > 0 || temp_domainURL.>indexOf( "groom" ) > 0 || temp_domainURL.>indexOf( "merchant" ) > 0 || temp_domainURL.>indexOf( "bakerlaw" ) > 0 || temp_domainURL.>indexOf( "goldbergkohn" ) > 0 || temp_domainURL.>indexOf( "kleinhornig" ) > 0 || temp_domainURL.>indexOf( "bracewell" ) > 0 || temp_domainURL.>indexOf( "lathrop" ) > 0 || temp_domainURL.>indexOf( "mcglinchey" ) > 0 || temp_domainURL.>indexOf( "nge" ) > 0, [ temp_relationshipPrac.>do( [ :rprac | temprelationshipPracticeOrder = int( int( temprelationshipPracticeOrder ) + 1 ) ; tempValue = int( temprelationshipPracticeOrder ) ; relationshipPractice.get( tempValue, [ new( #cpcore/WordpressPost_relationshipPractice ) ], true ).>_order_ = tempValue ; relationshipPractice.get( tempValue ).>name = rprac.>post_title.>decode( 11 ) ; relationshipPractice.get( tempValue ).>postLink = rprac.>link ; relationshipPractice.get( tempValue ).>postParent = rprac.>post_parent ; relationshipPractice.get( tempValue ).>_category = null ; if( temp_domainURL.>indexOf( "bakerlaw" ) > 0 || temp_domainURL.>indexOf( "goldbergkohn" ) > 0 || temp_domainURL.>indexOf( "kaplan" ) > 0, [ toBag( rprac.>post_category ).>do( [ :catg | relationshipPractice.get( tempValue ).>_category.>add( connection.findDataValue( "wp-taxonomy-values", catg + "", catg + "", true ) ) ] ) ; null ] ) ; null ] ) ], [ temp_relationshipPrac.>do( [ :rprac | temprelationshipPracticeOrder = int( int( temprelationshipPracticeOrder ) + 1 ) ; tempValue = int( temprelationshipPracticeOrder ) ; relationshipPractice.get( tempValue, [ new( #cpcore/WordpressPost_relationshipPractice ) ], true ).>_order_ = tempValue ; relationshipPractice.get( tempValue ).>name = rprac.>decode( 11 ) ; null ] ) ] ) ; if( tempWPPostObj.>relationshipPractice.>faultIn().>size() < relationshipPractice.>size() - 1, [ tempWPPostObj.>relationshipPractice.>addAll( range( tempWPPostObj.>relationshipPractice.>size(), relationshipPractice.>size() - 2 ).>collect( [ :i | new( #cpcore/WordpressPost_relationshipPractice ) ] ) ) ], [ if( tempWPPostObj.>relationshipPractice.>size() > relationshipPractice.>size() - 1, [ tempWPPostObj.>relationshipPractice = tempWPPostObj.>relationshipPractice.>slice( 0, relationshipPractice.>size() - 1 ) ] ) ] ) ; range( 0, relationshipPractice.>size() - 2 ).>do( [ :i | tempWPPostObj.>relationshipPractice[ i ].>name = relationshipPractice[ i ].>name ; tempWPPostObj.>relationshipPractice[ i ].>postLink = relationshipPractice[ i ].>postLink ; tempWPPostObj.>relationshipPractice[ i ].>postParent = relationshipPractice[ i ].>postParent ; tempWPPostObj.>relationshipPractice[ i ].>_category = relationshipPractice[ i ].>_category ; tempWPPostObj.>relationshipPractice[ i ].>_order_ = relationshipPractice[ i ].>_order_ ; null ] ) ; relationshipPracticesChildren = { "ignore" : "" } ; temprelationshipPracticePOrder = int( "-1" ) ; temp_relationshipPracP = null ; if( temp_domainURL.>indexOf( "thompsonhine" ) > 0, [ if( temp_domainURL.>indexOf( "thompsonhine" ) > 0, [ if( postMap.>type == "poa_practice", [ temp_relationshipPracP = toBag( postMap.>thompsonhine.>children ) ] ) ; null ] ) ] ) ; if( temp_domainURL.>indexOf( "thompsonhine" ) > 0, [ temp_relationshipPracP.>do( [ :rprac | temprelationshipPracticePOrder = int( int( temprelationshipPracticePOrder ) + 1 ) ; tempValue = int( temprelationshipPracticePOrder ) ; relationshipPracticesChildren.get( tempValue, [ new( #cpcore/WordpressPost_relationshipPracticesChildren ) ], true ).>_order_ = tempValue ; relationshipPracticesChildren.get( tempValue ).>name = rprac.>post_title.>decode( 11 ) ; relationshipPracticesChildren.get( tempValue ).>postLink = rprac.>link ; relationshipPracticesChildren.get( tempValue ).>postParent = rprac.>post_parent ; null ] ) ] ) ; if( tempWPPostObj.>relationshipPracticesChildren.>faultIn().>size() < relationshipPracticesChildren.>size() - 1, [ tempWPPostObj.>relationshipPracticesChildren.>addAll( range( tempWPPostObj.>relationshipPracticesChildren.>size(), relationshipPracticesChildren.>size() - 2 ).>collect( [ :i | new( #cpcore/WordpressPost_relationshipPracticesChildren ) ] ) ) ], [ if( tempWPPostObj.>relationshipPracticesChildren.>size() > relationshipPracticesChildren.>size() - 1, [ tempWPPostObj.>relationshipPracticesChildren = tempWPPostObj.>relationshipPracticesChildren.>slice( 0, relationshipPracticesChildren.>size() - 1 ) ] ) ] ) ; range( 0, relationshipPracticesChildren.>size() - 2 ).>do( [ :i | tempWPPostObj.>relationshipPracticesChildren[ i ].>name = relationshipPracticesChildren[ i ].>name ; tempWPPostObj.>relationshipPracticesChildren[ i ].>postLink = relationshipPracticesChildren[ i ].>postLink ; tempWPPostObj.>relationshipPracticesChildren[ i ].>postParent = relationshipPracticesChildren[ i ].>postParent ; tempWPPostObj.>relationshipPracticesChildren[ i ].>_order_ = relationshipPracticesChildren[ i ].>_order_ ; null ] ) ; relationshipIndustry = { "ignore" : "" } ; temprelationshipIndustryOrder = int( "-1" ) ; temp_relationshipInd = null ; if( temp_domainURL.>indexOf( "deflaw" ) > 0 || temp_domainURL.>indexOf( "ebglaw" ) > 0 || temp_domainURL.>indexOf( "advisors.ebglaw" ) > 0 || temp_domainURL.>indexOf( "wnj" ) > 0 || temp_domainURL.>indexOf( "ebgadvisors" ) > 0 || temp_domainURL.>indexOf( "dgilbert" ) > 0 || temp_domainURL.>indexOf( "much" ) > 0 || temp_domainURL.>indexOf( "liskow" ) > 0 || temp_domainURL.>indexOf( "sussman" ) > 0 || temp_domainURL.>indexOf( "merchant" ) > 0 || temp_domainURL.>indexOf( "bakeralum" ) > 0 || temp_domainURL.>indexOf( "mcglinchey" ) > 0 || temp_domainURL.>indexOf( "bracewell" ) > 0 || temp_domainURL.>indexOf( "lathrop" ) > 0, [ if( temp_domainURL.>indexOf( "bakeralum" ) > 0, [ if( postMap.>type == "poa_person", [ temp_relationshipInd = toBag( postMap.>content_pilot_print.>taxonomies.>poa_industry_to_poa_person ) ] ) ; null ] ) ; if( temp_domainURL.>indexOf( "bracewell" ) > 0, [ if( postMap.>type == "poa_person", [ temp_relationshipInd = toBag( postMap.>content_pilot_print_client_specific.>relationships.>poa_industry_to_poa_person ) ] ) ; if( postMap.>type == "post", [ temp_relationshipInd = toBag( postMap.>content_pilot_print_client_specific.>relationships.>post_to_poa_industry ) ] ) ; if( postMap.>type == "br_resources", [ temp_relationshipInd = toBag( postMap.>content_pilot_print_client_specific.>relationships.>poa_industry_to_br_resources ) ] ) ; null ] ) ; if( temp_domainURL.>indexOf( "dgilbert" ) > 0, [ if( postMap.>type == "poa_person", [ temp_relationshipInd = toBag( postMap.>davis_gilbert.>relationships.>poa_industry_to_poa_person ) ] ) ; null ] ) ; if( temp_domainURL.>indexOf( "deflaw" ) > 0, [ if( postMap.>type == "poa_practice", [ temp_relationshipInd = toBag( postMap.>drew_eckl.>relationships.>poa_industry_to_poa_practice ) ] ) ; if( postMap.>type == "poa_person", [ temp_relationshipInd = toBag( postMap.>drew_eckl.>relationships.>poa_industry_to_poa_person ) ] ) ; null ] ) ; if( temp_domainURL.>indexOf( "ebglaw" ) > 0, [ if( postMap.>type == "poa_person", [ temp_relationshipInd = toBag( postMap.>ebglaw.>relationships.>poa_industry_to_poa_person ) ] ) ; if( postMap.>type == "poa_practice", [ temp_relationshipInd = toBag( postMap.>ebglaw.>relationships.>poa_industry_to_poa_practice ) ] ) ; if( postMap.>type == "poa_industry", [ temp_relationshipInd = toBag( postMap.>ebglaw.>relationships.>poa_industry_to_poa_industry ) ] ) ; if( postMap.>type == "ebg_trending_issue", [ temp_relationshipInd = toBag( postMap.>ebglaw.>relationships.>ebg_trending_issue_to_poa_industry ) ] ) ; if( postMap.>type == "poa_firm", [ ] ) ; if( postMap.>type == "poa_office", [ ] ) ; if( postMap.>type == "poa_career", [ ] ) ; if( postMap.>type == "post", [ temp_relationshipInd = toBag( postMap.>ebglaw.>relationships.>post_to_poa_industry ) ] ) ; if( postMap.>type == "page", [ temp_relationshipInd = toBag( postMap.>ebglaw.>relationships.>page_to_poa_industry ) ] ) ; null ] ) ; if( temp_domainURL.>indexOf( "advisors.ebglaw" ) > 0 || temp_domainURL.>indexOf( "ebgadvisors" ) > 0, [ if( postMap.>type == "poa_person", [ temp_relationshipInd = toBag( postMap.>ebgadvisors.>relationships.>poa_industry_to_poa_person ) ] ) ; if( postMap.>type == "poa_practice", [ temp_relationshipInd = toBag( postMap.>ebgadvisors.>relationships.>poa_industry_to_poa_practice ) ] ) ; if( postMap.>type == "poa_industry", [ temp_relationshipInd = toBag( postMap.>ebgadvisors.>relationships.>poa_industry_to_poa_industry ) ] ) ; if( postMap.>type == "ebg_trending_issue", [ temp_relationshipInd = toBag( postMap.>ebgadvisors.>relationships.>ebg_trending_issue_to_poa_industry ) ] ) ; if( postMap.>type == "poa_firm", [ ] ) ; if( postMap.>type == "poa_office", [ ] ) ; if( postMap.>type == "poa_career", [ ] ) ; if( postMap.>type == "post", [ temp_relationshipInd = toBag( postMap.>ebgadvisors.>relationships.>post_to_poa_industry ) ] ) ; if( postMap.>type == "page", [ temp_relationshipInd = toBag( postMap.>ebgadvisors.>relationships.>page_to_poa_industry ) ] ) ; null ] ) ; if( temp_domainURL.>indexOf( "wnj" ) > 0, [ if( postMap.>type == "poa_person", [ temp_relationshipInd = toBag( postMap.>wnj.>relationships.>poa_industry_to_poa_person ) ] ) ; if( postMap.>type == "poa_practice", [ temp_relationshipInd = toBag( postMap.>wnj.>relationships.>poa_industry_to_poa_practice ) ] ) ; if( postMap.>type == "poa_industry", [ temp_relationshipInd = toBag( postMap.>wnj.>relationships.>poa_industry_to_poa_industry ) ] ) ; if( postMap.>type == "post", [ temp_relationshipInd = toBag( postMap.>wnj.>relationships.>post_to_poa_industry ) ] ) ; if( postMap.>type == "page", [ temp_relationshipInd = toBag( postMap.>wnj.>relationships.>page_to_poa_industry ) ] ) ; null ] ) ; if( temp_domainURL.>indexOf( "much" ) > 0, [ if( postMap.>type == "poa_person", [ temp_relationshipInd = toBag( postMap.>much_shelist.>relationships.>poa_industry_to_poa_person ) ] ) ; if( postMap.>type == "poa_practice", [ temp_relationshipInd = toBag( postMap.>much_shelist.>relationships.>poa_industry_to_poa_practice ) ] ) ; if( postMap.>type == "poa_industry", [ temp_relationshipInd = toBag( postMap.>much_shelist.>relationships.>poa_industry_to_poa_industry ) ] ) ; if( postMap.>type == "post", [ temp_relationshipInd = toBag( postMap.>much_shelist.>relationships.>post_to_poa_industry ) ] ) ; if( postMap.>type == "page", [ temp_relationshipInd = toBag( postMap.>much_shelist.>relationships.>page_to_poa_industry ) ] ) ; null ] ) ; if( temp_domainURL.>indexOf( "merchant" ) > 0, [ if( postMap.>type == "poa_person", [ temp_relationshipInd = toBag( postMap.>merchant_gould.>relationships.>poa_industry_to_poa_person ) ] ) ; if( postMap.>type == "poa_practice", [ temp_relationshipInd = toBag( postMap.>merchant_gould.>relationships.>poa_industry_to_poa_practice ) ] ) ; if( postMap.>type == "poa_industry", [ temp_relationshipInd = toBag( postMap.>merchant_gould.>relationships.>poa_industry_to_poa_industry ) ] ) ; if( postMap.>type == "post", [ temp_relationshipInd = toBag( postMap.>merchant_gould.>relationships.>post_to_poa_industry ) ] ) ; if( postMap.>type == "page", [ temp_relationshipInd = toBag( postMap.>merchant_gould.>relationships.>page_to_poa_industry ) ] ) ; null ] ) ; if( temp_domainURL.>indexOf( "lathrop" ) > 0, [ if( postMap.>type == "post", [ temp_relationshipInd = toBag( postMap.>content_pilot_print_client_specific.>relationships.>post_to_poa_industry ) ] ) ; if( postMap.>type == "poa_developments", [ temp_relationshipInd = toBag( postMap.>content_pilot_print_client_specific.>relationships.>poa_developments_to_poa_industry ) ] ) ; if( postMap.>type == "poa_person", [ temp_relationshipInd = toBag( postMap.>content_pilot_print_client_specific.>relationships.>poa_industry_to_poa_person ) ] ) ; if( postMap.>type == "poa_practice", [ temp_relationshipInd = toBag( postMap.>content_pilot_print_client_specific.>relationships.>poa_industry_to_poa_practice ) ] ) ; if( postMap.>type == "poa_industry", [ temp_relationshipInd = toBag( postMap.>content_pilot_print_client_specific.>relationships.>poa_industry_to_poa_industry ) ] ) ; null ] ) ; if( temp_domainURL.>indexOf( "liskow" ) > 0, [ if( postMap.>type == "poa_person", [ temp_relationshipInd = toBag( postMap.>liskow_lewis.>relationships.>poa_industry_to_poa_person ) ] ) ; if( postMap.>type == "poa_practice", [ temp_relationshipInd = toBag( postMap.>liskow_lewis.>relationships.>poa_industry_to_poa_practice ) ] ) ; if( postMap.>type == "poa_industry", [ temp_relationshipInd = toBag( postMap.>liskow_lewis.>relationships.>poa_industry_to_poa_industry ) ] ) ; if( postMap.>type == "post", [ temp_relationshipInd = toBag( postMap.>liskow_lewis.>relationships.>post_to_poa_industry ) ] ) ; if( postMap.>type == "page", [ temp_relationshipInd = toBag( postMap.>liskow_lewis.>relationships.>page_to_poa_industry ) ] ) ; null ] ) ; if( temp_domainURL.>indexOf( "mcglinchey" ) > 0, [ if( postMap.>type == "poa_person", [ temp_relationshipInd = toBag( postMap.>mcglinchey.>relationships.>poa_industry_to_poa_person ) ] ) ; null ] ) ; if( temp_domainURL.>indexOf( "sussman" ) > 0, [ if( postMap.>type == "poa_person", [ temp_relationshipInd = toBag( postMap.>sussman_shank.>relationships.>poa_industry_to_poa_person ) ] ) ; if( postMap.>type == "poa_practice", [ temp_relationshipInd = toBag( postMap.>sussman_shank.>relationships.>poa_industry_to_poa_practice ) ] ) ; if( postMap.>type == "poa_industry", [ temp_relationshipInd = toBag( postMap.>sussman_shank.>relationships.>poa_industry_to_poa_industry ) ] ) ; if( postMap.>type == "post", [ temp_relationshipInd = toBag( postMap.>sussman_shank.>relationships.>post_to_poa_industry ) ] ) ; null ] ) ], [ if( postMap.>type == "poa_person", [ temp_relationshipInd = toBag( postMap.>content_pilot_print.>relationships.>poa_industry_to_poa_person ) ] ) ; if( postMap.>type == "poa_practice", [ temp_relationshipInd = toBag( postMap.>content_pilot_print.>relationships.>poa_industry_to_poa_practice ) ] ) ; if( postMap.>type == "poa_industry", [ temp_relationshipInd = toBag( postMap.>content_pilot_print.>relationships.>poa_industry_to_poa_industry ) ] ) ; null ] ) ; if( temp_domainURL.>indexOf( "ebglaw" ) > 0 || temp_domainURL.>indexOf( "advisors.ebglaw" ) > 0 || temp_domainURL.>indexOf( "ebgadvisors" ) > 0 || temp_domainURL.>indexOf( "wnj" ) > 0 || temp_domainURL.>indexOf( "dgilbert" ) > 0 || temp_domainURL.>indexOf( "much" ) > 0 || temp_domainURL.>indexOf( "liskow" ) > 0 || temp_domainURL.>indexOf( "sussman" ) > 0 || temp_domainURL.>indexOf( "merchant" ) > 0 || temp_domainURL.>indexOf( "mcglinchey" ) > 0 || temp_domainURL.>indexOf( "bracewell" ) > 0 || temp_domainURL.>indexOf( "lathrop" ) > 0, [ temp_relationshipInd.>do( [ :rInd | temprelationshipIndustryOrder = int( int( temprelationshipIndustryOrder ) + 1 ) ; tempValue = int( temprelationshipIndustryOrder ) ; relationshipIndustry.get( tempValue, [ new( #cpcore/WordpressPost_relationshipIndustry ) ], true ).>_order_ = tempValue ; relationshipIndustry.get( tempValue ).>name = rInd.>post_title.>decode( 11 ) ; relationshipIndustry.get( tempValue ).>postLink = rInd.>link ; relationshipIndustry.get( tempValue ).>postParent = rInd.>post_parent ; null ] ) ], [ temp_relationshipInd.>do( [ :rInd | temprelationshipIndustryOrder = int( int( temprelationshipIndustryOrder ) + 1 ) ; tempValue = int( temprelationshipIndustryOrder ) ; relationshipIndustry.get( tempValue, [ new( #cpcore/WordpressPost_relationshipIndustry ) ], true ).>_order_ = tempValue ; relationshipIndustry.get( tempValue ).>name = rInd.>decode( 11 ) ; null ] ) ] ) ; if( tempWPPostObj.>relationshipIndustry.>faultIn().>size() < relationshipIndustry.>size() - 1, [ tempWPPostObj.>relationshipIndustry.>addAll( range( tempWPPostObj.>relationshipIndustry.>size(), relationshipIndustry.>size() - 2 ).>collect( [ :i | new( #cpcore/WordpressPost_relationshipIndustry ) ] ) ) ], [ if( tempWPPostObj.>relationshipIndustry.>size() > relationshipIndustry.>size() - 1, [ tempWPPostObj.>relationshipIndustry = tempWPPostObj.>relationshipIndustry.>slice( 0, relationshipIndustry.>size() - 1 ) ] ) ] ) ; range( 0, relationshipIndustry.>size() - 2 ).>do( [ :i | tempWPPostObj.>relationshipIndustry[ i ].>name = relationshipIndustry[ i ].>name ; tempWPPostObj.>relationshipIndustry[ i ].>postLink = relationshipIndustry[ i ].>postLink ; tempWPPostObj.>relationshipIndustry[ i ].>postParent = relationshipIndustry[ i ].>postParent ; tempWPPostObj.>relationshipIndustry[ i ].>_order_ = relationshipIndustry[ i ].>_order_ ; null ] ) ; if( temp_domainURL.>indexOf( "ebglaw" ) > 0 || temp_domainURL.>indexOf( "advisors.ebglaw" ) > 0 || temp_domainURL.>indexOf( "ebgadvisors" ) > 0 || temp_domainURL.>indexOf( "kleinhornig" ) > 0, [ relationshipTrendingIssues = { "ignore" : "" } ; temprelationshipTrendingIssuesOrder = int( "-1" ) ; temp_relationshipTrendingIssues = null ; if( temp_domainURL.>indexOf( "ebglaw" ) > 0, [ if( postMap.>type == "poa_person", [ temp_relationshipTrendingIssues = toBag( postMap.>ebglaw.>relationships.>ebg_trending_issue_to_poa_person ) ] ) ; if( postMap.>type == "poa_practice", [ temp_relationshipTrendingIssues = toBag( postMap.>ebglaw.>relationships.>ebg_trending_issue_to_poa_practice ) ] ) ; if( postMap.>type == "poa_industry", [ temp_relationshipTrendingIssues = toBag( postMap.>ebglaw.>relationships.>ebg_trending_issue_to_poa_industry ) ] ) ; if( postMap.>type == "ebg_trending_issue", [ temp_relationshipTrendingIssues = toBag( postMap.>ebglaw.>relationships.>ebg_trending_issue_to_ebg_trending_issue ) ] ) ; if( postMap.>type == "poa_firm", [ ] ) ; if( postMap.>type == "poa_office", [ ] ) ; if( postMap.>type == "poa_career", [ ] ) ; if( postMap.>type == "post", [ temp_relationshipTrendingIssues = toBag( postMap.>ebglaw.>relationships.>post_to_ebg_trending_issue ) ] ) ; if( postMap.>type == "page", [ temp_relationshipTrendingIssues = toBag( postMap.>ebglaw.>relationships.>page_to_ebg_trending_issue ) ] ) ; null ] ) ; if( temp_domainURL.>indexOf( "advisors.ebglaw" ) > 0 || temp_domainURL.>indexOf( "ebgadvisors" ) > 0, [ if( postMap.>type == "poa_person", [ temp_relationshipTrendingIssues = toBag( postMap.>ebgadvisors.>relationships.>ebg_trending_issue_to_poa_person ) ] ) ; if( postMap.>type == "poa_practice", [ temp_relationshipTrendingIssues = toBag( postMap.>ebgadvisors.>relationships.>ebg_trending_issue_to_poa_practice ) ] ) ; if( postMap.>type == "poa_industry", [ temp_relationshipTrendingIssues = toBag( postMap.>ebgadvisors.>relationships.>ebg_trending_issue_to_poa_industry ) ] ) ; if( postMap.>type == "ebg_trending_issue", [ temp_relationshipTrendingIssues = toBag( postMap.>ebgadvisors.>relationships.>ebg_trending_issue_to_ebg_trending_issue ) ] ) ; if( postMap.>type == "poa_firm", [ ] ) ; if( postMap.>type == "poa_office", [ ] ) ; if( postMap.>type == "poa_career", [ ] ) ; if( postMap.>type == "post", [ temp_relationshipTrendingIssues = toBag( postMap.>ebgadvisors.>relationships.>post_to_ebg_trending_issue ) ] ) ; if( postMap.>type == "page", [ temp_relationshipTrendingIssues = toBag( postMap.>ebgadvisors.>relationships.>page_to_ebg_trending_issue ) ] ) ; null ] ) ; if( temp_domainURL.>indexOf( "kleinhornig" ) > 0, [ if( postMap.>type == "post", [ temp_relationshipTrendingIssues = toBag( postMap.>content_pilot_print_client_specific.>relationships.>poa_developments_to_post ) ] ) ; if( postMap.>type == "poa_practice", [ temp_relationshipTrendingIssues = toBag( postMap.>content_pilot_print_client_specific.>relationships.>poa_developments_to_poa_practice ) ] ) ; if( postMap.>type == "poa_developments", [ temp_relationshipTrendingIssues = toBag( postMap.>content_pilot_print_client_specific.>relationships.>poa_developments_to_poa_developments ) ] ) ; null ] ) ; if( temp_relationshipTrendingIssues.>size() > 0, [ temp_relationshipTrendingIssues.>do( [ :ti | temprelationshipTrendingIssuesOrder = int( int( temprelationshipTrendingIssuesOrder ) + 1 ) ; tempValue = int( temprelationshipTrendingIssuesOrder ) ; relationshipTrendingIssues.get( tempValue, [ new( #cpcore/WordpressPost_relationshipTrendingIssues ) ], true ).>_order_ = tempValue ; relationshipTrendingIssues.get( tempValue ).>title = ti.>post_title.>decode( 11 ) ; relationshipTrendingIssues.get( tempValue ).>postLink = ti.>link ; if( temp_domainURL.>indexOf( "kleinhornig" ) > 0 && postMap.>type == "post", [ relationshipTrendingIssues.get( tempValue ).>client = ti.>client_name.>decode( 11 ) ; relationshipTrendingIssues.get( tempValue ).>excerpt = ti.>excerpt ; null ] ) ; null ] ) ; null ] ) ; if( tempWPPostObj.>relationshipTrendingIssues.>faultIn().>size() < relationshipTrendingIssues.>size() - 1, [ tempWPPostObj.>relationshipTrendingIssues.>addAll( range( tempWPPostObj.>relationshipTrendingIssues.>size(), relationshipTrendingIssues.>size() - 2 ).>collect( [ :i | new( #cpcore/WordpressPost_relationshipTrendingIssues ) ] ) ) ], [ if( tempWPPostObj.>relationshipTrendingIssues.>size() > relationshipTrendingIssues.>size() - 1, [ tempWPPostObj.>relationshipTrendingIssues = tempWPPostObj.>relationshipTrendingIssues.>slice( 0, relationshipTrendingIssues.>size() - 1 ) ] ) ] ) ; range( 0, relationshipTrendingIssues.>size() - 2 ).>do( [ :i | tempWPPostObj.>relationshipTrendingIssues[ i ].>title = relationshipTrendingIssues[ i ].>title ; tempWPPostObj.>relationshipTrendingIssues[ i ].>postLink = relationshipTrendingIssues[ i ].>postLink ; tempWPPostObj.>relationshipTrendingIssues[ i ].>_order_ = relationshipTrendingIssues[ i ].>_order_ ; tempWPPostObj.>relationshipTrendingIssues[ i ].>client = relationshipTrendingIssues[ i ].>client ; tempWPPostObj.>relationshipTrendingIssues[ i ].>excerpt = relationshipTrendingIssues[ i ].>excerpt ; null ] ) ; tempWPPostObj.>industryGovernmentRTE = postMap.>cpwebpilot.>ebglaw_industry_government ; tempWPPostObj.>boardOfDirectorsRTE = postMap.>cpwebpilot.>ebglaw_board_directors ; tempWPPostObj.>boardOfAdvisorsRTE = postMap.>cpwebpilot.>ebglaw_board_advisors ; tempWPPostObj.>boardOfEditorsRTE = postMap.>cpwebpilot.>ebglaw_board_editors ; tempWPPostObj.>communityInvolvementRTE = postMap.>cpwebpilot.>ebglaw_professional_community ; tempWPPostObj.>recognitionsRTE = postMap.>cpwebpilot.>ebglaw_recognition ; null ] ) ; relationshipTheFirm = { "ignore" : "" } ; tempbarrelationshipTheFirmOrder = int( "-1" ) ; toBag( postMap.>content_pilot_print.>relationships.>poa_firm_to_poa_person ).>do( [ :rfirm | tempbarrelationshipTheFirmOrder = int( int( tempbarrelationshipTheFirmOrder ) + 1 ) ; tempValue = int( tempbarrelationshipTheFirmOrder ) ; relationshipTheFirm.get( tempValue, [ new( #cpcore/WordpressPost_relationshipTheFirm ) ], true ).>_order_ = tempValue ; relationshipTheFirm.get( tempValue ).>name = rfirm.>decode( 11 ) ; null ] ) ; if( tempWPPostObj.>relationshipTheFirm.>faultIn().>size() < relationshipTheFirm.>size() - 1, [ tempWPPostObj.>relationshipTheFirm.>addAll( range( tempWPPostObj.>relationshipTheFirm.>size(), relationshipTheFirm.>size() - 2 ).>collect( [ :i | new( #cpcore/WordpressPost_relationshipTheFirm ) ] ) ) ], [ if( tempWPPostObj.>relationshipTheFirm.>size() > relationshipTheFirm.>size() - 1, [ tempWPPostObj.>relationshipTheFirm = tempWPPostObj.>relationshipTheFirm.>slice( 0, relationshipTheFirm.>size() - 1 ) ] ) ] ) ; range( 0, relationshipTheFirm.>size() - 2 ).>do( [ :i | tempWPPostObj.>relationshipTheFirm[ i ].>name = relationshipTheFirm[ i ].>name ; tempWPPostObj.>relationshipTheFirm[ i ].>_order_ = relationshipTheFirm[ i ].>_order_ ; null ] ) ; relationshipClientStory = { "ignore" : "" } ; tempbarrelationshipClientStoryOrder = int( "-1" ) ; temp_relationshipClient = null ; if( temp_domainURL.>indexOf( "f3law" ) > 0, [ if( postMap.>type == "post", [ temp_relationshipClient = toBag( postMap.>f3law.>relationships.>post_to_poa_client ) ] ) ; if( postMap.>type == "poa_practice", [ temp_relationshipClient = toBag( postMap.>f3law.>relationships.>poa_client_to_poa_practice ) ] ) ; if( postMap.>type == "poa_person", [ temp_relationshipClient = toBag( postMap.>f3law.>relationships.>poa_client_to_poa_person_group_chairs ) ] ) ; temp_relationshipClient.>do( [ :rcli | tempbarrelationshipClientStoryOrder = int( int( tempbarrelationshipClientStoryOrder ) + 1 ) ; tempValue = int( tempbarrelationshipClientStoryOrder ) ; relationshipClientStory.get( tempValue, [ new( #cpcore/WordpressPost_relationshipClientStory ) ], true ).>_order_ = tempValue ; relationshipClientStory.get( tempValue ).>name = rcli.>post_title.>decode( 11 ) ; relationshipClientStory.get( tempValue ).>postLink = rcli.>link ; null ] ) ; null ], [ if( postMap.>type == "poa_person", [ temp_relationshipClient = toBag( postMap.>content_pilot_print.>relationships.>poa_client_to_poa_person ) ] ) ; if( postMap.>type == "poa_practice", [ temp_relationshipClient = toBag( postMap.>content_pilot_print.>relationships.>poa_client_to_poa_practice ) ] ) ; if( postMap.>type == "poa_industry", [ temp_relationshipClient = toBag( postMap.>content_pilot_print.>relationships.>poa_client_to_poa_practice ) ] ) ; temp_relationshipClient.>do( [ :rcli | tempbarrelationshipClientStoryOrder = int( int( tempbarrelationshipClientStoryOrder ) + 1 ) ; tempValue = int( tempbarrelationshipClientStoryOrder ) ; relationshipClientStory.get( tempValue, [ new( #cpcore/WordpressPost_relationshipClientStory ) ], true ).>_order_ = tempValue ; relationshipClientStory.get( tempValue ).>name = rcli.>decode( 11 ) ; null ] ) ; null ] ) ; if( tempWPPostObj.>relationshipClientStory.>faultIn().>size() < relationshipClientStory.>size() - 1, [ tempWPPostObj.>relationshipClientStory.>addAll( range( tempWPPostObj.>relationshipClientStory.>size(), relationshipClientStory.>size() - 2 ).>collect( [ :i | new( #cpcore/WordpressPost_relationshipClientStory ) ] ) ) ], [ if( tempWPPostObj.>relationshipClientStory.>size() > relationshipClientStory.>size() - 1, [ tempWPPostObj.>relationshipClientStory = tempWPPostObj.>relationshipClientStory.>slice( 0, relationshipClientStory.>size() - 1 ) ] ) ] ) ; range( 0, relationshipClientStory.>size() - 2 ).>do( [ :i | tempWPPostObj.>relationshipClientStory[ i ].>name = relationshipClientStory[ i ].>name ; tempWPPostObj.>relationshipClientStory[ i ].>postLink = relationshipClientStory[ i ].>postLink ; tempWPPostObj.>relationshipClientStory[ i ].>_order_ = relationshipClientStory[ i ].>_order_ ; null ] ) ; associations = { "ignore" : "" } ; tempAsscOrder = int( "-1" ) ; toBag( postMap.>content_pilot_print.>groups.>poa_associations_repeater ).>do( [ :rassc | tempAsscOrder = int( int( tempAsscOrder ) + 1 ) ; tempValue = int( tempAsscOrder ) ; associations.get( tempValue, [ new( #cpcore/WordpressPost_associations ) ], true ).>_order_ = tempValue ; associations.get( tempValue ).>organization = rassc.>poa_associations_organization.>decode( 11 ) ; associations.get( tempValue ).>role = rassc.>poa_associations_role.>decode( 11 ) ; associations.get( tempValue ).>years = rassc.>poa_associations_year.>decode( 11 ) ; null ] ) ; if( tempWPPostObj.>associations.>faultIn().>size() < associations.>size() - 1, [ tempWPPostObj.>associations.>addAll( range( tempWPPostObj.>associations.>size(), associations.>size() - 2 ).>collect( [ :i | new( #cpcore/WordpressPost_associations ) ] ) ) ], [ if( tempWPPostObj.>associations.>size() > associations.>size() - 1, [ tempWPPostObj.>associations = tempWPPostObj.>associations.>slice( 0, associations.>size() - 1 ) ] ) ] ) ; range( 0, associations.>size() - 2 ).>do( [ :i | tempWPPostObj.>associations[ i ].>organization = associations[ i ].>organization ; tempWPPostObj.>associations[ i ].>role = associations[ i ].>role ; tempWPPostObj.>associations[ i ].>years = associations[ i ].>years ; tempWPPostObj.>associations[ i ].>_order_ = associations[ i ].>_order_ ; null ] ) ; honors = { "ignore" : "" } ; tempAsscOrder = int( "-1" ) ; toBag( postMap.>content_pilot_print.>groups.>poa_honors_repeater ).>do( [ :rhonors | tempAsscOrder = int( int( tempAsscOrder ) + 1 ) ; tempValue = int( tempAsscOrder ) ; honors.get( tempValue, [ new( #cpcore/WordpressPost_honors ) ], true ).>_order_ = tempValue ; honors.get( tempValue ).>organization = rhonors.>poa_honors_organization.>decode( 11 ) ; honors.get( tempValue ).>section = rhonors.>poa_honors_section.>decode( 11 ) ; honors.get( tempValue ).>years = rhonors.>poa_honors_year.>decode( 11 ) ; null ] ) ; if( tempWPPostObj.>honors.>faultIn().>size() < honors.>size() - 1, [ tempWPPostObj.>honors.>addAll( range( tempWPPostObj.>honors.>size(), honors.>size() - 2 ).>collect( [ :i | new( #cpcore/WordpressPost_honors ) ] ) ) ], [ if( tempWPPostObj.>honors.>size() > honors.>size() - 1, [ tempWPPostObj.>honors = tempWPPostObj.>honors.>slice( 0, honors.>size() - 1 ) ] ) ] ) ; range( 0, honors.>size() - 2 ).>do( [ :i | tempWPPostObj.>honors[ i ].>organization = honors[ i ].>organization ; tempWPPostObj.>honors[ i ].>section = honors[ i ].>section ; tempWPPostObj.>honors[ i ].>years = honors[ i ].>years ; tempWPPostObj.>honors[ i ].>_order_ = honors[ i ].>_order_ ; null ] ) ; if( temp_domainURL.>indexOf( "mccarter" ) > 0, [ tempWPPostObj.>subtitle = postMap.>cpwebpilot.>me_subtitle ; tempWPPostObj.>clerkshipsRTE = postMap.>cpwebpilot.>me_clerkships ; null ] ) ; if( temp_domainURL.>indexOf( "diamond" ) > 0, [ tempWPPostObj.>subtitle = postMap.>cpwebpilot.>subtitle ; null ] ) ; if( temp_domainURL.>indexOf( "liskow" ) > 0, [ tempWPPostObj.>subtitle = postMap.>cpwebpilot.>liskow_lewis_subtitle ; tempWPPostObj.>_relatedBlogs = null ; toBag( postMap.>content_pilot_print.>taxonomies.>related_blog ).>do( [ :relblog | tempWPPostObj.>_relatedBlogs.>add( connection.findDataValue( "wp-taxonomy-values", relblog + "", relblog + "", true ) ) ] ) ; null ] ) ; if( temp_domainURL.>indexOf( "bakerlaw" ) > 0, [ tempWPPostObj.>_relatedBlogs = null ; toBag( postMap.>content_pilot_print.>taxonomies.>bh_blog ).>do( [ :relblog | tempWPPostObj.>_relatedBlogs.>add( connection.findDataValue( "wp-taxonomy-values", relblog + "", relblog + "", true ) ) ] ) ; tempWPPostObj.>_relatedVideos = null ; toBag( postMap.>content_pilot_print.>taxonomies.>bh_video_series ).>do( [ :relvid | tempWPPostObj.>_relatedVideos.>add( connection.findDataValue( "wp-taxonomy-values", relvid + "", relvid + "", true ) ) ] ) ; tempWPPostObj.>_relatedPodcasts = null ; toBag( postMap.>content_pilot_print.>taxonomies.>bh_podcast_series ).>do( [ :relpod | tempWPPostObj.>_relatedPodcasts.>add( connection.findDataValue( "wp-taxonomy-values", relpod + "", relpod + "", true ) ) ] ) ; null ] ) ; if( temp_domainURL.>indexOf( "much" ) > 0 || temp_domainURL.>indexOf( "liskow" ) > 0 || temp_domainURL.>indexOf( "groom" ) > 0 || temp_domainURL.>indexOf( "f3law" ) > 0 || temp_domainURL.>indexOf( "sussman" ) > 0 || temp_domainURL.>indexOf( "merchant" ) > 0 || temp_domainURL.>indexOf( "susman" ) > 0 || temp_domainURL.>indexOf( "munck" ) > 0 || temp_domainURL.>indexOf( "bakerlaw" ) > 0 || temp_domainURL.>indexOf( "bakeralum" ) > 0 || temp_domainURL.>indexOf( "bakerblogs" ) > 0 || temp_domainURL.>indexOf( "lugenbuhl" ) > 0 || temp_domainURL.>indexOf( "lawla" ) > 0 || temp_domainURL.>indexOf( "lathrop" ) > 0 || temp_domainURL.>indexOf( "nge" ) > 0, [ tempWPPostObj.>_postCategory = null ; postMapCategories = postMap.>content_pilot_print.>taxonomies.>category ; toBag( postMapCategories ).>do( [ :catg | tempWPPostObj.>_postCategory.>add( connection.findDataValue( "wp-taxonomy-values", catg + "", catg + "", true ) ) ] ) ] ) ; if( temp_domainURL.>indexOf( "bracewell" ) > 0, [ tempWPPostObj.>_postCategory = null ; postMapCategories = if( postMap.>type == "br_resources", [ postMap.>content_pilot_print.>taxonomies.>br_resources_taxonomy ], [ postMap.>content_pilot_print.>taxonomies.>category ] ) ; toBag( postMapCategories ).>do( [ :catg | tempWPPostObj.>_postCategory.>add( connection.findDataValue( "wp-taxonomy-values", catg + "", catg + "", true ) ) ] ) ; tempWPPostObj.>_blogSeries = null ; tempWPPostObj.>_podcastSeries = null ; toBag( postMap.>content_pilot_print.>taxonomies.>br_blog_series_taxonomy ).>do( [ :catg | tempWPPostObj.>_blogSeries.>add( connection.findDataValue( "wp-taxonomy-values", catg + "", catg + "", true ) ) ] ) ; toBag( postMap.>content_pilot_print.>taxonomies.>br_podcast_series_taxonomy ).>do( [ :catg | tempWPPostObj.>_podcastSeries.>add( connection.findDataValue( "wp-taxonomy-values", catg + "", catg + "", true ) ) ] ) ; null ] ) ; if( temp_domainURL.>indexOf( "thompsoncoburn" ) > 0, [ tempWPPostObj.>timeToRead = postMap.>cpwebpilot.>poa_time_to_read ; tempWPPostObj.>_postCategory = null ; postMapCategories = postMap.>content_pilot_print.>taxonomies.>category ; toBag( postMapCategories ).>do( [ :catg | tempWPPostObj.>_postCategory.>add( connection.findDataValue( "wp-taxonomy-values", catg + "", catg + "", true ) ) ] ) ; null ] ) ; if( temp_domainURL.>indexOf( "nge" ) > 0, [ tempWPPostObj.>_primaryPractice = null ; primPractices = postMap.>content_pilot_print.>taxonomies.>poa_practice_area_taxonomy ; toBag( primPractices ).>do( [ :catg | tempWPPostObj.>_primaryPractice.>add( connection.findDataValue( "wp-taxonomy-values", catg + "", catg + "", true ) ) ] ) ; null ] ) ; if( temp_domainURL.>indexOf( "jamesbates" ) > 0 || temp_domainURL.>indexOf( "kleinhornig" ) > 0, [ tempWPPostObj.>_postCategory = null ; postMapCategories = postMap.>cpwebpilot.>category->name ; toBag( postMapCategories ).>do( [ :catg | tempWPPostObj.>_postCategory.>add( connection.findDataValue( "wp-taxonomy-values", catg + "", catg + "", true ) ) ] ) ] ) ; if( temp_domainURL.>indexOf( "ebglaw" ) > 0 || temp_domainURL.>indexOf( "advisors.ebglaw" ) > 0 || temp_domainURL.>indexOf( "ebgadvisors" ) > 0, [ tempWPPostObj.>subtitle = postMap.>ebglaw.>post_subtitle ; tempWPPostObj.>timeToRead = postMap.>cpwebpilot.>poa_time_to_read ; tempWPPostObj.>registerLink = postMap.>cpwebpilot.>ebglaw_event_register ; tempWPPostObj.>eventLocation = postMap.>cpwebpilot.>ebglaw_event_location ; tempWPPostObj.>_postCategory = null ; toBag( postMap.>content_pilot_print.>taxonomies.>category ).>do( [ :catg | tempWPPostObj.>_postCategory.>add( connection.findDataValue( "wp-taxonomy-values", catg + "", catg + "", true ) ) ] ) ; tempWPPostObj.>eventFromDateTime = null ; tempWPPostObj.>eventToDateTime = null ; temp_eventFromDateTime = postMap.>cpwebpilot.>ebglaw_event_date_from ; temp_eventToDateTime = postMap.>cpwebpilot.>ebglaw_event_date_to ; if( ifEmpty( temp_eventFromDateTime, "" ) != "" && temp_eventFromDateTime.>indexOf( "0001" ) < 0, [ tempWPPostObj.>eventFromDateTime = #ve/core/TimestampObject/parse( temp_eventFromDateTime, "yyyy-MM-dd HH:mm:ss" ) ], [ tempWPPostObj.>eventFromDateTime = null ] ) ; if( ifEmpty( temp_eventToDateTime, "" ) != "" && temp_eventToDateTime.>indexOf( "0001" ) < 0, [ tempWPPostObj.>eventToDateTime = #ve/core/TimestampObject/parse( temp_eventToDateTime, "yyyy-MM-dd HH:mm:ss" ) ], [ tempWPPostObj.>eventToDateTime = null ] ) ; tempWPPostObj.>eventTimezone = postMap.>cpwebpilot.>ebglaw_event_time_zone ; null ] ) ; if( temp_domainURL.>indexOf( "diamond" ) > 0, [ tempWPPostObj.>representativeExperience = postMap.>cpwebpilot.>diamond_mccarthy_representative_cases_content ; tempWPPostObj.>clerkshipsRTE = postMap.>cpwebpilot.>diamond_mccarthy_judicial_clerkships_content ; tempWPPostObj.>awayFromWorkContent = postMap.>cpwebpilot.>diamond_mccarthy_away_from_work_content ; relationshipStrengths = { "ignore" : "" } ; tempRelationshipStrengthsOrder = int( "-1" ) ; temp_relationshipStrengths = null ; if( postMap.>type == "poa_person", [ temp_relationshipStrengths = toBag( postMap.>diamond.>relationships.>dm_strength_to_poa_person ) ] ) ; if( postMap.>type == "poa_practice", [ temp_relationshipStrengths = toBag( postMap.>diamond.>relationships.>dm_strength_to_poa_practice ) ] ) ; if( postMap.>type == "poa_industry", [ temp_relationshipStrengths = toBag( postMap.>diamond.>relationships.>dm_strength_to_poa_practice ) ] ) ; temp_relationshipStrengths.>do( [ :rstr | tempRelationshipStrengthsOrder = int( int( tempRelationshipStrengthsOrder ) + 1 ) ; tempValue = int( tempRelationshipStrengthsOrder ) ; relationshipStrengths.get( tempValue, [ new( #cpcore/WordpressPost_relationshipStrengths ) ], true ).>_order_ = tempValue ; relationshipStrengths.get( tempValue ).>name = rstr.>decode( 11 ) ; null ] ) ; if( tempWPPostObj.>relationshipStrengths.>faultIn().>size() < relationshipStrengths.>size() - 1, [ tempWPPostObj.>relationshipStrengths.>addAll( range( tempWPPostObj.>relationshipStrengths.>size(), relationshipStrengths.>size() - 2 ).>collect( [ :i | new( #cpcore/WordpressPost_relationshipStrengths ) ] ) ) ], [ if( tempWPPostObj.>relationshipStrengths.>size() > relationshipStrengths.>size() - 1, [ tempWPPostObj.>relationshipStrengths = tempWPPostObj.>relationshipStrengths.>slice( 0, relationshipStrengths.>size() - 1 ) ] ) ] ) ; range( 0, relationshipStrengths.>size() - 2 ).>do( [ :i | tempWPPostObj.>relationshipStrengths[ i ].>name = relationshipStrengths[ i ].>name ; tempWPPostObj.>relationshipStrengths[ i ].>_order_ = relationshipStrengths[ i ].>_order_ ; null ] ) ; null ] ) ; if( temp_domainURL.>indexOf( "mccarter" ) > 0 || temp_domainURL.>indexOf( "diamond" ) > 0 || temp_domainURL.>indexOf( "deflaw" ) > 0 || temp_domainURL.>indexOf( "dgilbert" ) > 0 || temp_domainURL.>indexOf( "ebglaw" ) > 0 || temp_domainURL.>indexOf( "advisors.ebglaw" ) > 0 || temp_domainURL.>indexOf( "ebgadvisors" ) > 0 || temp_domainURL.>indexOf( "wnj" ) > 0 || temp_domainURL.>indexOf( "thompsonhine" ) > 0 || temp_domainURL.>indexOf( "much" ) > 0 || temp_domainURL.>indexOf( "kaplan" ) > 0 || temp_domainURL.>indexOf( "groom" ) > 0 || temp_domainURL.>indexOf( "f3law" ) > 0 || temp_domainURL.>indexOf( "merchant" ) > 0 || temp_domainURL.>indexOf( "munck" ) > 0 || temp_domainURL.>indexOf( "bakerlaw" ) > 0 || temp_domainURL.>indexOf( "goldbergkohn" ) > 0 || temp_domainURL.>indexOf( "kleinhornig" ) > 0 || temp_domainURL.>indexOf( "bracewell" ) > 0 || temp_domainURL.>indexOf( "nge" ) > 0, [ relationshipPost = { "ignore" : "" } ; tempbarrelationshipPostOrder = int( "-1" ) ; temp_relationshipPosts = null ; if( temp_domainURL.>indexOf( "mccarter" ) > 0, [ if( postMap.>type == "poa_person", [ temp_relationshipPosts = toBag( postMap.>mccarter.>relationships.>post_to_poa_person ) ] ) ; if( postMap.>type == "poa_practice", [ temp_relationshipPosts = toBag( postMap.>mccarter.>relationships.>post_to_poa_practice ) ] ) ; if( postMap.>type == "poa_industry", [ temp_relationshipPosts = toBag( postMap.>mccarter.>relationships.>post_to_poa_industry ) ] ) ; if( postMap.>type == "poa_office", [ temp_relationshipPosts = toBag( postMap.>mccarter.>relationships.>poa_office_to_post ) ] ) ; null ] ) ; if( temp_domainURL.>indexOf( "bakerlaw" ) > 0, [ if( postMap.>type == "poa_person", [ temp_relationshipPosts = toBag( postMap.>baker_hostetler.>relationships.>post_to_poa_person ) ] ) ; if( postMap.>type == "poa_practice", [ ] ) ; if( postMap.>type == "poa_industry", [ ] ) ; if( postMap.>type == "poa_firm", [ temp_relationshipPosts = toBag( postMap.>baker_hostetler.>relationships.>post_to_poa_firm ) ] ) ; if( postMap.>type == "poa_office", [ temp_relationshipPosts = toBag( postMap.>baker_hostetler.>relationships.>featured_post_to_poa_office ) ] ) ; if( postMap.>type == "post", [ temp_relationshipPosts = toBag( postMap.>baker_hostetler.>relationships.>post_to_post ) ] ) ; if( postMap.>type == "page", [ temp_relationshipPosts = toBag( postMap.>baker_hostetler.>relationships.>page_to_post ) ] ) ; null ] ) ; if( temp_domainURL.>indexOf( "goldbergkohn" ) > 0, [ if( postMap.>type == "poa_person", [ temp_relationshipPosts = toBag( postMap.>content_pilot_print_client_specific.>relationships.>post_to_poa_person ) ] ) ; if( postMap.>type == "poa_practice", [ temp_relationshipPosts = toBag( postMap.>content_pilot_print_client_specific.>relationships.>post_to_poa_practice ) ] ) ; if( postMap.>type == "poa_industry", [ ] ) ; if( postMap.>type == "poa_firm", [ temp_relationshipPosts = toBag( postMap.>content_pilot_print_client_specific.>relationships.>post_to_poa_firm ) ] ) ; if( postMap.>type == "poa_office", [ temp_relationshipPosts = toBag( postMap.>content_pilot_print_client_specific.>relationships.>featured_post_to_poa_office ) ] ) ; if( postMap.>type == "post", [ temp_relationshipPosts = toBag( postMap.>content_pilot_print_client_specific.>relationships.>post_to_post ) ] ) ; if( postMap.>type == "page", [ temp_relationshipPosts = toBag( postMap.>content_pilot_print_client_specific.>relationships.>page_to_post ) ] ) ; null ] ) ; if( temp_domainURL.>indexOf( "diamond" ) > 0, [ if( postMap.>type == "poa_person", [ temp_relationshipPosts = toBag( postMap.>diamond.>relationships.>post_to_poa_person ) ] ) ; if( postMap.>type == "poa_practice", [ temp_relationshipPosts = toBag( postMap.>diamond.>relationships.>post_to_poa_practice ) ] ) ; if( postMap.>type == "poa_industry", [ temp_relationshipPosts = toBag( postMap.>diamond.>relationships.>post_to_poa_industry ) ] ) ; if( postMap.>type == "poa_office", [ temp_relationshipPosts = toBag( postMap.>diamond.>relationships.>poa_office_to_post ) ] ) ; null ] ) ; if( temp_domainURL.>indexOf( "deflaw" ) > 0, [ if( postMap.>type == "poa_person", [ temp_relationshipPosts = toBag( postMap.>drew_eckl.>relationships.>insights_to_poa_person ) ] ) ; if( postMap.>type == "poa_practice", [ temp_relationshipPosts = toBag( postMap.>drew_eckl.>relationships.>post_to_poa_practice ) ] ) ; if( postMap.>type == "poa_industry", [ temp_relationshipPosts = toBag( postMap.>drew_eckl.>relationships.>insights_to_poa_industry ) ] ) ; if( postMap.>type == "poa_office", [ temp_relationshipPosts = toBag( postMap.>drew_eckl.>relationships.>poa_office_to_insights ) ] ) ; null ] ) ; if( temp_domainURL.>indexOf( "ebglaw" ) > 0, [ if( postMap.>type == "poa_person", [ temp_relationshipPosts = toBag( postMap.>ebglaw.>relationships.>post_to_poa_person ) ] ) ; if( postMap.>type == "poa_practice", [ temp_relationshipPosts = toBag( postMap.>ebglaw.>relationships.>post_to_poa_practice ) ] ) ; if( postMap.>type == "poa_industry", [ temp_relationshipPosts = toBag( postMap.>ebglaw.>relationships.>post_to_poa_industry ) ] ) ; if( postMap.>type == "ebg_trending_issue", [ temp_relationshipPosts = toBag( postMap.>ebglaw.>relationships.>post_to_ebg_trending_issue ) ] ) ; if( postMap.>type == "poa_office", [ ] ) ; if( postMap.>type == "poa_firm", [ ] ) ; if( postMap.>type == "post", [ temp_relationshipPosts = toBag( postMap.>ebglaw.>relationships.>post_to_post ) ] ) ; if( postMap.>type == "page", [ temp_relationshipPosts = toBag( postMap.>ebglaw.>relationships.>page_to_post ) ] ) ; null ] ) ; if( temp_domainURL.>indexOf( "advisors.ebglaw" ) > 0 || temp_domainURL.>indexOf( "ebgadvisors" ) > 0, [ if( postMap.>type == "poa_person", [ temp_relationshipPosts = toBag( postMap.>ebgadvisors.>relationships.>post_to_poa_person ) ] ) ; if( postMap.>type == "poa_practice", [ temp_relationshipPosts = toBag( postMap.>ebgadvisors.>relationships.>post_to_poa_practice ) ] ) ; if( postMap.>type == "poa_industry", [ temp_relationshipPosts = toBag( postMap.>ebgadvisors.>relationships.>post_to_poa_industry ) ] ) ; if( postMap.>type == "ebg_trending_issue", [ temp_relationshipPosts = toBag( postMap.>ebgadvisors.>relationships.>post_to_ebg_trending_issue ) ] ) ; if( postMap.>type == "poa_office", [ ] ) ; if( postMap.>type == "poa_firm", [ ] ) ; if( postMap.>type == "post", [ temp_relationshipPosts = toBag( postMap.>ebgadvisors.>relationships.>post_to_post ) ] ) ; if( postMap.>type == "page", [ temp_relationshipPosts = toBag( postMap.>ebgadvisors.>relationships.>page_to_post ) ] ) ; null ] ) ; if( temp_domainURL.>indexOf( "wnj" ) > 0, [ if( postMap.>type == "poa_person", [ temp_relationshipPosts = toBag( postMap.>wnj.>relationships.>post_to_poa_person ) ] ) ; if( postMap.>type == "poa_practice", [ temp_relationshipPosts = toBag( postMap.>wnj.>relationships.>post_to_poa_practice ) ] ) ; if( postMap.>type == "poa_industry", [ temp_relationshipPosts = toBag( postMap.>wnj.>relationships.>post_to_poa_industry ) ] ) ; if( postMap.>type == "post", [ temp_relationshipPosts = toBag( postMap.>wnj.>relationships.>post_to_post ) ] ) ; if( postMap.>type == "page", [ temp_relationshipPosts = toBag( postMap.>wnj.>relationships.>page_to_post ) ] ) ; null ] ) ; if( temp_domainURL.>indexOf( "much" ) > 0, [ if( postMap.>type == "poa_person", [ temp_relationshipPosts = toBag( postMap.>much_shelist.>relationships.>post_to_poa_person ) ] ) ; if( postMap.>type == "poa_practice", [ temp_relationshipPosts = toBag( postMap.>much_shelist.>relationships.>post_to_poa_practice ) ] ) ; if( postMap.>type == "poa_industry", [ temp_relationshipPosts = toBag( postMap.>much_shelist.>relationships.>post_to_poa_industry ) ] ) ; if( postMap.>type == "poa_firm", [ temp_relationshipPosts = toBag( postMap.>much_shelist.>relationships.>post_to_poa_firm ) ] ) ; if( postMap.>type == "post", [ temp_relationshipPosts = toBag( postMap.>much_shelist.>relationships.>post_to_post ) ] ) ; if( postMap.>type == "page", [ temp_relationshipPosts = toBag( postMap.>much_shelist.>relationships.>page_to_post ) ] ) ; null ] ) ; if( temp_domainURL.>indexOf( "merchant" ) > 0, [ if( postMap.>type == "poa_person", [ temp_relationshipPosts = toBag( postMap.>merchant_gould.>relationships.>post_to_poa_person ) ] ) ; if( postMap.>type == "poa_practice", [ temp_relationshipPosts = toBag( postMap.>merchant_gould.>relationships.>post_to_poa_practice ) ] ) ; if( postMap.>type == "poa_industry", [ temp_relationshipPosts = toBag( postMap.>merchant_gould.>relationships.>post_to_poa_industry ) ] ) ; if( postMap.>type == "poa_firm", [ temp_relationshipPosts = toBag( postMap.>merchant_gould.>relationships.>post_to_poa_firm ) ] ) ; if( postMap.>type == "post", [ temp_relationshipPosts = toBag( postMap.>merchant_gould.>relationships.>post_to_post ) ] ) ; if( postMap.>type == "page", [ temp_relationshipPosts = toBag( postMap.>merchant_gould.>relationships.>page_to_post ) ] ) ; null ] ) ; if( temp_domainURL.>indexOf( "munck" ) > 0, [ if( postMap.>type == "poa_person", [ temp_relationshipPosts = toBag( postMap.>munck_wilson_mandala.>relationships.>post_to_poa_person ) ] ) ; if( postMap.>type == "poa_practice", [ temp_relationshipPosts = toBag( postMap.>munck_wilson_mandala.>relationships.>post_to_poa_practice ) ] ) ; if( postMap.>type == "poa_industry", [ temp_relationshipPosts = toBag( postMap.>munck_wilson_mandala.>relationships.>post_to_poa_industry ) ] ) ; if( postMap.>type == "poa_office", [ ] ) ; if( postMap.>type == "poa_firm", [ temp_relationshipPosts = toBag( postMap.>munck_wilson_mandala.>relationships.>post_to_poa_firm ) ] ) ; if( postMap.>type == "post", [ temp_relationshipPosts = toBag( postMap.>munck_wilson_mandala.>relationships.>post_to_post ) ] ) ; if( postMap.>type == "page", [ temp_relationshipPosts = toBag( postMap.>munck_wilson_mandala.>relationships.>page_to_post ) ] ) ; null ] ) ; if( temp_domainURL.>indexOf( "thompsonhine" ) > 0, [ if( postMap.>type == "poa_person", [ temp_relationshipPosts = toBag( postMap.>thompsonhine.>relationships.>post_to_poa_person ) ] ) ; if( postMap.>type == "poa_practice", [ temp_relationshipPosts = toBag( postMap.>thompsonhine.>relationships.>post_to_poa_practice ) ] ) ; if( postMap.>type == "poa_industry", [ temp_relationshipPosts = toBag( postMap.>thompsonhine.>relationships.>post_to_poa_industry ) ] ) ; if( postMap.>type == "th_innovation", [ temp_relationshipPosts = toBag( postMap.>thompsonhine.>relationships.>post_to_th_innovation ) ] ) ; if( postMap.>type == "post", [ temp_relationshipPosts = toBag( postMap.>thompsonhine.>relationships.>post_to_post ) ] ) ; if( postMap.>type == "page", [ temp_relationshipPosts = toBag( postMap.>thompsonhine.>relationships.>page_to_post ) ] ) ; null ] ) ; if( temp_domainURL.>indexOf( "dgilbert" ) > 0, [ if( postMap.>type == "poa_person", [ temp_relationshipPosts = toBag( postMap.>davis_gilbert.>relationships.>post_to_poa_person ) ] ) ; if( postMap.>type == "poa_practice", [ temp_relationshipPosts = toBag( postMap.>davis_gilbert.>relationships.>post_to_poa_practice ) ] ) ; if( postMap.>type == "poa_industry", [ temp_relationshipPosts = toBag( postMap.>davis_gilbert.>relationships.>post_to_poa_industry ) ] ) ; if( postMap.>type == "poa_office", [ ] ) ; if( postMap.>type == "poa_firm", [ ] ) ; if( postMap.>type == "post", [ temp_relationshipPosts = toBag( postMap.>davis_gilbert.>relationships.>post_to_post ) ] ) ; if( postMap.>type == "page", [ temp_relationshipPosts = toBag( postMap.>davis_gilbert.>relationships.>page_to_post ) ] ) ; null ] ) ; if( temp_domainURL.>indexOf( "groom" ) > 0, [ if( postMap.>type == "poa_person", [ temp_relationshipPosts = toBag( postMap.>groom_law.>relationships.>post_to_poa_person ) ] ) ; if( postMap.>type == "poa_practice", [ temp_relationshipPosts = toBag( postMap.>groom_law.>relationships.>post_to_poa_practice ) ] ) ; if( postMap.>type == "poa_industry", [ temp_relationshipPosts = toBag( postMap.>groom_law.>relationships.>post_to_poa_industry ) ] ) ; if( postMap.>type == "poa_office", [ ] ) ; if( postMap.>type == "poa_firm", [ temp_relationshipPosts = toBag( postMap.>groom_law.>relationships.>post_to_poa_firm ) ] ) ; if( postMap.>type == "post", [ temp_relationshipPosts = toBag( postMap.>groom_law.>relationships.>post_to_post ) ] ) ; if( postMap.>type == "page", [ temp_relationshipPosts = toBag( postMap.>groom_law.>relationships.>page_to_post ) ] ) ; null ] ) ; if( temp_domainURL.>indexOf( "kaplan" ) > 0, [ if( postMap.>type == "poa_person", [ temp_relationshipPosts = toBag( postMap.>kaplan_kirsch.>relationships.>post_to_poa_person ) ] ) ; if( postMap.>type == "poa_practice", [ temp_relationshipPosts = toBag( postMap.>kaplan_kirsch.>relationships.>post_to_poa_practice ) ] ) ; if( postMap.>type == "poa_industry", [ temp_relationshipPosts = toBag( postMap.>kaplan_kirsch.>relationships.>post_to_poa_industry ) ] ) ; if( postMap.>type == "poa_office", [ ] ) ; if( postMap.>type == "poa_firm", [ temp_relationshipPosts = toBag( postMap.>kaplan_kirsch.>relationships.>post_to_poa_firm ) ] ) ; if( postMap.>type == "post", [ temp_relationshipPosts = toBag( postMap.>kaplan_kirsch.>relationships.>post_to_post ) ] ) ; if( postMap.>type == "page", [ temp_relationshipPosts = toBag( postMap.>kaplan_kirsch.>relationships.>page_to_post ) ] ) ; if( postMap.>type == "kkr_project", [ temp_relationshipPosts = toBag( postMap.>kaplan_kirsch.>relationships.>post_to_kkr_project ) ] ) ; null ] ) ; if( temp_domainURL.>indexOf( "f3law" ) > 0, [ if( postMap.>type == "poa_person", [ temp_relationshipPosts = toBag( postMap.>f3law.>relationships.>post_to_poa_person ) ] ) ; if( postMap.>type == "poa_practice", [ temp_relationshipPosts = toBag( postMap.>f3law.>relationships.>post_to_poa_practice ) ] ) ; if( postMap.>type == "poa_firm", [ temp_relationshipPosts = toBag( postMap.>f3law.>relationships.>post_to_poa_firm ) ] ) ; if( postMap.>type == "poa_client", [ temp_relationshipPosts = toBag( postMap.>f3law.>relationships.>post_to_poa_client ) ] ) ; if( postMap.>type == "post", [ temp_relationshipPosts = toBag( postMap.>f3law.>relationships.>post_to_post ) ] ) ; if( postMap.>type == "page", [ temp_relationshipPosts = toBag( postMap.>f3law.>relationships.>page_to_post ) ] ) ; null ] ) ; if( temp_domainURL.>indexOf( "kleinhornig" ) > 0 || temp_domainURL.>indexOf( "nge" ) > 0, [ if( postMap.>type == "poa_person", [ temp_relationshipPosts = toBag( postMap.>content_pilot_print_client_specific.>relationships.>post_to_poa_person ) ] ) ; if( postMap.>type == "poa_practice", [ temp_relationshipPosts = toBag( postMap.>content_pilot_print_client_specific.>relationships.>post_to_poa_practice ) ] ) ; if( postMap.>type == "poa_developments", [ temp_relationshipPosts = toBag( postMap.>content_pilot_print_client_specific.>relationships.>poa_developments_to_post ) ] ) ; null ] ) ; if( temp_domainURL.>indexOf( "bracewell" ) > 0, [ if( postMap.>type == "poa_person", [ temp_relationshipPosts = toBag( postMap.>content_pilot_print_client_specific.>relationships.>post_to_poa_person ) ] ) ; null ] ) ; temp_relationshipPosts.>do( [ :rpost | tempbarrelationshipPostOrder = int( int( tempbarrelationshipPostOrder ) + 1 ) ; tempValue = int( tempbarrelationshipPostOrder ) ; relationshipPost.get( tempValue, [ new( #cpcore/WordpressPost_relationshipPost ) ], true ).>_order_ = tempValue ; relationshipPost.get( tempValue ).>name = rpost.>post_title ; relationshipPost.get( tempValue ).>postDate = rpost.>post_date ; relationshipPost.get( tempValue ).>postContent = rpost.>post_content ; relationshipPost.get( tempValue ).>postLink = rpost.>link ; tempDateTimestampGMT = rpost.>post_date_gmt ; if( ifEmpty( tempDateTimestampGMT, "" ) != "" && tempDateTimestampGMT.>indexOf( "0001" ) < 0 && !tempDateTimestampGMT.>startsWith( "0" ), [ relationshipPost.get( tempValue ).>postDateGMT = #ve/core/TimestampObject/parse( tempDateTimestampGMT, "yyyy-MM-dd'T'HH:mm:ss" ) ], [ relationshipPost.get( tempValue ).>postDateGMT = null ] ) ; relationshipPost.get( tempValue ).>subtitle = rpost.>subtitle ; relationshipPost.get( tempValue ).>_category = null ; relationshipPost.get( tempValue ).>_subcategory = null ; if( temp_domainURL.>indexOf( "mccarter" ) > 0, [ toBag( rpost.>category ).>do( [ :catg | relationshipPost.get( tempValue ).>_category.>add( connection.findDataValue( "wp-taxonomy-values", catg.>term_taxonomy_id + "", catg.>name + "", true ) ) ] ) ; null ] ) ; if( temp_domainURL.>indexOf( "ebglaw" ) > 0 || temp_domainURL.>indexOf( "advisors.ebglaw" ) > 0 || temp_domainURL.>indexOf( "ebgadvisors" ) > 0 || temp_domainURL.>indexOf( "wnj" ) > 0 || temp_domainURL.>indexOf( "kaplan" ) > 0 || temp_domainURL.>indexOf( "groom" ) > 0 || temp_domainURL.>indexOf( "f3law" ) > 0 || temp_domainURL.>indexOf( "bakerlaw" ) > 0 || temp_domainURL.>indexOf( "merchant" ) > 0 || temp_domainURL.>indexOf( "munck" ) > 0 || temp_domainURL.>indexOf( "kleinhornig" ) > 0 || temp_domainURL.>indexOf( "bracewell" ) > 0 || temp_domainURL.>indexOf( "nge" ) > 0, [ relationshipPost.get( tempValue ).>subtitle = rpost.>excerpt ; toBag( rpost.>category ).>do( [ :catg | relationshipPost.get( tempValue ).>_category.>add( connection.findDataValueByName( "wp-taxonomy-values", catg + "", true ) ) ] ) ; null ] ) ; if( temp_domainURL.>indexOf( "thompsonhine" ) > 0, [ relationshipPost.get( tempValue ).>subtitle = rpost.>excerpt ; toBag( rpost.>categories ).>do( [ :catg | temp_catKey = catg.>key.>decode( 11 ) ; temp_catName = catg.>name.>decode( 11 ) ; temp_catTerms = toBag( catg.>terms ) ; relationshipPost.get( tempValue ).>_category.>add( connection.findDataValue( "wp-taxonomy-values", temp_catKey + "", temp_catName + "", true ) ) ; toBag( temp_catTerms ).>do( [ :catg | relationshipPost.get( tempValue ).>_subcategory.>add( connection.findDataValueByName( "wp-taxonomy-values", catg.>decode( 11 ) + "", true ) ) ] ) ; null ] ) ; null ] ) ; if( temp_domainURL.>indexOf( "deflaw" ) > 0 || temp_domainURL.>indexOf( "dgilbert" ) > 0, [ toBag( rpost.>post_category ).>do( [ :catg | relationshipPost.get( tempValue ).>_category.>add( connection.findDataValueByName( "wp-taxonomy-values", catg + "", true ) ) ] ) ; null ] ) ; null ] ) ; if( tempWPPostObj.>relationshipPost.>faultIn().>size() < relationshipPost.>size() - 1, [ tempWPPostObj.>relationshipPost.>addAll( range( tempWPPostObj.>relationshipPost.>size(), relationshipPost.>size() - 2 ).>collect( [ :i | new( #cpcore/WordpressPost_relationshipPost ) ] ) ) ], [ if( tempWPPostObj.>relationshipPost.>size() > relationshipPost.>size() - 1, [ tempWPPostObj.>relationshipPost = tempWPPostObj.>relationshipPost.>slice( 0, relationshipPost.>size() - 1 ) ] ) ] ) ; range( 0, relationshipPost.>size() - 2 ).>do( [ :i | tempWPPostObj.>relationshipPost[ i ].>name = relationshipPost[ i ].>name ; tempWPPostObj.>relationshipPost[ i ].>postDate = relationshipPost[ i ].>postDate ; tempWPPostObj.>relationshipPost[ i ].>postDateGMT = relationshipPost[ i ].>postDateGMT ; tempWPPostObj.>relationshipPost[ i ].>subtitle = relationshipPost[ i ].>subtitle ; tempWPPostObj.>relationshipPost[ i ].>_category = relationshipPost[ i ].>_category ; tempWPPostObj.>relationshipPost[ i ].>_subcategory = relationshipPost[ i ].>_subcategory ; tempWPPostObj.>relationshipPost[ i ].>postContent = relationshipPost[ i ].>postContent ; tempWPPostObj.>relationshipPost[ i ].>postLink = relationshipPost[ i ].>postLink ; tempWPPostObj.>relationshipPost[ i ].>_order_ = relationshipPost[ i ].>_order_ ; null ] ) ] ) ; if( temp_domainURL.>indexOf( "deflaw" ) > 0, [ relationshipResults = { "ignore" : "" } ; tempbarrelationshipResultsOrder = int( "-1" ) ; temp_relationshipResults = null ; if( temp_domainURL.>indexOf( "deflaw" ) > 0, [ if( postMap.>type == "poa_person", [ temp_relationshipResults = toBag( postMap.>drew_eckl.>relationships.>results_to_poa_person ) ] ) ; if( postMap.>type == "poa_practice", [ temp_relationshipResults = toBag( postMap.>drew_eckl.>relationships.>results_to_poa_practice ) ] ) ; null ] ) ; temp_relationshipResults.>do( [ :rresult | tempbarrelationshipResultsOrder = int( int( tempbarrelationshipResultsOrder ) + 1 ) ; tempValue = int( tempbarrelationshipResultsOrder ) ; relationshipResults.get( tempValue, [ new( #cpcore/WordpressPost_relationshipResults ) ], true ).>_order_ = tempValue ; relationshipResults.get( tempValue ).>name = rresult.>post_title ; relationshipResults.get( tempValue ).>postDate = rresult.>post_date ; relationshipResults.get( tempValue ).>postContent = rresult.>post_content ; tempDateTimestampGMT = rresult.>post_date_gmt ; if( ifEmpty( tempDateTimestampGMT, "" ) != "" && tempDateTimestampGMT.>indexOf( "0001" ) < 0 && !tempDateTimestampGMT.>startsWith( "0" ), [ relationshipResults.get( tempValue ).>postDateGMT = #ve/core/TimestampObject/parse( tempDateTimestampGMT, "yyyy-MM-dd'T'HH:mm:ss" ) ], [ relationshipResults.get( tempValue ).>postDateGMT = null ] ) ; relationshipResults.get( tempValue ).>subtitle = rresult.>subtitle ; relationshipResults.get( tempValue ).>_category = null ; if( temp_domainURL.>indexOf( "deflaw" ) > 0, [ toBag( rresult.>post_category ).>do( [ :catg | relationshipResults.get( tempValue ).>_category.>add( connection.findDataValue( "wp-taxonomy-values", catg + "", catg + "", true ) ) ] ) ; null ] ) ; null ] ) ; if( tempWPPostObj.>relationshipResults.>faultIn().>size() < relationshipResults.>size() - 1, [ tempWPPostObj.>relationshipResults.>addAll( range( tempWPPostObj.>relationshipResults.>size(), relationshipResults.>size() - 2 ).>collect( [ :i | new( #cpcore/WordpressPost_relationshipResults ) ] ) ) ], [ if( tempWPPostObj.>relationshipResults.>size() > relationshipResults.>size() - 1, [ tempWPPostObj.>relationshipResults = tempWPPostObj.>relationshipResults.>slice( 0, relationshipResults.>size() - 1 ) ] ) ] ) ; range( 0, relationshipResults.>size() - 2 ).>do( [ :i | tempWPPostObj.>relationshipResults[ i ].>name = relationshipResults[ i ].>name ; tempWPPostObj.>relationshipResults[ i ].>postDate = relationshipResults[ i ].>postDate ; tempWPPostObj.>relationshipResults[ i ].>postDateGMT = relationshipResults[ i ].>postDateGMT ; tempWPPostObj.>relationshipResults[ i ].>subtitle = relationshipResults[ i ].>subtitle ; tempWPPostObj.>relationshipResults[ i ].>_category = relationshipResults[ i ].>_category ; tempWPPostObj.>relationshipResults[ i ].>postContent = relationshipResults[ i ].>postContent ; tempWPPostObj.>relationshipResults[ i ].>_order_ = relationshipResults[ i ].>_order_ ; null ] ) ] ) ; if( temp_domainURL.>indexOf( "chambliss" ) > 0, [ tempWPPostObj.>quotesRTE = postMap.>cpwebpilot.>chambliss_bio_quote_metabox ; relationshipPost = { "ignore" : "" } ; tempbarrelationshipPostOrder = int( "-1" ) ; temp_relationshipPosts = null ; if( postMap.>type == "poa_person", [ temp_relationshipPosts = toBag( postMap.>chambliss.>relationships.>post_to_poa_person ) ] ) ; if( postMap.>type == "poa_practice", [ temp_relationshipPosts = toBag( postMap.>chambliss.>relationships.>post_to_poa_practice ) ] ) ; if( postMap.>type == "poa_industry", [ temp_relationshipPosts = toBag( postMap.>chambliss.>relationships.>post_to_poa_industry ) ] ) ; if( postMap.>type == "poa_office", [ temp_relationshipPosts = toBag( postMap.>chambliss.>relationships.>poa_office_to_post ) ] ) ; temp_relationshipPosts.>do( [ :rpost | tempbarrelationshipPostOrder = int( int( tempbarrelationshipPostOrder ) + 1 ) ; tempValue = int( tempbarrelationshipPostOrder ) ; relationshipPost.get( tempValue, [ new( #cpcore/WordpressPost_relationshipPost ) ], true ).>_order_ = tempValue ; relationshipPost.get( tempValue ).>name = rpost ; null ] ) ; if( tempWPPostObj.>relationshipPost.>faultIn().>size() < relationshipPost.>size() - 1, [ tempWPPostObj.>relationshipPost.>addAll( range( tempWPPostObj.>relationshipPost.>size(), relationshipPost.>size() - 2 ).>collect( [ :i | new( #cpcore/WordpressPost_relationshipPost ) ] ) ) ], [ if( tempWPPostObj.>relationshipPost.>size() > relationshipPost.>size() - 1, [ tempWPPostObj.>relationshipPost = tempWPPostObj.>relationshipPost.>slice( 0, relationshipPost.>size() - 1 ) ] ) ] ) ; range( 0, relationshipPost.>size() - 2 ).>do( [ :i | tempWPPostObj.>relationshipPost[ i ].>name = relationshipPost[ i ].>name ; tempWPPostObj.>relationshipPost[ i ].>_order_ = relationshipPost[ i ].>_order_ ; null ] ) ; null ] ) ; if( temp_domainURL.>indexOf( "bakerlaw" ) > 0, [ tempWPPostObj.>notableText = postMap.>cpwebpilot.>bh_introduction ; tempWPPostObj.>quotesRTE = postMap.>cpwebpilot.>bh_intro_quote_quote ; tempWPPostObj.>quotesAttribution = postMap.>cpwebpilot.>bh_intro_quote_attribution ; tempWPPostObj.>affilicationsRTE = postMap.>cpwebpilot.>bh_memberships ; tempWPPostObj.>priorPositions = postMap.>cpwebpilot.>bh_prior_positions ; tempWPPostObj.>proBonoExperienceRTE = postMap.>cpwebpilot.>bh_pro_bono_experience ; tempWPPostObj.>representativeExperience = postMap.>cpwebpilot.>poa_representative_experience_content ; tempWPPostObj.>recognitionsRTE = postMap.>cpwebpilot.>poa_honors_and_awards_content ; null ] ) ; if( temp_domainURL.>indexOf( "bracewell" ) > 0, [ tempWPPostObj.>affilicationsRTE = postMap.>cpwebpilot.>bracewell_affiliation ; tempWPPostObj.>clerkshipsRTE = postMap.>cpwebpilot.>bracewell_clerkships ; tempWPPostObj.>recognitionsIntro = postMap.>cpwebpilot.>bracewell_fld_recognitions_introduction ; tempWPPostObj.>recognitionsRTE = postMap.>cpwebpilot.>bracewell_fld_recognitions_content ; null ] ) ; if( temp_domainURL.>indexOf( "groom" ) > 0, [ tempWPPostObj.>quotesRTE = postMap.>cpwebpilot.>groom_law_person_quote_content ; tempWPPostObj.>externalPublicationName = postMap.>cpwebpilot.>groom_law_resources_source ; tempWPPostObj.>externalPublicationURL = postMap.>cpwebpilot.>groom_law_resources_source_url ; tempWPPostObj.>eventFromDateTime = null ; tempWPPostObj.>eventToDateTime = null ; temp_eventFromDateTime = postMap.>cpwebpilot.>groom_law_event_start_date + " " + postMap.>cpwebpilot.>groom_law_event_start_time ; temp_eventToDateTime = postMap.>cpwebpilot.>groom_law_event_end_date + " " + postMap.>cpwebpilot.>groom_law_event_end_time ; if( ifEmpty( temp_eventFromDateTime, "" ) != "" && temp_eventFromDateTime.>indexOf( "0001" ) < 0 && temp_eventFromDateTime.>length() == 17, [ tempWPPostObj.>eventFromDateTime = #ve/core/TimestampObject/parse( temp_eventFromDateTime, "yyyyMMdd HH:mm:ss" ) ], [ tempWPPostObj.>eventFromDateTime = null ] ) ; if( ifEmpty( temp_eventToDateTime, "" ) != "" && temp_eventToDateTime.>indexOf( "0001" ) < 0 && temp_eventToDateTime.>length() == 17, [ tempWPPostObj.>eventToDateTime = #ve/core/TimestampObject/parse( temp_eventToDateTime, "yyyyMMdd HH:mm:ss" ) ], [ tempWPPostObj.>eventToDateTime = null ] ) ; null ] ) ; if( temp_domainURL.>indexOf( "nge" ) > 0, [ tempWPPostObj.>recognitionsRTE = postMap.>content_pilot_print_client_specific.>recognitions ; null ] ) ; if( temp_domainURL.>indexOf( "mccarter" ) > 0 || temp_domainURL.>indexOf( "wwd" ) > 0 || temp_domainURL.>indexOf( "chambliss" ) > 0 || temp_domainURL.>indexOf( "diamond" ) > 0 || temp_domainURL.>indexOf( "ebglaw" ) > 0 || temp_domainURL.>indexOf( "dgilbert" ) > 0 || temp_domainURL.>indexOf( "advisors.ebglaw" ) > 0 || temp_domainURL.>indexOf( "ebgadvisors" ) > 0 || temp_domainURL.>indexOf( "wnj" ) > 0 || temp_domainURL.>indexOf( "thompsonhine" ) > 0 || temp_domainURL.>indexOf( "kaplan" ) > 0 || temp_domainURL.>indexOf( "bracewell" ) > 0 || temp_domainURL.>indexOf( "susman" ) > 0, [ relationshipExperience = { "ignore" : "" } ; temprelationshipExpOrder = int( "-1" ) ; temp_relationshipExps = null ; if( temp_domainURL.>indexOf( "mccarter" ) > 0, [ if( postMap.>type == "poa_person", [ temp_relationshipExps = toBag( postMap.>mccarter.>relationships.>poa_experience_to_poa_person ) ] ) ; if( postMap.>type == "poa_practice", [ temp_relationshipExps = toBag( postMap.>mccarter.>relationships.>poa_experience_to_poa_practice ) ] ) ; if( postMap.>type == "poa_industry", [ temp_relationshipExps = toBag( postMap.>mccarter.>relationships.>poa_experience_to_poa_industry ) ] ) ; null ] ) ; if( temp_domainURL.>indexOf( "wwd" ) > 0, [ if( postMap.>type == "poa_person", [ temp_relationshipExps = toBag( postMap.>wwd.>relationships.>poa_experience_to_poa_person ) ] ) ; if( postMap.>type == "poa_practice", [ temp_relationshipExps = toBag( postMap.>wwd.>relationships.>poa_experience_to_poa_practice ) ] ) ; if( postMap.>type == "poa_industry", [ temp_relationshipExps = toBag( postMap.>wwd.>relationships.>poa_experience_to_poa_industry ) ] ) ; null ] ) ; if( temp_domainURL.>indexOf( "chambliss" ) > 0, [ if( postMap.>type == "poa_person", [ temp_relationshipExps = toBag( postMap.>chambliss.>relationships.>poa_experience_to_poa_person ) ] ) ; if( postMap.>type == "poa_practice", [ temp_relationshipExps = toBag( postMap.>chambliss.>relationships.>poa_experience_to_poa_practice ) ] ) ; if( postMap.>type == "poa_industry", [ temp_relationshipExps = toBag( postMap.>chambliss.>relationships.>poa_experience_to_poa_industry ) ] ) ; null ] ) ; if( temp_domainURL.>indexOf( "diamond" ) > 0, [ if( postMap.>type == "poa_person", [ temp_relationshipExps = toBag( postMap.>diamond.>relationships.>poa_experience_to_poa_person ) ] ) ; if( postMap.>type == "poa_practice", [ temp_relationshipExps = toBag( postMap.>diamond.>relationships.>poa_experience_to_poa_practice ) ] ) ; if( postMap.>type == "poa_industry", [ temp_relationshipExps = toBag( postMap.>diamond.>relationships.>poa_experience_to_poa_industry ) ] ) ; null ] ) ; if( temp_domainURL.>indexOf( "dgilbert" ) > 0, [ if( postMap.>type == "poa_person", [ temp_relationshipExps = toBag( postMap.>davis_gilbert.>relationships.>poa_experience_to_poa_person ) ] ) ; if( postMap.>type == "poa_practice", [ temp_relationshipExps = toBag( postMap.>davis_gilbert.>relationships.>poa_experience_to_poa_practice ) ] ) ; if( postMap.>type == "poa_industry", [ temp_relationshipExps = toBag( postMap.>davis_gilbert.>relationships.>poa_experience_to_poa_industry ) ] ) ; if( postMap.>type == "poa_firm", [ ] ) ; if( postMap.>type == "poa_office", [ ] ) ; if( postMap.>type == "poa_career", [ ] ) ; if( postMap.>type == "post", [ temp_relationshipExps = toBag( postMap.>davis_gilbert.>relationships.>post_to_poa_experience ) ] ) ; if( postMap.>type == "page", [ temp_relationshipExps = toBag( postMap.>davis_gilbert.>relationships.>page_to_poa_experience ) ] ) ; null ] ) ; if( temp_domainURL.>indexOf( "ebglaw" ) > 0, [ if( postMap.>type == "poa_person", [ temp_relationshipExps = toBag( postMap.>ebglaw.>relationships.>poa_experience_to_poa_person ) ] ) ; if( postMap.>type == "poa_practice", [ temp_relationshipExps = toBag( postMap.>ebglaw.>relationships.>poa_experience_to_poa_practice ) ] ) ; if( postMap.>type == "poa_industry", [ temp_relationshipExps = toBag( postMap.>ebglaw.>relationships.>poa_experience_to_poa_industry ) ] ) ; if( postMap.>type == "ebg_trending_issue", [ temp_relationshipExps = toBag( postMap.>ebglaw.>relationships.>poa_experience_to_ebg_trending_issue ) ] ) ; if( postMap.>type == "poa_firm", [ ] ) ; if( postMap.>type == "poa_office", [ ] ) ; if( postMap.>type == "poa_career", [ ] ) ; if( postMap.>type == "post", [ temp_relationshipExps = toBag( postMap.>ebglaw.>relationships.>post_to_poa_experience ) ] ) ; if( postMap.>type == "page", [ temp_relationshipExps = toBag( postMap.>ebglaw.>relationships.>page_to_poa_experience ) ] ) ; null ] ) ; if( temp_domainURL.>indexOf( "advisors.ebglaw" ) > 0 || temp_domainURL.>indexOf( "ebgadvisors" ) > 0, [ if( postMap.>type == "poa_person", [ temp_relationshipExps = toBag( postMap.>ebgadvisors.>relationships.>poa_experience_to_poa_person ) ] ) ; if( postMap.>type == "poa_practice", [ temp_relationshipExps = toBag( postMap.>ebgadvisors.>relationships.>poa_experience_to_poa_practice ) ] ) ; if( postMap.>type == "poa_industry", [ temp_relationshipExps = toBag( postMap.>ebgadvisors.>relationships.>poa_experience_to_poa_industry ) ] ) ; if( postMap.>type == "ebg_trending_issue", [ temp_relationshipExps = toBag( postMap.>ebgadvisors.>relationships.>poa_experience_to_ebg_trending_issue ) ] ) ; if( postMap.>type == "poa_firm", [ ] ) ; if( postMap.>type == "poa_office", [ ] ) ; if( postMap.>type == "poa_career", [ ] ) ; if( postMap.>type == "post", [ temp_relationshipExps = toBag( postMap.>ebgadvisors.>relationships.>post_to_poa_experience ) ] ) ; if( postMap.>type == "page", [ temp_relationshipExps = toBag( postMap.>ebgadvisors.>relationships.>page_to_poa_experience ) ] ) ; null ] ) ; if( temp_domainURL.>indexOf( "wnj" ) > 0, [ if( postMap.>type == "poa_person", [ temp_relationshipExps = toBag( postMap.>wnj.>relationships.>poa_experience_to_poa_person ) ] ) ; if( postMap.>type == "poa_practice", [ temp_relationshipExps = toBag( postMap.>wnj.>relationships.>poa_experience_to_poa_practice ) ] ) ; if( postMap.>type == "poa_industry", [ temp_relationshipExps = toBag( postMap.>wnj.>relationships.>poa_experience_to_poa_industry ) ] ) ; if( postMap.>type == "post", [ temp_relationshipExps = toBag( postMap.>wnj.>relationships.>post_to_poa_experience ) ] ) ; if( postMap.>type == "page", [ temp_relationshipExps = toBag( postMap.>wnj.>relationships.>page_to_poa_experience ) ] ) ; null ] ) ; if( temp_domainURL.>indexOf( "thompsonhine" ) > 0, [ if( postMap.>type == "poa_person", [ temp_relationshipExps = toBag( postMap.>thompsonhine.>relationships.>poa_experience_to_poa_person ) ] ) ; if( postMap.>type == "poa_practice", [ temp_relationshipExps = toBag( postMap.>thompsonhine.>relationships.>poa_experience_to_poa_practice ) ] ) ; if( postMap.>type == "poa_industry", [ temp_relationshipExps = toBag( postMap.>thompsonhine.>relationships.>poa_experience_to_poa_industry ) ] ) ; if( postMap.>type == "post", [ temp_relationshipExps = toBag( postMap.>thompsonhine.>relationships.>post_to_poa_experience ) ] ) ; if( postMap.>type == "page", [ temp_relationshipExps = toBag( postMap.>thompsonhine.>relationships.>page_to_poa_experience ) ] ) ; null ] ) ; if( temp_domainURL.>indexOf( "kaplan" ) > 0, [ if( postMap.>type == "poa_person", [ temp_relationshipExps = toBag( postMap.>kaplan_kirsch.>relationships.>poa_person_to_kkr_project ) ] ) ; if( postMap.>type == "poa_practice", [ temp_relationshipExps = toBag( postMap.>kaplan_kirsch.>relationships.>poa_practice_to_kkr_project ) ] ) ; if( postMap.>type == "poa_industry", [ temp_relationshipExps = toBag( postMap.>kaplan_kirsch.>relationships.>poa_industry_to_kkr_project ) ] ) ; if( postMap.>type == "poa_office", [ ] ) ; if( postMap.>type == "poa_firm", [ temp_relationshipExps = toBag( postMap.>kaplan_kirsch.>relationships.>post_to_kkr_project ) ] ) ; if( postMap.>type == "post", [ temp_relationshipExps = toBag( postMap.>kaplan_kirsch.>relationships.>post_to_kkr_project ) ] ) ; if( postMap.>type == "page", [ temp_relationshipExps = toBag( postMap.>kaplan_kirsch.>relationships.>page_to_kkr_project ) ] ) ; if( postMap.>type == "kkr_project", [ temp_relationshipExps = toBag( postMap.>kaplan_kirsch.>relationships.>kkr_project_to_kkr_project ) ] ) ; null ] ) ; if( temp_domainURL.>indexOf( "bracewell" ) > 0, [ if( postMap.>type == "poa_person", [ temp_relationshipExps = toBag( postMap.>content_pilot_print_client_specific.>relationships.>poa_person_to_br_resources ) ] ) ; null ] ) ; if( temp_domainURL.>indexOf( "susman" ) > 0, [ if( postMap.>type == "poa_person", [ temp_relationshipExps = toBag( postMap.>susman_godfrey.>relationships.>poa_experience_to_poa_person ) ] ) ; null ] ) ; temp_relationshipExps.>do( [ :rpost | temprelationshipExpOrder = int( int( temprelationshipExpOrder ) + 1 ) ; tempValue = int( temprelationshipExpOrder ) ; relationshipExperience.get( tempValue, [ new( #cpcore/WordpressPost_relationshipExperience ) ], true ).>_order_ = tempValue ; relationshipExperience.get( tempValue ).>name = rpost.>post_title ; relationshipExperience.get( tempValue ).>postContent = rpost.>post_content ; relationshipExperience.get( tempValue ).>postLink = rpost.>link ; relationshipExperience.get( tempValue ).>postDate = rpost.>post_date ; tempDateTimestampGMT = rpost.>post_date_gmt ; if( ifEmpty( tempDateTimestampGMT, "" ) != "" && tempDateTimestampGMT.>indexOf( "0001" ) < 0 && !tempDateTimestampGMT.>startsWith( "0" ), [ relationshipExperience.get( tempValue ).>postDateGMT = #ve/core/TimestampObject/parse( tempDateTimestampGMT, "yyyy-MM-dd'T'HH:mm:ss" ) ], [ relationshipExperience.get( tempValue ).>postDateGMT = null ] ) ; toBag( rpost.>br_resources_taxonomy ).>do( [ :catg | relationshipExperience.get( tempValue ).>_taxonomy.>add( connection.findDataValue( "wp-taxonomy-values", catg + "", catg + "", true ) ) ] ) ; tempREImage = rpost.>thumbnail_url ; debug( "tempREImage >>> " + tempREImage ) ; temp_imageFile = if( ifEmpty( tempREImage, "" ) != "", [ #webconnections/ExternalWebConnection/getConnection( "GenerateDocument" ).impl.invoke( "DownloadResource", { "domainURL" : tempREImage.>encode( 11 ), "basicAuth" : basicAuth } ) ], null ) ; if( temp_imageFile.>contentType.>indexOf( "image" ) != -1, [ relationshipExperience.get( tempValue ).>thumbnailImage = temp_imageFile ], [ relationshipExperience.get( tempValue ).>thumbnailImage = null ] ) ; null ] ) ; if( tempWPPostObj.>relationshipExperience.>faultIn().>size() < relationshipExperience.>size() - 1, [ tempWPPostObj.>relationshipExperience.>addAll( range( tempWPPostObj.>relationshipExperience.>size(), relationshipExperience.>size() - 2 ).>collect( [ :i | new( #cpcore/WordpressPost_relationshipExperience ) ] ) ) ], [ if( tempWPPostObj.>relationshipExperience.>size() > relationshipExperience.>size() - 1, [ tempWPPostObj.>relationshipExperience = tempWPPostObj.>relationshipExperience.>slice( 0, relationshipExperience.>size() - 1 ) ] ) ] ) ; range( 0, relationshipExperience.>size() - 2 ).>do( [ :i | tempWPPostObj.>relationshipExperience[ i ].>name = relationshipExperience[ i ].>name ; tempWPPostObj.>relationshipExperience[ i ].>postContent = relationshipExperience[ i ].>postContent ; tempWPPostObj.>relationshipExperience[ i ].>postLink = relationshipExperience[ i ].>postLink ; tempWPPostObj.>relationshipExperience[ i ].>_taxonomy = relationshipExperience[ i ].>_taxonomy ; tempWPPostObj.>relationshipExperience[ i ].>thumbnailImage = relationshipExperience[ i ].>thumbnailImage ; tempWPPostObj.>relationshipExperience[ i ].>postDate = relationshipExperience[ i ].>postDate ; tempWPPostObj.>relationshipExperience[ i ].>postDateGMT = relationshipExperience[ i ].>postDateGMT ; tempWPPostObj.>relationshipExperience[ i ].>_order_ = relationshipExperience[ i ].>_order_ ; null ] ) ], [ relationshipExperience = { "ignore" : "" } ; temprelationshipExpOrder = int( "-1" ) ; temp_relationshipExps = null ; if( postMap.>type == "poa_person", [ temp_relationshipExps = toBag( postMap.>content_pilot_print.>relationships.>poa_experience_to_poa_person ) ] ) ; if( postMap.>type == "poa_practice", [ temp_relationshipExps = toBag( postMap.>content_pilot_print.>relationships.>poa_experience_to_poa_practice ) ] ) ; if( postMap.>type == "poa_industry", [ temp_relationshipExps = toBag( postMap.>content_pilot_print.>relationships.>poa_experience_to_poa_industry ) ] ) ; temp_relationshipExps.>do( [ :re | temprelationshipExpOrder = int( int( temprelationshipExpOrder ) + 1 ) ; tempValue = int( temprelationshipExpOrder ) ; relationshipExperience.get( tempValue, [ new( #cpcore/WordpressPost_relationshipExperience ) ], true ).>_order_ = tempValue ; relationshipExperience.get( tempValue ).>name = re.>decode( 11 ) ; relationshipExperience.get( tempValue ).>postContent = "" ; null ] ) ; if( tempWPPostObj.>relationshipExperience.>faultIn().>size() < relationshipExperience.>size() - 1, [ tempWPPostObj.>relationshipExperience.>addAll( range( tempWPPostObj.>relationshipExperience.>size(), relationshipExperience.>size() - 2 ).>collect( [ :i | new( #cpcore/WordpressPost_relationshipExperience ) ] ) ) ], [ if( tempWPPostObj.>relationshipExperience.>size() > relationshipExperience.>size() - 1, [ tempWPPostObj.>relationshipExperience = tempWPPostObj.>relationshipExperience.>slice( 0, relationshipExperience.>size() - 1 ) ] ) ] ) ; range( 0, relationshipExperience.>size() - 2 ).>do( [ :i | tempWPPostObj.>relationshipExperience[ i ].>name = relationshipExperience[ i ].>name ; tempWPPostObj.>relationshipExperience[ i ].>postContent = "" ; tempWPPostObj.>relationshipExperience[ i ].>_order_ = relationshipExperience[ i ].>_order_ ; null ] ) ] ) ; if( temp_domainURL.>indexOf( "ccsb" ) > 0 || temp_domainURL.>indexOf( "nge" ) > 0, [ relationshipExperience = { "ignore" : "" } ; temprelationshipExpOrder = int( "-1" ) ; temp_relationshipExps = null ; if( temp_domainURL.>indexOf( "ccsb" ) > 0, [ temp_relationshipExps = toBag( postMap.>content_pilot_print.>groups.>ccsb_areas_of_focus_repeater ) ; temp_relationshipExps.>do( [ :rpost | temprelationshipExpOrder = int( int( temprelationshipExpOrder ) + 1 ) ; tempValue = int( temprelationshipExpOrder ) ; relationshipExperience.get( tempValue, [ new( #cpcore/WordpressPost_relationshipExperience ) ], true ).>_order_ = tempValue ; relationshipExperience.get( tempValue ).>name = rpost.>ccsb_areas_of_focus_name ; relationshipExperience.get( tempValue ).>postContent = rpost.>ccsb_areas_of_focus_description_less ; relationshipExperience.get( tempValue ).>postContentMore = rpost.>ccsb_areas_of_focus_description_more ; relationshipExperience.get( tempValue ).>postLink = rpost.>link ; null ] ) ; null ] ) ; if( temp_domainURL.>indexOf( "nge" ) > 0, [ temp_relationshipExps = toBag( postMap.>content_pilot_print_client_specific.>relationships.>nge_focus_area ) ; temp_relationshipExps.>do( [ :rpost | temprelationshipExpOrder = int( int( temprelationshipExpOrder ) + 1 ) ; tempValue = int( temprelationshipExpOrder ) ; relationshipExperience.get( tempValue, [ new( #cpcore/WordpressPost_relationshipExperience ) ], true ).>_order_ = tempValue ; relationshipExperience.get( tempValue ).>name = rpost.>post_title ; relationshipExperience.get( tempValue ).>postLink = rpost.>link ; null ] ) ; null ] ) ; if( tempWPPostObj.>relationshipExperience.>faultIn().>size() < relationshipExperience.>size() - 1, [ tempWPPostObj.>relationshipExperience.>addAll( range( tempWPPostObj.>relationshipExperience.>size(), relationshipExperience.>size() - 2 ).>collect( [ :i | new( #cpcore/WordpressPost_relationshipExperience ) ] ) ) ], [ if( tempWPPostObj.>relationshipExperience.>size() > relationshipExperience.>size() - 1, [ tempWPPostObj.>relationshipExperience = tempWPPostObj.>relationshipExperience.>slice( 0, relationshipExperience.>size() - 1 ) ] ) ] ) ; range( 0, relationshipExperience.>size() - 2 ).>do( [ :i | tempWPPostObj.>relationshipExperience[ i ].>name = relationshipExperience[ i ].>name ; tempWPPostObj.>relationshipExperience[ i ].>postContent = relationshipExperience[ i ].>postContent ; tempWPPostObj.>relationshipExperience[ i ].>postContentMore = relationshipExperience[ i ].>postContentMore ; tempWPPostObj.>relationshipExperience[ i ].>postLink = relationshipExperience[ i ].>postLink ; tempWPPostObj.>relationshipExperience[ i ].>_order_ = relationshipExperience[ i ].>_order_ ; null ] ) ] ) ; if( temp_domainURL.>indexOf( "ebglaw" ) > 0 || temp_domainURL.>indexOf( "advisors.ebglaw" ) > 0 || temp_domainURL.>indexOf( "ebgadvisors" ) > 0, [ customExperienceText = { "ignore" : "" } ; temp_customExperienceTextOrder = int( "-1" ) ; temp_customExperienceText = null ; if( temp_domainURL.>indexOf( "ebglaw" ) > 0 || temp_domainURL.>indexOf( "advisors.ebglaw" ) > 0 || temp_domainURL.>indexOf( "ebgadvisors" ) > 0, [ if( postMap.>type == "poa_person", [ temp_customExperienceText = toBag( postMap.>content_pilot_print.>groups.>ebglaw_experience_repeater ) ] ) ; if( postMap.>type == "poa_practice", [ temp_customExperienceText = toBag( postMap.>content_pilot_print.>groups.>ebglaw_experience_repeater ) ] ) ; if( postMap.>type == "poa_industry", [ temp_customExperienceText = toBag( postMap.>content_pilot_print.>groups.>ebglaw_experience_repeater ) ] ) ; if( postMap.>type == "ebg_trending_issue", [ temp_customExperienceText = toBag( postMap.>content_pilot_print.>groups.>ebglaw_experience_repeater ) ] ) ; if( postMap.>type == "poa_firm", [ ] ) ; if( postMap.>type == "poa_office", [ ] ) ; if( postMap.>type == "poa_career", [ ] ) ; if( postMap.>type == "post", [ temp_customExperienceText = toBag( postMap.>content_pilot_print.>groups.>ebglaw_experience_repeater ) ] ) ; if( postMap.>type == "page", [ temp_customExperienceText = toBag( postMap.>content_pilot_print.>groups.>ebglaw_experience_repeater ) ] ) ; null ] ) ; temp_customExperienceText.>do( [ :rpost | temp_customExperienceTextOrder = int( int( temp_customExperienceTextOrder ) + 1 ) ; tempValue = int( temp_customExperienceTextOrder ) ; customExperienceText.get( tempValue, [ new( #cpcore/WordpressPost_customExperienceText ) ], true ).>_order_ = tempValue ; customExperienceText.get( tempValue ).>title = rpost.>ebglaw_experience_title ; customExperienceText.get( tempValue ).>postContent = rpost.>ebglaw_experience_content ; null ] ) ; if( tempWPPostObj.>customExperienceText.>faultIn().>size() < customExperienceText.>size() - 1, [ tempWPPostObj.>customExperienceText.>addAll( range( tempWPPostObj.>customExperienceText.>size(), customExperienceText.>size() - 2 ).>collect( [ :i | new( #cpcore/WordpressPost_customExperienceText ) ] ) ) ], [ if( tempWPPostObj.>customExperienceText.>size() > customExperienceText.>size() - 1, [ tempWPPostObj.>customExperienceText = tempWPPostObj.>customExperienceText.>slice( 0, customExperienceText.>size() - 1 ) ] ) ] ) ; range( 0, customExperienceText.>size() - 2 ).>do( [ :i | tempWPPostObj.>customExperienceText[ i ].>title = customExperienceText[ i ].>title ; tempWPPostObj.>customExperienceText[ i ].>postContent = customExperienceText[ i ].>postContent ; tempWPPostObj.>customExperienceText[ i ].>_order_ = customExperienceText[ i ].>_order_ ; null ] ) ] ) ; if( temp_domainURL.>indexOf( "susman" ) > 0, [ clerkshipsArray = { "ignore" : "" } ; temp_clerkshipsArrayOrder = int( "-1" ) ; temp_clerkshipsArray = null ; if( temp_domainURL.>indexOf( "susman" ) > 0, [ if( postMap.>type == "poa_person", [ temp_clerkshipsArray = toBag( postMap.>content_pilot_print.>groups.>susman_godfrey_clerkships ) ] ) ; null ] ) ; temp_clerkshipsArray.>do( [ :rpost | temp_clerkshipsArrayOrder = int( int( temp_clerkshipsArrayOrder ) + 1 ) ; tempValue = int( temp_clerkshipsArrayOrder ) ; clerkshipsArray.get( tempValue, [ new( #cpcore/WordpressPost_clerkshipsArray ) ], true ).>_order_ = tempValue ; clerkshipsArray.get( tempValue ).>judge = rpost.>judge ; clerkshipsArray.get( tempValue ).>court = rpost.>court ; clerkshipsArray.get( tempValue ).>year = rpost.>year ; null ] ) ; if( tempWPPostObj.>clerkshipsArray.>faultIn().>size() < clerkshipsArray.>size() - 1, [ tempWPPostObj.>clerkshipsArray.>addAll( range( tempWPPostObj.>clerkshipsArray.>size(), clerkshipsArray.>size() - 2 ).>collect( [ :i | new( #cpcore/WordpressPost_clerkshipsArray ) ] ) ) ], [ if( tempWPPostObj.>clerkshipsArray.>size() > clerkshipsArray.>size() - 1, [ tempWPPostObj.>clerkshipsArray = tempWPPostObj.>clerkshipsArray.>slice( 0, clerkshipsArray.>size() - 1 ) ] ) ] ) ; range( 0, clerkshipsArray.>size() - 2 ).>do( [ :i | tempWPPostObj.>clerkshipsArray[ i ].>judge = clerkshipsArray[ i ].>judge ; tempWPPostObj.>clerkshipsArray[ i ].>court = clerkshipsArray[ i ].>court ; tempWPPostObj.>clerkshipsArray[ i ].>year = clerkshipsArray[ i ].>year ; tempWPPostObj.>clerkshipsArray[ i ].>_order_ = clerkshipsArray[ i ].>_order_ ; null ] ) ] ) ; if( temp_domainURL.>indexOf( "bakerlaw" ) > 0, [ customArray1 = { "ignore" : "" } ; temp_customArray1Order = int( "-1" ) ; temp_customArray1 = null ; if( temp_domainURL.>indexOf( "bakerlaw" ) > 0, [ if( postMap.>type == "poa_firm", [ temp_customArray1 = toBag( postMap.>content_pilot_print.>groups.>bh_at_a_glance ) ] ) ; if( postMap.>type == "bh_diversity", [ temp_customArray1 = toBag( postMap.>content_pilot_print.>groups.>bh_at_a_glance ) ] ) ; if( postMap.>type == "bh_pro_bono", [ temp_customArray1 = toBag( postMap.>content_pilot_print.>groups.>bh_at_a_glance ) ] ) ; null ] ) ; temp_customArray1.>do( [ :rpost | temp_customArray1Order = int( int( temp_customArray1Order ) + 1 ) ; tempValue = int( temp_customArray1Order ) ; customArray1.get( tempValue, [ new( #cpcore/WordpressPost_customArray1 ) ], true ).>_order_ = tempValue ; customArray1.get( tempValue ).>customField1 = rpost.>bh_at_a_glance_large_text ; customArray1.get( tempValue ).>customField2 = rpost.>bh_at_a_glance_small_text ; customArray1.get( tempValue ).>customField3 = rpost.>bh_at_a_glance_credit ; null ] ) ; if( tempWPPostObj.>customArray1.>faultIn().>size() < customArray1.>size() - 1, [ tempWPPostObj.>customArray1.>addAll( range( tempWPPostObj.>customArray1.>size(), customArray1.>size() - 2 ).>collect( [ :i | new( #cpcore/WordpressPost_customArray1 ) ] ) ) ], [ if( tempWPPostObj.>customArray1.>size() > customArray1.>size() - 1, [ tempWPPostObj.>customArray1 = tempWPPostObj.>customArray1.>slice( 0, customArray1.>size() - 1 ) ] ) ] ) ; range( 0, customArray1.>size() - 2 ).>do( [ :i | tempWPPostObj.>customArray1[ i ].>customField1 = customArray1[ i ].>customField1 ; tempWPPostObj.>customArray1[ i ].>customField2 = customArray1[ i ].>customField2 ; tempWPPostObj.>customArray1[ i ].>customField3 = customArray1[ i ].>customField3 ; tempWPPostObj.>customArray1[ i ].>_order_ = customArray1[ i ].>_order_ ; null ] ) ] ) ; if( temp_domainURL.>indexOf( "bakeralum" ) > 0, [ customArray1 = { "ignore" : "" } ; temp_customArray1Order = int( "-1" ) ; temp_customArray1 = null ; if( temp_domainURL.>indexOf( "bakeralum" ) > 0, [ if( postMap.>type == "poa_person", [ temp_customArray1 = toBag( postMap.>content_pilot_print.>taxonomies.>bh_alumni_office ) ] ) ; null ] ) ; temp_customArray1.>do( [ :rpost | temp_customArray1Order = int( int( temp_customArray1Order ) + 1 ) ; tempValue = int( temp_customArray1Order ) ; customArray1.get( tempValue, [ new( #cpcore/WordpressPost_customArray1 ) ], true ).>_order_ = tempValue ; customArray1.get( tempValue ).>customField1 = rpost.>decode( 11 ) ; null ] ) ; if( tempWPPostObj.>customArray1.>faultIn().>size() < customArray1.>size() - 1, [ tempWPPostObj.>customArray1.>addAll( range( tempWPPostObj.>customArray1.>size(), customArray1.>size() - 2 ).>collect( [ :i | new( #cpcore/WordpressPost_customArray1 ) ] ) ) ], [ if( tempWPPostObj.>customArray1.>size() > customArray1.>size() - 1, [ tempWPPostObj.>customArray1 = tempWPPostObj.>customArray1.>slice( 0, customArray1.>size() - 1 ) ] ) ] ) ; range( 0, customArray1.>size() - 2 ).>do( [ :i | tempWPPostObj.>customArray1[ i ].>customField1 = customArray1[ i ].>customField1 ; tempWPPostObj.>customArray1[ i ].>customField2 = customArray1[ i ].>customField2 ; tempWPPostObj.>customArray1[ i ].>customField3 = customArray1[ i ].>customField3 ; tempWPPostObj.>customArray1[ i ].>_order_ = customArray1[ i ].>_order_ ; null ] ) ] ) ; if( temp_domainURL.>indexOf( "lugenbuhl" ) > 0 || temp_domainURL.>indexOf( "lawla" ) > 0, [ customArray1 = { "ignore" : "" } ; temp_customArray1Order = int( "-1" ) ; temp_customArray1 = null ; if( postMap.>type == "poa_person", [ temp_customArray1 = toBag( postMap.>content_pilot_print.>groups.>lugenbuhl_affiliations_repeater ) ] ) ; temp_customArray1.>do( [ :rpost | temp_customArray1Order = int( int( temp_customArray1Order ) + 1 ) ; tempValue = int( temp_customArray1Order ) ; customArray1.get( tempValue, [ new( #cpcore/WordpressPost_customArray1 ) ], true ).>_order_ = tempValue ; customArray1.get( tempValue ).>customField3 = "affiliations" ; customArray1.get( tempValue ).>customField1 = rpost.>lugenbuhl_affiliations_title.>decode( 11 ) ; customArray1.get( tempValue ).>customField2 = rpost.>lugenbuhl_affiliations_content.>decode( 11 ) ; null ] ) ; if( tempWPPostObj.>customArray1.>faultIn().>size() < customArray1.>size() - 1, [ tempWPPostObj.>customArray1.>addAll( range( tempWPPostObj.>customArray1.>size(), customArray1.>size() - 2 ).>collect( [ :i | new( #cpcore/WordpressPost_customArray1 ) ] ) ) ], [ if( tempWPPostObj.>customArray1.>size() > customArray1.>size() - 1, [ tempWPPostObj.>customArray1 = tempWPPostObj.>customArray1.>slice( 0, customArray1.>size() - 1 ) ] ) ] ) ; range( 0, customArray1.>size() - 2 ).>do( [ :i | tempWPPostObj.>customArray1[ i ].>customField1 = customArray1[ i ].>customField1 ; tempWPPostObj.>customArray1[ i ].>customField2 = customArray1[ i ].>customField2 ; tempWPPostObj.>customArray1[ i ].>customField3 = customArray1[ i ].>customField3 ; tempWPPostObj.>customArray1[ i ].>_order_ = customArray1[ i ].>_order_ ; null ] ) ] ) ; if( temp_domainURL.>indexOf( "bakerlaw" ) > 0, [ spotlightsArray = { "ignore" : "" } ; tempspotlightsArrayOrder = int( "-1" ) ; temp_spotlightsArrays = null ; temp_spotlightsArrays = toBag( postMap.>content_pilot_print.>groups.>bh_spotlight ) ; temp_spotlightsArrays.>do( [ :re | tempspotlightsArrayOrder = int( int( tempspotlightsArrayOrder ) + 1 ) ; tempValue = int( tempspotlightsArrayOrder ) ; spotlightsArray.get( tempValue, [ new( #cpcore/WordpressPost_spotlightsArray ) ], true ).>_order_ = tempValue ; spotlightsArray.get( tempValue ).>headline = re.>bh_spotlight_headline.>decode( 11 ) ; spotlightsArray.get( tempValue ).>imageSide = re.>bh_spotlight_image_side ; spotlightsArray.get( tempValue ).>spotlightContent = re.>bh_spotlight_content ; spotlightsArray.get( tempValue ).>spotlightLink = re.>bh_spotlight_url.>url ; tempRImage = first( toBag( re.>bh_spotlight_image ) ).>full_url ; debug( "tempRImage >>> " + tempRImage ) ; temp_imageFile = if( ifEmpty( tempRImage, "" ) != "", [ #webconnections/ExternalWebConnection/getConnection( "GenerateDocument" ).impl.invoke( "DownloadResource", { "domainURL" : tempRImage.>encode( 11 ), "basicAuth" : basicAuth } ) ], null ) ; if( temp_imageFile.>contentType.>indexOf( "image" ) != -1, [ spotlightsArray.get( tempValue ).>spotlightImage = temp_imageFile ], [ spotlightsArray.get( tempValue ).>spotlightImage = null ] ) ; null ] ) ; if( tempWPPostObj.>spotlightsArray.>faultIn().>size() < spotlightsArray.>size() - 1, [ tempWPPostObj.>spotlightsArray.>addAll( range( tempWPPostObj.>spotlightsArray.>size(), spotlightsArray.>size() - 2 ).>collect( [ :i | new( #cpcore/WordpressPost_spotlightsArray ) ] ) ) ], [ if( tempWPPostObj.>spotlightsArray.>size() > spotlightsArray.>size() - 1, [ tempWPPostObj.>spotlightsArray = tempWPPostObj.>spotlightsArray.>slice( 0, spotlightsArray.>size() - 1 ) ] ) ] ) ; range( 0, spotlightsArray.>size() - 2 ).>do( [ :i | tempWPPostObj.>spotlightsArray[ i ].>headline = spotlightsArray[ i ].>headline ; tempWPPostObj.>spotlightsArray[ i ].>spotlightImage = spotlightsArray[ i ].>spotlightImage ; tempWPPostObj.>spotlightsArray[ i ].>imageSide = spotlightsArray[ i ].>imageSide ; tempWPPostObj.>spotlightsArray[ i ].>spotlightContent = spotlightsArray[ i ].>spotlightContent ; tempWPPostObj.>spotlightsArray[ i ].>spotlightLink = spotlightsArray[ i ].>spotlightLink ; tempWPPostObj.>spotlightsArray[ i ].>_order_ = spotlightsArray[ i ].>_order_ ; null ] ) ; null ] ) ; if( temp_domainURL.>indexOf( "lathrop" ) > 0, [ spotlightsArray = { "ignore" : "" } ; tempspotlightsArrayOrder = int( "-1" ) ; temp_spotlightsArrays = null ; temp_spotlightsArrays = toBag( postMap.>content_pilot_print.>groups.>poa_badges_repeater ) ; temp_spotlightsArrays.>do( [ :re | tempspotlightsArrayOrder = int( int( tempspotlightsArrayOrder ) + 1 ) ; tempValue = int( tempspotlightsArrayOrder ) ; spotlightsArray.get( tempValue, [ new( #cpcore/WordpressPost_spotlightsArray ) ], true ).>_order_ = tempValue ; spotlightsArray.get( tempValue ).>headline = re.>poa_badges_association ; spotlightsArray.get( tempValue ).>imageSide = null ; spotlightsArray.get( tempValue ).>spotlightContent = re.>poa_badges_years ; spotlightsArray.get( tempValue ).>spotlightLink = re.>poa_badges_url ; tempRImage = first( toBag( re.>poa_badges_image ) ).>full_url ; debug( "tempRImage >>> " + tempRImage ) ; temp_imageFile = if( ifEmpty( tempRImage, "" ) != "", [ #webconnections/ExternalWebConnection/getConnection( "GenerateDocument" ).impl.invoke( "DownloadResource", { "domainURL" : tempRImage.>encode( 11 ), "basicAuth" : basicAuth } ) ], null ) ; if( temp_imageFile.>contentType.>indexOf( "image" ) != -1, [ spotlightsArray.get( tempValue ).>spotlightImage = temp_imageFile ], [ spotlightsArray.get( tempValue ).>spotlightImage = null ] ) ; null ] ) ; if( tempWPPostObj.>spotlightsArray.>faultIn().>size() < spotlightsArray.>size() - 1, [ tempWPPostObj.>spotlightsArray.>addAll( range( tempWPPostObj.>spotlightsArray.>size(), spotlightsArray.>size() - 2 ).>collect( [ :i | new( #cpcore/WordpressPost_spotlightsArray ) ] ) ) ], [ if( tempWPPostObj.>spotlightsArray.>size() > spotlightsArray.>size() - 1, [ tempWPPostObj.>spotlightsArray = tempWPPostObj.>spotlightsArray.>slice( 0, spotlightsArray.>size() - 1 ) ] ) ] ) ; range( 0, spotlightsArray.>size() - 2 ).>do( [ :i | tempWPPostObj.>spotlightsArray[ i ].>headline = spotlightsArray[ i ].>headline ; tempWPPostObj.>spotlightsArray[ i ].>spotlightImage = spotlightsArray[ i ].>spotlightImage ; tempWPPostObj.>spotlightsArray[ i ].>imageSide = spotlightsArray[ i ].>imageSide ; tempWPPostObj.>spotlightsArray[ i ].>spotlightContent = spotlightsArray[ i ].>spotlightContent ; tempWPPostObj.>spotlightsArray[ i ].>spotlightLink = spotlightsArray[ i ].>spotlightLink ; tempWPPostObj.>spotlightsArray[ i ].>_order_ = spotlightsArray[ i ].>_order_ ; null ] ) ; null ] ) ; if( temp_domainURL.>indexOf( "bakerlaw" ) > 0, [ relationshipRecognitions = { "ignore" : "" } ; temprelationshipRecogOrder = int( "-1" ) ; temp_relationshipRecogs = null ; temp_relationshipRecogs = toBag( postMap.>content_pilot_print.>groups.>bh_recognitions ) ; temp_relationshipRecogs.>do( [ :re | temprelationshipRecogOrder = int( int( temprelationshipRecogOrder ) + 1 ) ; tempValue = int( temprelationshipRecogOrder ) ; relationshipRecognitions.get( tempValue, [ new( #cpcore/WordpressPost_relationshipRecognitions ) ], true ).>_order_ = tempValue ; relationshipRecognitions.get( tempValue ).>name = re.>bh_recognitions_large_text.>decode( 11 ) ; relationshipRecognitions.get( tempValue ).>largeText = re.>bh_recognitions_large_text ; relationshipRecognitions.get( tempValue ).>smallText = re.>bh_recognitions_small_text ; relationshipRecognitions.get( tempValue ).>credit = re.>bh_recognitions_credit ; relationshipRecognitions.get( tempValue ).>addImage = re.>bh_recognitions_add_image == "1" ? true : false ; tempRImage = first( toBag( re.>bh_recognitions_image ) ).>full_url ; debug( "tempRImage >>> " + tempRImage ) ; temp_imageFile = if( ifEmpty( tempRImage, "" ) != "", [ #webconnections/ExternalWebConnection/getConnection( "GenerateDocument" ).impl.invoke( "DownloadResource", { "domainURL" : tempRImage.>encode( 11 ), "basicAuth" : basicAuth } ) ], null ) ; if( temp_imageFile.>contentType.>indexOf( "image" ) != -1, [ relationshipRecognitions.get( tempValue ).>recognitionImage = temp_imageFile ], [ relationshipRecognitions.get( tempValue ).>recognitionImage = null ] ) ; null ] ) ; if( tempWPPostObj.>relationshipRecognitions.>faultIn().>size() < relationshipRecognitions.>size() - 1, [ tempWPPostObj.>relationshipRecognitions.>addAll( range( tempWPPostObj.>relationshipRecognitions.>size(), relationshipRecognitions.>size() - 2 ).>collect( [ :i | new( #cpcore/WordpressPost_relationshipRecognitions ) ] ) ) ], [ if( tempWPPostObj.>relationshipRecognitions.>size() > relationshipRecognitions.>size() - 1, [ tempWPPostObj.>relationshipRecognitions = tempWPPostObj.>relationshipRecognitions.>slice( 0, relationshipRecognitions.>size() - 1 ) ] ) ] ) ; range( 0, relationshipRecognitions.>size() - 2 ).>do( [ :i | tempWPPostObj.>relationshipRecognitions[ i ].>name = relationshipRecognitions[ i ].>name ; tempWPPostObj.>relationshipRecognitions[ i ].>largeText = relationshipRecognitions[ i ].>largeText ; tempWPPostObj.>relationshipRecognitions[ i ].>smallText = relationshipRecognitions[ i ].>smallText ; tempWPPostObj.>relationshipRecognitions[ i ].>credit = relationshipRecognitions[ i ].>credit ; tempWPPostObj.>relationshipRecognitions[ i ].>addImage = relationshipRecognitions[ i ].>addImage ; tempWPPostObj.>relationshipRecognitions[ i ].>recognitionImage = relationshipRecognitions[ i ].>recognitionImage ; tempWPPostObj.>relationshipRecognitions[ i ].>_order_ = relationshipRecognitions[ i ].>_order_ ; null ] ) ; null ], [ relationshipRecognitions = { "ignore" : "" } ; temprelationshipRecogOrder = int( "-1" ) ; temp_relationshipRecogs = null ; if( postMap.>type == "poa_person", [ temp_relationshipRecogs = toBag( postMap.>content_pilot_print.>groups.>me_recognitions ) ] ) ; if( postMap.>type == "poa_practice", [ temp_relationshipRecogs = toBag( postMap.>content_pilot_print.>groups.>me_recognitions ) ] ) ; if( postMap.>type == "poa_industry", [ temp_relationshipRecogs = toBag( postMap.>content_pilot_print.>groups.>me_recognitions ) ] ) ; if( temp_domainURL.>indexOf( "mccarter" ) > 0, [ temp_relationshipRecogs = temp_relationshipRecogs.>select( [ :ra | ra.>me_recognitions_active == "1" || ra.>me_recognitions_active == 1 ] ) ] ) ; temp_relationshipRecogs.>do( [ :re | temprelationshipRecogOrder = int( int( temprelationshipRecogOrder ) + 1 ) ; tempValue = int( temprelationshipRecogOrder ) ; relationshipRecognitions.get( tempValue, [ new( #cpcore/WordpressPost_relationshipRecognitions ) ], true ).>_order_ = tempValue ; relationshipRecognitions.get( tempValue ).>name = re.>me_recognitions_content.>decode( 11 ) ; null ] ) ; if( tempWPPostObj.>relationshipRecognitions.>faultIn().>size() < relationshipRecognitions.>size() - 1, [ tempWPPostObj.>relationshipRecognitions.>addAll( range( tempWPPostObj.>relationshipRecognitions.>size(), relationshipRecognitions.>size() - 2 ).>collect( [ :i | new( #cpcore/WordpressPost_relationshipRecognitions ) ] ) ) ], [ if( tempWPPostObj.>relationshipRecognitions.>size() > relationshipRecognitions.>size() - 1, [ tempWPPostObj.>relationshipRecognitions = tempWPPostObj.>relationshipRecognitions.>slice( 0, relationshipRecognitions.>size() - 1 ) ] ) ] ) ; range( 0, relationshipRecognitions.>size() - 2 ).>do( [ :i | tempWPPostObj.>relationshipRecognitions[ i ].>name = relationshipRecognitions[ i ].>name ; tempWPPostObj.>relationshipRecognitions[ i ].>_order_ = relationshipRecognitions[ i ].>_order_ ; null ] ) ; null ] ) ; relationshipTestimonials = { "ignore" : "" } ; temprelationshipTestimonialsOrder = int( "-1" ) ; temp_relationshipTestimonials = null ; if( postMap.>type == "poa_person", [ temp_relationshipTestimonials = toBag( postMap.>content_pilot_print.>relationships.>poa_testimonial_to_poa_person ) ] ) ; if( postMap.>type == "poa_practice", [ temp_relationshipTestimonials = toBag( postMap.>content_pilot_print.>relationships.>poa_testimonial_to_poa_practice ) ] ) ; if( postMap.>type == "poa_industry", [ temp_relationshipTestimonials = toBag( postMap.>content_pilot_print.>relationships.>poa_testimonial_to_poa_industry ) ] ) ; temp_relationshipTestimonials.>do( [ :re | temprelationshipTestimonialsOrder = int( int( temprelationshipTestimonialsOrder ) + 1 ) ; tempValue = int( temprelationshipTestimonialsOrder ) ; relationshipTestimonials.get( tempValue, [ new( #cpcore/WordpressPost_relationshipTestimonials ) ], true ).>_order_ = tempValue ; relationshipTestimonials.get( tempValue ).>name = re.>decode( 11 ) ; null ] ) ; if( tempWPPostObj.>relationshipTestimonials.>faultIn().>size() < relationshipTestimonials.>size() - 1, [ tempWPPostObj.>relationshipTestimonials.>addAll( range( tempWPPostObj.>relationshipTestimonials.>size(), relationshipTestimonials.>size() - 2 ).>collect( [ :i | new( #cpcore/WordpressPost_relationshipTestimonials ) ] ) ) ], [ if( tempWPPostObj.>relationshipTestimonials.>size() > relationshipTestimonials.>size() - 1, [ tempWPPostObj.>relationshipTestimonials = tempWPPostObj.>relationshipTestimonials.>slice( 0, relationshipTestimonials.>size() - 1 ) ] ) ] ) ; range( 0, relationshipTestimonials.>size() - 2 ).>do( [ :i | tempWPPostObj.>relationshipTestimonials[ i ].>name = relationshipTestimonials[ i ].>name ; tempWPPostObj.>relationshipTestimonials[ i ].>_order_ = relationshipTestimonials[ i ].>_order_ ; null ] ) ; relationshipPerson = { "ignore" : "" } ; temprelationshipPersonOrder = int( "-1" ) ; temp_relationshipPerson = null ; if( temp_domainURL.>indexOf( "clm" ) > 0 || temp_domainURL.>indexOf( "ebglaw" ) > 0 || temp_domainURL.>indexOf( "dgilbert" ) > 0 || temp_domainURL.>indexOf( "advisors.ebglaw" ) > 0 || temp_domainURL.>indexOf( "ebgadvisors" ) > 0 || temp_domainURL.>indexOf( "wnj" ) > 0 || temp_domainURL.>indexOf( "thompsonhine" ) > 0 || temp_domainURL.>indexOf( "much" ) > 0 || temp_domainURL.>indexOf( "kaplan" ) > 0 || temp_domainURL.>indexOf( "groom" ) > 0 || temp_domainURL.>indexOf( "sussman" ) > 0 || temp_domainURL.>indexOf( "f3law" ) > 0 || temp_domainURL.>indexOf( "merchant" ) > 0 || temp_domainURL.>indexOf( "bakerlaw" ) > 0 || temp_domainURL.>indexOf( "bakerblogs" ) > 0 || temp_domainURL.>indexOf( "bakeralum" ) > 0 || temp_domainURL.>indexOf( "munck" ) > 0 || temp_domainURL.>indexOf( "jamesbates" ) > 0 || temp_domainURL.>indexOf( "goldbergkohn" ) > 0 || temp_domainURL.>indexOf( "lugenbuhl" ) > 0 || temp_domainURL.>indexOf( "lawla" ) > 0 || temp_domainURL.>indexOf( "kleinhornig" ) > 0 || temp_domainURL.>indexOf( "bracewell" ) > 0 || temp_domainURL.>indexOf( "lathrop" ) > 0 || temp_domainURL.>indexOf( "nge" ) > 0 || temp_domainURL.>indexOf( "buchalter" ) > 0 || temp_domainURL.>indexOf( "thompsoncoburn" ) > 0, [ if( temp_domainURL.>indexOf( "clm" ) > 0, [ tempWPPostObj.>timeToRead = postMap.>carter_ledyard.>time_to_read ; if( postMap.>type == "poa_person", [ temp_relationshipPerson = toBag( postMap.>carter_ledyard.>relationships.>poa_person_to_poa_person ) ] ) ; if( postMap.>type == "poa_practice", [ temp_relationshipPerson = toBag( postMap.>carter_ledyard.>relationships.>poa_practice_to_poa_person ) ] ) ; if( postMap.>type == "poa_industry", [ temp_relationshipPerson = toBag( postMap.>carter_ledyard.>relationships.>poa_industry_to_poa_person ) ] ) ; if( postMap.>type == "post", [ temp_relationshipPerson = toBag( postMap.>carter_ledyard.>relationships.>post_to_poa_person ) ] ) ; null ] ) ; if( temp_domainURL.>indexOf( "dgilbert" ) > 0, [ if( postMap.>type == "poa_person", [ temp_relationshipPerson = toBag( postMap.>davis_gilbert.>relationships.>poa_person_to_poa_person ) ] ) ; if( postMap.>type == "poa_practice", [ temp_relationshipPerson = toBag( postMap.>davis_gilbert.>relationships.>poa_practice_to_poa_person ) ] ) ; if( postMap.>type == "post", [ temp_relationshipPerson = toBag( postMap.>davis_gilbert.>relationships.>post_to_poa_person ) ] ) ; null ] ) ; if( temp_domainURL.>indexOf( "ebglaw" ) > 0 || temp_domainURL.>indexOf( "advisors.ebglaw" ) > 0 || temp_domainURL.>indexOf( "ebgadvisors" ) > 0, [ if( temp_domainURL.>indexOf( "ebglaw" ) > 0, [ if( postMap.>type == "poa_person", [ ] ) ; if( postMap.>type == "poa_practice", [ temp_relationshipPerson = toBag( postMap.>ebglaw.>relationships.>poa_practice_to_poa_person ) ] ) ; if( postMap.>type == "poa_industry", [ temp_relationshipPerson = toBag( postMap.>ebglaw.>relationships.>poa_industry_to_poa_person ) ] ) ; if( postMap.>type == "ebg_trending_issue", [ temp_relationshipPerson = toBag( postMap.>ebglaw.>relationships.>ebg_trending_issue_to_poa_person ) ] ) ; if( postMap.>type == "poa_firm", [ ] ) ; if( postMap.>type == "poa_office", [ ] ) ; if( postMap.>type == "poa_career", [ ] ) ; if( postMap.>type == "post", [ temp_relationshipPerson = toBag( postMap.>ebglaw.>relationships.>post_to_poa_person ) ] ) ; if( postMap.>type == "page", [ temp_relationshipPerson = toBag( postMap.>ebglaw.>relationships.>page_to_poa_person ) ] ) ; null ] ) ; if( temp_domainURL.>indexOf( "advisors.ebglaw" ) > 0 || temp_domainURL.>indexOf( "ebgadvisors" ) > 0, [ if( postMap.>type == "poa_person", [ ] ) ; if( postMap.>type == "poa_practice", [ temp_relationshipPerson = toBag( postMap.>ebgadvisors.>relationships.>poa_practice_to_poa_person ) ] ) ; if( postMap.>type == "poa_industry", [ temp_relationshipPerson = toBag( postMap.>ebgadvisors.>relationships.>poa_industry_to_poa_person ) ] ) ; if( postMap.>type == "ebg_trending_issue", [ temp_relationshipPerson = toBag( postMap.>ebgadvisors.>relationships.>ebg_trending_issue_to_poa_person ) ] ) ; if( postMap.>type == "poa_firm", [ ] ) ; if( postMap.>type == "poa_office", [ ] ) ; if( postMap.>type == "poa_career", [ ] ) ; if( postMap.>type == "post", [ temp_relationshipPerson = toBag( postMap.>ebgadvisors.>relationships.>post_to_poa_person ) ] ) ; if( postMap.>type == "page", [ temp_relationshipPerson = toBag( postMap.>ebgadvisors.>relationships.>page_to_poa_person ) ] ) ; null ] ) ; null ] ) ; if( temp_domainURL.>indexOf( "much" ) > 0, [ if( postMap.>type == "poa_person", [ temp_relationshipPerson = toBag( postMap.>much_shelist.>relationships.>poa_person_to_poa_person ) ] ) ; if( postMap.>type == "poa_practice", [ temp_relationshipPerson = toBag( postMap.>much_shelist.>relationships.>poa_practice_to_poa_person ) ] ) ; if( postMap.>type == "poa_industry", [ temp_relationshipPerson = toBag( postMap.>much_shelist.>relationships.>poa_industry_to_poa_person ) ] ) ; if( postMap.>type == "poa_office", [ temp_relationshipPerson = toBag( postMap.>much_shelist.>relationships.>poa_office_to_poa_person ) ] ) ; if( postMap.>type == "poa_firm", [ temp_relationshipPerson = toBag( postMap.>much_shelist.>relationships.>poa_person_to_poa_firm ) ] ) ; if( postMap.>type == "post", [ temp_relationshipPerson = toBag( postMap.>much_shelist.>relationships.>post_to_poa_person ) ] ) ; if( postMap.>type == "page", [ temp_relationshipPerson = toBag( postMap.>much_shelist.>relationships.>page_to_poa_person ) ] ) ; null ] ) ; if( temp_domainURL.>indexOf( "merchant" ) > 0, [ if( postMap.>type == "poa_person", [ temp_relationshipPerson = toBag( postMap.>merchant_gould.>relationships.>poa_person_to_poa_person ) ] ) ; if( postMap.>type == "poa_practice", [ temp_relationshipPerson = toBag( postMap.>merchant_gould.>relationships.>poa_practice_to_poa_person ) ] ) ; if( postMap.>type == "poa_industry", [ temp_relationshipPerson = toBag( postMap.>merchant_gould.>relationships.>poa_industry_to_poa_person ) ] ) ; if( postMap.>type == "poa_office", [ temp_relationshipPerson = toBag( postMap.>merchant_gould.>relationships.>poa_office_to_poa_person ) ] ) ; if( postMap.>type == "poa_firm", [ temp_relationshipPerson = toBag( postMap.>merchant_gould.>relationships.>poa_person_to_poa_firm ) ] ) ; if( postMap.>type == "post", [ temp_relationshipPerson = toBag( postMap.>merchant_gould.>relationships.>post_to_poa_person ) ] ) ; if( postMap.>type == "page", [ temp_relationshipPerson = toBag( postMap.>merchant_gould.>relationships.>page_to_poa_person ) ] ) ; if( postMap.>type == "poa_experience", [ temp_relationshipPerson = toBag( postMap.>merchant_gould.>relationships.>poa_experience_to_poa_person ) ] ) ; null ] ) ; if( temp_domainURL.>indexOf( "bakerlaw" ) > 0 || temp_domainURL.>indexOf( "bakeralum" ) > 0, [ if( postMap.>type == "poa_person", [ temp_relationshipPerson = toBag( postMap.>baker_hostetler.>relationships.>poa_person_to_poa_person ) ] ) ; if( postMap.>type == "poa_practice", [ ] ) ; if( postMap.>type == "poa_industry", [ temp_relationshipPerson = toBag( postMap.>baker_hostetler.>relationships.>poa_industry_to_poa_person ) ] ) ; if( postMap.>type == "poa_office", [ ] ) ; if( postMap.>type == "poa_firm", [ temp_relationshipPerson = toBag( postMap.>baker_hostetler.>relationships.>poa_person_to_poa_firm ) ] ) ; if( postMap.>type == "post", [ temp_relationshipPerson = toBag( postMap.>baker_hostetler.>relationships.>post_to_poa_person ) ] ) ; if( postMap.>type == "page", [ temp_relationshipPerson = toBag( postMap.>baker_hostetler.>relationships.>page_to_poa_person ) ] ) ; if( postMap.>type == "poa_experience", [ temp_relationshipPerson = toBag( postMap.>baker_hostetler.>relationships.>poa_experience_to_poa_person ) ] ) ; if( postMap.>type == "bh_diversity", [ temp_relationshipPerson = toBag( toBag( postMap.>baker_hostetler.>relationships.>bh_affinity_group ) + toBag( postMap.>baker_hostetler.>relationships.>bh_diversity_council ) ) ] ) ; null ] ) ; if( temp_domainURL.>indexOf( "bakerblogs" ) > 0, [ if( postMap.>type == "post", [ temp_relationshipPerson = toBag( postMap.>baker_hostetler.>relationships.>post_to_poa_person ) ] ) ; null ] ) ; if( temp_domainURL.>indexOf( "goldbergkohn" ) > 0, [ if( postMap.>type == "poa_person", [ temp_relationshipPerson = toBag( postMap.>content_pilot_print_client_specific.>relationships.>poa_person_to_poa_person ) ] ) ; if( postMap.>type == "poa_practice", [ temp_relationshipPerson = toBag( postMap.>content_pilot_print_client_specific.>relationships.>poa_practice_to_poa_person ) ] ) ; if( postMap.>type == "poa_industry", [ temp_relationshipPerson = toBag( postMap.>content_pilot_print_client_specific.>relationships.>poa_industry_to_poa_person ) ] ) ; if( postMap.>type == "poa_office", [ ] ) ; if( postMap.>type == "poa_firm", [ temp_relationshipPerson = toBag( postMap.>content_pilot_print_client_specific.>relationships.>poa_person_to_poa_firm ) ] ) ; if( postMap.>type == "post", [ temp_relationshipPerson = toBag( postMap.>content_pilot_print_client_specific.>relationships.>post_to_poa_person ) ] ) ; if( postMap.>type == "page", [ temp_relationshipPerson = toBag( postMap.>content_pilot_print_client_specific.>relationships.>page_to_poa_person ) ] ) ; if( postMap.>type == "poa_experience", [ temp_relationshipPerson = toBag( postMap.>content_pilot_print_client_specific.>relationships.>poa_experience_to_poa_person ) ] ) ; null ] ) ; if( temp_domainURL.>indexOf( "sussman" ) > 0, [ if( postMap.>type == "poa_person", [ temp_relationshipPerson = toBag( postMap.>sussman_shank.>relationships.>poa_person_to_poa_person ) ] ) ; if( postMap.>type == "poa_practice", [ temp_relationshipPerson = toBag( postMap.>sussman_shank.>relationships.>poa_practice_to_poa_person ) ] ) ; if( postMap.>type == "poa_industry", [ temp_relationshipPerson = toBag( postMap.>sussman_shank.>relationships.>poa_industry_to_poa_person ) ] ) ; if( postMap.>type == "poa_office", [ temp_relationshipPerson = toBag( postMap.>sussman_shank.>relationships.>poa_office_to_poa_person ) ] ) ; if( postMap.>type == "poa_firm", [ temp_relationshipPerson = toBag( postMap.>sussman_shank.>relationships.>poa_person_to_poa_firm ) ] ) ; if( postMap.>type == "post", [ temp_relationshipPerson = toBag( postMap.>sussman_shank.>relationships.>post_to_poa_person ) ] ) ; if( postMap.>type == "page", [ temp_relationshipPerson = toBag( postMap.>sussman_shank.>relationships.>page_to_poa_person ) ] ) ; null ] ) ; if( temp_domainURL.>indexOf( "wnj" ) > 0, [ if( postMap.>type == "poa_person", [ temp_relationshipPerson = toBag( postMap.>wnj.>relationships.>poa_person_to_poa_person ) ] ) ; if( postMap.>type == "poa_practice", [ temp_relationshipPerson = toBag( postMap.>wnj.>relationships.>poa_practice_to_poa_person ) ] ) ; if( postMap.>type == "poa_industry", [ temp_relationshipPerson = toBag( postMap.>wnj.>relationships.>poa_industry_to_poa_person ) ] ) ; if( postMap.>type == "poa_office", [ temp_relationshipPerson = toBag( postMap.>wnj.>relationships.>poa_office_to_poa_person ) ] ) ; if( postMap.>type == "post", [ temp_relationshipPerson = toBag( postMap.>wnj.>relationships.>post_to_poa_person ) ] ) ; if( postMap.>type == "page", [ temp_relationshipPerson = toBag( postMap.>wnj.>relationships.>page_to_poa_person ) ] ) ; null ] ) ; if( temp_domainURL.>indexOf( "thompsonhine" ) > 0, [ if( postMap.>type == "poa_person", [ temp_relationshipPerson = toBag( postMap.>thompsonhine.>relationships.>poa_person_to_poa_person ) ] ) ; if( postMap.>type == "poa_practice", [ temp_relationshipPerson = toBag( postMap.>thompsonhine.>relationships.>poa_practice_to_poa_person ) ] ) ; if( postMap.>type == "poa_industry", [ temp_relationshipPerson = toBag( postMap.>thompsonhine.>relationships.>poa_industry_to_poa_person ) ] ) ; if( postMap.>type == "poa_office", [ temp_relationshipPerson = toBag( postMap.>thompsonhine.>relationships.>poa_office_to_poa_person ) ] ) ; if( postMap.>type == "post", [ temp_relationshipPerson = toBag( postMap.>thompsonhine.>relationships.>post_to_poa_person ) ] ) ; if( postMap.>type == "page", [ temp_relationshipPerson = toBag( postMap.>thompsonhine.>relationships.>page_to_poa_person ) ] ) ; null ] ) ; if( temp_domainURL.>indexOf( "kaplan" ) > 0, [ if( postMap.>type == "poa_person", [ temp_relationshipPerson = toBag( postMap.>kaplan_kirsch.>relationships.>poa_person_to_poa_person ) ] ) ; if( postMap.>type == "poa_practice", [ temp_relationshipPerson = toBag( postMap.>kaplan_kirsch.>relationships.>poa_practice_to_poa_person ) ] ) ; if( postMap.>type == "poa_industry", [ temp_relationshipPerson = toBag( postMap.>kaplan_kirsch.>relationships.>poa_industry_to_poa_person ) ] ) ; if( postMap.>type == "poa_office", [ temp_relationshipPerson = toBag( postMap.>kaplan_kirsch.>relationships.>poa_office_to_poa_person ) ] ) ; if( postMap.>type == "poa_firm", [ temp_relationshipPerson = toBag( postMap.>kaplan_kirsch.>relationships.>poa_firm_to_poa_person ) ] ) ; if( postMap.>type == "post", [ temp_relationshipPerson = toBag( postMap.>kaplan_kirsch.>relationships.>post_to_poa_person ) ] ) ; if( postMap.>type == "page", [ temp_relationshipPerson = toBag( postMap.>kaplan_kirsch.>relationships.>page_to_poa_person ) ] ) ; if( postMap.>type == "kkr_project", [ temp_relationshipPerson = toBag( postMap.>kaplan_kirsch.>relationships.>poa_person_to_kkr_project ) ] ) ; null ] ) ; if( temp_domainURL.>indexOf( "f3law" ) > 0, [ if( postMap.>type == "poa_person", [ temp_relationshipPerson = toBag( postMap.>f3law.>relationships.>poa_person_to_poa_person ) ] ) ; if( postMap.>type == "poa_practice", [ temp_relationshipPerson = toBag( postMap.>f3law.>relationships.>poa_practice_to_poa_person ) ] ) ; if( postMap.>type == "poa_industry", [ temp_relationshipPerson = toBag( postMap.>f3law.>relationships.>poa_industry_to_poa_person ) ] ) ; if( postMap.>type == "poa_office", [ temp_relationshipPerson = toBag( postMap.>f3law.>relationships.>poa_office_to_poa_person ) ] ) ; if( postMap.>type == "poa_firm", [ temp_relationshipPerson = toBag( toBag( postMap.>f3law.>relationships.>poa_firm_to_poa_person_management_committee ) + toBag( postMap.>f3law.>relationships.>poa_firm_to_poa_person_office_managing_associates ) + toBag( postMap.>f3law.>relationships.>poa_firm_to_poa_person_office_managing_partners ) + toBag( postMap.>f3law.>relationships.>poa_firm_to_poa_person_firm_leadership ) ) ] ) ; if( postMap.>type == "post", [ temp_relationshipPerson = toBag( postMap.>f3law.>relationships.>post_to_poa_person ) ] ) ; if( postMap.>type == "page", [ temp_relationshipPerson = toBag( postMap.>f3law.>relationships.>page_to_poa_person ) ] ) ; if( postMap.>type == "poa_client", [ temp_relationshipPerson = toBag( postMap.>f3law.>relationships.>poa_client_to_poa_person ) ] ) ; null ] ) ; if( temp_domainURL.>indexOf( "groom" ) > 0, [ if( postMap.>type == "poa_person", [ temp_relationshipPerson = toBag( postMap.>groom_law.>relationships.>poa_person_to_poa_person ) ] ) ; if( postMap.>type == "poa_practice", [ temp_relationshipPerson = toBag( postMap.>groom_law.>relationships.>poa_practice_to_poa_person ) ] ) ; if( postMap.>type == "poa_industry", [ temp_relationshipPerson = toBag( postMap.>groom_law.>relationships.>poa_industry_to_poa_person ) ] ) ; if( postMap.>type == "poa_office", [ temp_relationshipPerson = toBag( postMap.>groom_law.>relationships.>poa_office_to_poa_person ) ] ) ; if( postMap.>type == "poa_firm", [ temp_relationshipPerson = toBag( postMap.>groom_law.>relationships.>poa_firm_to_poa_person ) ] ) ; if( postMap.>type == "post", [ temp_relationshipPerson = toBag( postMap.>groom_law.>relationships.>post_to_poa_person ) ] ) ; if( postMap.>type == "page", [ temp_relationshipPerson = toBag( postMap.>groom_law.>relationships.>page_to_poa_person ) ] ) ; null ] ) ; if( temp_domainURL.>indexOf( "munck" ) > 0, [ if( postMap.>type == "poa_person", [ temp_relationshipPerson = toBag( postMap.>munck_wilson_mandala.>relationships.>poa_person_to_poa_person ) ] ) ; if( postMap.>type == "poa_practice", [ temp_relationshipPerson = toBag( postMap.>munck_wilson_mandala.>relationships.>poa_practice_to_poa_person ) ] ) ; if( postMap.>type == "poa_industry", [ temp_relationshipPerson = toBag( postMap.>munck_wilson_mandala.>relationships.>poa_industry_to_poa_person ) ] ) ; if( postMap.>type == "poa_office", [ temp_relationshipPerson = toBag( postMap.>munck_wilson_mandala.>relationships.>poa_office_to_poa_person ) ] ) ; if( postMap.>type == "poa_firm", [ temp_relationshipPerson = toBag( postMap.>munck_wilson_mandala.>relationships.>poa_firm_to_poa_person ) ] ) ; if( postMap.>type == "post", [ temp_relationshipPerson = toBag( postMap.>munck_wilson_mandala.>relationships.>post_to_poa_person ) ] ) ; if( postMap.>type == "page", [ temp_relationshipPerson = toBag( postMap.>munck_wilson_mandala.>relationships.>page_to_poa_person ) ] ) ; null ] ) ; if( temp_domainURL.>indexOf( "jamesbates" ) > 0, [ if( postMap.>type == "poa_person", [ temp_relationshipPerson = toBag( postMap.>content_pilot_print_client_specific.>relationships.>poa_person_to_poa_person ) ] ) ; if( postMap.>type == "poa_practice", [ temp_relationshipPerson = toBag( postMap.>content_pilot_print_client_specific.>relationships.>poa_practice_to_poa_person ) ] ) ; if( postMap.>type == "poa_industry", [ temp_relationshipPerson = toBag( postMap.>content_pilot_print_client_specific.>relationships.>poa_industry_to_poa_person ) ] ) ; if( postMap.>type == "poa_office", [ temp_relationshipPerson = toBag( postMap.>content_pilot_print_client_specific.>relationships.>poa_office_to_poa_person ) ] ) ; if( postMap.>type == "poa_firm", [ temp_relationshipPerson = toBag( postMap.>content_pilot_print_client_specific.>relationships.>poa_firm_to_poa_person ) ] ) ; if( postMap.>type == "post", [ temp_relationshipPerson = toBag( postMap.>content_pilot_print_client_specific.>relationships.>post_to_poa_person ) ] ) ; if( postMap.>type == "page", [ temp_relationshipPerson = toBag( postMap.>content_pilot_print_client_specific.>relationships.>page_to_poa_person ) ] ) ; null ] ) ; if( temp_domainURL.>indexOf( "lugenbuhl" ) > 0 || temp_domainURL.>indexOf( "lawla" ) > 0 || temp_domainURL.>indexOf( "bracewell" ) > 0, [ if( postMap.>type == "post", [ temp_relationshipPerson = toBag( postMap.>content_pilot_print_client_specific.>relationships.>post_to_poa_person ) ] ) ; if( postMap.>type == "poa_firm", [ temp_relationshipPerson = toBag( postMap.>content_pilot_print_client_specific.>relationships.>poa_person_to_poa_firm ) ] ) ; if( postMap.>type == "br_resources", [ temp_relationshipPerson = toBag( toBag( postMap.>content_pilot_print_client_specific.>relationships.>poa_person_to_br_resources ) + toBag( postMap.>content_pilot_print_client_specific.>relationships.>bracewell_fls_authors_rel_person ) ) ] ) ; null ] ) ; if( temp_domainURL.>indexOf( "kleinhornig" ) > 0, [ if( postMap.>type == "post", [ temp_relationshipPerson = toBag( postMap.>content_pilot_print_client_specific.>relationships.>post_to_poa_person ) ] ) ; if( postMap.>type == "poa_developments", [ temp_relationshipPerson = toBag( postMap.>content_pilot_print_client_specific.>relationships.>poa_developments_to_poa_person ) ] ) ; null ] ) ; if( temp_domainURL.>indexOf( "lathrop" ) > 0 || temp_domainURL.>indexOf( "nge" ) > 0 || temp_domainURL.>indexOf( "thompsoncoburn" ) > 0, [ if( postMap.>type == "poa_person", [ temp_relationshipPerson = toBag( postMap.>content_pilot_print_client_specific.>relationships.>poa_person_to_poa_person ) ] ) ; if( postMap.>type == "poa_practice", [ temp_relationshipPerson = toBag( postMap.>content_pilot_print_client_specific.>relationships.>poa_practice_to_poa_person ) ] ) ; if( postMap.>type == "poa_industry", [ temp_relationshipPerson = toBag( postMap.>content_pilot_print_client_specific.>relationships.>poa_industry_to_poa_person ) ] ) ; if( postMap.>type == "poa_office", [ temp_relationshipPerson = toBag( postMap.>content_pilot_print_client_specific.>relationships.>poa_office_to_poa_person ) ] ) ; if( postMap.>type == "poa_firm", [ temp_relationshipPerson = toBag( toBag( postMap.>content_pilot_print_client_specific.>relationships.>poa_firm_to_poa_person_administrative_leadership ) + toBag( postMap.>content_pilot_print_client_specific.>relationships.>poa_firm_to_poa_person_executive_committee ) + toBag( postMap.>content_pilot_print_client_specific.>relationships.>poa_firm_to_poa_person_practice_group_leaders ) ) ] ) ; if( postMap.>type == "hc_diversity", [ temp_relationshipPerson = toBag( toBag( postMap.>content_pilot_print_client_specific.>relationships.>hc_diversity_to_poa_person_committee_leadership ) + toBag( postMap.>content_pilot_print_client_specific.>relationships.>hc_diversity_to_poa_person_committee_members ) ) ] ) ; if( postMap.>type == "post", [ temp_relationshipPerson = toBag( postMap.>content_pilot_print_client_specific.>relationships.>post_to_poa_person ) ] ) ; if( postMap.>type == "page", [ temp_relationshipPerson = toBag( postMap.>content_pilot_print_client_specific.>relationships.>page_to_poa_person ) ] ) ; null ] ) ; temp_relationshipPerson.>do( [ :rp | temprelationshipPersonOrder = int( int( temprelationshipPersonOrder ) + 1 ) ; tempValue = int( temprelationshipPersonOrder ) ; relationshipPerson.get( tempValue, [ new( #cpcore/WordpressPost_relationshipPerson ) ], true ).>_order_ = tempValue ; relationshipPerson.get( tempValue ).>name = rp.>post_title.>decode( 11 ) ; relationshipPerson.get( tempValue ).>postLink = rp.>link ; relationshipPerson.get( tempValue ).>relationType = rp.>relation_type ; if( temp_domainURL.>indexOf( "f3law" ) > 0 || temp_domainURL.>indexOf( "lathrop" ) > 0, [ relationshipPerson.get( tempValue ).>type = rp.>type ; null ], [ relationshipPerson.get( tempValue ).>type = rp.>poa_type_taxonomy ; null ] ) ; relationshipPerson.get( tempValue ).>relOffice = rp.>poa_office ; relationshipPerson.get( tempValue ).>relOffice2 = rp.>poa_office_secondary ; relationshipPerson.get( tempValue ).>relOffice3 = rp.>poa_office_tertiary ; if( temp_domainURL.>indexOf( "dgilbert" ) > 0, [ relationshipPerson.get( tempValue ).>relPractice = toBag( rp.>primary_practice ).>toString( [ :i | i ], " | " ) ; null ] ) ; if( temp_domainURL.>indexOf( "dgilbert" ) > 0 || temp_domainURL.>indexOf( "clm" ) > 0, [ relationshipPerson.get( tempValue ).>phone = rp.>phone ; relationshipPerson.get( tempValue ).>email = rp.>email ; relationshipPerson.get( tempValue ).>title = rp.>title ; null ], [ relationshipPerson.get( tempValue ).>relPractice = rp.>poa_practice ; relationshipPerson.get( tempValue ).>title = rp.>poa_position_taxonomy ; relationshipPerson.get( tempValue ).>secondaryTitle = rp.>poa_secondary_title ; relationshipPerson.get( tempValue ).>phone = rp.>poa_contact_phone ; relationshipPerson.get( tempValue ).>phone2 = rp.>poa_contact_secondary_phone ; relationshipPerson.get( tempValue ).>phone3 = rp.>poa_contact_tertiary_phone ; relationshipPerson.get( tempValue ).>email = rp.>poa_contact_email ; null ] ) ; if( temp_domainURL.>indexOf( "bakeralum" ) > 0, [ relationshipPerson.get( tempValue ).>title = rp.>contact_work_position ; relationshipPerson.get( tempValue ).>company = rp.>contact_work_company ; null ] ) ; if( temp_domainURL.>indexOf( "baker" ) > 0, [ relationshipPerson.get( tempValue ).>affinityGroup = rp.>bh_person_affinity_group ; relationshipPerson.get( tempValue ).>officePosition = rp.>bh_office_position ; null ] ) ; tempTNImage = rp.>poa_person_thumbnail_url ; debug( "tempTNImage >>> " + tempTNImage ) ; temp_imageFile = if( ifEmpty( tempTNImage, "" ) != "", [ #webconnections/ExternalWebConnection/getConnection( "GenerateDocument" ).impl.invoke( "DownloadResource", { "domainURL" : tempTNImage.>encode( 11 ), "basicAuth" : basicAuth } ) ], null ) ; if( temp_imageFile.>contentType.>indexOf( "image" ) != -1, [ relationshipPerson.get( tempValue ).>thumbnailImage = temp_imageFile ], [ relationshipPerson.get( tempValue ).>thumbnailImage = null ] ) ; null ] ) ; null ], [ if( postMap.>type == "poa_person", [ temp_relationshipPerson = toBag( postMap.>content_pilot_print.>relationships.>poa_person_to_poa_person ) ] ) ; if( postMap.>type == "poa_practice", [ temp_relationshipPerson = toBag( postMap.>content_pilot_print.>relationships.>poa_practice_to_poa_person ) ] ) ; if( postMap.>type == "poa_industry", [ temp_relationshipPerson = toBag( postMap.>content_pilot_print.>relationships.>poa_industry_to_poa_person ) ] ) ; if( postMap.>type == "poa_firm", [ temp_relationshipPerson = toBag( postMap.>content_pilot_print.>relationships.>poa_firm_to_poa_person ) ] ) ; if( postMap.>type == "post", [ temp_relationshipPerson = toBag( postMap.>content_pilot_print.>relationships.>post_to_poa_person ) ] ) ; if( postMap.>type == "poa_office", [ temp_relationshipPerson = toBag( postMap.>content_pilot_print.>relationships.>poa_office_to_me_partner ) ] ) ; temp_relationshipPerson.>do( [ :rp | temprelationshipPersonOrder = int( int( temprelationshipPersonOrder ) + 1 ) ; tempValue = int( temprelationshipPersonOrder ) ; relationshipPerson.get( tempValue, [ new( #cpcore/WordpressPost_relationshipPerson ) ], true ).>_order_ = tempValue ; relationshipPerson.get( tempValue ).>name = rp.>decode( 11 ) ; null ] ) ; null ] ) ; if( tempWPPostObj.>relationshipPerson.>faultIn().>size() < relationshipPerson.>size() - 1, [ tempWPPostObj.>relationshipPerson.>addAll( range( tempWPPostObj.>relationshipPerson.>size(), relationshipPerson.>size() - 2 ).>collect( [ :i | new( #cpcore/WordpressPost_relationshipPerson ) ] ) ) ], [ if( tempWPPostObj.>relationshipPerson.>size() > relationshipPerson.>size() - 1, [ tempWPPostObj.>relationshipPerson = tempWPPostObj.>relationshipPerson.>slice( 0, relationshipPerson.>size() - 1 ) ] ) ] ) ; range( 0, relationshipPerson.>size() - 2 ).>do( [ :i | tempWPPostObj.>relationshipPerson[ i ].>name = relationshipPerson[ i ].>name ; tempWPPostObj.>relationshipPerson[ i ].>postLink = relationshipPerson[ i ].>postLink ; tempWPPostObj.>relationshipPerson[ i ].>relationType = relationshipPerson[ i ].>relationType ; tempWPPostObj.>relationshipPerson[ i ].>title = relationshipPerson[ i ].>title ; tempWPPostObj.>relationshipPerson[ i ].>company = relationshipPerson[ i ].>company ; tempWPPostObj.>relationshipPerson[ i ].>type = relationshipPerson[ i ].>type ; tempWPPostObj.>relationshipPerson[ i ].>relPractice = relationshipPerson[ i ].>relPractice ; tempWPPostObj.>relationshipPerson[ i ].>relOffice = relationshipPerson[ i ].>relOffice ; tempWPPostObj.>relationshipPerson[ i ].>relOffice2 = relationshipPerson[ i ].>relOffice2 ; tempWPPostObj.>relationshipPerson[ i ].>relOffice3 = relationshipPerson[ i ].>relOffice3 ; tempWPPostObj.>relationshipPerson[ i ].>phone = relationshipPerson[ i ].>phone ; tempWPPostObj.>relationshipPerson[ i ].>phone2 = relationshipPerson[ i ].>phone2 ; tempWPPostObj.>relationshipPerson[ i ].>phone3 = relationshipPerson[ i ].>phone3 ; tempWPPostObj.>relationshipPerson[ i ].>email = relationshipPerson[ i ].>email ; tempWPPostObj.>relationshipPerson[ i ].>thumbnailImage = relationshipPerson[ i ].>thumbnailImage ; tempWPPostObj.>relationshipPerson[ i ].>affinityGroup = relationshipPerson[ i ].>affinityGroup ; tempWPPostObj.>relationshipPerson[ i ].>officePosition = relationshipPerson[ i ].>officePosition ; tempWPPostObj.>relationshipPerson[ i ].>_order_ = relationshipPerson[ i ].>_order_ ; null ] ) ; if( temp_domainURL.>indexOf( "mcglinchey" ) > 0 || temp_domainURL.>indexOf( "wnj" ) > 0 || temp_domainURL.>indexOf( "much" ) > 0 || temp_domainURL.>indexOf( "f3law" ) > 0 || temp_domainURL.>indexOf( "merchant" ) > 0 || temp_domainURL.>indexOf( "jamesbates" ) > 0 || temp_domainURL.>indexOf( "lugenbuhl" ) > 0 || temp_domainURL.>indexOf( "lawla" ) > 0, [ relationshipStaff = { "ignore" : "" } ; temprelationshipStaffOrder = int( "-1" ) ; temp_relationshipStaffs = null ; if( temp_domainURL.>indexOf( "mcglinchey" ) > 0, [ if( postMap.>type == "poa_person", [ temp_relationshipStaffs = toBag( postMap.>mcglinchey.>relationships.>poa_staff_to_poa_person ) ] ) ; null ] ) ; if( temp_domainURL.>indexOf( "wnj" ) > 0, [ if( postMap.>type == "poa_person", [ temp_relationshipStaffs = toBag( postMap.>wnj.>relationships.>poa_staff_to_poa_person ) ] ) ; null ] ) ; if( temp_domainURL.>indexOf( "much" ) > 0, [ if( postMap.>type == "poa_person", [ temp_relationshipStaffs = toBag( postMap.>much_shelist.>relationships.>poa_staff_to_poa_person ) ] ) ; null ] ) ; if( temp_domainURL.>indexOf( "f3law" ) > 0, [ if( postMap.>type == "poa_person", [ temp_relationshipStaffs = toBag( postMap.>f3law.>relationships.>poa_staff_to_poa_person ) ] ) ; null ] ) ; if( temp_domainURL.>indexOf( "merchant" ) > 0, [ if( postMap.>type == "poa_person", [ temp_relationshipStaffs = toBag( postMap.>merchant_gould.>relationships.>poa_staff_to_poa_person ) ] ) ; null ] ) ; if( temp_domainURL.>indexOf( "jamesbates" ) > 0, [ if( postMap.>type == "poa_person", [ temp_relationshipStaffs = toBag( postMap.>content_pilot_print_client_specific.>relationships.>poa_staff_to_poa_person ) ] ) ; null ] ) ; if( temp_domainURL.>indexOf( "lugenbuhl" ) > 0 || temp_domainURL.>indexOf( "lawla" ) > 0, [ if( postMap.>type == "poa_career", [ temp_relationshipStaffs = toBag( postMap.>content_pilot_print_client_specific.>relationships.>poa_career_to_poa_staff ) ] ) ; if( postMap.>type == "poa_firm", [ temp_relationshipStaffs = toBag( postMap.>content_pilot_print_client_specific.>relationships.>poa_firm_to_poa_staff ) ] ) ; null ] ) ; temp_relationshipStaffs.>do( [ :rpost | temprelationshipStaffOrder = int( int( temprelationshipStaffOrder ) + 1 ) ; tempValue = int( temprelationshipStaffOrder ) ; relationshipStaff.get( tempValue, [ new( #cpcore/WordpressPost_relationshipStaff ) ], true ).>_order_ = tempValue ; relationshipStaff.get( tempValue ).>name = rpost.>post_title ; relationshipStaff.get( tempValue ).>phone = rpost.>contact_phone ; relationshipStaff.get( tempValue ).>email = rpost.>contact_email ; relationshipStaff.get( tempValue ).>title = rpost.>title ; if( temp_domainURL.>indexOf( "lugenbuhl" ) > 0 || temp_domainURL.>indexOf( "lawla" ) > 0, [ relationshipStaff.get( tempValue ).>phone = rpost.>poa_contact_phone ; relationshipStaff.get( tempValue ).>email = rpost.>poa_contact_email ; relationshipStaff.get( tempValue ).>title = rpost.>poa_staff_category ; null ] ) ; if( temp_domainURL.>indexOf( "jamesbates" ) > 0, [ relationshipStaff.get( tempValue ).>phone = rpost.>poa_contact_phone ; relationshipStaff.get( tempValue ).>email = rpost.>poa_contact_email ; relationshipStaff.get( tempValue ).>location = rpost.>poa_staff_to_poa_office ; null ] ) ; null ] ) ; if( tempWPPostObj.>relationshipStaff.>faultIn().>size() < relationshipStaff.>size() - 1, [ tempWPPostObj.>relationshipStaff.>addAll( range( tempWPPostObj.>relationshipStaff.>size(), relationshipStaff.>size() - 2 ).>collect( [ :i | new( #cpcore/WordpressPost_relationshipStaff ) ] ) ) ], [ if( tempWPPostObj.>relationshipStaff.>size() > relationshipStaff.>size() - 1, [ tempWPPostObj.>relationshipStaff = tempWPPostObj.>relationshipStaff.>slice( 0, relationshipStaff.>size() - 1 ) ] ) ] ) ; range( 0, relationshipStaff.>size() - 2 ).>do( [ :i | tempWPPostObj.>relationshipStaff[ i ].>name = relationshipStaff[ i ].>name ; tempWPPostObj.>relationshipStaff[ i ].>phone = relationshipStaff[ i ].>phone ; tempWPPostObj.>relationshipStaff[ i ].>email = relationshipStaff[ i ].>email ; tempWPPostObj.>relationshipStaff[ i ].>title = relationshipStaff[ i ].>title ; tempWPPostObj.>relationshipStaff[ i ].>location = relationshipStaff[ i ].>location ; tempWPPostObj.>relationshipStaff[ i ].>_order_ = relationshipStaff[ i ].>_order_ ; null ] ) ] ) ; if( temp_domainURL.>indexOf( "chambliss" ) > 0, [ relationshipStaff = { "ignore" : "" } ; temprelationshipStaffOrder = int( "-1" ) ; temp_relationshipStaffs = null ; if( postMap.>type == "poa_practice", [ temp_relationshipStaffs = toBag( postMap.>chambliss.>relationships.>poa_practice_to_poa_person_group_chairs ) ] ) ; if( postMap.>type == "poa_industry", [ temp_relationshipStaffs = toBag( postMap.>chambliss.>relationships.>poa_industry_to_poa_person_group_chairs ) ] ) ; if( postMap.>type == "poa_person", [ temp_relationshipStaffs = toBag( postMap.>chambliss.>relationships.>poa_person_to_poa_person_group_chairs ) ] ) ; temp_relationshipStaffs.>do( [ :rpost | temprelationshipStaffOrder = int( int( temprelationshipStaffOrder ) + 1 ) ; tempValue = int( temprelationshipStaffOrder ) ; relationshipStaff.get( tempValue, [ new( #cpcore/WordpressPost_relationshipStaff ) ], true ).>_order_ = tempValue ; relationshipStaff.get( tempValue ).>name = rpost.>post_title.>decode( 11 ) ; relationshipStaff.get( tempValue ).>phone = rpost.>poa_person_contact_phone ; relationshipStaff.get( tempValue ).>email = rpost.>poa_person_contact_email ; null ] ) ; if( tempWPPostObj.>relationshipStaff.>faultIn().>size() < relationshipStaff.>size() - 1, [ tempWPPostObj.>relationshipStaff.>addAll( range( tempWPPostObj.>relationshipStaff.>size(), relationshipStaff.>size() - 2 ).>collect( [ :i | new( #cpcore/WordpressPost_relationshipStaff ) ] ) ) ], [ if( tempWPPostObj.>relationshipStaff.>size() > relationshipStaff.>size() - 1, [ tempWPPostObj.>relationshipStaff = tempWPPostObj.>relationshipStaff.>slice( 0, relationshipStaff.>size() - 1 ) ] ) ] ) ; range( 0, relationshipStaff.>size() - 2 ).>do( [ :i | tempWPPostObj.>relationshipStaff[ i ].>name = relationshipStaff[ i ].>name ; tempWPPostObj.>relationshipStaff[ i ].>phone = relationshipStaff[ i ].>phone ; tempWPPostObj.>relationshipStaff[ i ].>email = relationshipStaff[ i ].>email ; tempWPPostObj.>relationshipStaff[ i ].>_order_ = relationshipStaff[ i ].>_order_ ; null ] ) ] ) ; if( temp_domainURL.>indexOf( "clm" ) > 0 || temp_domainURL.>indexOf( "diamond" ) > 0 || temp_domainURL.>indexOf( "ebglaw" ) > 0 || temp_domainURL.>indexOf( "dgilbert" ) > 0 || temp_domainURL.>indexOf( "advisors.ebglaw" ) > 0 || temp_domainURL.>indexOf( "ebgadvisors" ) > 0 || temp_domainURL.>indexOf( "wnj" ) > 0 || temp_domainURL.>indexOf( "much" ) > 0 || temp_domainURL.>indexOf( "kaplan" ) > 0 || temp_domainURL.>indexOf( "liskow" ) > 0 || temp_domainURL.>indexOf( "sussman" ) > 0 || temp_domainURL.>indexOf( "f3law" ) > 0 || temp_domainURL.>indexOf( "merchant" ) > 0 || temp_domainURL.>indexOf( "bakerlaw" ) > 0 || temp_domainURL.>indexOf( "munck" ) > 0 || temp_domainURL.>indexOf( "ccsb" ) > 0 || temp_domainURL.>indexOf( "goldbergkohn" ) > 0 || temp_domainURL.>indexOf( "kleinhornig" ) > 0 || temp_domainURL.>indexOf( "lugenbuhl" ) > 0 || temp_domainURL.>indexOf( "lawla" ) > 0 || temp_domainURL.>indexOf( "bracewell" ) > 0 || temp_domainURL.>indexOf( "lathrop" ) > 0 || temp_domainURL.>indexOf( "nge" ) > 0, [ relationshipGroupChairs = { "ignore" : "" } ; temprelationshipGroupChairsOrder = int( "-1" ) ; temp_relationshipGroupChairs = null ; if( temp_domainURL.>indexOf( "ccsb" ) > 0, [ if( postMap.>type == "poa_practice", [ temp_relationshipGroupChairs = toBag( postMap.>ccsb.>relationships.>poa_practice_to_poa_person_group_chairs ) ] ) ; if( postMap.>type == "poa_industry", [ temp_relationshipGroupChairs = toBag( postMap.>ccsb.>relationships.>poa_industry_to_poa_person_group_chairs ) ] ) ; if( postMap.>type == "poa_person", [ temp_relationshipGroupChairs = toBag( postMap.>ccsb.>relationships.>poa_person_to_poa_person_group_chairs ) ] ) ; if( postMap.>type == "poa_office", [ temp_relationshipGroupChairs = toBag( postMap.>ccsb.>relationships.>poa_office_to_poa_person_group_chairs ) ] ) ; null ] ) ; if( temp_domainURL.>indexOf( "liskow" ) > 0, [ if( postMap.>type == "poa_practice", [ temp_relationshipGroupChairs = toBag( postMap.>liskow_lewis.>relationships.>poa_practice_to_poa_person_group_chairs ) ] ) ; if( postMap.>type == "poa_industry", [ temp_relationshipGroupChairs = toBag( postMap.>liskow_lewis.>relationships.>poa_industry_to_poa_person_group_chairs ) ] ) ; if( postMap.>type == "poa_person", [ temp_relationshipGroupChairs = toBag( postMap.>liskow_lewis.>relationships.>poa_person_to_poa_person_group_chairs ) ] ) ; if( postMap.>type == "poa_office", [ temp_relationshipGroupChairs = toBag( postMap.>liskow_lewis.>relationships.>poa_office_to_poa_person_group_chairs ) ] ) ; null ] ) ; if( temp_domainURL.>indexOf( "wnj" ) > 0, [ if( postMap.>type == "poa_practice", [ temp_relationshipGroupChairs = toBag( postMap.>wnj.>relationships.>poa_practice_to_poa_person_group_chairs ) ] ) ; if( postMap.>type == "poa_industry", [ temp_relationshipGroupChairs = toBag( postMap.>wnj.>relationships.>poa_industry_to_poa_person_group_chairs ) ] ) ; if( postMap.>type == "poa_person", [ temp_relationshipGroupChairs = toBag( postMap.>wnj.>relationships.>poa_person_to_poa_person_group_chairs ) ] ) ; if( postMap.>type == "poa_office", [ temp_relationshipGroupChairs = toBag( postMap.>wnj.>relationships.>poa_office_to_poa_person_group_chairs ) ] ) ; null ] ) ; if( temp_domainURL.>indexOf( "much" ) > 0, [ if( postMap.>type == "poa_practice", [ temp_relationshipGroupChairs = toBag( postMap.>much_shelist.>relationships.>poa_practice_to_poa_person_group_chairs ) ] ) ; if( postMap.>type == "poa_industry", [ temp_relationshipGroupChairs = toBag( postMap.>much_shelist.>relationships.>poa_industry_to_poa_person_group_chairs ) ] ) ; if( postMap.>type == "poa_person", [ temp_relationshipGroupChairs = toBag( postMap.>much_shelist.>relationships.>poa_person_to_poa_person_group_chairs ) ] ) ; if( postMap.>type == "poa_office", [ temp_relationshipGroupChairs = toBag( postMap.>much_shelist.>relationships.>poa_office_to_poa_person_group_chairs ) ] ) ; null ] ) ; if( temp_domainURL.>indexOf( "diamond" ) > 0, [ if( postMap.>type == "poa_practice", [ temp_relationshipGroupChairs = toBag( postMap.>diamond.>relationships.>poa_practice_to_poa_person_group_chairs ) ] ) ; if( postMap.>type == "poa_industry", [ temp_relationshipGroupChairs = toBag( postMap.>diamond.>relationships.>poa_industry_to_poa_person_group_chairs ) ] ) ; if( postMap.>type == "poa_person", [ temp_relationshipGroupChairs = toBag( postMap.>diamond.>relationships.>poa_person_to_poa_person_group_chairs ) ] ) ; if( postMap.>type == "poa_office", [ temp_relationshipGroupChairs = toBag( postMap.>diamond.>relationships.>poa_office_to_poa_person_group_chairs ) ] ) ; null ] ) ; if( temp_domainURL.>indexOf( "ebglaw" ) > 0, [ if( postMap.>type == "poa_practice", [ temp_relationshipGroupChairs = toBag( postMap.>ebglaw.>relationships.>poa_practice_to_poa_person_group_chairs ) ] ) ; if( postMap.>type == "poa_industry", [ temp_relationshipGroupChairs = toBag( postMap.>ebglaw.>relationships.>poa_industry_to_poa_person_group_chairs ) ] ) ; if( postMap.>type == "ebg_trending_issue", [ temp_relationshipGroupChairs = toBag( postMap.>ebglaw.>relationships.>ebg_trending_issue_to_poa_person_group_chairs ) ] ) ; if( postMap.>type == "poa_person", [ temp_relationshipGroupChairs = toBag( postMap.>ebglaw.>relationships.>poa_person_to_poa_person_group_chairs ) ] ) ; if( postMap.>type == "poa_office", [ temp_relationshipGroupChairs = toBag( postMap.>ebglaw.>relationships.>poa_office_to_poa_person_group_chairs ) ] ) ; if( postMap.>type == "post", [ temp_relationshipGroupChairs = toBag( postMap.>ebglaw.>relationships.>post_to_poa_person_group_chairs ) ] ) ; if( postMap.>type == "page", [ temp_relationshipGroupChairs = toBag( postMap.>ebglaw.>relationships.>page_to_poa_person_group_chairs ) ] ) ; null ] ) ; if( temp_domainURL.>indexOf( "advisors.ebglaw" ) > 0 || temp_domainURL.>indexOf( "ebgadvisors" ) > 0, [ if( postMap.>type == "poa_practice", [ temp_relationshipGroupChairs = toBag( postMap.>ebgadvisors.>relationships.>poa_practice_to_poa_person_group_chairs ) ] ) ; if( postMap.>type == "poa_industry", [ temp_relationshipGroupChairs = toBag( postMap.>ebgadvisors.>relationships.>poa_industry_to_poa_person_group_chairs ) ] ) ; if( postMap.>type == "ebg_trending_issue", [ temp_relationshipGroupChairs = toBag( postMap.>ebgadvisors.>relationships.>ebg_trending_issue_to_poa_person_group_chairs ) ] ) ; if( postMap.>type == "poa_person", [ temp_relationshipGroupChairs = toBag( postMap.>ebgadvisors.>relationships.>poa_person_to_poa_person_group_chairs ) ] ) ; if( postMap.>type == "poa_office", [ temp_relationshipGroupChairs = toBag( postMap.>ebgadvisors.>relationships.>poa_office_to_poa_person_group_chairs ) ] ) ; if( postMap.>type == "post", [ temp_relationshipGroupChairs = toBag( postMap.>ebgadvisors.>relationships.>post_to_poa_person_group_chairs ) ] ) ; if( postMap.>type == "page", [ temp_relationshipGroupChairs = toBag( postMap.>ebgadvisors.>relationships.>page_to_poa_person_group_chairs ) ] ) ; null ] ) ; if( temp_domainURL.>indexOf( "sussman" ) > 0, [ if( postMap.>type == "poa_practice", [ temp_relationshipGroupChairs = toBag( postMap.>sussman_shank.>relationships.>poa_practice_to_poa_person_group_chairs ) ] ) ; if( postMap.>type == "poa_industry", [ temp_relationshipGroupChairs = toBag( postMap.>sussman_shank.>relationships.>poa_industry_to_poa_person_group_chairs ) ] ) ; if( postMap.>type == "poa_person", [ temp_relationshipGroupChairs = toBag( postMap.>sussman_shank.>relationships.>poa_person_to_poa_person_group_chairs ) ] ) ; if( postMap.>type == "poa_career", [ temp_relationshipGroupChairs = toBag( postMap.>sussman_shank.>relationships.>poa_career_to_poa_person_group_chairs ) ] ) ; if( postMap.>type == "poa_office", [ temp_relationshipGroupChairs = toBag( postMap.>sussman_shank.>relationships.>poa_office_to_poa_person_group_chairs ) ] ) ; if( postMap.>type == "post", [ temp_relationshipGroupChairs = toBag( postMap.>sussman_shank.>relationships.>post_to_poa_person_group_chairs ) ] ) ; if( postMap.>type == "page", [ temp_relationshipGroupChairs = toBag( postMap.>sussman_shank.>relationships.>page_to_poa_person_group_chairs ) ] ) ; null ] ) ; if( temp_domainURL.>indexOf( "dgilbert" ) > 0, [ if( postMap.>type == "poa_practice", [ temp_relationshipGroupChairs = toBag( postMap.>davis_gilbert.>relationships.>poa_practice_to_poa_person_group_chairs ) ] ) ; if( postMap.>type == "poa_industry", [ temp_relationshipGroupChairs = toBag( postMap.>davis_gilbert.>relationships.>poa_industry_to_poa_person_group_chairs ) ] ) ; if( postMap.>type == "poa_person", [ temp_relationshipGroupChairs = toBag( postMap.>davis_gilbert.>relationships.>poa_person_to_poa_person_group_chairs ) ] ) ; if( postMap.>type == "poa_office", [ temp_relationshipGroupChairs = toBag( postMap.>davis_gilbert.>relationships.>poa_office_to_poa_person_group_chairs ) ] ) ; if( postMap.>type == "post", [ temp_relationshipGroupChairs = toBag( postMap.>davis_gilbert.>relationships.>post_to_poa_person_group_chairs ) ] ) ; if( postMap.>type == "page", [ temp_relationshipGroupChairs = toBag( postMap.>davis_gilbert.>relationships.>page_to_poa_person_group_chairs ) ] ) ; null ] ) ; if( temp_domainURL.>indexOf( "clm" ) > 0 || temp_domainURL.>indexOf( "clm" ) > 0, [ if( postMap.>type == "poa_practice", [ temp_relationshipGroupChairs = toBag( postMap.>carter_ledyard.>relationships.>poa_practice_to_poa_person_group_chairs ) ] ) ; if( postMap.>type == "poa_person", [ temp_relationshipGroupChairs = toBag( postMap.>carter_ledyard.>relationships.>poa_person_to_poa_person_group_chairs ) ] ) ; if( postMap.>type == "poa_industry", [ temp_relationshipGroupChairs = toBag( postMap.>carter_ledyard.>relationships.>poa_industry_to_poa_person_group_chairs ) ] ) ; null ] ) ; if( temp_domainURL.>indexOf( "kaplan" ) > 0, [ if( postMap.>type == "poa_person", [ temp_relationshipGroupChairs = toBag( postMap.>kaplan_kirsch.>relationships.>poa_person_to_poa_person_group_chairs ) ] ) ; if( postMap.>type == "poa_practice", [ temp_relationshipGroupChairs = toBag( postMap.>kaplan_kirsch.>relationships.>poa_practice_to_poa_person_group_chairs ) ] ) ; if( postMap.>type == "poa_industry", [ temp_relationshipGroupChairs = toBag( postMap.>kaplan_kirsch.>relationships.>poa_industry_to_poa_person_group_chairs ) ] ) ; if( postMap.>type == "poa_office", [ temp_relationshipGroupChairs = toBag( postMap.>kaplan_kirsch.>relationships.>poa_office_to_poa_person_group_chairs ) ] ) ; if( postMap.>type == "poa_firm", [ temp_relationshipGroupChairs = toBag( postMap.>kaplan_kirsch.>relationships.>poa_firm_to_poa_person_group_chairs ) ] ) ; if( postMap.>type == "post", [ temp_relationshipGroupChairs = toBag( postMap.>kaplan_kirsch.>relationships.>post_to_poa_person_group_chairs ) ] ) ; if( postMap.>type == "page", [ temp_relationshipGroupChairs = toBag( postMap.>kaplan_kirsch.>relationships.>page_to_poa_person_group_chairs ) ] ) ; if( postMap.>type == "kkr_project", [ temp_relationshipGroupChairs = toBag( postMap.>kaplan_kirsch.>relationships.>kkr_project_to_poa_person_group_chairs ) ] ) ; null ] ) ; if( temp_domainURL.>indexOf( "merchant" ) > 0, [ if( postMap.>type == "poa_person", [ temp_relationshipGroupChairs = toBag( postMap.>merchant_gould.>relationships.>poa_person_to_poa_person_group_chairs ) ] ) ; if( postMap.>type == "poa_practice", [ temp_relationshipGroupChairs = toBag( postMap.>merchant_gould.>relationships.>poa_practice_to_poa_person_group_chairs ) ] ) ; if( postMap.>type == "poa_industry", [ temp_relationshipGroupChairs = toBag( postMap.>merchant_gould.>relationships.>poa_industry_to_poa_person_group_chairs ) ] ) ; if( postMap.>type == "poa_office", [ temp_relationshipGroupChairs = toBag( postMap.>merchant_gould.>relationships.>poa_office_to_poa_person_group_chairs ) ] ) ; if( postMap.>type == "poa_firm", [ temp_relationshipGroupChairs = toBag( postMap.>merchant_gould.>relationships.>poa_firm_to_poa_person_group_chairs ) ] ) ; if( postMap.>type == "post", [ temp_relationshipGroupChairs = toBag( postMap.>merchant_gould.>relationships.>post_to_poa_person_group_chairs ) ] ) ; if( postMap.>type == "page", [ temp_relationshipGroupChairs = toBag( postMap.>merchant_gould.>relationships.>page_to_poa_person_group_chairs ) ] ) ; null ] ) ; if( temp_domainURL.>indexOf( "bakerlaw" ) > 0, [ if( postMap.>type == "poa_person", [ temp_relationshipGroupChairs = toBag( postMap.>baker_hostetler.>relationships.>poa_person_to_poa_person_group_chairs ) ] ) ; if( postMap.>type == "poa_practice", [ temp_relationshipGroupChairs = toBag( postMap.>baker_hostetler.>relationships.>poa_practice_to_poa_person_group_chairs ) ] ) ; if( postMap.>type == "poa_industry", [ temp_relationshipGroupChairs = toBag( postMap.>baker_hostetler.>relationships.>poa_industry_to_poa_person_group_chairs ) ] ) ; if( postMap.>type == "poa_office", [ temp_relationshipGroupChairs = toBag( postMap.>baker_hostetler.>relationships.>poa_office_to_poa_person_group_chairs ) ] ) ; if( postMap.>type == "poa_firm", [ temp_relationshipGroupChairs = toBag( postMap.>baker_hostetler.>relationships.>poa_firm_to_poa_person_group_chairs ) ] ) ; if( postMap.>type == "bh_diversity", [ temp_relationshipGroupChairs = toBag( postMap.>baker_hostetler.>relationships.>bh_diversity_to_poa_person_group_chairs ) ] ) ; if( postMap.>type == "bh_pro_bono", [ temp_relationshipGroupChairs = toBag( postMap.>baker_hostetler.>relationships.>bh_pro_bono_to_poa_person_group_chairs ) ] ) ; if( postMap.>type == "post", [ temp_relationshipGroupChairs = toBag( postMap.>baker_hostetler.>relationships.>post_to_poa_person_group_chairs ) ] ) ; if( postMap.>type == "page", [ temp_relationshipGroupChairs = toBag( postMap.>baker_hostetler.>relationships.>page_to_poa_person_group_chairs ) ] ) ; null ] ) ; if( temp_domainURL.>indexOf( "goldbergkohn" ) > 0, [ if( postMap.>type == "poa_person", [ temp_relationshipGroupChairs = toBag( postMap.>content_pilot_print_client_specific.>relationships.>poa_person_to_poa_person_group_chairs ) ] ) ; if( postMap.>type == "poa_practice", [ temp_relationshipGroupChairs = toBag( postMap.>content_pilot_print_client_specific.>relationships.>poa_practice_to_poa_person_group_chairs ) ] ) ; if( postMap.>type == "poa_industry", [ temp_relationshipGroupChairs = toBag( postMap.>content_pilot_print_client_specific.>relationships.>poa_industry_to_poa_person_group_chairs ) ] ) ; if( postMap.>type == "poa_office", [ temp_relationshipGroupChairs = toBag( postMap.>content_pilot_print_client_specific.>relationships.>poa_office_to_poa_person_group_chairs ) ] ) ; if( postMap.>type == "poa_firm", [ temp_relationshipGroupChairs = toBag( postMap.>content_pilot_print_client_specific.>relationships.>poa_firm_to_poa_person_group_chairs ) ] ) ; if( postMap.>type == "bh_diversity", [ temp_relationshipGroupChairs = toBag( postMap.>content_pilot_print_client_specific.>relationships.>bh_diversity_to_poa_person_group_chairs ) ] ) ; if( postMap.>type == "bh_pro_bono", [ temp_relationshipGroupChairs = toBag( postMap.>content_pilot_print_client_specific.>relationships.>bh_pro_bono_to_poa_person_group_chairs ) ] ) ; if( postMap.>type == "post", [ temp_relationshipGroupChairs = toBag( postMap.>content_pilot_print_client_specific.>relationships.>post_to_poa_person_group_chairs ) ] ) ; if( postMap.>type == "page", [ temp_relationshipGroupChairs = toBag( postMap.>content_pilot_print_client_specific.>relationships.>page_to_poa_person_group_chairs ) ] ) ; null ] ) ; if( temp_domainURL.>indexOf( "f3law" ) > 0, [ if( postMap.>type == "poa_person", [ temp_relationshipGroupChairs = toBag( postMap.>f3law.>relationships.>poa_person_to_poa_person_group_chairs ) ] ) ; if( postMap.>type == "poa_practice", [ temp_relationshipGroupChairs = toBag( postMap.>f3law.>relationships.>poa_practice_to_poa_person_group_chairs ) ] ) ; if( postMap.>type == "poa_industry", [ temp_relationshipGroupChairs = toBag( postMap.>f3law.>relationships.>poa_industry_to_poa_person_group_chairs ) ] ) ; if( postMap.>type == "poa_office", [ temp_relationshipGroupChairs = toBag( postMap.>f3law.>relationships.>poa_office_to_poa_person_group_chairs ) ] ) ; if( postMap.>type == "poa_firm", [ temp_relationshipGroupChairs = toBag( postMap.>f3law.>relationships.>poa_firm_to_poa_person_group_chairs ) ] ) ; if( postMap.>type == "post", [ temp_relationshipGroupChairs = toBag( postMap.>f3law.>relationships.>post_to_poa_person_group_chairs ) ] ) ; if( postMap.>type == "page", [ temp_relationshipGroupChairs = toBag( postMap.>f3law.>relationships.>page_to_poa_person_group_chairs ) ] ) ; if( postMap.>type == "poa_client", [ temp_relationshipGroupChairs = toBag( postMap.>f3law.>relationships.>poa_client_to_poa_person_group_chairs ) ] ) ; null ] ) ; if( temp_domainURL.>indexOf( "munck" ) > 0, [ if( postMap.>type == "poa_person", [ temp_relationshipGroupChairs = toBag( postMap.>munck_wilson_mandala.>relationships.>poa_person_to_poa_person_group_chairs ) ] ) ; if( postMap.>type == "poa_practice", [ temp_relationshipGroupChairs = toBag( postMap.>munck_wilson_mandala.>relationships.>poa_practice_to_poa_person_group_chairs ) ] ) ; if( postMap.>type == "poa_industry", [ temp_relationshipGroupChairs = toBag( postMap.>munck_wilson_mandala.>relationships.>poa_industry_to_poa_person_group_chairs ) ] ) ; if( postMap.>type == "poa_office", [ temp_relationshipGroupChairs = toBag( postMap.>munck_wilson_mandala.>relationships.>poa_office_to_poa_person_group_chairs ) ] ) ; if( postMap.>type == "poa_firm", [ temp_relationshipGroupChairs = toBag( postMap.>munck_wilson_mandala.>relationships.>poa_firm_to_poa_person_group_chairs ) ] ) ; if( postMap.>type == "post", [ temp_relationshipGroupChairs = toBag( postMap.>munck_wilson_mandala.>relationships.>post_to_poa_person_group_chairs ) ] ) ; if( postMap.>type == "page", [ temp_relationshipGroupChairs = toBag( postMap.>munck_wilson_mandala.>relationships.>page_to_poa_person_group_chairs ) ] ) ; if( postMap.>type == "poa_client", [ temp_relationshipGroupChairs = toBag( postMap.>munck_wilson_mandala.>relationships.>poa_client_to_poa_person_group_chairs ) ] ) ; if( postMap.>type == "poa_career", [ temp_relationshipGroupChairs = toBag( postMap.>munck_wilson_mandala.>relationships.>side_bar_contact ) ] ) ; null ] ) ; if( temp_domainURL.>indexOf( "kleinhornig" ) > 0, [ if( postMap.>type == "poa_person", [ temp_relationshipGroupChairs = toBag( postMap.>content_pilot_print_client_specific.>relationships.>kh_field_collaborators ) ] ) ; if( postMap.>type == "poa_practice", [ temp_relationshipGroupChairs = toBag( postMap.>content_pilot_print_client_specific.>relationships.>poa_practice_to_poa_person_group_chairs ) ] ) ; if( postMap.>type == "poa_career", [ temp_relationshipGroupChairs = toBag( postMap.>content_pilot_print_client_specific.>relationships.>poa_career_to_poa_person_group_chairs ) ] ) ; null ] ) ; if( temp_domainURL.>indexOf( "lugenbuhl" ) > 0 || temp_domainURL.>indexOf( "lawla" ) > 0 || temp_domainURL.>indexOf( "bracewell" ) > 0 || temp_domainURL.>indexOf( "lathrop" ) > 0, [ if( postMap.>type == "poa_practice", [ temp_relationshipGroupChairs = toBag( postMap.>content_pilot_print_client_specific.>relationships.>poa_practice_to_poa_person_group_chairs ) ] ) ; if( postMap.>type == "poa_industry", [ temp_relationshipGroupChairs = toBag( postMap.>content_pilot_print_client_specific.>relationships.>poa_industry_to_poa_person_group_chairs ) ] ) ; if( postMap.>type == "poa_office", [ temp_relationshipGroupChairs = toBag( postMap.>content_pilot_print_client_specific.>relationships.>poa_office_to_poa_person_group_chairs ) ] ) ; null ] ) ; if( temp_domainURL.>indexOf( "nge" ) > 0, [ if( postMap.>type == "poa_practice", [ temp_relationshipGroupChairs = toBag( postMap.>content_pilot_print_client_specific.>relationships.>poa_practice_to_poa_person_group_chairs ) ] ) ; if( postMap.>type == "poa_industry", [ temp_relationshipGroupChairs = toBag( postMap.>content_pilot_print_client_specific.>relationships.>poa_industry_to_poa_person_group_chairs ) ] ) ; if( postMap.>type == "poa_office", [ temp_relationshipGroupChairs = toBag( postMap.>content_pilot_print_client_specific.>relationships.>poa_office_to_poa_person_group_chairs ) ] ) ; if( postMap.>type == "poa_firm", [ temp_relationshipGroupChairs = toBag( postMap.>content_pilot_print_client_specific.>relationships.>nge_firm_to_staff ) ] ) ; null ] ) ; if( temp_domainURL.>indexOf( "ebglaw" ) > 0 || temp_domainURL.>indexOf( "advisors.ebglaw" ) > 0 || temp_domainURL.>indexOf( "ebgadvisors" ) > 0 || temp_domainURL.>indexOf( "wnj" ) > 0 || temp_domainURL.>indexOf( "kaplan" ) > 0 || temp_domainURL.>indexOf( "liskow" ) > 0 || temp_domainURL.>indexOf( "sussman" ) > 0 || temp_domainURL.>indexOf( "f3law" ) > 0 || temp_domainURL.>indexOf( "merchant" ) > 0 || temp_domainURL.>indexOf( "bakerlaw" ) > 0 || temp_domainURL.>indexOf( "munck" ) > 0 || temp_domainURL.>indexOf( "ccsb" ) > 0 || temp_domainURL.>indexOf( "goldbergkohn" ) > 0 || temp_domainURL.>indexOf( "kleinhornig" ) > 0 || temp_domainURL.>indexOf( "lugenbuhl" ) > 0 || temp_domainURL.>indexOf( "lawla" ) > 0 || temp_domainURL.>indexOf( "bracewell" ) > 0 || temp_domainURL.>indexOf( "lathrop" ) > 0 || temp_domainURL.>indexOf( "nge" ) > 0, [ temp_relationshipGroupChairs.>do( [ :rp | temprelationshipGroupChairsOrder = int( int( temprelationshipGroupChairsOrder ) + 1 ) ; tempValue = int( temprelationshipGroupChairsOrder ) ; relationshipGroupChairs.get( tempValue, [ new( #cpcore/WordpressPost_relationshipGroupChairs ) ], true ).>_order_ = tempValue ; relationshipGroupChairs.get( tempValue ).>name = rp.>post_title.>decode( 11 ) ; relationshipGroupChairs.get( tempValue ).>postLink = rp.>link ; relationshipGroupChairs.get( tempValue ).>phone = rp.>poa_contact_phone ; relationshipGroupChairs.get( tempValue ).>phone2 = rp.>poa_contact_secondary_phone ; relationshipGroupChairs.get( tempValue ).>phone3 = rp.>poa_contact_tertiary_phone ; relationshipGroupChairs.get( tempValue ).>email = rp.>poa_contact_email ; relationshipGroupChairs.get( tempValue ).>title = rp.>poa_position_taxonomy ; relationshipGroupChairs.get( tempValue ).>relPractice = rp.>poa_practice ; relationshipGroupChairs.get( tempValue ).>relOffice = rp.>poa_office ; relationshipGroupChairs.get( tempValue ).>relOffice2 = rp.>poa_office_secondary ; relationshipGroupChairs.get( tempValue ).>relOffice3 = rp.>poa_office_tertiary ; relationshipGroupChairs.get( tempValue ).>cellPhone = rp.>poa_contact_cell ; if( temp_domainURL.>indexOf( "baker" ) > 0, [ relationshipGroupChairs.get( tempValue ).>affinityGroup = rp.>bh_person_affinity_group ; relationshipGroupChairs.get( tempValue ).>officePosition = rp.>bh_office_position ; null ] ) ; if( temp_domainURL.>indexOf( "kleinhornig" ) > 0 || temp_domainURL.>indexOf( "lugenbuhl" ) > 0 || temp_domainURL.>indexOf( "lawla" ) > 0 || temp_domainURL.>indexOf( "bracewell" ) > 0 || temp_domainURL.>indexOf( "nge" ) > 0, [ relationshipGroupChairs.get( tempValue ).>type = rp.>poa_type_taxonomy ; null ] ) ; tempTNImage = rp.>poa_person_thumbnail_url ; debug( "tempTNImage >>> " + tempTNImage ) ; temp_imageFile = if( ifEmpty( tempTNImage, "" ) != "", [ #webconnections/ExternalWebConnection/getConnection( "GenerateDocument" ).impl.invoke( "DownloadResource", { "domainURL" : tempTNImage.>encode( 11 ), "basicAuth" : basicAuth } ) ], null ) ; if( temp_imageFile.>contentType.>indexOf( "image" ) != -1, [ relationshipGroupChairs.get( tempValue ).>thumbnailImage = temp_imageFile ], [ relationshipGroupChairs.get( tempValue ).>thumbnailImage = null ] ) ; null ] ) ; null ], [ temp_relationshipGroupChairs.>do( [ :rpost | temprelationshipGroupChairsOrder = int( int( temprelationshipGroupChairsOrder ) + 1 ) ; tempValue = int( temprelationshipGroupChairsOrder ) ; relationshipGroupChairs.get( tempValue, [ new( #cpcore/WordpressPost_relationshipGroupChairs ) ], true ).>_order_ = tempValue ; relationshipGroupChairs.get( tempValue ).>name = rpost.>post_title.>decode( 11 ) ; relationshipGroupChairs.get( tempValue ).>phone = rpost.>phone ; relationshipGroupChairs.get( tempValue ).>title = rpost.>title ; relationshipGroupChairs.get( tempValue ).>email = rpost.>email ; null ] ) ; null ] ) ; if( tempWPPostObj.>relationshipGroupChairs.>faultIn().>size() < relationshipGroupChairs.>size() - 1, [ tempWPPostObj.>relationshipGroupChairs.>addAll( range( tempWPPostObj.>relationshipGroupChairs.>size(), relationshipGroupChairs.>size() - 2 ).>collect( [ :i | new( #cpcore/WordpressPost_relationshipGroupChairs ) ] ) ) ], [ if( tempWPPostObj.>relationshipGroupChairs.>size() > relationshipGroupChairs.>size() - 1, [ tempWPPostObj.>relationshipGroupChairs = tempWPPostObj.>relationshipGroupChairs.>slice( 0, relationshipGroupChairs.>size() - 1 ) ] ) ] ) ; range( 0, relationshipGroupChairs.>size() - 2 ).>do( [ :i | tempWPPostObj.>relationshipGroupChairs[ i ].>name = relationshipGroupChairs[ i ].>name ; tempWPPostObj.>relationshipGroupChairs[ i ].>phone = relationshipGroupChairs[ i ].>phone ; tempWPPostObj.>relationshipGroupChairs[ i ].>phone2 = relationshipGroupChairs[ i ].>phone2 ; tempWPPostObj.>relationshipGroupChairs[ i ].>phone3 = relationshipGroupChairs[ i ].>phone3 ; tempWPPostObj.>relationshipGroupChairs[ i ].>title = relationshipGroupChairs[ i ].>title ; tempWPPostObj.>relationshipGroupChairs[ i ].>email = relationshipGroupChairs[ i ].>email ; tempWPPostObj.>relationshipGroupChairs[ i ].>postLink = relationshipGroupChairs[ i ].>postLink ; tempWPPostObj.>relationshipGroupChairs[ i ].>relPractice = relationshipGroupChairs[ i ].>relPractice ; tempWPPostObj.>relationshipGroupChairs[ i ].>relOffice = relationshipGroupChairs[ i ].>relOffice ; tempWPPostObj.>relationshipGroupChairs[ i ].>relOffice2 = relationshipGroupChairs[ i ].>relOffice2 ; tempWPPostObj.>relationshipGroupChairs[ i ].>relOffice3 = relationshipGroupChairs[ i ].>relOffice3 ; tempWPPostObj.>relationshipGroupChairs[ i ].>thumbnailImage = relationshipGroupChairs[ i ].>thumbnailImage ; tempWPPostObj.>relationshipGroupChairs[ i ].>affinityGroup = relationshipGroupChairs[ i ].>affinityGroup ; tempWPPostObj.>relationshipGroupChairs[ i ].>officePosition = relationshipGroupChairs[ i ].>officePosition ; tempWPPostObj.>relationshipGroupChairs[ i ].>type = relationshipGroupChairs[ i ].>type ; tempWPPostObj.>relationshipGroupChairs[ i ].>cellPhone = relationshipGroupChairs[ i ].>cellPhone ; tempWPPostObj.>relationshipGroupChairs[ i ].>_order_ = relationshipGroupChairs[ i ].>_order_ ; null ] ) ] ) ; if( temp_domainURL.>indexOf( "mcglinchey" ) > 0, [ relationshipGroupChairs = { "ignore" : "" } ; temprelationshipGroupChairsOrder = int( "-1" ) ; temp_relationshipGroupChairs = null ; if( postMap.>type == "poa_practice", [ temp_relationshipGroupChairs = toBag( postMap.>content_pilot_print.>relationships.>poa_practice_to_ms_contact ) ] ) ; temp_relationshipGroupChairs.>do( [ :rpost | temprelationshipGroupChairsOrder = int( int( temprelationshipGroupChairsOrder ) + 1 ) ; tempValue = int( temprelationshipGroupChairsOrder ) ; relationshipGroupChairs.get( tempValue, [ new( #cpcore/WordpressPost_relationshipGroupChairs ) ], true ).>_order_ = tempValue ; relationshipGroupChairs.get( tempValue ).>name = rpost.>decode( 11 ) ; null ] ) ; if( tempWPPostObj.>relationshipGroupChairs.>faultIn().>size() < relationshipGroupChairs.>size() - 1, [ tempWPPostObj.>relationshipGroupChairs.>addAll( range( tempWPPostObj.>relationshipGroupChairs.>size(), relationshipGroupChairs.>size() - 2 ).>collect( [ :i | new( #cpcore/WordpressPost_relationshipGroupChairs ) ] ) ) ], [ if( tempWPPostObj.>relationshipGroupChairs.>size() > relationshipGroupChairs.>size() - 1, [ tempWPPostObj.>relationshipGroupChairs = tempWPPostObj.>relationshipGroupChairs.>slice( 0, relationshipGroupChairs.>size() - 1 ) ] ) ] ) ; range( 0, relationshipGroupChairs.>size() - 2 ).>do( [ :i | tempWPPostObj.>relationshipGroupChairs[ i ].>name = relationshipGroupChairs[ i ].>name ; tempWPPostObj.>relationshipGroupChairs[ i ].>_order_ = relationshipGroupChairs[ i ].>_order_ ; null ] ) ] ) ; if( temp_domainURL.>indexOf( "ebglaw" ) > 0 || temp_domainURL.>indexOf( "advisors.ebglaw" ) > 0 || temp_domainURL.>indexOf( "ebgadvisors" ) > 0 || temp_domainURL.>indexOf( "munck" ) > 0, [ relationshipOpportunities = { "ignore" : "" } ; temprelationshipOpportunitiesOrder = int( "-1" ) ; temp_relationshipOpportunities = null ; if( temp_domainURL.>indexOf( "ebglaw" ) > 0, [ if( postMap.>type == "poa_career", [ temp_relationshipOpportunities = toBag( postMap.>ebglaw.>relationships.>ebg_opportunity_to_poa_career ) ] ) ; null ] ) ; if( temp_domainURL.>indexOf( "advisors.ebglaw" ) > 0 || temp_domainURL.>indexOf( "ebgadvisors" ) > 0, [ if( postMap.>type == "poa_career", [ temp_relationshipOpportunities = toBag( postMap.>ebgadvisors.>relationships.>ebg_opportunity_to_poa_career ) ] ) ; null ] ) ; if( temp_domainURL.>indexOf( "munck" ) > 0, [ if( postMap.>type == "poa_career", [ temp_relationshipOpportunities = toBag( postMap.>munck_wilson_mandala.>relationships.>poa_career_to_mwm_job_openings ) ] ) ; null ] ) ; if( temp_domainURL.>indexOf( "ebglaw" ) > 0 || temp_domainURL.>indexOf( "advisors.ebglaw" ) > 0 || temp_domainURL.>indexOf( "ebgadvisors" ) > 0 || temp_domainURL.>indexOf( "munck" ) > 0, [ temp_relationshipOpportunities.>do( [ :rp | temprelationshipOpportunitiesOrder = int( int( temprelationshipOpportunitiesOrder ) + 1 ) ; tempValue = int( temprelationshipOpportunitiesOrder ) ; relationshipOpportunities.get( tempValue, [ new( #cpcore/WordpressPost_relationshipOpportunities ) ], true ).>_order_ = tempValue ; relationshipOpportunities.get( tempValue ).>name = rp.>post_title.>decode( 11 ) ; relationshipOpportunities.get( tempValue ).>postLink = rp.>link ; relationshipOpportunities.get( tempValue ).>relatedOffices = rp.>poa_office ; null ] ) ; null ] ) ; if( tempWPPostObj.>relationshipOpportunities.>faultIn().>size() < relationshipOpportunities.>size() - 1, [ tempWPPostObj.>relationshipOpportunities.>addAll( range( tempWPPostObj.>relationshipOpportunities.>size(), relationshipOpportunities.>size() - 2 ).>collect( [ :i | new( #cpcore/WordpressPost_relationshipOpportunities ) ] ) ) ], [ if( tempWPPostObj.>relationshipOpportunities.>size() > relationshipOpportunities.>size() - 1, [ tempWPPostObj.>relationshipOpportunities = tempWPPostObj.>relationshipOpportunities.>slice( 0, relationshipOpportunities.>size() - 1 ) ] ) ] ) ; range( 0, relationshipOpportunities.>size() - 2 ).>do( [ :i | tempWPPostObj.>relationshipOpportunities[ i ].>name = relationshipOpportunities[ i ].>name ; tempWPPostObj.>relationshipOpportunities[ i ].>postLink = relationshipOpportunities[ i ].>postLink ; tempWPPostObj.>relationshipOpportunities[ i ].>relatedOffices = relationshipOpportunities[ i ].>relatedOffices ; tempWPPostObj.>relationshipOpportunities[ i ].>_order_ = relationshipOpportunities[ i ].>_order_ ; null ] ) ] ) ; if( temp_domainURL.>indexOf( "kleinhornig" ) > 0, [ relationshipOurWork = { "ignore" : "" } ; temp_relationshipOurWorkOrder = int( "-1" ) ; temp_relationshipOurWork = null ; if( temp_domainURL.>indexOf( "kleinhornig" ) > 0, [ if( postMap.>type == "poa_practice", [ temp_relationshipOurWork = toBag( postMap.>content_pilot_print_client_specific.>relationships.>kh_field_our_work ) ] ) ; null ] ) ; temp_relationshipOurWork.>do( [ :rpost | temp_relationshipOurWorkOrder = int( int( temp_relationshipOurWorkOrder ) + 1 ) ; tempValue = int( temp_relationshipOurWorkOrder ) ; relationshipOurWork.get( tempValue, [ new( #cpcore/WordpressPost_relationshipOurWork ) ], true ).>_order_ = tempValue ; relationshipOurWork.get( tempValue ).>title = rpost.>post_title ; relationshipOurWork.get( tempValue ).>postLink = rpost.>link ; relationshipOurWork.get( tempValue ).>thumbnailUrl = rpost.>thumbnail_url ; relationshipOurWork.get( tempValue ).>clientName = rpost.>kh_client_name ; relationshipOurWork.get( tempValue ).>excerpt = rpost.>excerpt ; null ] ) ; if( tempWPPostObj.>relationshipOurWork.>faultIn().>size() < relationshipOurWork.>size() - 1, [ tempWPPostObj.>relationshipOurWork.>addAll( range( tempWPPostObj.>relationshipOurWork.>size(), relationshipOurWork.>size() - 2 ).>collect( [ :i | new( #cpcore/WordpressPost_relationshipOurWork ) ] ) ) ], [ if( tempWPPostObj.>relationshipOurWork.>size() > relationshipOurWork.>size() - 1, [ tempWPPostObj.>relationshipOurWork = tempWPPostObj.>relationshipOurWork.>slice( 0, relationshipOurWork.>size() - 1 ) ] ) ] ) ; range( 0, relationshipOurWork.>size() - 2 ).>do( [ :i | tempWPPostObj.>relationshipOurWork[ i ].>title = relationshipOurWork[ i ].>title ; tempWPPostObj.>relationshipOurWork[ i ].>postLink = relationshipOurWork[ i ].>postLink ; tempWPPostObj.>relationshipOurWork[ i ].>thumbnailUrl = relationshipOurWork[ i ].>thumbnailUrl ; tempWPPostObj.>relationshipOurWork[ i ].>clientName = relationshipOurWork[ i ].>clientName ; tempWPPostObj.>relationshipOurWork[ i ].>excerpt = relationshipOurWork[ i ].>excerpt ; tempWPPostObj.>relationshipOurWork[ i ].>_order_ = relationshipOurWork[ i ].>_order_ ; null ] ) ] ) ; if( temp_domainURL.>indexOf( "kleinhornig" ) > 0, [ relationships = { "ignore" : "" } ; temp_relationshipsOrder = int( "-1" ) ; temp_relationships = null ; temp_relationshipSlugs = toBag( eval( source.>replace( "[", "{" ).>replace( "]", "}" ) )[ "content_pilot_print_client_specific" ][ "relationships" ].>keySet().>toArray() ) ; temp_relationshipsSet = postMap.>content_pilot_print_client_specific.>relationships ; debug( "Relationships: " + temp_relationshipSlugs ) ; temp_relationshipSlugs.>do( [ :relSlug | temp_relationships = toBag( temp_relationshipsSet[ relSlug ] ) ; debug( "Relationships 1 for: " + relSlug + ":" + temp_relationships.size() ) ; temp_relationships = toBag( eval( "temp_relationshipsSet.>" + relSlug ) ) ; debug( "Relationships 2 for: " + relSlug + ":" + temp_relationships.size() ) ; temp_relationships.do( [ :rpost | temp_relationshipsOrder = int( int( temp_relationshipsOrder ) + 1 ) ; tempValue = int( temp_relationshipsOrder ) ; relationships.get( tempValue, [ new( #cpcore/WordpressPost_relationships ) ], true ).>_order_ = tempValue ; relationships.get( tempValue ).>id = rpost.>ID ; relationships.get( tempValue ).>postType = rpost.>post_type ; relationships.get( tempValue ).>slug = relSlug ; relationships.get( tempValue ).>title = rpost.>post_title ; relationships.get( tempValue ).>postLink = rpost.>link ; relationships.get( tempValue ).>thumbnailUrl = rpost.>poa_person_thumbnail_url ; relationships.get( tempValue ).>phone = rpost.>poa_contact_phone ; relationships.get( tempValue ).>email = rpost.>poa_contact_email ; relationships.get( tempValue ).>taxonomyType = rpost.>poa_type_taxonomy ; relationships.get( tempValue ).>taxonomyPosition = rpost.>poa_position_taxonomy ; null ] ) ] ) ; if( tempWPPostObj.>relationships.>faultIn().>size() < relationships.>size() - 1, [ tempWPPostObj.>relationships.>addAll( range( tempWPPostObj.>relationships.>size(), relationships.>size() - 2 ).>collect( [ :i | new( #cpcore/WordpressPost_relationships ) ] ) ) ], [ if( tempWPPostObj.>relationships.>size() > relationships.>size() - 1, [ tempWPPostObj.>relationships = tempWPPostObj.>relationships.>slice( 0, relationships.>size() - 1 ) ] ) ] ) ; range( 0, relationships.>size() - 2 ).>do( [ :i | tempWPPostObj.>relationships[ i ].>postType = relationships[ i ].>postType ; tempWPPostObj.>relationships[ i ].>slug = relationships[ i ].>slug ; tempWPPostObj.>relationships[ i ].>id = relationships[ i ].>id ; tempWPPostObj.>relationships[ i ].>title = relationships[ i ].>title ; tempWPPostObj.>relationships[ i ].>postLink = relationships[ i ].>postLink ; tempWPPostObj.>relationships[ i ].>thumbnailUrl = relationships[ i ].>thumbnailUrl ; tempWPPostObj.>relationships[ i ].>phone = relationships[ i ].>phone ; tempWPPostObj.>relationships[ i ].>email = relationships[ i ].>email ; tempWPPostObj.>relationships[ i ].>taxonomyType = relationships[ i ].>taxonomyType ; tempWPPostObj.>relationships[ i ].>taxonomyPosition = relationships[ i ].>taxonomyPosition ; tempWPPostObj.>relationships[ i ].>_order_ = relationships[ i ].>_order_ ; null ] ) ] ) ; resultMapping.tidyObject() ] (FormulaDataMapping)
webdatamapping/FormulaDataMapping/transform (FormulaDataMapping)
webdatamapping/FormulaDataMapping/transform (FormulaDataMapping)
webintegrations/WSCOperation/invoke.27 (WSCOperation)
webintegrations/WSConnection/invoke.10 (WSConnection)
[ :f | com.intelliun.util.script.Block@368e1c7e ] (Folder)
[ :f | com.intelliun.util.script.Block@368e1c7e ] (FormulaTemplateAction)
weblets/FormulaTemplateAction/invoke (FormulaTemplateAction)
weblets/TemplateAction/invoke.13 (TemplateAction)
webkernel/Folder/performAction (Folder)
webportal/performFolderAction
userportal/openFormula
ve/core/Thread/run (Thread)
[]
[]
|