//*****************************************************************
//layer-specific information for query/identify/selection
//*****************************************************************
// ************* DO NOT EDIT HERE!!!*******************************
// field name and alias storage arrays for layers in MASTER mapservice
var mapserviceID = new Array();
var SDEPrefix = new Array();
var fieldNameList = new Array();
var fieldAliasList = new Array();
var selectidFieldNameList = new Array();
var fieldTypeList = new Array(); // don't fill, CX fills automatically
var HyperLinkFields = new Array();
var HyperLinkAliases = new Array();
var HyperLinkPrefixes = new Array();
var HyperLinkSuffixes = new Array();
var customQueryFieldNameList = new Array();
var dataAllCaps = new Array();
var mailingOwnerFieldNameList = new Array();
var mailingResidentFieldNameList = new Array();
var reportHeaderFieldNameList = new Array();
var legalInfoList = new Array();
var legalCountList = new Array();  // filled by CX
var combinedFieldInfoList = new Array();
var fieldsWithDescriptions = new Array();
var fieldsWithDescr_links = new Array();
// PDF mailing labels
var mailingOwnerFieldName = new Array();		// field with owner name (for filtering duplicates)
var mailingOwnerFilterStatus = new Array();		// true or false, whether to filter for duplicate owner names
var mailingOwnerLabelLine1 = new Array();
var mailingOwnerLabelLine2 = new Array();
var mailingOwnerLabelLine3 = new Array();
var mailingOwnerLabelLine4 = new Array();
var mailingOwnerLabelLine5 = new Array();
var mailingResidentLabelLine1 = new Array();
var mailingResidentLabelLine2 = new Array();
var mailingResidentLabelLine3 = new Array();
var mailingResidentLabelLine4 = new Array();
var mailingResidentLabelLine5 = new Array();

