","social":[{"fieldname":"URL","value":"https://twitter.com/drcfarmstead","smfieldid":7,"smserviceid":1},{"fieldname":"URL","value":"https://www.facebook.com/DeannaRoseChildrensFarmstead/","smfieldid":7,"smserviceid":4},{"fieldname":"URL","value":"https://www.yelp.com/biz/deanna-rose-childrens-farmstead-overland-park","smfieldid":8,"smserviceid":5},{"fieldname":"URL","value":"https://www.instagram.com/drcfarmstead/?hl=en","smfieldid":7,"smserviceid":13},{"fieldname":"URL","value":"https://www.tripadvisor.com/Attraction_Review-g38969-d1532237-Reviews-Deanna_Rose_Children_s_Farmstead-Overland_Park_Kansas.html","smfieldid":11,"smserviceid":16}],"address1":"13800 Switzer Rd","hasTripAdvisor":false,"weburl":"https://www.opkansas.org/recreation-fun/deanna-rose-childrens-farmstead/","hasYelp":false,"amenityTree":[{"tabshortname":"attractions","amenitytabname":"Attractions","amenitytabid":1002,"sortorder":3,"groups":[{"amenitytabid":1002,"sortorder":11,"amenitygroupname":"Farm","amenitygroupid":8,"fields":[{"sortorder":1,"label":"Activities For Kids","amenitygroupid":8,"tabshortname":"attractions","amenitytabid":1002,"fieldtype":"Yes/No","numeric":false,"shortname":"activitiesforkids_8_1","array":false,"fieldid":39,"typeid":11,"uniquename":"attractions_activitiesforkids_8_1","doc":{"tabshortname":"attractions","amenitytabid":1002,"value":"true","label":"Activities For Kids","shortname":"activitiesforkids_8_1","amenitygroupid":8,"digits":0,"fieldid":39,"typeid":11,"type":"Yes/No","value_raw":true,"value_string":"Yes","uniquename":"attractions_activitiesforkids_8_1"},"localeLabel":"Activities For Kids"},{"sortorder":6,"label":"Horseback Riding","amenitygroupid":8,"tabshortname":"attractions","amenitytabid":1002,"fieldtype":"Yes/No","numeric":false,"shortname":"horsebackriding_8_1","array":false,"fieldid":35,"typeid":11,"uniquename":"attractions_horsebackriding_8_1","doc":{"tabshortname":"attractions","amenitytabid":1002,"value":"true","label":"Horseback Riding","shortname":"horsebackriding_8_1","amenitygroupid":8,"digits":0,"fieldid":35,"typeid":11,"type":"Yes/No","value_raw":true,"value_string":"Yes","uniquename":"attractions_horsebackriding_8_1"},"localeLabel":"Horseback Riding"},{"sortorder":8,"label":"Pumpkin Patch","amenitygroupid":8,"tabshortname":"attractions","amenitytabid":1002,"fieldtype":"Yes/No","numeric":false,"shortname":"pumpkinpatch_8_1","array":false,"fieldid":36,"typeid":11,"uniquename":"attractions_pumpkinpatch_8_1","doc":{"tabshortname":"attractions","amenitytabid":1002,"value":"true","label":"Pumpkin Patch","shortname":"pumpkinpatch_8_1","amenitygroupid":8,"digits":0,"fieldid":36,"typeid":11,"type":"Yes/No","value_raw":true,"value_string":"Yes","uniquename":"attractions_pumpkinpatch_8_1"},"localeLabel":"Pumpkin Patch"},{"sortorder":13,"label":"Wagon Rides","amenitygroupid":8,"tabshortname":"attractions","amenitytabid":1002,"fieldtype":"Yes/No","numeric":false,"shortname":"wagonrides_8_1","array":false,"fieldid":43,"typeid":11,"uniquename":"attractions_wagonrides_8_1","doc":{"tabshortname":"attractions","amenitytabid":1002,"value":"true","label":"Wagon Rides","shortname":"wagonrides_8_1","amenitygroupid":8,"digits":0,"fieldid":43,"typeid":11,"type":"Yes/No","value_raw":true,"value_string":"Yes","uniquename":"attractions_wagonrides_8_1"},"localeLabel":"Wagon Rides"}],"hasDoc":[true,true,true,true]}]}],"crmtracking":{"core_itinerary":"58_2013","core_booking_click":"7_2013","core_map_view":"59_2013","custom_leisure_event_views":"126_2013","core_listing_view":"1_2013","core_mobile_view":"17_2013","custom_threshold_360_views":"120_2013","custom_instagram_views":"114_2013","custom_visitapps_listing_view":"111_2013","custom_book_direct_activities":"113_2013","custom_book_direct_lodging":"112_2013","core_twitter_view":"12_2013","custom_leisure_event_click_thrus":"127_2013","core_mobile_click":"16_2013","custom_visitapps_passport_check_in":"110_2013","core_listing_click":"4_2013","custom_core_placeholder":"125_2013","custom_instagram_click_thrus":"115_2013","core_facebook_view":"14_2013","custom_youtube_click_thrus":"117_2013","custom_viator_click_thrus":"121_2013","core_mobile_call":"18_2013","core_facebook_click":"15_2013","custom_youtube_views":"116_2013","custom_pinterest_views":"118_2013","custom_pinterest_click_thrus":"119_2013","core_twitter_click":"13_2013"}}; var cityStateZip = "Overland Park, KS 66221"; var streetAddress = "13800 Switzer Rd"; var locations; if (streetAddress !== undefined && streetAddress !== '') { var location = { streetAddress: streetAddress, cityStateZip: cityStateZip } locations = [location]; } var weburl; if (data.weburl) { weburl = "/plugins/crm/count/?type=server&key=4_2013&val=5e48a1701650c96b7ad494b0fa6b875ce0330cb6665c2158b38484e2a5956d8ff38e96801a74bc9cd5e5b9bf3e939792b49b5d656ffc16b258f53f58d88abdb67c529d9c9a573d7e942b9e4e8baeed4ecf286a0f4d66e314b6e40b1687dc6a3a1e3da28a4790"; } var tripbuilderTracking = "58_2013"; var translations = JSON.parse($("#translations_6b0cfa3b-6dbc-4e6b-b95b-a2f6ec82d3a3").html()); var hoursOfOperation = []; data.amenityTree.forEach(function(amenity) { amenity.groups.forEach(function(group) { group.fields.forEach(function(field) { if (field.tabshortname === 'hoursofoperation') { hoursOfOperation.push(field.doc) } }); }); }); var socialMap = { "serviceid_4" : { class : "fab fa-facebook-f", service : "facebook" }, "serviceid_1" : { class : "fab fa-twitter", service : "twitter" }, "serviceid_2" : { class : "fab fa-youtube", service : "youtube" }, "serviceid_10" : { class : "fab fa-linkedin", service : "linkedin" }, "serviceid_12" : { class : "fab fa-pinterest", service : "pinterest" }, "serviceid_13" : { class : "fab fa-instagram", service : "instagram" }, "serviceid_17" : { class : "fab fa-snapchat", service : "snapchat" }, "serviceid_5" : { class : "fab fa-yelp", service : "yelp" }, "serviceid_16" : { class : "fab fa-tripadvisor", service : "tripadvisor" } }; var social = []; var openTable = false; if (data.social) { data.social.forEach(function(val) { var item = socialMap['serviceid_' + val.smserviceid]; if (item === undefined) { return; } item.url = listingsLib.getValidSocialUrl({ url : val.value, urlType : item.service }); if (item.service === 'twitter') { item.url = sv_crmLib.getTrackUrl(data.crmtracking.core_twitter_click, item.url); } else if (item.service === 'facebook') { item.url = sv_crmLib.getTrackUrl(data.crmtracking.core_facebook_click, item.url); } social.push(item); }); openTable = data.social.filter(item => item.smserviceid === 6).length ? data.social.filter(item => item.smserviceid === 6)[0].value : false; } var placemarks = []; if (data.latitude) { placemarks.push({ recid : data.recid, title : data.title, latitude : data.latitude, longitude : data.longitude, address1 : streetAddress, crmc : data.primaryCategory.catname, crmsc : data.primaryCategory.subcatname, v_crmc : ' | ', itemType : 'listings', itemName : data.title, }); } var vue = detail.getVue({ data : { type : 'Listings', title : data.title, crmc : data.primaryCategory.catname, crmsc : data.primaryCategory.subcatname, udfs : data.udfs, locations : locations, phone : data.phone, tollfree : data.tollfree, media : data.media, email : data.email, weburl : weburl, social : social, hasTripAdvisor : data.hasTripAdvisor, tripbuilder : tripbuilder, tripbuilderTracking : tripbuilderTracking, yelp : data.yelp, hasYelp : data.hasYelp, openTable : openTable, yelpHours : data.yelp ? data.yelp.hours : undefined, hoursOfOperation: hoursOfOperation, threshold360id : data.threshold360id, recid : data.recid, isDTN : data.isDTN, description : data.description, offers : data.offers, events : data.events, placemarks : placemarks, amenities : data.amenityTree, meetingfacility : data.meetingfacility, meetingrooms : data.meetingrooms, translations : translations, latitude: data.latitude, longitude: data.longitude, gtmVars : '{ "tClient" : { "eventCategory" : "Listings" } }', hasHeritage : data.accountudfs && data.accountudfs[403] && data.accountudfs[403].value ? true : undefined, hasScenic : data.accountudfs && data.accountudfs[404] && data.accountudfs[404].value ? true : undefined, hasByways : data.accountudfs && data.accountudfs[405] && data.accountudfs[405].value ? true : undefined, hasAgritourism : data.accountudfs && data.accountudfs[406] && data.accountudfs[406].value ? true : undefined, }, templates : { listing_ta_snippet : listing_ta_snippet, listing_detail_meeting_facilities : listing_detail_meeting_facilities, listing_detail_meeting_room : listing_detail_meeting_room, yelp_component : yelp_component, event_item_template : event_item_template, offer_item_template : offer_item_template, custom_li_items : custom_li_items, }, rootNode : $('[data-guid="6b0cfa3b-6dbc-4e6b-b95b-a2f6ec82d3a3"]') }); sv_crmLib.trackAjax(data.crmtracking.core_listing_view); /* register available UI events for SEM tracking */ var watcher = new UIWatcher(vue, $, document); var uid = clientLib.uuid().toString(); var widgetEvents = ["item-click"]; for (var i=0; i
Sponsored

Sponsored

Sponsored
Sponsored

Sponsored
Sponsored

Sponsored
Sponsored

Sponsored
Sponsored