/* list of all possible
mapserviceID[x] = ""; // the unique ID of the layer in the mapservice (use ArcMap Name if MXD)
SDEPrefix[x] = "";  // data path prefix for SDE field names (specify only for SDE layers)
fieldNameList[x] = new Array();  // actual field names, in order to be displayed (setting field names & aliases makes layer selectable and IDable)
fieldAliasList[x]  = new Array();  // corresponding field aliases, in same order as field names
selectidFieldNameList[x] = new Array(); // fields to show on select/id (use to show abbreviated list, but have longer field list for reports)
HyperLinkFields[x] = new Array();  // field to be used for hyperlink
HyperLinkAliases[x] = new Array();  // aliases for hyperlink fields (value of "use field value" will make the field display be the field value, not an alias)
HyperLinkPrefixes[x] = new Array();  // prefix (if any) to place before field value to make hyperlink url
HyperLinkSuffixes[x] = new Array();  // suffix (if any) to place after field value to make hyperlink url
customQueryFieldNameList[x] = new Array();  // field names available in custom query dialog (setting field names makes layer Queryable in custom dialog on specified fields; field names listed must also be included in field name and alias lists for ID; only works for string, numeric or date fields, not boolean or shape!)
dataAllCaps[x] = true/false;  // if true will push all user entered search strings to upper case automatically for that layer (default is false)
mailingInfoFieldNameList[x] = new Array();  // field names to be shown for mailing info display, in order to be displayed
reportHeaderFieldNameList[x] = new Array();  // field names to be used as headers on printable reports
combinedFieldInfoList[x] = new Array();  // fields to be combined as one display item; contains in order, {"Display Alias",<true/false(include in short list display)>,"field1","field2","field3"....}
legalInfoList[x] = new Array();  // 3 part array, contains in order, {"FIELD NAME PREFIX","Alias",<true/false(include in short list display)>,}
fieldsWithDescriptions[x] = new Array();  // array of field names to have web links; These fields must exist in the Name/Alias lists!
fieldsWithDescr_links[x] = new Array();  //corresponding list of the web links to use for the field names
*/
// ************* EDIT ONLY BELOW HERE!!!*******************************
//*****************************************************
//  property & land info
//*****************************************************
// parcel query
groupIndexCount = 0;
mapserviceID[groupIndexCount] = "grouped-parcels";
fieldNameList[groupIndexCount] = new Array("PARCEL_NUM","PNUM_MAIL","HOUSENUM","FULLSTREET","PROPCITY","PROPZIP","OWNNAME1","OWNNAME2","OWNADDRESS","OWNCITY","OWNSTATE","OWNZIPCODE","ACREAGE","ASR_MBOR","SEV_MBOR","TAX_MBOR","SCHOOLDIST","LEGALDESCR");
fieldAliasList[groupIndexCount]  = new Array("Search BS&amp;A Database","Parcel Number","Parcel Address Number","Parcel Address Street","Parcel Address City","Parcel Address Zip","Owner Name","Owner Secondary Name","Owner Street Address","Owner City","Owner State","Owner Zip","Acreage","Assessed Value","SEV Assessed Value","Final Taxable Value","School District","Legal Description");
selectidFieldNameList[groupIndexCount] = new Array("PARCEL_NUM","HOUSENUM","FULLSTREET","PROPCITY","PROPZIP","OWNNAME1","ACREAGE","LEGALDESCR");
customQueryFieldNameList[groupIndexCount] = new Array("PNUM_MAIL","HOUSENUM","FULLSTREET","PROPCITY","PROPZIP","OWNNAME1","OWNNAME2","OWNADDRESS","OWNCITY","OWNSTATE","OWNZIPCODE","ACREAGE","ASR_MBOR","SEV_MBOR","TAX_MBOR","SCHOOLDIST","LEGALDESCR");
dataAllCaps[groupIndexCount] = true;
mailingOwnerFieldNameList[groupIndexCount] = new Array("PNUM_MAIL","HOUSENUM","FULLSTREET","OWN_FNAME","OWN_LNAME","OWNADDRESS","OWNCITY","OWNSTATE","OWNZIPCODE");
reportHeaderFieldNameList[groupIndexCount] = new Array("PNUM_MAIL","HOUSENUM","FULLSTREET","PROPCITY");
HyperLinkFields[groupIndexCount] = new Array("PARCEL_NUM");  // field to be used for hyperlink
HyperLinkAliases[groupIndexCount] = new Array("use field value");  // aliases for hyperlink fields (value of "use field value" will make the field display be the field value, not an alias)
HyperLinkPrefixes[groupIndexCount] = new Array("https://is.bsasoftware.com/bsa.is/AssessingServices/ServiceAssessingDetails.aspx?dp=");  // prefix (if any) to place before field value to make hyperlink url
HyperLinkSuffixes[groupIndexCount] = new Array("&i=1&appid=0&unit=382");  // suffix (if any) to place after field value to make hyperlink url
// parcel mailing labels
mailingOwnerFieldName[groupIndexCount] = "OWNNAME1";
mailingOwnerFilterStatus[groupIndexCount] = false;
mailingOwnerLabelLine1[groupIndexCount] = new Array("PNUM_MAIL");
mailingOwnerLabelLine2[groupIndexCount] = new Array("OWNNAME1"," ","OWNNAME2");
mailingOwnerLabelLine3[groupIndexCount] = new Array("OWNADDRESS");
mailingOwnerLabelLine4[groupIndexCount] = new Array("OWNCITY",", ","OWNSTATE","OWNZIPCODE");
mailingOwnerLabelLine5[groupIndexCount] = new Array();

// streets
groupIndexCount += 1;
mapserviceID[groupIndexCount] = "grouped-streets";
fieldNameList[groupIndexCount] = new Array("DIRECTION","NAME","TYPE","L_F_ADD","L_T_ADD","R_F_ADD","R_T_ADD","SURFACE");
fieldAliasList[groupIndexCount] = new Array("Directional","Name","Type","From Address-Left","To Address-Left","From Address-Right","To Address-Right","Surface Type");
customQueryFieldNameList[groupIndexCount] = new Array("DIRECTION","NAME","TYPE","L_F_ADD","L_T_ADD","R_F_ADD","R_T_ADD","SURFACE");
dataAllCaps[groupIndexCount] = true;
// railroad
groupIndexCount += 1;
mapserviceID[groupIndexCount] = "grouped-railroads";
fieldNameList[groupIndexCount] = new Array("NAME","STATUS");
fieldAliasList[groupIndexCount] = new Array("Lake Name","Track Status");
customQueryFieldNameList[groupIndexCount] = new Array("NAME","STATUS");
dataAllCaps[groupIndexCount] = true;

// polling locations
groupIndexCount += 1;
mapserviceID[groupIndexCount] = "optional-voteloc";
fieldNameList[groupIndexCount] = new Array("PRECINCT_N","NAME","ADDRESS","CITY","STATE","ZIP","TOWNSHIP");
fieldAliasList[groupIndexCount] = new Array("Precinct Number","Name","Address","City","State","Zipcode","Township");

// lakes
groupIndexCount += 1;
mapserviceID[groupIndexCount] = "grouped-lakes";
fieldNameList[groupIndexCount] = new Array("NAME");
fieldAliasList[groupIndexCount] = new Array("Lake Name");
customQueryFieldNameList[groupIndexCount] = new Array("NAME");
dataAllCaps[groupIndexCount] = false;
// drains
groupIndexCount += 1;
mapserviceID[groupIndexCount] = "grouped-drain";
fieldNameList[groupIndexCount] = new Array("NAME","TYPE","AKA","METHODEST","DATEEST","ACTIVE","ABANDONED","ACCOUNTNUM");
fieldAliasList[groupIndexCount] = new Array("Name","Type","AKA","Method","Date","Active","Abandoned","Account Number");
// detention ponds
groupIndexCount += 1;
mapserviceID[groupIndexCount] = "grouped-detention";
fieldNameList[groupIndexCount] = new Array("NAME","TYPE","AKA","METHODEST","DATEEST","ACTIVE","ABANDONED","ACCOUNTNUM","AREA");
fieldAliasList[groupIndexCount] = new Array("Name","Type","AKA","Method","Date","Active","Abandoned","Account Number","Area (sq ft)");

// quarter sections
groupIndexCount += 1;
mapserviceID[groupIndexCount] = "grouped-qtrsec";
fieldNameList[groupIndexCount] = new Array("TOWNNAME","TOWNRANGE","SECTNUM","QTR_DIR");
fieldAliasList[groupIndexCount] = new Array("Township Name","Township and Range","Section Number","Quarter Section");
customQueryFieldNameList[groupIndexCount] = new Array("TOWNNAME","TOWNRANGE","SECTNUM","QTR_DIR");
dataAllCaps[groupIndexCount] = true;

// commissioner districts
groupIndexCount += 1;
mapserviceID[groupIndexCount] = "overlay-commdistrict";
fieldNameList[groupIndexCount] = new Array("DISTRICT","POPULATION","COMMISSION");
fieldAliasList[groupIndexCount] = new Array("District Number","Population","Commissioner Name");

// ems districts
groupIndexCount += 1;
mapserviceID[groupIndexCount] = "overlay-ems";
fieldNameList[groupIndexCount] = new Array("CAD","STATION","PHONE");
fieldAliasList[groupIndexCount] = new Array("District Code","EMS Agency Name","Phone Number");
fieldsWithDescriptions[groupIndexCount] = new Array("PHONE");
fieldsWithDescr_links[groupIndexCount] = new Array("http://www.clinton-county.org/911/ClintonCountyAdministrativePublicSafetyNumbers.htm");
// fire districts
groupIndexCount += 1;
mapserviceID[groupIndexCount] = "overlay-fire";
fieldNameList[groupIndexCount] = new Array("CAD","STATION","PHONE");
fieldAliasList[groupIndexCount] = new Array("District Code","Fire Service District","Phone Number");
fieldsWithDescriptions[groupIndexCount] = new Array("PHONE");
fieldsWithDescr_links[groupIndexCount] = new Array("http://www.clinton-county.org/911/ClintonCountyAdministrativePublicSafetyNumbers.htm");
// police districts
groupIndexCount += 1;
mapserviceID[groupIndexCount] = "overlay-police";
fieldNameList[groupIndexCount] = new Array("CAD","STATION","PHONE");
fieldAliasList[groupIndexCount] = new Array("District Code","Law Enforcement Agency Name","Phone Number");
fieldsWithDescriptions[groupIndexCount] = new Array("PHONE");
fieldsWithDescr_links[groupIndexCount] = new Array("http://www.clinton-county.org/911/ClintonCountyAdministrativePublicSafetyNumbers.htm");
// rescue districts
groupIndexCount += 1;
mapserviceID[groupIndexCount] = "overlay-rescue";
fieldNameList[groupIndexCount] = new Array("CAD","STATION");
fieldAliasList[groupIndexCount] = new Array("District Code","Law Enforcement Agency Name");
fieldsWithDescriptions[groupIndexCount] = new Array("STATION");
fieldsWithDescr_links[groupIndexCount] = new Array("http://www.clinton-county.org/911/ClintonCountyAdministrativePublicSafetyNumbers.htm");

