CINXE.COM
Edelweiss
<!DOCTYPE html> <html lang="en-US"> <head prefix="og: http://ogp.me/ns# fb: http://ogp.me/ns/fb# books: http://ogp.me/ns/books#"> <title>Edelweiss</title> <meta charset="utf-8" /> <meta property="og:site_name" content="Edelweiss+" /> <meta property="fb:app_id" content="1669614589778994" /><meta property="og:title" content="Edelweiss+" /> <meta name="description" content="Edelweiss, by Above the Treeline, is the book industry’s platform to sell, discover, and order new titles." /> <meta property="og:description" content="Edelweiss, by Above the Treeline, is the book industry’s platform to sell, discover, and order new titles." /> <meta property="og:image" content="https://edel-images.azureedge.net/ea/eplus-common/eplus_logo_square.png" /> <meta property="og:image:alt" content="Edelweiss+ Logo" /> <meta property="og:type" content="website" /> <meta property="og:url" content="https://www.edelweiss.plus/" /> <link type="image/x-icon" href="/favicon.ico" rel="shortcut icon"> <link type="image/x-icon" href="/favicon.ico" rel="icon"> <link href="/css/jquery/ui/smoothness/ui.theme.css" rel="stylesheet"/> <link href="/css/opensans.css" rel="stylesheet"/> <link href="/css/fontastic.css" rel="stylesheet"/> <link href="/css/icons.css" rel="stylesheet"/> <link href="/css/common/grid.css" rel="stylesheet"/> <link href="/css/jquery.tag.css" rel="stylesheet"/> <link href="/css/jquery.webui-popover.css" rel="stylesheet"/> <link href="/css/slick/slick.css" rel="stylesheet"/> <link href="/css/slick/slick-theme.css" rel="stylesheet"/> <link href="/css/AnalyticsHome.css" rel="stylesheet"/> <link href="/css/jquery-webui-popover/css/jquery.webui-popover.css" rel="stylesheet"/> <link href="/css/NewLook.css" rel="stylesheet"/> <link href="/css/Masonry.css" rel="stylesheet"/> <link href="/css/general.css" rel="stylesheet"/> <link href="/css/newLook.screenqueries.css" rel="stylesheet"/> <link href="/css/lightbox.css" rel="stylesheet"/> <link href="/css/infiniteSlider.css" rel="stylesheet"/> <link href="/css/manageSubscriptions.css" rel="stylesheet"/> <link href="/css/crossStoreView.css" rel="stylesheet"/> <link href="/css/eplus-range-slider.css" rel="stylesheet"/> <link href="/css/cascadingMenu.css" rel="stylesheet"/> <link href="/css/edel.analytics.registration.css" rel="stylesheet"/> <link href="/css/support.css" rel="stylesheet"/> <link href="/css/CategoryAggregates.css" rel="stylesheet"/> <link href="/css/Affiliation.css" rel="stylesheet"/> <link href="/css/E360/campaigns.css" rel="stylesheet"/> <link href="/css/E360/events.css" rel="stylesheet"/> <link href="/css/header.css" rel="stylesheet"/> <link href="/css/LandingPage.css" rel="stylesheet"/> <link href="/css/jquery/jquery.autocomplete.css" rel="stylesheet"/> <link href="/css/jquery.slick.css" rel="stylesheet"/> <link href="/css/imgareaselect-default.css" rel="stylesheet"/> <link href="/css/datatables/1.10.12/datatables.newLook.css" rel="stylesheet"/> <link href="/css/datatables/1.10.12/responsive.datatables.css" rel="stylesheet"/> <link href="/css/resequenceList/resequenceList.css" rel="stylesheet"/> <link href="/css/DashLaneStyles.css" rel="stylesheet"/> <script src="/js/jquery.js"></script> <script src="/js/jquery-ui.js"></script> <script src="/js/jquery-ui-i18n.js"></script> <script src="/js/fileupload/jquery.ui.widget.js"></script> <script src="/js/modernizr.js"></script> <script src="/js/moment.js"></script> <script src="/js/telemetryFilter.js"></script> <script src="/js/pageTelemetry.js"></script> <script src="/js/gainsight.js"></script> <script src="/js/edelweiss-components/index.js"></script> <link type="text/css" href="/css/fontsDark.css" rel="stylesheet" /> <style> .accFont { color: #005373; } .acc-font { color: #005373; cursor: pointer; } .acc-font:hover { text-decoration: underline; text-decoration-style: dotted; } .bgdColorMyActions { background-color: #FC601F; color: #FFF; } .ePlusLink { font-weight: bold; color: #005373; text-decoration: none; } input:checked + .slider { background-color: #005373; } input:checked:disabled + .slider { background-color: #005373; } .analyticsDisplayModesContainer input:checked + .slider, .analyticsDisplayModesContainer input:checked:disabled + .slider { background-color: #ccc; } .new-look-btn-primary { background-color: #005373; border-color: #005373; } .new-look-btn-primary.disabled, .new-look-btn-primary:disabled { background-color: #005373; border-color: #005373; } </style> <script> window.enum = {"dashParent":{"DASHHOME":50},"dashType":{"DASHDRC":0,"DASHMYREADING":1,"DASHCATALOG":2,"DASHTAG":3,"DASH_PUBLISHER":4,"DASH_PEOPLE":5,"DASH_ORDER":6,"DASH_MARKUPS":7,"DASH_SEARCH":8,"DASHBUZZ":9,"DASHTITLEMODAL":10,"DASHCATALOGTITLES":11,"DASHPUBLICITYCAMPAIGN":12,"DASHORDERTITLES":13,"DASHPUBLISHERCATALOGS":20,"DASHPUBLISHERDRC":21,"DASHPUBLISHERBUZZ":22,"DASHPUBLISHERTAGS":23,"DASHMYEDELWEISS":30,"DASHANALYTICS":40,"DASHREVIEW":50,"DASHORGANIZATIONS":51,"KPI_HOME":100,"KPI_ATRISK":101,"KPI_RECEIVABLES":102,"KPI_PIPELINE":103,"LA_HOME":200,"LA_MOSTPOPULAR":201,"LA_WEEDING":202,"LA_CATEGORYCOMP":203,"EA_CATALOGANALYSIS":204,"EA_NOTYETRELEASED":205,"EA_WORKFLOW":206,"EA_PEERBRANCHSTOCKANALYSIS":208,"EA_STOCKANALYSIS":210,"EA_CATEGORYPERFORMANCE":220,"EA_LOCATIONPERFORMANCE":221,"EA_TRENDSANALYSIS":222,"EA_TITLESETSTOCKANALYSIS":225,"EA_WEEDINGANALYSIS":230,"EA_RESTOCKSUPPORT":231,"BA_HOME":300,"BA_MOSTPOPULAR":301,"BA_SLOWMOVERS":302,"BA_CATEGORYCOMP":303,"DASHTITLE":400,"DASHSAVEDFILTERS":500,"DASHSPIEGELBESTSELLERS":501,"DASHREQUESTS":502,"DASHNOTES":503,"DASHNONE":-1},"resultType":{"NONE":0,"TITLETAGALL":2,"TITLE_SHELF_ANTICIPATING":10,"TITLE_SHELF_HIGH_ANTICIPATE":11,"TITLE_SHELF_READING":12,"TITLE_SHELF_FINISHED":13,"TITLE_SHELF_DNF":14,"TITLE_SHELF_FAVORITES":15,"TITLEDRCDOWNLOADSNOREVIEW":17,"TITLEDRCPROCESS_OPEN":18,"TITLEDRCREQUESTALL":19,"TITLEDRCREQUESTABLE":20,"TITLEDRCDOWNLOADABLE":21,"TITLEDRCAVAILABLE":22,"TITLEDRCREQUESTAPPROVED":23,"TITLEDRCREQUESTOPEN":24,"TITLEDRCREQUESTCLOSED":25,"TITLEDRCDOWNLOADS":26,"TITLETAGMINE":27,"TITLETAGORG":28,"TITLETAGPUBLISHER":29,"TITLETAGSHAREDWITHME":30,"TITLE_CATALOG":31,"TITLE_SEARCH":32,"PUBLISHER_MOST_VISITED":33,"PUBLISHER_PRIORITY_A":34,"PUBLISHER_PRIORITY_B":35,"PUBLISHER_PRIORITY_C":36,"PUBLISHER_PRIORITY_D":37,"PUBLISHER_VISIBLE_READERS":38,"TITLE_SEARCH_MINE":39,"PEOPLE_ACTIVITY_FRIENDS":40,"PEOPLE_ACTIVITY_AFFILIATES":41,"PEOPLE_OPENINVITES_INBOUND":42,"PEOPLE_OPENINVITES_OUTBOUND":43,"PEOPLE_ALL_FRIENDS":44,"PEOPLE_ORG_USERS":45,"PEOPLE_CONTACTS_INDIVIDUALS":46,"PEOPLE_CONTACTS_ORGANIZATIONS":47,"PEOPLE_CONTACTS_GROUPS":48,"PEOPLE_SEARCH":49,"ORDER_ACTIVE":50,"ORDER_ARCHIVED":51,"ORDERSEARCH":52,"PEOPLE_ACTIVITY_ORG":53,"PUBLICITYCAMPAIGNOPENUNSUBMITTED":54,"PUBLICITYCAMPAIGNARCHIVED":55,"PUBLICITYCAMPAIGNOPENSUBMITTED":56,"PEOPLE_ACTIVITY_EDELWEISS":57,"PUBLICITYCAMPAIGNPUBSHARED":58,"ORDERS_SHARED_WITH_ME":59,"INTERIOR_ILLUSTRATIONS":60,"CATALOG_SHARED_COLLEAGUES":70,"CATALOG_SHARED_AFFILIATES":71,"CATALOG_SHARED_FRIENDS":72,"CATALOGCOLLECTIONS":73,"CATALOGTAGMINE":74,"CATALOGTAGORG":75,"CATALOGTAGSHAREDWITHME":76,"CATALOGSHAREDWITHUSER":77,"CATALOGCOLLECTIONSSHAREDWITHME":78,"TITLE_ALL_REVIEWS":80,"TITLE_ALL_SHELVES":81,"TITLE_ALL_SOCIAL":82,"CATALOG_FEATURED":90,"PUBLISHERMINE":91,"PUBLISHERINFOPAGES":92,"TITLE_ADVANCEDSEARCH":100,"TITLE_INDIVIDUAL":101,"TITLEORDER":102,"TITLEDRCPUBLISHER":103,"TITLEREVIEWALL":104,"TITLESHELFALL":105,"TITLEBUZZFRIENDS":106,"TITLEBUZZAFFILIATES":107,"TITLEBUZZORG":108,"TITLEPUBLICITYCAMPAIGN":109,"TITLEBUZZHONORS":110,"SPIEGELBESTSELLERS":111,"MYMARKUPTAGS":112,"TITLEDRCPROCESS_PROCESSED":181,"CATALOG_PRIORITY_A":200,"CATALOG_PRIORITY_B":201,"CATALOG_PRIORITY_C":202,"CATALOG_PUBLISHER":203,"CATALOG_WORKLIST":204,"CATALOG_RECENT":205,"CATALOG_BOOKMARKED":206,"CATALOG_SHARED_PUBLISHERS":207,"CATALOG_MYHOUSE":208,"CATALOG_OTHERHOUSES":209,"CATALOG_SEARCH":210,"CATALOGFOLDERS":211,"CATALOGPOPULAR":212,"CATALOGMYSHAREDMARKUPS":213,"CATALOGSPOSTEDINLASTSIXMONTHS":214,"CATALOGSUBSCRIPTIONUPDATES":215,"CATALOG_SHARED_PUBLISHER_SPECIFIC":216,"CATALOG_SHARED_INTERNALLY":217,"CATALOG_ABAWATCHLISTS":218,"CATALOG_BERTRAMSWATCHLISTS":219,"CATALOG_HISTORYMONTHLISTS":220,"TITLEOURDRCS":260,"PRCSOPEN":261,"PRCSUNSENT":262,"PRCSSENT":263,"PRCSDECLINED":264,"PRCSADMIN":265,"AVAILABLEPRCS":266,"TITLEOURCLIENTSDRCS":267,"AUDIOREVIEWCOPIES":268,"TITLEWEBREADERAVAILABLE":269,"NOTICESSHAREDMARKUPS":301,"NOTICESFRIENDINVITES":302,"NOTICESMESSAGES":303,"NOTICESSHAREDITEMS":304,"NOTICESRCAPPROVALS":305,"NOTICESRCDECLINES":306,"NOTICESALLNEW":310,"PEOPLE_ALL_AFFILIATES":401,"PEOPLE_REPS":402,"USERROLEASSIGNMENT":403,"KPI_PUBLISHERSATRISK":500,"KPI_RECEIVABLES":501,"KPI_PIPELINE":502,"BA_MOSTPOPULAR":601,"BA_SLOWMOVERS":602,"BA_CATEGORY_COMPARISON":603,"LA_MOSTPOPULAR":701,"LA_WEEDING":702,"LA_CATEGORY_COMPARISON":703,"EA_CATALOGANALYSIS":704,"EA_NOTYETRELEASED":705,"EA_WORKFLOW":706,"EA_PEERBRANCHSTOCKANALYSIS":708,"EA_STOCKANALYSIS":710,"EA_CATEGORYPERFORMANCE":720,"EA_LOCATIONPERFORMANCE":721,"EA_TRENDSANALYSIS":722,"EA_TITLESETSTOCKANALYSIS":725,"EA_WEEDINGANALYSIS":730,"EA_RESTOCKSUPPORT":731,"PRECACHE_PUBLISHERFRONTLIST":1000,"PRECACHE_POPULARCATALOGS":1001,"PRECACHE_CATALOGID":1002,"TITLEBUZZFEEDFRIENDS":1106,"TITLEBUZZFEEDAFFILIATES":1107,"TITLEBUZZFEEDORG":1108,"REVIEW_MINE":2000,"REVIEW_FRIEND":2001,"REVIEW_AFFILIATES":2002,"REVIEW_ACCOUNT":2003,"REVIEW_CUSTOM":2004,"REVIEW_SUBMITTEDTOMYHOUSE":2005,"REVIEW_SUBMITTEDTOMYHOUSEANDINMYACCOUNTS":2006,"TITLEREVIEW_CONTACT":2007,"TITLEDOWNLOAD_CONTACT":2008,"TITLEREQUEST_CONTACT":2009,"SAVEDFILTERS":2010,"SHELFSUMMARY":2011,"REQUESTSUMMARY":2012,"DOWNLOADSUMMARY":2013,"TITLEGALLEYREQUEST":2100,"PUBLISHER":3000,"SUPPORTNPS":4000,"SUPPORTUSERLOGIN":4001,"SUPPORTRECEIVABLES":4002,"SUPPORTLONGLOADTIMES":4003,"SUPPORTRECURRINGSUBSCRIPTIONS":4004,"SUPPORTACCOUNTS":4005,"SUPPORTNPSDETAIL":4006,"SUPPORTNEWUSERS":4007,"SUPPORTNOTES":4008,"SUPPORTANALYTICFRESHNESS":4009,"SUPPORTLIBRARYMAP":4010,"SUPPORTSALESPIPELINE":4011,"MANAGEAFFILIATIONS":4012,"SUPPORTONBOARDING":4013,"SUPPORTANALYTICSUSAGE":4014,"ELIGIBLEAFFILIATIONS":4015,"JOINEDAFFILIATIONS":4016,"SUPPORTINSERTTRENDS":4017,"SUPPORTPRCSFULFILLED":4018,"SUPPORTFEATUREDTITLETRENDS":4019,"SUPPORTLIBRARYSUMMARY":4020,"SUPPORTCUSTOMERMANAGEMENT":4021,"SUPPORTFOLLOWUPS":4022,"SUPPORTREVENUE":4023,"SUPPORT360USERUSAGE":4024,"SUPPORTTITLEOWNERSHIPCLAIMS":4025,"SUPPORT360USERNEWCAMPAIGNS":4031,"SUPPORTMOPS":4032,"SUPPORTSTOREDPROCEDURES":4033,"IMPRINTGROUPADMINISTRATION":4100,"ORDERCATALOGBINDING":4200,"COLLABORATIVELISTS":4300,"EVENTS":4301,"TITLEDRCREQUESTCANCELLED":5000,"PUBLISHERRECENTVIEW":5800,"PUBLICITYCAMPAIGNPUBNOTSHARED":5900,"PUBLICITYCAMPAIGNALL":5901,"TITLEANALYTICSTOP":6123,"TITLEANALYTICSTOPNOTOWNED":6124,"TITLEANALYTICSTOPNOTYETRELEASED":6125,"SCORECARDSUMMARY":6200,"CATALOG_ALL":-1},"itemType":{"CATALOG":0,"TITLE":1,"PUBLISHER":2,"PEOPLE":3,"ORDER":4,"INTERIORS":5,"CONTACT":6,"CONTACTORGANIZATION":7,"CONTACTGROUP":8,"MARKUP":9,"TITLEPRESENTATION":10,"TITLEMINE":11,"PUBLICITYCAMPAIGN":12,"USERREQUESTORDERLINEITEM":13,"PRCTITLE":14,"USERROLEASSIGNMENT":15,"ORGANIZATION":20,"GRIDRESULTS":30,"ORDEREXPORTGRID":40,"REVIEW":50,"REQUESTBYUSER":51,"REQUEST":52,"NOTICES":60,"SAVEDFILTERS":70,"SHELVES":80,"TAGS":90,"RESULTTYPESUMMARY":100,"FOLDERS":110,"BUZZ":120,"BUZZFEED":121,"ANALYTICSTITLE":122,"TITLEFULL":130,"NPSFEEDBACK":140,"USERAFFILIATION":141,"AFFILIATION":142,"IMPRINTGROUP":150,"ANALYTICSLANE":151,"TITLEOWNERSHIPCLAIM":152,"NOTE":160,"COLLABORATIVELISTS":170,"EVENTS":200,"PERFORMANCEANALYSIS":220},"listType":{"THUMBSCROLL":0,"LISTVIEW":1,"SINGLEFOCUS":2,"GRIDVIEW":3,"EXPORTPREVIEW":4,"DETAILTHUMB":5,"THUMBGRID":6,"TWOCOLUMN":7,"LEGACY":8,"ANALYTICS_ISBNVIEW":11,"ANALYTICS_FAMILYVIEW":12,"ANALYSISOFTITLESET":15,"FULLROW":16,"LISTTYPENONE":-1},"thumbType":{"TITLE":0,"CATALOG":1},"displayMode":{"UNKNOWN":0,"LISTVIEW":1,"SKUMODAL":10},"filterType":{"PUBLISHER":0,"CATEGORY":1,"FORMAT":2,"PUBDATE":3,"PUBTYPE":4,"AUTHOR":5,"IMPRINT":6,"CATEGORIES":7,"THEMA":8,"PRICERANGE":9,"DRCAVAILABILITY":10,"THEMASUBJECTQUALIFIER":11,"ACCOUNTCOMBINEDFILTER":12,"CREATEDBY":13,"MEMBERCOUNT":14,"HASREQUIREMENTS":15,"LANGUAGE":19,"ORDERS":20,"PERSON":30,"TAG":40,"MYTAG":41,"COLLEAGUETAG":42,"MARKUPSHAREDTAG":43,"MARKUPTAG":44,"ALLACCOUNTTAG":45,"TITLE":46,"IMPRINTMULTI":47,"AFFILIATIONMULTI":48,"ACCOUNT":50,"HONORS":51,"ACTIVITY":60,"ISACTIVE":61,"DISCOUNT":70,"SUGGESTIONS":80,"PUBSUGGESTIONS":81,"PUBORDERS":90,"STOCKED":100,"PRIORITY":110,"PRIORITYSHARED":111,"DUEDATE":120,"PERSONALREVIEWS":125,"PEERREVIEWS":126,"PEERSHELVES":127,"POSCATEGORY":128,"SUBMITSTATUS":130,"NOTES":135,"MARKUPNOTES":136,"MARKUPSHAREDNOTES":137,"ACCOUNTNOTES":138,"ACCOUNTSHAREDTAGS":139,"UPDATEDDATE":140,"EVENTREQUESTED":145,"CREATEDDATE":150,"APPOINTMENTDATE":151,"DATEADDED":152,"BOUNDVENDOR":160,"CATALOGSUBSCRIPTIONUPDATE":200,"CATALOGTYPE":201,"SUBMITTEDTOPUBLISHER":250,"PUBLISHERSUBMISSIONDATE":251,"SUBMITTEDTOINDIENEXT":260,"INDIENEXTSUBMISSIONDATE":261,"SUBMITTEDTOLIBRARYREADS":270,"LIBRARYREADSSUBMISSIONDATE":271,"SUBMITTEDTOSIBA":280,"SIBASUBMISSIONDATE":281,"TEXTREVIEW":300,"VIEWED":400,"CONFIDENCE":500,"USERTYPE":501,"SINGLETITLE":510,"STATUS":511,"CITY":600,"STATE":601,"POSTALCODE":602,"GROUPNAMES":700,"ORDERNAME":701,"USERNAME":702,"ISEDELWEISSUSER":800,"ISEDELWEISSFRIEND":801,"ISEDELWEISSACCOUNT":802,"HASDRCREQUESTS":900,"HASDRCDOWNLOADS":901,"HASREVIEWS":950,"HASEVENTGRIDACCESS":951,"SAVEDFILTER":1000,"DISTRIBUTORNAME":1100,"DISTRIBUTORSTATUS":1101,"PRCPROFILENAME":1102,"PRCSTATUS":1103,"PRINTABLESTATUS":1104,"MARKUPSHAREDBY":1200,"PUBLISHINGSTATUS":1201,"PRODUCTAVAILABILITY":1202,"MYCOLLECTIONS":1300,"COMMUNITY":1400,"DRCFORMAT":1401,"COMMUNITYCOMPS":1500},"exportType":{"UNKNOWN":0,"SQUAREONE":1,"ROSI":2,"ANTHOLOGY":3,"IMERCHANT":4,"BOOKLOG":5,"IPAGE":6,"BOOKSTOREMANAGER":7,"WORDSTOCK":8,"IBID":9,"CUSTOM":10,"WORDSTOCKEXPORT":11,"BOOKSCAPE":12,"IRT":13,"UOW":14,"ATHENA":15,"ORDERFORM":16,"HARPERCOLLINSJDEDWARDS":17,"NOLOACUMENREQUEST":18,"BASIL":19,"IPAGESPLIT":20,"RANDOMHOUSEORDER":21,"NORTONORDER":22,"BARNESANDNOBLE":23,"SCHOLASTIC":24,"READERORDERFORM":25,"ANTHOLOGY_2":26,"SCHOLASTICORDER":27,"HACHETTEORDER":28,"BOOKMANAGER":29,"BAKERANDTAYLOR":30,"WORKMAN":31,"RANDOMHOUSEORDERV2":32,"BOOKHIT":33,"LIBRI_WWS":34,"ZEUSS":35,"FOURBIT":36,"OCTOPUS":37,"HARLEQUIN":38,"KNVFITBIS":39,"KNVEUROBIS":40,"BWA":41,"HARPERUK":42,"BPM":43,"KNOVA":44,"BERTLINEMANUALORDER":45,"ANALYSISREPORT":46,"MACMILLANORDER":47,"BARCODEORDER":48,"LEANANALYSISREPORT":49,"HMORDER":50,"BERTLINE":55,"GARDNERS":56,"LIBRISOFT":57,"BRODARTBIBZ":58,"GESTOCK":59,"PUBEASY":60,"SQUARE":61,"BATCH":62,"PENGUINRANDOMHOUSEUKORDER":63,"PENGUINRANDOMHOUSEUKSEQUENCEORDER":64,"GARDLINK":65,"MDL":66},"exportTypes":{"EMAIL":1,"PRINT":2,"PDF":3,"WORD":4,"POWERPOINT":5,"SPREADSHEET":6,"ORDERFORM":7,"SOCIALMEDIA":8},"relationshipDirection":{"UNKNOWN":0,"OUTBOUND":1,"INBOUND":2,"BOTH":3},"userAdminArea":{"MAINPROFILE":0,"FRIENDS":1,"AFFILIATES":2,"COLLEAGUES":3,"CONTACTS":5,"INBOUNDINVITES":10,"OUTBOUNDINVITES":11,"ADDFRIENDS":12,"PUBLISHERCONTACTS":20,"ADMINISTRATION":30,"BILLING":40,"INVOICES":41,"SUBSCRIPTIONS":42,"CLIENTCONTACTDETAILS":43,"BILLINGPROFILECONTACTDETAILS":44,"INVOICESPLUS":45},"entityType":{"UNKNOWN":0,"CATALOG":1,"PRODUCT":2,"USER":3,"ORGANIZATION":4,"OUTLET":5,"SERVICE":6,"ADDRESS":7,"ORDER":8,"MAILING":9,"COLLECTION":10,"PUBLICITYCAMPAIGN":11,"AFFILIATION":12,"REVIEW":20,"SHELF":21,"REVIEWALL":22,"SHELFALL":23,"NOTE":25,"GROUP":30,"TAGCATALOG":40,"TAGTITLE":41,"DOWNLOAD":50,"DOWNLOADALL":51,"NOTEORTAG":60,"CATALOGVIEW":70,"AUTHOR":80,"AUTHORREQUEST":85,"COMMUNITY":90,"TITLE":100,"CONTACT":110,"CUSTOMER":115,"ACCOUNTWITHORDER":120,"SECTION":130,"EVENT":140,"DEPARTMENT":141,"SERIES":150,"FORUMNOTE":160,"CAMPAIGN":200,"TEMPLATE":210,"FILTER":220,"NOMINATION":300,"APPLICATION":1000,"SMILEYFEEDBACK":1001},"requiredPerformanceActivity":{"NONE":0,"CIRCULATION":1,"INVENTORY":2,"TURN":3},"actionPlanTaskType":{"UNKNOWN":0,"PURCHASE":1,"INSPECT":2,"SELL":3,"RETIRE":4,"TRANSFER":5},"actionPlanTransferMethod":{"UNSPECIFIED":0,"DELIVER":1,"PICKUP":2,"MAILORSHIP":3},"actionPlanTaskStatus":{"OPEN":1,"INPROCESS":2,"COMPLETED":3,"CANCELLED":4,"RETIRED":5},"siteContext":{"EDELWEISSANALYTICS":0,"SCORECARD":1,"E360":2,"COMMUNITY":3,"EPLUS":4},"edelweissAnalyticsSiteArea":{"ANALYTICSPAGELOAD":0,"MOSTPOPULARTITLES":1,"NOTYETRELEASEDTITLES":2,"CATALOGANALYSIS":3,"STOCKANALYSIS":4,"PEERBRANCHSTOCKANALYSIS":6,"CATEGORYPERFORMANCEANALYSIS":7,"LOCATIONPERFORMANCEANALYSIS":8,"WORKFLOW":9,"TRENDSANALYSIS":10,"TITLESETSTOCKANALYSIS":11,"WEEDINGANALYSIS":12},"ePlusSiteArea":{"HOMEPAGE":0,"REVIEWCOPY":1},"groupValidation":{"USER":0,"ORGANIZATION":1,"GROUP":2,"CODE":3,"EMAIL":4},"supportAccountMenu":{"PROFILE":0,"PROFILEALTERNATE":1,"NOTES":2,"USERS":3,"NPS":4,"BILLING":5,"ERRORS":6,"TICKETS":7,"LOADTIMES":8,"SUBSCRIPTIONS":9,"PIPELINE":10,"CONTACTS":11,"ANALYTICS":12,"ANALYTICSUSAGE":13,"LOCATIONS":14,"CONSORTIUMMEMBERS":15,"RELATIONSHIPS":16,"PROMOTIONS":17,"IMPRINTS":18,"DRCPROFILES":19,"ADVOCACY":20,"DESIGNERACCESS":21},"userTransferType":{"CATALOG":1,"MARKUPSOURCE":2,"USER":3,"WORK":4,"ORDERS":5,"GROUPS":6},"catalogSearchSource":{"MAIN":0,"FOLDERADMIN":1,"ANALYTICSOPTIONS":2,"CATALOGADMIN":3,"PUBLISHERPAGE":4,"WIDGET":5},"notePageSource":{"ACCOUNTPAGE":1,"USERPAGE":2,"WIDGET":3},"productCompletionSummaryContentType":{"DESCRIPTIONS":1,"CONTRIBUTORBIO":2,"ILLUSTRATIONS":3,"LINKS":4,"MARKETINGPLANS":5,"KSP":6,"QUOTES":7,"VIDEOS":10,"SOUNDS":11,"BIBLIO":12,"COMMUNITYREVIEWS":20,"COMMUNITYSHELVES":21,"POS":30,"ILS":40,"MARKUPS":50,"ORDERS":60,"CROSSSTOREMARKETDATA":70,"WHOLESALERAVAILABILITY":80,"SERIESDATA":81,"MARKUPNOTES":90},"usageTimePeriod":{"INLASTDAY":1,"INLASTWEEK":2,"INLASTMONTH":3,"INLASTTHREEMONTHS":4,"INLASTSIXMONTHS":5},"prcTitleStatus":{"INACTIVE":0,"ACTIVE":1},"categoryType":{"UNKNOWN":0,"BISAC":1,"BIC":2,"LOC":3,"DEWEY":4,"GERMANGROUPSYSTEMATICS":5,"CLIL":6,"EDELWEISSYOUTH":11,"MEDIATYPE":12,"FICTIONNONFICTION":13,"AGE":14,"READERTYPE":15,"THEMASUBJECTCATEGORY":93,"THEMAGEOGRAPHICALQUALIFIER":94,"THEMALANGUAGEQUALIFIER":95,"THEMATIMEPERIODQUALIFIER":96,"THEMAEDUCATIONALPURPOSEQUALIFIER":97,"THEMAINTERESTAGESPECIALINTERESTQUALIFIER":98,"THEMASTYLEQUALIFIER":99,"MULTIFILTERS":100,"STOREPOS":1000,"STORECUSTOM1":1001,"STORECUSTOM2":1002,"BARNESANDNOBLE":5001,"LOCALDEWEY":9004},"browseByType":{"UNKNOWN":0,"TITLEMEDIATYPELIBRARY":12,"TITLEFICTIONNONFICTIONLIBRARY":13,"TITLEAGELIBRARY":14,"TITLEREADERTYPELIBRARY":15,"TITLEORGID":100,"TITLEFORMAT":200,"TITLEPUBDATE":300,"TITLECATEGORY":400,"TITLEPOSCATEGORY":410,"TITLECUSTOMCATEGORY1":420,"TITLECUSTOMCATEGORY2":430,"TITLEAUDIENCE":500,"TITLESUBORG":600,"TITLEORGANIZATIONTAG":666,"TITLEAGEGRADERANGE":700,"TITLESUBRIGHT":800,"TITLEIMPRINT":900,"TITLEBISACSUBJECT":1000,"TITLEBISACCATEGORY":1100,"TITLEBISACSUBCATEGORY":1200,"TITLECLILCATEGORY":1201,"TITLEIMPRINTNAME":1300,"TITLEPUBLISHERNAME":1400,"CATEGORYAGGREGATE":1414,"GROUPBROWSEVIEW":1415,"TITLEBIC1":1501,"TITLEBIC2":1502,"TITLEBIC3":1503,"TITLEBIC4":1504,"TITLEBIC5":1505,"TITLEDEWEYCLASS":1506,"TITLEDEWEYDIVISION":1507,"TITLEDEWEYSECTION":1508,"TITLELEXILE":1509,"TITLEGERMANFORMAT":1510,"TITLEGERMANSUBJECT":1511,"TITLEGERMANCATEGORY":1512,"TITLEGERMANSUBCATEGORY":1513,"TITLEEDITIONTYPE":1600,"TITLEAUDIENCESPECIFICPUBLISHERNAME":1610,"TITLEAUDIENCESPECIFICVENDORNAME":1611,"TITLEAUDIENCESPECIFICIMPRINTNAME":1612,"TITLEAUDIENCESPECIFICFORMAT":1613,"TITLEPUBORGIDS":1614,"DYNAMICPUBDATE":2000,"TITLEKEYWORD":2001,"TITLESKU":2002,"TITLEVISIBLEDRC":2003,"BNSUBJECT":7001,"BNCATEGORY":7002,"BNSUBCATEGORY":7003,"BNCOOP":7004,"BNBUYER":7005,"TITLEEVENT":8000,"PWSUBMISSIONNAME":8001,"PWTOPTEN":8002,"DISTRIBUTOR":8003,"TITLETHEMASUBJECT1":9301,"TITLETHEMASUBJECT2":9302,"TITLETHEMASUBJECT3":9303,"TITLETHEMASUBJECT4":9304,"TITLETHEMASUBJECT5":9305,"TITLETHEMASUBJECT6":9306,"TITLETHEMASUBJECT7":9307,"TITLETHEMASUBJECT8":9308,"TITLETHEMASUBJECT9":9309,"TITLETHEMAPLACE1":9401,"TITLETHEMAPLACE2":9402,"TITLETHEMAPLACE3":9403,"TITLETHEMAPLACE4":9404,"TITLETHEMAPLACE5":9405,"TITLETHEMAPLACE6":9406,"TITLETHEMAPLACE7":9407,"TITLETHEMAPLACE8":9408,"TITLETHEMAPLACE9":9409,"TITLETHEMALANGUAGE1":9501,"TITLETHEMALANGUAGE2":9502,"TITLETHEMALANGUAGE3":9503,"TITLETHEMALANGUAGE4":9504,"TITLETHEMALANGUAGE5":9505,"TITLETHEMALANGUAGE6":9506,"TITLETHEMALANGUAGE7":9507,"TITLETHEMALANGUAGE8":9508,"TITLETHEMALANGUAGE9":9509,"TITLETHEMATIMEPERIOD1":9601,"TITLETHEMATIMEPERIOD2":9602,"TITLETHEMATIMEPERIOD3":9603,"TITLETHEMATIMEPERIOD4":9604,"TITLETHEMATIMEPERIOD5":9605,"TITLETHEMATIMEPERIOD6":9606,"TITLETHEMATIMEPERIOD7":9607,"TITLETHEMATIMEPERIOD8":9608,"TITLETHEMATIMEPERIOD9":9609,"TITLETHEMAEDUCATIONALPURPOSE1":9701,"TITLETHEMAEDUCATIONALPURPOSE2":9702,"TITLETHEMAEDUCATIONALPURPOSE3":9703,"TITLETHEMAEDUCATIONALPURPOSE4":9704,"TITLETHEMAEDUCATIONALPURPOSE5":9705,"TITLETHEMAEDUCATIONALPURPOSE6":9706,"TITLETHEMAEDUCATIONALPURPOSE7":9707,"TITLETHEMAEDUCATIONALPURPOSE8":9708,"TITLETHEMAEDUCATIONALPURPOSE9":9709,"TITLETHEMAINTEREST1":9801,"TITLETHEMAINTEREST2":9802,"TITLETHEMAINTEREST3":9803,"TITLETHEMAINTEREST4":9804,"TITLETHEMAINTEREST5":9805,"TITLETHEMAINTEREST6":9806,"TITLETHEMAINTEREST7":9807,"TITLETHEMAINTEREST8":9808,"TITLETHEMAINTEREST9":9809,"TITLETHEMASTYLE1":9901,"TITLETHEMASTYLE2":9902,"TITLETHEMASTYLE3":9903,"TITLETHEMASTYLE4":9904,"TITLETHEMASTYLE5":9905,"TITLETHEMASTYLE6":9906,"TITLETHEMASTYLE7":9907,"TITLETHEMASTYLE8":9908,"TITLETHEMASTYLE9":9909,"CUSTOMCOLLECTION1":11000,"CUSTOMCOLLECTION2":11001,"CUSTOMCOLLECTION3":11002,"CUSTOMCOLLECTION4":11003,"CUSTOMCOLLECTION5":11004,"CUSTOMCOLLECTION6":11005,"DIRECTSQL":99999},"groupType":{"PRIMARY":1,"SERVICE":2,"FUNCTIONAL":3,"USERDEFINED":4,"ADMINISTRATIVE":5,"POS":6,"ROLE":7,"GEOGRAPHICMARKET":8,"AUDIENCEMARKET":9,"TRADESHOW":10,"LANGUAGE":11,"REVIEWCOPYMANAGEMENT":12,"ORGANIZATIONCLASSIFICATION":13,"TITLEPERMISSION":14,"USERCLASSIFICATION":15,"AUDIENCEPRICE":16,"VERIFIEDAFFILIATION":19,"NEWSLETTERSUBSCRIPTION":22,"HIGHERLEVELORGCLASSIFICATIONGROUPING":24,"EDELWEISSPLUSCONTEXT":27,"PRCTITLEAVAILABILITY":28,"COMMONSAVEDFILTERS":29,"DELEGATEDCATALOGADMINISTRATOR":30,"USERAFFILIATION":31,"MILESTONES":32,"PRIVATEMARKET":35,"IMPRINT":50,"SOCIALNETWORKINGPRIVATECIRCLE":1000,"SOCIALNETWORKINGPUBLICCIRCLE":1001},"applicationIdentifier":{"UNKNOWN":0,"LEGACYTREELINEANALYTICS":1,"TREELINEANALYTICS":2,"REDIRECT":3,"EDELWEISS":100,"EDELWEISSPLUS":101,"SCORECARD":102,"COMMUNITY":103},"communityType":{"PUBLISHERS":1,"COLLEAGUES":2,"FRIENDS":3,"COMMUNITIES":4},"communityPage":{"REVIEWS":0,"CATALOGS":1},"UserAffiliationEmailType":{"REVIEWDIGEST":0,"SUBMISSIONDIGEST":1},"AffiliationAliasType":{"SHAREDREVIEW":0,"SUBMISSION":1},"advertisementType":{"FEATUREDNEWSLETTERTITLE":0,"PRIMARYNEWSLETTERBANNER":1,"MONTHLYLIBRARIANNEWSLETTERTOPBANNER":2,"MONTHLYLIBRARIANNEWSLETTERCONTENTBANNER":3,"MONTHLYBOOKSELLERNEWSLETTERTOPBANNER":4,"MONTHLYBOOKSELLERNEWSLETTERCONTENTBANNER":5,"MONTHLYUKNEWSLETTERTOPBANNER":6,"MONTHLYUKNEWSLETTERCONTENTBANNER":7,"SECONDARYNEWSLETTERBANNER":8,"UKPRIMARYNEWSLETTERBANNER":9,"UKSECONDARYNEWSLETTERBANNER":10},"campaignStatusType":{"ACTIVE":1,"COMPLETEDMESSAGESQUEUED":2,"COMPLETEDMESSAGESSENT":3,"ABORTED":4,"SCHEDULEDTOSENDLATER":5,"BEGINNINGSCHEDULEDSEND":6,"PLANNEDNOTSCHEDULED":7,"COMPLETEDNOTSENT":8,"FAILEDTOADDMESSAGESTOQUEUE":9,"COMPLETEDNOMESSAGESSENT":10,"FAILEDTORETRIEVEUSERLIST":11}}; // Prevent changes to enumerations Object.freeze(window.enum); Object.freeze(window.enum.dashParent); Object.freeze(window.enum.dashType); Object.freeze(window.enum.resultType); Object.freeze(window.enum.itemType); Object.freeze(window.enum.listType); Object.freeze(window.enum.thumbType); Object.freeze(window.enum.displayMode); Object.freeze(window.enum.filterType); Object.freeze(window.enum.exportType); Object.freeze(window.enum.exportTypes); Object.freeze(window.enum.relationshipDirection); Object.freeze(window.enum.userAdminArea); Object.freeze(window.enum.entityType); Object.freeze(window.enum.requiredPerformanceActivity); Object.freeze(window.enum.actionPlanTaskType); Object.freeze(window.enum.actionPlanTransferMethod); Object.freeze(window.enum.actionPlanTaskStatus); Object.freeze(window.enum.siteContext); Object.freeze(window.enum.edelweissAnalyticsSiteArea); Object.freeze(window.enum.ePlusSiteArea); Object.freeze(window.enum.groupValidation); Object.freeze(window.enum.supportAccountMenu); Object.freeze(window.enum.userTransferType); Object.freeze(window.enum.catalogSearchSource); Object.freeze(window.enum.notePageSource); Object.freeze(window.enum.productCompletionSummaryContentType); Object.freeze(window.enum.usageTimePeriod); Object.freeze(window.enum.prcTitleStatus); Object.freeze(window.enum.categoryType); Object.freeze(window.enum.browseByType); Object.freeze(window.enum.groupType); Object.freeze(window.enum.applicationIdentifier); Object.freeze(window.enum.communityType); Object.freeze(window.enum.communityPage); Object.freeze(window.enum.UserAffiliationEmailType); Object.freeze(window.enum.AffiliationAliasType); Object.freeze(window.enum.advertisementType); Object.freeze(window.enum.campaignStatusType); </script> <script type="text/javascript"> $(function () { window.applicationConfigByKey = {"advertisingcenter.url":"https://advertising.edelweiss.plus/","affiliation.catalogs":"https://qa-communities.edelweiss.plus","affiliation.catalogs.dev":"https://qa-communities.edelweiss.plus","affiliation.catalogs.Production":"https://communities.edelweiss.plus","affiliation.catalogs.test":"https://qa-communities.edelweiss.plus","affiliation.reviews":"https://qa-communities.edelweiss.plus","affiliation.reviews.dev":"https://qa-communities.edelweiss.plus","affiliation.reviews.Production":"https://communities.edelweiss.plus","affiliation.reviews.test":"https://qa-communities.edelweiss.plus","affiliation.wizard":"http://localhost:3000","affiliation.wizard.dev":"https://qa-communities.edelweiss.plus","affiliation.wizard.local":"http://localhost:5000","affiliation.wizard.prod":"https://communities.edelweiss.plus","affiliation.wizard.qa":"https://treeline-clients-communities-test-as-qa.azurewebsites.net","Aptrinsic.RestApiKey":"b102942c-98ab-4317-be5d-c4bb01768cd3","Aptrinsic.Uri":"https://api.aptrinsic.com/v1/","audienceBookAttributes.11146":"11146,4400,15511,0","audienceBookAttributes.119119":"119119,0","audienceBookAttributes.13742":"13742,4400,15511,0","audienceBookAttributes.15511":"15511,4400,0","audienceBookAttributes.401706":"401706,4400,0","audienceBookAttributes.409219":"409219,0","audienceBookAttributes.415192":"415192,401706,4400,0","audienceBookAttributes.4400":"4400,0","audienceBookAttributes.4401":"4401,4400,0","audienceBookAttributes.4402":"4402,4400,0","audienceBookAttributes.47576":"47576,75636,4400,0","audienceBookAttributes.57974":"57974,4400,0","audienceBookAttributes.6098":"6098,4400,0","audienceBookAttributes.66319":"66319,4400,15511,0","audienceBookAttributes.66640":"66640,4400,0","audienceBookAttributes.75636":"75636,47576,4400,0","audienceCompTitles.11146":"11146,4400,0","audienceCompTitles.119119":"119119,4400,0","audienceCompTitles.13742":"13742,4400,15511,0","audienceCompTitles.15511":"15511,4400,0","audienceCompTitles.401706":"401706,4400,0","audienceCompTitles.409219":"409219,4400,0","audienceCompTitles.415192":"415192,401706,4400,0","audienceCompTitles.4400":"4400,0","audienceCompTitles.4401":"4401,4400,0","audienceCompTitles.4402":"4402,4400,0","audienceCompTitles.47576":"47576,0","audienceCompTitles.57974":"57974,0","audienceCompTitles.66319":"66319,0","audienceCompTitles.66640":"66640,0","audienceCompTitles.75636":"75636,0","audienceDescs.11146":"11146,4400,15511,0","audienceDescs.119119":"119119,0","audienceDescs.13742":"4400,15511,0","audienceDescs.15511":"15511,4400,0","audienceDescs.401706":"401706,4400,0","audienceDescs.409219":"409219,0","audienceDescs.415192":"415192,401706,4400,0","audienceDescs.4400":"4400,0","audienceDescs.4401":"4401,4400,0","audienceDescs.4402":"4402,4400,0","audienceDescs.47576":"47576,75636,4400,0","audienceDescs.57974":"57974,4400,0","audienceDescs.6098":"6098,4400,0","audienceDescs.66319":"66319,4400,15511,0","audienceDescs.66640":"66640,4400,0","audienceDescs.75636":"75636,47576,4400,0","audienceImages.11146":"11146,4400,15511,0","audienceImages.119119":"119119,4400,0","audienceImages.13742":"4400,15511,0","audienceImages.15511":"15511,4400,0","audienceImages.401706":"401706,4400,0","audienceImages.409219":"409219,4400,0","audienceImages.415192":"415192,401706,4400,0","audienceImages.4400":"4400,0","audienceImages.4401":"4401,4400,0","audienceImages.4402":"4402,4400,0","audienceImages.47576":"47576,75636,4400,0","audienceImages.57974":"57974,4400,0","audienceImages.6098":"6098,4400,0","audienceImages.66319":"66319,4400,15511,0","audienceImages.66640":"66640,4400,0","audienceImages.75636":"75636,47576,4400,0","audienceLinks.11146":"11146,4400,15511,0","audienceLinks.119119":"119119,0","audienceLinks.13742":"4400,15511,0","audienceLinks.15511":"15511,4400,0","audienceLinks.401706":"401706,4400,0","audienceLinks.409219":"409219,0","audienceLinks.415192":"415192,401706,4400,0","audienceLinks.4400":"4400,0","audienceLinks.4401":"4401,4400,0","audienceLinks.4402":"4402,4400,0","audienceLinks.47576":"47576,75636,4400,0","audienceLinks.57974":"57974,4400,0","audienceLinks.6098":"6098,4400,0","audienceLinks.66319":"66319,4400,15511,0","audienceLinks.66640":"66640,4400,0","audienceLinks.75636":"75636,47576,4400,0","audiencePrices.11146":"61840,61980,61868,61863","audiencePrices.119119":"119121","audiencePrices.13742":"61980,61840,61868,61863,61820","audiencePrices.15511":"61868,61980,61840,61863","audiencePrices.401706":"401707,61925,61845","audiencePrices.409219":"61946","audiencePrices.415192":"401707,61925,61845","audiencePrices.4400":"61980,61840,61868,61863","audiencePrices.4401":"61980,61840,61868,61863","audiencePrices.4402":"61980,61840,61868,61863","audiencePrices.47576":"75642,75643,75644","audiencePrices.57974":"61980,61840,61868,61863","audiencePrices.66319":"61820,61934,61980,61868","audiencePrices.66640":"61980,61840,61868,61863","audiencePrices.75636":"61863,61980,61840,61868","audienceRelatedProducts.11146":"11146,4400,0","audienceRelatedProducts.119119":"119119,0","audienceRelatedProducts.13742":"13742,4400,15511","audienceRelatedProducts.15511":"15511,4400,0","audienceRelatedProducts.401706":"401706,4400,0","audienceRelatedProducts.409219":"409219,0","audienceRelatedProducts.415192":"415192,401706,4400,0","audienceRelatedProducts.4400":"4400,0","audienceRelatedProducts.4401":"4401,4400,0","audienceRelatedProducts.4402":"4402,4400,0","audienceRelatedProducts.47576":"47576,0","audienceRelatedProducts.57974":"57974,0","audienceRelatedProducts.66319":"66319,0","audienceRelatedProducts.66640":"66640,0","audienceRelatedProducts.75636":"75636,0","audienceSounds.11146":"11146,4400,15511,0","audienceSounds.119119":"119119,0","audienceSounds.13742":"4400,15511,0","audienceSounds.15511":"15511,4400,0","audienceSounds.401706":"401706,4400,0","audienceSounds.409219":"409219,0","audienceSounds.415192":"415192,401706,4400,0","audienceSounds.4400":"4400,0","audienceSounds.4401":"4401,4400,0","audienceSounds.4402":"4402,4400,0","audienceSounds.47576":"47576,75636,4400,0","audienceSounds.57974":"57974,4400,0","audienceSounds.66319":"66319,4400,15511,0","audienceSounds.66640":"66640,4400,0","audienceSounds.75636":"75636,47576,4400,0","audienceVideos.11146":"11146,4400,15511,0","audienceVideos.119119":"119119,0","audienceVideos.13742":"4400,15511,0","audienceVideos.15511":"15511,4400,0","audienceVideos.401706":"401706,4400,0","audienceVideos.409219":"409219,0","audienceVideos.415192":"415192,401706,4400,0","audienceVideos.4400":"4400,0","audienceVideos.4401":"4401,4400,0","audienceVideos.4402":"4402,4400,0","audienceVideos.47576":"47576,75636,4400,0","audienceVideos.57974":"57974,4400,0","audienceVideos.66319":"66319,4400,15511,0","audienceVideos.66640":"66640,4400,0","audienceVideos.75636":"75636,47576,4400,0","communicator.max.send":"200000","communicator.url":"https://communicator.edelweiss.plus","communicator.url.local":"http://localhost:3000","community.beta.group":"180984","contactUs.Subjects":"performance_issues","contentservice.batchuri.dev":"/api/v1/content/batch","contentservice.batchuri.production":"/api/v1/content/batch","contentservice.batchuri.qa":"/api/v1/content/batch","contentservice.batchuri.staging":"/api/v1/content/batch","contentservice.nonbatchuri.dev":"/api/v1/content","contentservice.nonbatchuri.production":"/api/v1/content","contentservice.nonbatchuri.qa":"/api/v1/content","contentservice.nonbatchuri.staging":"/api/v1/content","contentservice.url.dev":"https://treeline-services-content-test-as-dev.azurewebsites.net","contentservice.url.local.sam":"https://localhost:5001","contentservice.url.production":"https://treeline-services-content-as.azurewebsites.net","contentservice.url.qa":"https://treeline-services-content-test-as-dev.azurewebsites.net","contentservice.url.staging":"https://treeline-services-content-as.azurewebsites.net","DailySales.Image.Url":"https://edel-images.azureedge.net/ea/OO/images/marketing/original/analytics_icon_color.png?height=35","defaultPreference.display.hiddenProductViewElements":"[]","documentbuilder.url":"https://designer.edelweiss.plus/documents","edelweiss.community.url":"https://dev-community.edelweiss.plus","edelweiss.community.url.dev":"https://dev-community.edelweiss.plus","edelweiss.community.url.local":"http://localhost:3000","edelweiss.community.url.prod":"https://community.edelweiss.plus","edelweiss.community.url.qa":"https://qa-community.edelweiss.plus","edelweiss.help.url":"https://help.edelweiss.plus","edelweiss.info.url":"https://www.abovethetreeline.com/about-edelweiss","EdelweissGalleyManager.InitializeBrowse.SolrBatches":"8000","featured-banner-weeks-to-show":"20","freshDeskID":"smrhOXKPbXD1mEkuUcnu","GardnersConnect7ClientId":"SJP001","GardnersConnect7Password":"PWY3jRsOiPpV1njvlSsfzg==","GardnersConnect7Password.IV":"HjUlqW2Ayrl2XXo2z3xRZg==","GardnersConnect7Password.Key":"Csj1ubAXgFXK0PWH+Mri946x84NUu9ByPpOQSg24JyU=","GoodReads.AccessToken":"https://www.goodreads.com/oauth/access_token","GoodReads.Authorize":"https://www.goodreads.com/oauth/authorize","GoodReads.RequestToken":"https://www.goodreads.com/oauth/request_token","HistoryAwarenessWidgetUrl":"#publisher=KXCE&folderID=15086&page=1","imagePath":"https://images.abovethetreeline.com/ea/","imagingservice.url.dev":"https://treeline-services-imaging-test-as-dev.azurewebsites.net","imagingservice.url.local.sam":"https://localhost:44395","imagingservice.url.prod":"https://treeline-services-imaging-as.azurewebsites.net","imagingservice.url.qa":"https://treeline-services-imaging-test-as-qa.azurewebsites.net","imagingservice.url.staging":"https://treeline-services-imaging-as.azurewebsites.net","library.Basecamp.BudgetCap":"2000000","library.Basecamp.Increment":".5","library.Basecamp.Max":"4000","library.Basecamp.Min":"500","library.demo.org":"DWUI","library.demo.store":"DWUIA","library.Summit.CalculationBase":"PRMATEXP","library.Summit.Tier1":"300000,5000","library.Summit.Tier2":"550000,9000","library.Summit.Tier3":"850000,13000","library.Summit.Tier4":"1200000,18000","library.Summit.Tier5":"1800000,24000","library.Summit.Tier6":"2800000,26000","library.Summit.Tier7":"60000000,31000","library.Summit.Tiers":"7","LifeTimeSales.Image.Url":"https://edel-images.azureedge.net/ea/OO/images/marketing/original/logo-edelweiss-tagline.png","lowercount":"239881","maintenance-date":"08 OCt 2018 4:00 AM","maintenance-resource-key":"10082018_Maintenance","marketing.customer.quality.rate.high":"20","marketing.customer.quality.rate.low":"10","marketing.max.funded.cpm.fees.count.Local":"1","marketing.max.funded.cpm.fees.count.Production":"10","marketing.max.skus.for.customer.quality.rate.Local":"5","marketing.minimum.rate.high":"2","marketing.minimum.rate.low":"1","marketing.targeting.discount.point":"0.5","marketing.title.focus.decline.rate":"0.1","OAuth.Secret.IV":"0UMC0zZxPCbki/lOO/wcHA==","OAuth.Secret.Key":"nzC7zCzNOcD/ROaxAoNZWlUIfAAbHX89sBNEAPIVA0c=","OAuth.UserSecret.IV":"xKPt+WShooC1Btp9HIx95A==","OAuth.UserSecret.Key":"qhtyf4eX0/hn4mmqYLK9JK9IAuQTI+LYsbI+sNgioSw=","pipeline.TrialPeriods":"6","prerelease.monthly.targeted.newsletter.banner.Development":"true","prerelease.monthly.targeted.newsletter.banner.Local":"true","prerelease.monthly.targeted.newsletter.banner.Production":"true","prerelease.monthly.targeted.newsletter.banner.Staging":"true","prerelease.useradmin.Development":"true","reportsender.batchnotificationsreport.senderdisplayname":"Edelweiss","reportsender.batchnotificationsreport.senderemailaddress":"info@edelweiss.plus","reportsender.communityreport.sender":"info@edelweiss.plus","reportsender.communityreport.senderdisplayname":"Edelweiss","reportsender.communityreport.templateid":"cfd8578b-7fe6-4ef0-92cf-c2558cda2baa","scorecard.helpurl.library":"http://analytics-library-help.edelweiss.plus/?article_category=state-of-the-collection-report","scorecard.helpurl.retailer":"http://analytics-help.edelweiss.plus/?article_category=shelf-report","scorecard.url":"https://scorecard.edelweiss.plus","scorecard.url.local":"http://localhost:55499","scorecard.url.qa":"https://qa-scorecard.edelweiss.plus","searchservice.titlesearchuri.dev":"api/v1/search/titles","searchservice.titlesearchuri.production":"api/v1/search/titles","searchservice.titlesearchuri.staging":"api/v1/search/titles","searchservice.url.dev":"https://dev-api.edelweiss.plus","searchservice.url.production":"https://api.edelweiss.plus","searchservice.url.staging":"https://staging-api.edelweiss.plus","SupportEmail":"support@abovethetreeline.com","treeline.orgid":"ZTR"}; Object.freeze(window.applicationConfigByKey); }); </script> <script type="text/javascript" src="https://www.gstatic.com/charts/loader.js"></script> <script crossorigin="anonymous" type="text/javascript" src="https://components.edelweiss.plus/static/js/loader.v2.js"></script> <script> $.ajaxSetup({ cache: false }); window.xhrPool = []; $(document).ajaxSend(function (e, jqXhr) { xhrPool.push(jqXhr); }); $(document).ajaxComplete(function (e, jqXhr) { xhrPool = $.grep(xhrPool, function (x) { return x != jqXhr }); }); google.charts.load('current', { 'packages': ['corechart'] }); window.cultureName = "en-US"; </script> <script type="text/javascript" src="https://www.google.com/jsapi"></script> <script src="https://maps.googleapis.com/maps/api/js?key=AIzaSyAUe55hqnYldW4jdpGsl6071YiNsUjqsd8" async defer></script> <script type="text/javascript"> var appInsights = window.appInsights || function (config) { function i(config) { t[config] = function () { var i = arguments; t.queue.push(function () { t[config].apply(t, i) }) } } var t = { config: config }, u = document, e = window, o = "script", s = "AuthenticatedUserContext", h = "start", c = "stop", l = "Track", a = l + "Event", v = l + "Page", y = u.createElement(o), r, f; y.src = config.url || "https://az416426.vo.msecnd.net/scripts/a/ai.0.js"; u.getElementsByTagName(o)[0].parentNode.appendChild(y); try { t.cookie = u.cookie } catch (p) { } for (t.queue = [], t.version = "1.0", r = ["Event", "Exception", "Metric", "PageView", "Trace", "Dependency"]; r.length;)i("track" + r.pop()); return i("set" + s), i("clear" + s), i(h + a), i(c + a), i(h + v), i(c + v), i("flush"), config.disableExceptionTracking || (r = "onerror", i("_" + r), f = e[r], e[r] = function (config, i, u, e, o) { var s = f && f(config, i, u, e, o); return s !== !0 && t["_" + r](config, i, u, e, o), s }), t }({ instrumentationKey: "92ac9ee8-be43-47c1-ade4-8cd0439eaa82", maxAjaxCallsPerView: -1 }); window.appInsights = appInsights; if (telemetryFilter) { telemetryFilter.startFiltering(appInsights); } appInsights.setAuthenticatedUserContext("", "", storeInCookie = true); if (pageTracking) { pageTracking.init(appInsights, 300000); } appInsights.trackPageView(); </script> <script type="text/javascript"> (function (n, t, a, e, co) { var i = 'aptrinsic'; (n[i] = n[i] || function () { (n[i].q = n[i].q || []).push(arguments); }), (n[i].p = e); n[i].c = co; var r = t.createElement('script'); (r.async = !0), (r.src = a + '?a=' + e); var c = t.getElementsByTagName('script')[0]; c.parentNode.insertBefore(r, c); })( window, document, "https://web-sdk.aptrinsic.com/api/aptrinsic.js", "AP-GI9JYYOC9JKB-2" ); if (gainsight) { gainsight.setGainsightCookieForAnonUser(); } </script> </head> <body> <div id="ieBrowserWarning" class="new-look-alert new-look-alert-warning new-look-alert-dismissible textMedium" role="alert"></div> <div id="form1" class="overallStyles textMedium"> <div id="pageBlockDiv" class="blockDivTransparent" style="display: none;"></div> <div id="pageHeader"> <a name="backTop"></a> <div class="app-header fh-fixedHeader"> <div class="header-left"> <div class="header-link"> <div class="flex-default"> <div id="main-logo-frame"> <div class="column"> <div> <a href="#dashboard"> <img id="main-eplus-logo-text" src="images/edelweiss-logo-text.png" alt="Edelweiss" /> </a> </div> <div id="marketChangeSection" class="market-selector clickable"> <div class="clickable headerStandardField" id="marketName" title="Change Market, Language and Currency"> US Trade </div> <div class="headerEditField" style="display:none;" id="marketChange">Change Market, Language and Currency</div> </div> </div> <div class="column"> <a href="#dashboard"> <img id="main-eplus-logo-icon" src="images/edelweiss-logo-icon.png" alt="Edelweiss" /> </a> </div> </div> <div class="clear"></div> </div> </div> </div> <div class="header-center"> <div id="headerSearchBox"> <div id="mainSearchIcon" class="icon-search-icon" onclick="$('#main-site-search').submit();"></div> <div id="main-site-search-wrapper" class="column-spaced"> <form id="main-site-search" name="main-search" role="search" onsubmit="return tryKeywordSearch();"> <input id="searchKeywords" name="keywords" type="search" class="textMedium" placeholder="Search for titles..." /> </form> </div> <div id="search-option-toggle" class="icon-gear-a dlPrefs hidden"></div> <div class="clear"></div> </div> <script> function tryKeywordSearch() { if (document.forms["main-search"]["keywords"].value != '') { var hash = 'keywordSearch&' + buildUriHash({ 'q': $("#searchKeywords").val() }); pageChange(hash); $("#searchKeywords").blur(); } return false; } //# sourceURL=HeaderSearch.ascx </script> </div> <div class="header-right"> <div id="header-register-link">Register / Back to login</div> <div id="more-about-edelweiss-link" class="header-link-frame header-standard"> <a class="header-link" href=" https://www.edelweissplus.com" target="_blank"> <div class="header-link-icon icon-information-icon notification-nav-icon" title="More about Edelweiss"></div> </a> </div> </div> </div> </div> <div id="menuDiv"> <div class="menuBG"> <div id="menuInterior" class="menu"> <div style="display:flex;align-items:center;justify-content:space-between"> <div class="menuText textLarge noSelect"> <span><a class='headerLink header_Home overallStyles' href="javascript:pageChange('dashboard');">Home</a></span> <span class='headerSpacerLeft'></span><span class='headerSpacerRight'></span> <span id="publisherMenu" class='headerLink header_4 overallStyles'>Publishers</span> <span class='headerSpacerLeft'></span><span class='headerSpacerRight'></span> <span class='headerLink h_2 header_2 overallStyles' data-dash="2" onclick="javascript:goToListFromDashboard(2);">Catalogs</span> <span class='headerSpacerLeft'></span><span class='headerSpacerRight'></span> <span class='headerLink h_0 header_0 overallStyles' data-dash="0" onclick="javascript:goToListFromDashboard(0);">Review Copies</span> </div> </div> <script> function goDash() { $("#breadCrumb").hide(); $("#focusContainer").hide(); $("#interiorPageContent").show(); $("#pageURL").val(""); window.scrollTo(0, 0); $("#interiorPageContent").html('<div style="height:900px;padding-left:20px;">Loading...</div>'); $.url = "/GetTreelineControl.aspx?controlName=/uc/dashboard/DashboardFrame.ascx"; $("#interiorPageContent").load($.url); } </script> </div> </div> </div> <div class="bodyStyles"> <div id="breadCrumb" style="display: none;" class="breadCrumb"> <div id="breadCrumbContent" style="margin-left: 20px; margin-right: 20px; margin-bottom: 20px; background-color: #E9EBEC; padding-left: 4px; padding-top: 1px; padding-bottom: 1px;"></div> </div> <div id="pageContent" style="min-height: 100%; position: relative" class="twoContent textMedium overallStyles"> <div id="mainBlockDiv" class="blockDiv" style="display: none; top: 15px; left: 0; right: 0; bottom: 20px;"> <h2 class="blockDivLoading" style="display: none">Loading...</h2> </div> <div id="interiorPageContent" style="min-height: 600px;"></div> </div> </div> <div class="footer-content"> <ul class="footer-breadcrumbs"> <li> © <a href="http://www.abovethetreeline.com/" target="_blank">Above the Treeline</a> 2024 </li> <li> <a href="http://abovethetreeline.com/" target="_blank">About us</a> </li> <li> <a href="https://www.abovethetreeline.com/edelweiss-community-guidelines/" target="_blank">Community Guidelines</a> </li> <li> <a href="/Terms.aspx" target="_blank">Terms</a> </li> <li> <a href="/Privacy.aspx" target="_blank">Privacy</a> </li> </ul> </div> <div id="container-modalWrap" onclick="closeHomepageDialog()"> <div id="innerContainer-modalWrap"> <div id="modal"> </div> </div> </div> <div id="modal-bbyf" class="textMedium overallStyles"> <div id="innerModalContent"></div> </div> <div id="inProcessDiv"> </div> <div id="quickFeedbackRoot"></div> <div id="newsletterCommunicationsRoot"></div> <div id="popover_disengaged" style="display: none; position: fixed; background-color: white;"></div> <input id="pageURL" type="hidden" value="" /> <input type="hidden" id="scrollpos_top" value="" /> <input type="hidden" id="popUpControl" value="" /> <input type="hidden" id="popUpControlParent" value="" /> <input type="hidden" id="popUpControlDisengaged" value="" /> <input type="hidden" id="popGoTime" value="0" /> <input id="referredHash" type="hidden" /> <input type="hidden" id="selectedResult_2" value="" /> <input type="hidden" id="resultCount_2" value="" /> <input type="hidden" id="selectedResult_4" value="" /> <input type="hidden" id="resultCount_4" value="" /> <input type="hidden" id="selectedResult_5" value="" /> <input type="hidden" id="resultCount_5" value="" /> <input type="hidden" id="selectedResult_0" value="" /> <input type="hidden" id="resultCount_0" value="" /> <input type="hidden" id="resultCount_1" value="" /> <input type="hidden" id="selectedResult_3" value="" /> <input type="hidden" id="resultCount_3" value="" /> <input type="hidden" id="selectedResult_6" value="" /> <input type="hidden" id="resultCount_6" value="" /> <input type="hidden" id="selectedResult_8" value="" /> <input type="hidden" id="resultCount_8" value="" /> <input type="hidden" id="selectedResult_21" value="" /> <input type="hidden" id="resultCount_21" value="" /> <input type="hidden" id="selectedResult_20" value="" /> <input type="hidden" id="resultCount_20" value="" /> <input type="hidden" id="selectedResult_9" value="" /> <input type="hidden" id="resultCount_9" value="" /> <input type="hidden" id="selectedResult_12" value="" /> <input type="hidden" id="resultCount_12" value="" /> <input type="hidden" id="selectedResult_50" value="" /> <input type="hidden" id="resultCount_50" value="" /> </div> <iframe class="hidden" id="keep-alive" src="KeepAlive.aspx"></iframe> </body> <script src="https://connect.edelweiss.plus/js/edelweissConnect.js"></script> <script type="text/javascript" src="/js/ckeditor/4.16.1-full/ckeditor.js"></script> <script src="/js/jquery.ui.touch-punch.js"></script> <script src="/js/sly.js"></script> <script src="/js/json.js"></script> <script src="/js/xss/xss.js"></script> <script src="/js/jquery.slick.js"></script> <script src="/js/jquery.autocompleteV1.js"></script> <script src="/js/jquery.appear.js"></script> <script src="/js/jquery.raty.js"></script> <script src="/js/jquery.slimscroll.js"></script> <script src="/js/jquery.imgareaselect.js"></script> <script src="/js/jquery.knob.js"></script> <script src="/js/jquery.cookie.js"></script> <script src="/js/jquery.flyout.js"></script> <script src="/js/jquery.easing.js"></script> <script src="/js/jquery.lazyload.js"></script> <script src="/js/jquery.tooltip.js"></script> <script src="/js/jquery.serializejson.js"></script> <script src="/js/jquery.datatables.currency.js"></script> <script src="/js/edel.analytics.js"></script> <script src="/js/jquery.tag.js"></script> <script src="/js/UserAdministration.js"></script> <script src="/js/edel.popups.js"></script> <script src="/js/edel.dialog.js"></script> <script src="/js/edel.resize.js"></script> <script src="/js/edel.printing.js"></script> <script src="/js/jquery.dynatree.js"></script> <script src="/js/imagesloaded.pkgd.js"></script> <script src="/js/jquery.webui-popover.js"></script> <script src="/js/newLook.js"></script> <script src="/js/newLook_List.js"></script> <script src="/js/AnalyticsHome.js"></script> <script src="/js/async.js"></script> <script src="/js/bn.js"></script> <script src="/js/flame.js"></script> <script src="/js/infiniteSlider.js"></script> <script src="/js/crossStoreView.js"></script> <script src="/js/lodash/lodash.js"></script> <script src="/js/lodash/mixins/framerateThrottle.js"></script> <script src="/js/lightbox.js"></script> <script src="/js/jquery.ba-deparam.js"></script> <script src="/js/manageSubscriptions.js"></script> <script src="/js/edel.analytics.exclusions.js"></script> <script src="/js/edel.analytics.weeding.js"></script> <script src="/js/edel.analytics.export.js"></script> <script src="/js/edel.analytics.titleOwnershipClaims.js"></script> <script src="/js/edel.analytics.series.js"></script> <script src="/js/es6-promise.js"></script> <script src="/js/swipeable.js"></script> <script src="/js/rangeslider.js"></script> <script src="/js/edel.wholesalers.js"></script> <script src="/js/cascadingMenu.js"></script> <script src="/js/edel.peerData.js"></script> <script src="/js/fileupload/jquery.iframe-transport.js"></script> <script src="/js/fileupload/jquery.fileupload.js"></script> <script src="/js/pako/pako_inflate.js"></script> <script src="/js/pako/pako_deflate.js"></script> <script src="/js/pako/pako.js"></script> <script src="/js/edel.analytics.laneSettings.js"></script> <script src="/js/jquery.tablesorter.js"></script> <script src="/js/datatables/1.10.12/datatables.js"></script> <script src="/js/datatables/1.10.12/jquery.dataTables.js"></script> <script src="/js/datatables/1.10.12/datatables.responsive.js"></script> <script src="/js/datatables/1.10.12/dataTables.fixedHeader.js"></script> <script src="/js/ePlus/ePlus.js"></script> <script src="/js/ePlus/user.js"></script> <script src="/js/ePlus/org.js"></script> <script src="/js/ePlus/ui.js"></script> <script src="/js/ePlus/app.js"></script> <script src="/js/ePlus/resources/localization.js"></script> <script src="/js/ePlus/util/enum.js"></script> <script src="/js/ePlus/modules/export.js"></script> <script src="/js/ePlus/modules/comps.js"></script> <script src="/js/ePlus/modules/listView.js"></script> <script src="/js/ePlus/modules/listView/refinements.js"></script> <script src="/js/ePlus/http.js"></script> <script src="/js/ePlus/modules/globalTitleSearch.js"></script> <script src="/js/ePlus/modules/userAddressListControl.js"></script> <script src="/js/ePlus/modules/promotion.js"></script> <script src="/js/ePlus/modules/promotion.insert.js"></script> <script src="/js/ePlus/modules/notes.js"></script> <script src="/js/ePlus/modules/nps.js"></script> <script src="/js/ePlus/modules/support.js"></script> <script src="/js/ePlus/modules/support/account-modal.js"></script> <script src="/js/ePlus/modules/support/support-stored-procedures-widget.js"></script> <script src="/js/ePlus/modules/support/onix-tooltips.js"></script> <script src="/js/ePlus/modules/supportGraphs.js"></script> <script src="/js/ePlus/modules/mops.js"></script> <script src="/js/ePlus/modules/clientManagement.js"></script> <script src="/js/ePlus/modules/inlineMarkupNoteEditor.js"></script> <script src="/js/ePlus/modules/paymentControl.js"></script> <script src="/js/ePlus/modules/addDRC.js"></script> <script src="/js/ePlus/modules/listViewTitleRow.js"></script> <script src="/js/ePlus/modules/manageMarketingCollection.js"></script> <script src="/js/ePlus/modules/inlineEditor.js"></script> <script src="/js/orders/src/orders.js"></script> <script src="/js/resequenceList/resequenceList.js"></script> <script src="/js/templateCache.js"></script> <script src="/js/ePlus/modules/addEditUserPhone.js"></script> <script src="/js/ePlus/modules/viewReviewCopyRequests.js"></script> <script src="/js/ePlus/modules/constantContact.js"></script> <script src="/js/ePlus/modules/manage-user-affiliation.js"></script> <script src="/js/ePlus/modules/freshDesk.js"></script> <script src="/js/ePlus/modules/eventGrids.js"></script> <script src="/js/ePlus/modules/user-affiliation.js"></script> <script src="/js/ePlus/modules/legacy-affiliation.js"></script> <script src="/js/ePlus/modules/community-wizard.js"></script> <script src="/js/ePlus/modules/e360.js"></script> <script src="/js/ePlus/modules/transfer-user.js"></script> <script src="/js/ePlus/modules/dashboard.js"></script> <script src="/js/ePlus/modules/dashboard/widgets.js"></script> <script src="/js/ePlus/modules/dashboard/widgets/notices.js"></script> <script src="/js/ePlus/util/compression.js"></script> <script src="/js/ePlus/util/ajax-helper.js"></script> <script src="/js/ePlus/util/url-helper.js"></script> <script src="/js/ePlus/util/dom.js"></script> <script src="/js/ePlus/modules/listViewPrcRow.js"></script> <script src="/js/eplus/modules/deleteUser.js"></script> <script src="/js/eplus/modules/suggestions.js"></script> <script src="/js/ePlus/modules/markups.js"></script> <script src="/js/ePlus/modules/imprintGroup.js"></script> <script src="/js/ePlus/modules/GenericFormHandler.js"></script> <script src="/js/ePlus/modules/manageImprintGroup.js"></script> <script src="/js/ePlus/modules/listViewImprintGroupGridRow.js"></script> <script src="/js/ePlus/modules/listview-prc.js"></script> <script src="/js/transpiled/dist.js"></script> <script src="/js/ePlus/modules/manage-affiliation-email.js"></script> <script src="/js/ePlus/modules/manage-user-affiliation-requirements.js"></script> <script src="/js/ePlus/modules/manage-user-affiliation-filter.js"></script> <script src="/js/ePlus/modules/manage-legacy-affiliation.js"></script> <script src="/js/ePlus/modules/listView-affiliation-row.js"></script> <script src="/js/ePlus/modules/categoryAggregates.js"></script> <script src="/js/ePlus/modules/yourTown.js"></script> <script src="/js/ePlus/modules/listView-affiliation.js"></script> <script src="/js/ePlus/modules/prcs/api/api.js"></script> <script src="/js/ePlus/modules/prcs/ui/modals/manage-title.js"></script> <script src="/js/ePlus/modules/prcs/ui/listview/listview.js"></script> <script src="/js/ePlus/modules/prcs/ui/listview/listview-row.js"></script> <script src="/js/ePlus/modules/leftNav.js"></script> <script src="/js/ePlus/modules/welcome.js"></script> <script src="/js/ePlus/modules/savedFilterDisplay.js"></script> <script src="/js/ePlus/modules/login.js"></script> <script src="/js/ePlus/modules/listView/reviews/listView.js"></script> <script src="/js/ePlus/modules/listView/reviewCopies/listView.js"></script> <script src="/js/ePlus/modules/notificationPreferences.js"></script> <script src="/js/ePlus/modules/manage-affiliation-images.js"></script> <script src="/js/ePlus/modules/createNotices.js"></script> <script src="/js/ePlus/modules/admin-technical-contact.js"></script> <script src="/js/ePlus/modules/E360/campaigns.js"></script> <script src="/js/ePlus/modules/E360/events.js"></script> <script src="/js/ePlus/modules/header.js"></script> <script src="/js/ePlus/modules/headerProfile.js"></script> <script src="/js/ePlus/modules/headerSearch.js"></script> <script src="/js/ePlus/modules/userAvatar.js"></script> <script src="/js/ePlus/modules/orders/lineItems/repDiscounts/api.js"></script> <script src="/js/ePlus/modules/orders/lineItems/repDiscounts/ui.js"></script> <script src="/js/ePlus/modules/shares/ui.js"></script> <script type="text/javascript"> window.loadingText = 'Loading'; window.keywordSearch = null; window.cultureName = 'en-US'; window.dashboardView = null; if (!window.activeSortList) { window.activeSortList = {}; } window.quickTagAutoComplete = ''; window.quickCatalogTagAutoComplete = ''; //Populate Javascript Enum Variables populateDashTypes(); populateUserPrefTypes(); populateUserPrefNames(); lightbox.option({ 'resizeDuration': 500, 'wrapAround': true, 'imageScrollWithPage': true }); if (!Modernizr.promises) { ES6Promise.polyfill(); } var res = {"a_minute_ago":"1 minute ago","activity_calculation_note":"Index calculated as (Copies On Hand) X (Days Since Last Activity)","activity_since_yesterday":"Activity Since Yesterday","activity_with_no_limit":"Activity With No Limit","add":"Add","add_address":"Add Address (No PO Boxes)","add_category":"Add Category","add_export_record":"Add Export Record","add_item_record":"Add Item Record","add_line_item":"Add Line Item","add_tags_dialog":"Add Tags","add_to":"Add To","add_to_collection":"Add to Collection","affiliation_validation_message":"Please enter your validation code","all_titles":"All Titles","and_later":"and later","anticipating":"Anticipating","apr":"Apr","are_you_sure_you_want_to_make_title_printable":"Are you sure you want to activate this title?","are_you_sure_you_want_to_remove_title_printable":"Are you sure you want to deactivate this title?","ask_mapping_save":"Do you want to close the window without saving the changes?","ask_mapping_save_v2":"Do you want to save your mapping changes before closing?","associate_with":"Add To","aug":"Aug","autosave_confirm":"The AutoSave feature will automatically save your changes as you make them on the page. This feature works best with a fast Internet connection and an updated web browser. Click 'OK' if you are sure you want to enable the AutoSave feature.","average_inventory":"Average Inventory","average_units_ordered":"Average Units Ordered","backlist":"Backlist","banner_redirect_url_required":"Please enter redirect URL for banner","barcode":"Barcode","bn_title_edit_unauthorized":"All title corrections must be made by Barnes and Noble. Please contact your buyer to discuss further.","branch":"Branch","bulk_add_no_campaigns_selected":"Select at least one campaign.","bulk_add_to_campaign_success":"Successfully added titles to selected campaigns","by_activity":"By Activity","by_turn":"By Turn","call_number":"Call Number","cancel":"Cancel","cancel_request":"Click to cancel this request","catalog_analysis_warning_message":"There are no titles that meet the filter applied","changes_saved":"Changes Saved","checked":"Checked","circs_at_selected_location_given_time_frame":"Circs at Selected Location, Given Time Frame","clear":"Clear","clearing_overrides":"Clearing all overrides. Please wait...","clearing_overrides_error":"An error occurred while clearing overrides.","clearing_overrides_none_applied":"There are no overrides applied to this item.","click_to_add_category":"Click to add category","click_to_close":"Click to close","click_to_edit_review":"Click to edit review","click_to_see_review":"Click to see review","click_to_see_titles":"Click to see titles","close":"Close","collection_codes":"Collection Codes","comments":"Comments","comments_access_message":"To access comments you must have at least one person in your friend list","confirm_add_group_to_org":"Are you sure you want to add this Org to this Private Market?","confirm_close_markup_note":"Are you sure you want to cancel your unsaved changes?","confirm_delete_affiliation":"Are you sure you want to delete this affiliation?","confirm_delete_contacts":"Are you sure you want to delete these contacts?","confirm_delete_imprint_group":"Are you sure you want to delete this imprint group?","confirm_delete_personal_note":"Are you sure you want to delete this note?","confirm_remove_group_from_org":"Are you sure you want to remove this Org from this Private Market?","confirm_review_delete":"Are you sure you want to delete this review?","confirm_unsubmit_review":"Are you sure you want to unsubmit this review?","contact_us":"Contact Us","content_edited":"Content Edited - updates will appear after page refresh\r\n","continue":"Continue","contributors_plural":"contributors","convert":"Convert","convert_isbns":"Convert ISBNs","create_library_item_import_exclusions_confirmation_message":"Note that items with codes you unchecked will no longer be imported from your ILS feeds, effective immediately. Also, titles with codes you have unchecked that are already in Edelweiss+ Analytics will be removed from Edelweiss Analytics within 24 hours.","create_markup":"Create Markup","create_order":"Create Order","current_holdings":"Current Holdings","current_items":"Current Items","current_on_hand":"Current On Hand","current_on_order":"Current On Order","currently_reading":"Currently Reading","custom_categories_not_applicable":"Custom categories are not applicable for this analysis.","customer_feedback":"Customer Feedback","datatable_empty_table":"No data available in table","datatable_info":"Showing _START_ to _END_ of _TOTAL_ entries","datatable_info_empty":"Showing 0 to 0 of 0 entries","datatable_info_filtered":"(filtered from _MAX_ total entries)","datatable_length_menu":"Show _MENU_ entries","date_last_received":"Date Last Received","date_last_sold":"Date Last Sold","dec":"Dec","delete":"Delete","delete_address":"Delete Address","delete_address_prompt":"Are you sure you want to delete the address {0}?","delete_markup_success":"The markup was successfully deleted.","descContributorBio_plural":"contributor bios","descSummary_plural":"summaries","digest_has_never_been_generated":"Digest has never run","distribution_of_branches":"Distribution of Branches","distribution_of_categories":"Distribution of Categories","do_you_want_to_edit_the_collection":"Do you want to edit the collection","download_review_copy":"Download Review Copy","earliest_publication_date_for_any_family_version":"Earliest publication date for any family version","edit_address":"Edit Address","edit_collection":"Edit Collection","edit_export_record":"Edit Export Record","edit_markup":"Edit Markup","edit_order":"Edit Order","edit_suggestions":"Edit Suggestions","email_subscription_successful":"Email subscription successful","enable_request":"Enable this request?","enter_a_message":"Please enter a message.","enter_name_for_campaign":"Please enter a name for this campaign","enter_number":"Please enter a number","enter_valid_email":"Please enter a valid email address","eplus_designer_signup_modal":"<div class=\"designer-signup-icon icon-color-palette\"></div><div class=\"designer-signup-body\">You are not currently subscribed to Edelweiss Designer. Click <a target=\"_blank\" href=\"https://www.edelweissplus.com/edelweiss-designer\">here</a> to learn more or start a free trial!</div>","error":"Error","error_clearing_exclusions_for_lane":"There was an error when trying to clear the exclusions for this lane.","error_discount_out_of_range":"Discount must be nothing or between 0 and 100.","error_excluding_items":"There was an error when trying to exclude these items.","error_excluding_title":"There was an error when trying to exclude this title.","error_fatal":"An unexpected error occurred while performing this action. Please contact Above The Treeline Support to report this issue.","error_fatal_reload":"An unexpected error occurred while performing this action. Please contact Above The Treeline Support to report this issue. The page will now reload.","error_imprint_0_is_already_in_this_group":"The imprint \"{0}\" is already in this group.","error_imprint_0_is_claimed_by_another_organization":"The imprint \"{0}\" is claimed by another organization.","error_logging_out":"Error logging out","error_markup_editor_open":"Another markup note is currently being edited. Please save or close the current note being edited, then try again.","error_markup_editor_open_sku":"Another markup note is currently being edited for ISBN {0}. Please close that editor before continuing.","error_markup_note_length":"Markup notes cannot exceed 5000 characters (including hidden formatting).","error_may_have_occurred_refresh":"An error may have occurred while saving. Please refresh and try again.","error_permission":"You do not have permission to perform this action.","error_processing_request":"There was an error processing your request.","error_saving_discount":"There was an error saving the discount. Please try again.","error_saving_preference":"There was an error saving your AutoSave preference. Your previous setting will remain in effect.","error_unauthorized":"You are not authorized to perform this action.","error_unexpected":"An unexpected error occurred while performing this action. Please try again or contact Above The Treeline Support.","error_while_loading_analysis":"An error occurred while loading data for this analysis. Please try again.","export_markup":"Export Markup","export_markup_prompt":"Do you want to export markup notes with formatting?","export_to_csv":"Export to CSV","export_to_file":"Export to File","fb_promo_help":"The Weekly Greeting is sent to over 110,000 Edelweiss users every Tuesday. It includes highlights of new review copies and catalogs by genre and also highlights new titles releasing that week..\r\n<br><br>\r\nPublishers may purchase the top banner spot in the weekly newsletter or select banner locations based on category. Banners should be 150px by 600px in size.\r\n<br><br>\r\n<div style='text-align: center'><a href='https://www.abovethetreeline.com/publisher-marketing'>Learn More</a></div>","featured_peer_reviews":"Featured Peer Reviews","feb":"Feb","feedback":"feedback","filter":"Filter","finished_reading":"Finished Reading","fresh":"Fresh","frontlist":"Frontlist","ft_promo_help":"The Weekly Greeting is sent to over 110,000 Edelweiss users every Tuesday. It includes highlights of new review copies and catalogs by genre and also highlights new titles releasing that week.\r\n<br><br>\r\nFeatured titles are highlighted at the top of the newsletter with direct links to the Edelweiss listing as well as at the top of the Review Copies page for all users.\r\n<br><br>\r\nThere are only nine spots available in every week’s newsletter. Select the week you are interested in and follow the prompts to purchase your featured title spot!\r\n<br><br>\r\n<div style='text-align: center'><a href='http://www.abovethetreeline.com/new-edelweiss-newsletter-promotions/' class='ePlusLink' target='_blank'>Learn More</a></div>\r\n","gap_from_average":"Gap From Average","general_pub_subrights_info":"General Publisher Subrights Information","go_to_open_editor":"Go to open editor","go_to_this_analysis_x":"Click here to go to this analysis and select a {searchFilterDisplayName} ","hide_all_cross_store_grids":"Hide all cross store grids","high":"High","high_turn":"High Turn","highly_anticipating":"Highly Anticipating","historical_sales":"Historical Sales","holds_ratio":"Holds Ratio","if_you_join_every_user_in_your_organization_will_join_this_group":"If you join every user in your organization will join too. Do you want to continue?","if_you_join_every_user_in_your_organization_will_join_this_group_name":"If you join every user in your organization will join ","if_you_leave_every_user_in_your_organization_will_leave_from_group_name":"If you leave, every user in your organization will be removed from","if_you_leave_every_user_in_your_organization_will_leave_this_group":"Selecting OK will remove all users in your organization from this group.","incomplete_fields_x":"Incomplete fields: {incomplete}","indicate_recommendation":"You must indicate whether you'd recommend this title or not.","indicate_role":"Please indicate what type of role you're reviewing this title as.","int_promo_help":"Inserts are banner ads that appear above title listings when users are viewing a list of titles. They help to draw viewers’ attention and generate interest. Inserts will remain for as long as the title is in Edelweiss!<br><br>\r\nBy clicking here, you can purchase an insert for $220 and upload the file immediately. Files should be no more than 200px high and either PNG or GIF format with a maximum size of 300KB.\r\n<br><br>\r\n<div style='text-align: center'><a href='https://help.edelweiss.plus/?st_kb=title-banner-inserts' target='_blank'>Learn More</a></div>","internal":"Internal","invalid_value":"Invalid value","item":"Item","items":"Items","items_in_campaign":"The number of items (titles, events or collections) in this campaign","jan":"Jan","jul":"Jul","jun":"Jun","last_12_months":"Last 12 months","last_checked_out":"Last Checked Out","last_circed_date":"Last Circed Date","last_date_received":"Last Date Received","last_received_date":"Last Received Date","last_sold_date":"Last sold date","less":"Less","lifetime_circ":"Lifetime Circ","loading":"Loading","loading_email_notification_frequency":"Loading email notification frequency","logging_out":"Logging out","login_to_perform_action":"You must be logged in to perform this action.","low":"Low","low_turn":"Low Turn","manage_comparable_products":"Manage Comparable Products","mar":"Mar","markup_editor_close_warning":"Performing this action will close the current markup note editor. Any unsaved changes will be lost.","markup_note":"Markup Note","may":"May","medium":"Medium","medium_turn":"Medium Turn","message_error":"There was an error saving your message.","message_saved":"Message saved.","message_was_sent":"Message was sent","more":"More","move":"Move","move_item":"Move Item","mtnb_promo_help":"Monthly newsletters provide targeted audiences with product updates, training tips, upcoming events, and other news. Select from the bookseller, librarians, or UK newsletters. <br><br>\r\n<div style='text-align: center'><a href='https://help.edelweiss.plus/?st_kb=monthly-newsletter-banner-ads' class='ePlusLink' target='_blank'>Learn More</a></div>\r\n","much_love":"Much Love!","must_select_one_or_more":"You must select one or more items","my_backlist":"My Backlist","my_frontlist":"My Frontlist","my_titles":"My Titles","my_work":"My Work","network_connection":"Network Connection","never_owned":"Never Owned","never_stocked":"Never Stocked","no":"No","no_active_campaigns":"No Active Campaigns","no_circulation":"No Circulation","no_filter":"No Filter","no_location_selected":"No location selected","no_message":"No message was provided","no_sales":"No Sales","no_titles_meet_search_criteria":"There are no titles that meet the search criteria","not_enough_data_objects":"There are not enough data objects for a useful comparison","not_in_stock":"Not In Stock","not_owned":"Not Owned","not_set":"Not Set","note":"Note","note_all_location_in_category_comparison":"This analysis applies only to individual locations. Choose a branch from the list above to run this comparison.","notes_visible_to_org":"Notes that you add here are visible to other users in your account","notes_visible_to_org_and_reps":"Notes that you add here are visible to your reps and to other users in your account","nothing_to_save":"There was nothing to save","nov":"Nov","oct":"Oct","oh_abbreviation":"OH","on_hand":"On Hand","on_order":"On Order","oo_abbreviation":"OO","open_collection":"Open Collection","order_alert_mark_complete":"Please consider marking this order as Completed to remove it from your Active Order list. If you want to order other items please create a new order.","order_alert_summited_a":"WARNING: This order has already been submitted.","order_alert_summited_b":"Changes made to this order will not be updated in your account's order management system.","order_alert_summited_rep_a":"WARNING: This order has already been submitted by your rep.","order_alert_summited_rep_b":"Changes made to this order will not be updated in the publisher's order management system.","order_alert_summited_rep_c":"If you need to change this order, please notify your rep.","ordered":"Ordered","over_an_hour_ago":"Over 1 Hour Ago","over_x_hours_ago":"Over {0} hours ago","percent_collection":"% Collection","percent_of_peers_circulated":"% of Peers Circulated","percent_of_peers_on_order":"% of Peers On Order","percent_of_peers_sold":"% of Peers Sold","percent_of_peers_stocked":"% of Peers Stocked","percent_of_total":"% Of Total","percent_total_circulation":"% Total Circulation","percent_total_inventory":"% Total Inventory","percent_total_sales":"% Total Sales","percent_total_unit_sales":"% Total Unit Sales","please_close_or_save_current_editor_before_continuing":"Please close or save the current editor before continuing","please_select_an_item_to_move":"Please select an item to move","please_select_dates_reserve":"Please select one or more dates to reserve","point_of_sale_category":"Point-Of-Sale Category","pos_category":"POS Category","previous_year":"Previous year","projected_month":"Projected Month","projected_value":"Projected Value","promo_signup":"Promotional Signup","provided_value_must_be_non_negative_integer":"The provided value must be a non-negative integer.","pub_date":"Pub Date","pub_message":"Publisher Message","publisher_name":"Publisher Name","rating_saved":"Rating successfully saved.","rationale":"Rationale","rc_promo_help":"Review copies are a great way to generate buzz, obtain reviews, and encourage ordering!<br><br>Edelweiss provides options to manage and distribute both digital and print review copies.<br><br>\r\nIf your organization subscribes to these add-on modules, you can activate titles from here.<br><br>\r\n<div style='text-align: center'><a href='http://www.abovethetreeline.com/review-copies/' class='ePlusLink' target='_blank'>Learn More</a></div>","refreshing":"Refreshing...","registration_info_saved":"Registration information has been saved successfully.","remove":"Remove","remove_from":"Remove From","requested_quantity":"Requested Quantity","reset":"Reset","review_deleted_OK":"Review successfully deleted.","review_submissions":"Review Submissions","reviews":"Reviews","sales_at_selected_location_given_time_frame":"Sales at Selected Location, Given Time Frame","sales_rights":"Sales Rights","save":"Save","save_changes":"Save Changes","saving":"Saving","search_by_isbn":"Search by ISBN","search_only_my_publishers_by_isbn":"Search only my publishers by ISBN","search_only_my_titles_by_isbn":"Search only my titles by ISBN","select_all":"Select All","select_at_least_one_title":"Please select at least one title","select_folder":"Please select a folder","select_state":"Select State","select_users_to_transfer":"Select User(s) To Transfer","select_y_to_analyze":"Select a {searchFilterDisplayName} to analyze","select_your_language_preference":"Select your language preference","selected":"Selected","selecting_continue_will_cause_any_unsaved_changes_to_be_lost":"Selecting continue will cause any unsaved changes to be lost","semicolon_or_comma_keywords_from":"; or, keywords from","send":"Send","sep":"Sep","series_plural":"series","set_default_address":"Set Default Address","set_default_address_prompt":"Are you sure you want to make {0} your default address?","shared":"Shared","shelf_days":"Shelf Days","shelf_days_is_combined_number_days_all_copies_on_shelf_no_activity":"'Shelf Days' is the combined number of days all copies of this title have been on the shelf with no activity","shelf_days_takes_into_account_number_copies_and_dsla":"Shelf Days takes into account the number of copies and days since last activity","shelves":"Shelves","show_all_cross_store_grids":"Show all cross store grids","show_all_x":"Show All {totaltitles}","sign_up_request_processing":"New User Account Request","stable":"Stable","stale":"Stale","store_region":"Store Region","submit":"Submit","submit_banner_no_image_no_url":"You are making a newsletter reservation without uploading artwork. Please remember to upload artwork here before your reserved date arrives.","submitted_on":"Submitted on","subscribe":"Subscribe","subtitle_plural":"subtitles","success":"Success","super_category":"Super Category","switch_edit_to_save":"You must switch to 'Your Edit' to save.","tag_must_be_lower_case":"Tag must be lower case.","thank_you_we_may_contact_you_with_questions":"Thank you! We may contact you if we have questions.","the_item_type_with_item_name_has_been_deleted":"The {itemType} \"{itemName}\" has been deleted.","the_last_digest_was_run_on":"The last digest was run on {0}","the_next_digest_will_run_on":"The next digest will run on {0}","the_server_was_too_busy_to_process_your_request":"The server was too busy to process your request, please try again","there_are_no_changes_to_save":"There are no changes to save","timeout":"Timeout","title":"Title","title_plural":"titles","titles":"Titles","top_performing_version_within_family":"Top performing version within the family","total_items_circd":"Total Items Circ'd","total_units_ordered":"Total Units Ordered","total_units_sold":"Total Units Sold","total_units_stocked":"Total Units Stocked","turn_calculation_note_for_library":"Turn (turnover) is calculated as the number of items circulated, over the average items owned during the time frame, annualised","turn_calculation_note_for_retailer":"Turn (turnover) is calculated as gross sales over the average inventory value for the time frame, annualised","type_delete_to_confirm_user_deletion":"Type delete to confirm user deletion","unselect_all":"Unselect All","unsubscribe":"Unsubscribe","untagged_titles":"Untagged Titles","upload_complete":"Upload Complete","uploading_file":"Uploading File","user_agreement":"User Agreement","user_transfer_from_cant_be_to":"The 'From' account cannot be the same as the 'To' account dude.","user_transfer_select_account":"Select a second account-- and then you can switch the 'From / To' relationship","value_must_be_greater_than_0":"The value must be a whole number greater than or equal to 0.","value_must_be_greater_than_1":"The value must be a whole number greater than or equal to 1.","versions_of_this_title_on_hand":"versions of this title On Hand","versions_of_this_title_on_order":"versions of this title On Order","versions_published_within_family":"Versions published within the family","view_online_review_copy":"View Online Review Copy","warning_markup_editor_close":"Performing this action will close the markup note editor for ISBN {0}. Any unsaved changes will be lost.","we_are_always_trying_to_improve_gaps_in_family_data_your_report_helps_quality":"We're always trying to improve the connections between different versions of books and other materials (the 'family' for a title). Gaps in that family database are often the reason that a title is shown in analytics as not owned. Your report helps the quality of that data for everyone using Edelweiss Analytics.","word_of":"of","word_or":"or","x_days_ago":"{days} days ago","x_minutes_ago":"{minutes} minutes ago","x_of_y_titles":"{stockonlytitles} Of {totaltitles} Titles","x_selected":"${numSelected} Selected","x_selected_y_label":"{numSelected} Selected ( {classLabel} )","x_titles_total":"{totaltitles} Titles Total","yes":"Yes","yesterday":"Yesterday","you_approved_more_than_requested_are_you_sure":"You approved more than the user requested. Are you sure?","you_have_unsaved_changes_will_be_lost":"You have unsaved changes. If you continue the changes will be lost","your_note":"Your Note","ytd_circ":"YTD Circ"}; ePlus.user.culture = 'en-US'; ePlus.user.currencyCode = 'USD'; ePlus.modules.paymentControl.setDefaults({ paymentPluginUri: 'https://payments.edelweiss.plus/Payments/Plugin', }); CKEDITOR.timestamp = "638676514944869539"; (function (i, s, o, g, r, a, m) { i['GoogleAnalyticsObject'] = r; i[r] = i[r] || function () { (i[r].q = i[r].q || []).push(arguments) }, i[r].l = 1 * new Date(); a = s.createElement(o), m = s.getElementsByTagName(o)[0]; a.async = 1; a.src = g; m.parentNode.insertBefore(a, m) })(window, document, 'script', '//www.google-analytics.com/analytics.js', 'ga'); ga('create', 'UA-6177030-3', 'auto'); ga('require', 'displayfeatures'); ga('require', 'linkid'); ga('set', '&uid', ':'); ga('send', 'pageview'); window.isTouch = !!('ontouchstart' in window || navigator.maxTouchPoints || navigator.msMaxTouchPoints); window.dashboardExclusionFilters = {}; window.ePlusContextResultTypesMap = {"98875":[22,21,20,260],"116400":[106,107,108],"116423":[2001,2002,2003,2006],"98968":[73,211,213,212,77,74,75,76,-1,206,90,208,209,200,201,202,203,205,210,71,70,72,207,204,217],"134999":[4015,4016]}; window.ePlusContextEntityTypeMap = {"98875":2,"99615":2,"99616":2,"116400":2,"116423":2,"98968":1,"134999":12}; ePlus.user.initializePreferences({"markup":{"noteFontColor":null,"noteFontSize":null,"useInlineEditor":"true"},"display":{"showFullMarkupNotes":null},"fonts":{"fontOption":null},"noteToSelf":{"useInlineEditor":null}}); $(window).on({ hashchange: onHashChangeEvent, popstate: onPopStateEvent, interaction: onInteractionEvent, scroll: onScrollEvent, resize: resizeThings }); window.hasCommunitiesPrerelease = true; createPublisherSelectMenu(); function reloadCurrentPage() { closeModal(); changePage(window.location.hash); } function pageChange(pageHash, callback) { // Trigger a page interaction event $(window).trigger('interaction', [function () { location.hash = pageHash; if (typeof callback === 'function') { location.hashCallback = callback; } }]); } var pageHashes = { login: "#Login", logout: "#Logout", signup: "#SignUp", forgotPassword: "#ForgotPassword" }; function doShowWelcomePage(pageHash, pageHashKey) { return pageHash === '' || pageHash === '#' || pageHashKey === pageHashes.login || pageHashKey === pageHashes.signup || pageHashKey === pageHashes.forgotPassword || isLogout(pageHashKey); } function isLogout(pageHashKey) { return pageHashKey === pageHashes.logout; } function changePage(pageHash, callback) { // Trigger a page interaction event $(window).trigger('interaction', [function () { window.ePlus.app.refreshAppIfDue(); if (typeof pageTracking !== 'undefined') { pageTracking.startTrackPage(); } clearPageState(); var pageHashParameters = pageHash.split("&"); var pageHashPrimary = pageHashParameters[0].split("="); var pageHashPrimaryKey = pageHashPrimary[0]; var audience = getUriHashParameter(pageHash, 'g'); if (audience) { var updateHash = function () { window.doDisableNextHashChangeEvent = true; location.hash = updateUriHashParameter(pageHash, 'g', null); }; if (audience !== '4400') { $.ajax({ url: '/GetJSONData.aspx?builder=SetUserMarket&audience=' + audience }).always(function () { updateHash(); location.reload(); }); return; } else { updateHash(); } } if (doShowWelcomePage(pageHash, pageHashPrimaryKey)) { goToWelcomePage(); return; } $("#menuDiv").show(); $("#pageHeader").show(); $('#pageContent').css('min-width', ''); WebuiPopovers.destroyChildren('#interiorPageContent'); var doHideSearch = false; switch (pageHashPrimaryKey) { case '#dashboard': $(".header_Home").addClass("selectedTopMenu"); ePlus.modules.leftNav.closeLeftNav(); window.goToDashboard(); window.logPageHit(getEnumValue("siteContext", "EPLUS"), getEnumValue("ePlusSiteArea", "HOMEPAGE"), '62565b5c-d6eb-4f32-8777-411beedcd93f'); break; case '#dashList': $(".header_" + pageHashPrimary[1]).addClass("selectedTopMenu"); var resultType = ''; if (pageHashParameters.length > 1 && pageHashParameters[1].split("=")[0] == "rT") { resultType = pageHashParameters[1].split("=")[1]; history.replaceState(null, null, document.location.pathname + '#dashList=' + pageHashPrimary[1]); } else { resultType = $("#selectedResult_" + pageHashPrimary[1]).val(); } var itemCount = $("#resultCount_" + pageHashPrimary[1]).val(); var url = '/GetTreelineControl.aspx?controlName=/uc/listviews/ListHome.ascx&majorPage=1&resultType=' + resultType + '&itemCount=' + itemCount + '&' + pageHash.replace("#", ""); $("#interiorPageContent").load(url, callback); if (pageHashPrimary[1] === getEnumValue("dashType", "DASHDRC").toString()) { window.logPageHit(getEnumValue("siteContext", "EPLUS"), getEnumValue("ePlusSiteArea", "REVIEWCOPY"), '62565b5c-d6eb-4f32-8777-411beedcd93f'); } break; case '#InviteResponse': var actionType = pageHashParameters[1].split("=")[1]; if (actionType === "view") { location.hash = "dashboard"; openUserCenter(0); } else { openInviteConfirmation(pageHash.replace("#", "&")); } break; case '#SignUpRequest': openSignUpRequestProcessing(pageHash.replace("#", "&")); break; case '#analytics': $(".header_" + pageHashPrimary[1]).addClass("selectedTopMenu"); var pageHashSecondary = pageHashParameters[1].split("="); window.goToAnalyticsDashboard(pageHashPrimary[1], pageHashSecondary[1], true); ePlus.modules.leftNav.closeLeftNav(); break; case '#org': window.loadInProcessDiv('Account', '/uc/listviews/controls/ListView_Progress_List.ascx&itemType=2&' + pageHash.replace("#", "")); break; case '#sku': var url = '/GetTreelineControl.aspx?controlName=/uc/listviews/ListHome.ascx&majorPage=6&' + pageHash.replace("#", ""); $("#interiorPageContent").load(url, callback); break; case '#catalogID': doHideSearch = _(pageHashParameters).some(function (p) { return p === 'hideSearch=true' }); var url = '/GetTreelineControl.aspx?controlName=/uc/listviews/ListHome.ascx&majorPage=2&' + pageHash.replace("#", ""); $("#interiorPageContent").load(url, callback); break; case '#campaignCatalogID': var url = '/GetTreelineControl.aspx?controlName=/uc/listviews/ListHome.ascx&majorPage=8&' + pageHash.replace("#", ""); $("#interiorPageContent").load(url, callback); break; case '#orderID': var url = '/GetTreelineControl.aspx?controlName=/uc/listviews/ListHome.ascx&majorPage=4&' + pageHash.replace("#", ""); $("#interiorPageContent").load(url, callback); break; case '#viewID': window.loadInProcessDiv('Titles', '/uc/listviews/controls/ListView_Progress_List.ascx&itemType=1&resultType=100&' + pageHash.replace("#", "")); break; case '#presentationID': window.loadInProcessDiv('Titles', '/uc/listviews/controls/ListView_Progress_List.ascx&itemType=10&resultType=31&' + pageHash.replace("#", "")); break; case '#savedFilters': $(".header_" + window.dashType.filters).addClass("selectedTopMenu"); var url = '/GetTreelineControl.aspx?controlName=/uc/listviews/ListHome.ascx&majorPage=7&' + pageHash.replace("#", ""); $("#interiorPageContent").load(url, callback); break; case '#publisher': var url = '/GetTreelineControl.aspx?controlName=/uc/listviews/ListHome.ascx&majorPage=5&' + pageHash.replace("#", ""); $("#interiorPageContent").load(url, callback); break; case '#newsletter-communications': openCommunicationSettings(); window.goToDashboard(); break; case '#keywordSearch': var keywords = getUriHashParameter(window.location.hash, 'q'); var url = '/GetTreelineControl.aspx?controlName=/uc/listviews/ListHome.ascx&majorPage=3&keywordString=' + encodeURIComponent(keywords) + '&' + pageHash.replace("#", ""); $('#searchKeywords').val(keywords); $("#interiorPageContent").load(url, callback); break; case '#drcRequest': var action = pageHashPrimary.length > 1 ? pageHashPrimary[1] : null; var requestId = getHashValue("requestId"); var userId = getHashValue("userId"); var sku = getHashValue("sku"); if (action && requestId && userId && sku) { openDrcQuickApprove(action, requestId, userId, sku); } else { alert("Invalid DRC Request Status Admin URL."); pageChange("#dashboard"); } break; case '#analyticsRegistration': goToWelcomePage(); break; default: if (isInvalidPageHashKey(pageHashPrimaryKey)) { goToWelcomePage(); clearUrlHash(); return; } } $('.header-search', '#pageHeader').toggleClass('hidden', doHideSearch); }]); } function isInvalidPageHashKey(pageHashKey) { return _.startsWith(pageHashKey, "#http"); } function clearUrlHash() { history.pushState('', document.title, window.location.pathname + window.location.search); } $(function () { $('.community-navigation').off('click').on('click', function () { var redirectUrl = 'https://community.edelweiss.plus/'; window.location = redirectUrl; }); initJsModules(); if (location.hash === "") { goToWelcomePage(); } else { var pageHashParameters = location.hash.split("&"); var pageHashPrimary = pageHashParameters[0].split("="); if (pageHashPrimary[0] == "#t") { goToWelcomePage(); } else { changePage(location.hash); } } initCustomDataTableFilters(); checkForAlerts(); ePlus.modules.header.initialize(); ePlus.modules.headerSearch.initialize(); }); function initJsModules() { if (templateCache) templateCache.init("Hidden"); o.init({ isPublisher: false, isStoreMultiLineMode: false, translations: { 'edit_category': 'Edit Category', 'error_removing_suggestions': 'Error removing suggestions.', 'order_quantity_error': 'You cannot have quantities less than -1 in your orders.', 'must_select_order': 'You must select or create a purchase order before adding titles to one', 'must_select_one_or_more': 'You must select one or more items', 'suggestions_removed': 'Suggestions removed!', 'delete_store_line_item': 'Delete Store Line Item', 'confirm_line_item_delete': 'Are you sure you want to delete this line item?' } }); window.ePlus.modules.support.init("1f990888-a2f5-4dac-9109-767125cb1f0f", "Default-ApplicationInsights-EastUS", "EdelweissPlus-ai"); window.ePlus.app.init(10800000); window.ePlus.modules.constantContact.setDefaults({ ePlusUri: 'https://www.edelweiss.plus/' }); } function checkForAlerts() { } function populateDashTypes() { window.dashType = { drc: 0, shelves: 1, catalog: 2, catalog_titles: 11, order: 6, order_titles: 13, tag: 3, buzz: 9, people: 5, publisher: 4, search: 8, event: 12, review: 50, filters: 500, analytics_BA_Home: 300, analytics_LA_Home: 200, analytics_KPI_Home: 100 }; } function populateUserPrefTypes() { var prefTypes = { display: 'display', markup: 'markup' } if (window.ePlus.user && window.ePlus.user.userPrefType) { window.ePlus.user.userPrefType = prefTypes; } else { window.userPrefType = prefTypes; } } function populateUserPrefNames() { var prefNames = { showAllMarkups: 'showAllMarkups', showAllSuggestions: 'showAllSuggestions', showMarkupArea: 'showMarkupArea', showOrderArea: 'showOrderArea', showForecast: 'showForecast', showFullMarkupNotes: 'showFullMarkupNotes', showSharedMarkupNotes: 'showSharedMarkupNotes', showPersonalNotes: 'showPersonalNotes', selectedAccount: 'selectedAccount' }; if (window.ePlus.user && window.ePlus.user.userPrefName) { window.ePlus.user.userPrefName = prefNames; } else { window.userPrefName = prefNames; } } function alertXhrResponse(xhr) { if (!xhr) { return; } const response = JSON.parse(xhr.responseText); const message = response.message; alert(message); } function goToDashboard() { $("#pageURL").val(""); $("#menuDiv").show(); $("#pageHeader").show(); window.scrollTo(0, 0); window.loadDashSplit(); } function actionWelcome() { var hashed = location.hash; $("#referredHash").val(hashed); closeAllModals(); goToWelcomePage(); } function openInviteConfirmation(pageHash) { $.url = '/GetTreelineControl.aspx?controlName=/uc/contacts/InviteResponse.ascx' + pageHash; $("#interiorPageContent").load($.url); } function openSignUpRequestProcessing(pageHash) { var url = '/GetTreelineControl.aspx?controlName=/uc/contacts/SignUpRequestResponse.ascx' + pageHash; openDialog({ url: url, isModal: true, title: getRes("sign_up_request_processing"), onClose: function () { pageChange("#dashboard"); } }); } function goToWelcomePage() { $("#menuDiv").hide(); $("#pageHeader").hide(); $("#pageURL").val(""); window.scrollTo(0, 0); $('#pageContent').css('min-width', 'auto'); $("#interiorPageContent").html('<div style="height:900px; font-weight: bold; margin: 8px 0 0 12px;">Loading...</div>'); ePlus.ui.loadInteriorPageContent('/Welcome', function () { ePlus.modules.welcome.initialize({ isSignUp: location.hash.indexOf('#SignUp') > -1 }); ePlus.modules.login.initialize({ isForgotPassword: location.hash.indexOf('#ForgotPassword') > -1 }); }); if (location.hash !== "") { var pageHashParameters = location.hash.split("&"); var pageHashPrimary = pageHashParameters[0].split("="); if (pageHashPrimary[0] === "#t") { var pageHashSecondary = pageHashParameters[1].split("="); var pageHashTertiary = pageHashParameters[2].split("="); openSetPassword(pageHashSecondary[1], pageHashPrimary[1], pageHashTertiary[1]); } } } function goToAnalyticsDashboard(dashType, subDash, initialize) { $("#pageURL").val(""); $("#menuDiv").show(); $("#pageHeader").show(); window.scrollTo(0, 0); var url = '/uc/listviews/controls/ListView_Progress_Analytics.ascx'; $('#pageBlockDiv').show(); $('#mainBlockDiv').show(); window.scrollTo(0, 0); $("#pageContent").append("<div class='inProcessDiv bgdMenu'><div class='inProcessHeader'><div id='progressAnimation' class='column'></div><div class='columnSpaced'>Loading Analytics</div><div style='clear:both;'></div></div><div id='inProcessDetail'><div style='clear: both; overflow: auto; padding: 15px;'><div style='margin-left:15px;'>Prepping</div></div></div></div>"); $("#progressAnimation").html(templateCache.loadingAnimation({ svgLoaderClass: '' })); if (url != "") { $.url = "/GetTreelineControl.aspx?controlName=" + url; $("#inProcessDetail").load($.url, function () { $.url = "/GetTreelineControl.aspx?controlName=/uc/analytics/Analytics_Home.ascx&dashType=" + dashType + "&subDash=" + subDash; if (initialize) { $.url += "&init=true"; } $("#interiorPageContent").load($.url); }); } } function refreshMenuDashboard(resultType, dashboardType, itemID) { var uri = "/GetTreelineControl.aspx?controlName=/uc/menus/Menu_Dashboard.ascx"; if (resultType !== undefined) { uri += "&resultType=" + resultType; } if (dashboardType !== undefined) { uri += "&dashboardType=" + dashboardType; } if (itemID !== undefined) { uri += "&itemID=" + itemID; } $("#menuInterior").load(uri, function () { $(".headerLink").css("font-weight", ""); $(".header_" + dashboardType).css("font-weight", "700"); createPublisherSelectMenu(); }); } function loadInProcessDiv(whatsLoading, url) { $('#pageBlockDiv').show(); $('#mainBlockDiv').show(); window.scrollTo(0, 0); $("#pageContent").append("<div class='inProcessDiv bgdMenu'><div class='inProcessHeader'><div id='progressAnimation' class='column'></div><div class='columnSpaced'>Loading " + whatsLoading + "</div><div style='clear:both;'></div></div><div id='inProcessDetail'><div style='clear: both; overflow: auto; padding: 15px;'><div style='margin-left:15px;'>Prepping</div></div></div></div>"); $("#progressAnimation").html(templateCache.loadingAnimation({ svgLoaderClass: '' })); if (url != "") { $.url = "/GetTreelineControl.aspx?controlName=" + url; $("#inProcessDetail").load($.url, function () { if (whatsLoading == 'Dashboard') { window.loadDashSplit(); } else { if (whatsLoading == 'KPI') { $.url = "/GetTreelineControl.aspx?controlName=/uc/analytics/KPI_Home.ascx"; $("#interiorPageContent").load($.url); } } }); } } function goToBetaSignUp() { $("#pageURL").val(""); window.scrollTo(0, 0); $("#interiorPageContent").html('<div style="height:900px;">Loading...</div>'); $.url = "/GetTreelineControl.aspx?controlName=/uc/welcome/BetaSignUp.ascx"; $("#interiorPageContent").load($.url); $("#menuDiv").hide(); $("#pageHeader").hide(); } function addMargin() { window.scrollTo(0, window.pageYOffset - 70); } window.addEventListener('hashchange', addMargin); function loadNewPage(url, sourcePop) { $("#interiorPageContent").html('<div style="height:900px;padding-left:20px;">Loading...</div>'); window.scrollTo(0, 0); //$("#menuDiv").hide() if (sourcePop != '') { $("#popover_" + sourcePop).hide(); } $("#pageURL").val(url); $.url = "/GetTreelineControl.aspx?controlName=" + url; $("#interiorPageContent").load($.url); } // create the back to top button $('body').prepend('<div onclick="javascript:window.scrollTo(0, 0);" class="back-to-top icon-navi-up-icon"></div>'); function setInputDefaultText(inputControl) { $('#' + inputControl).val($('#' + inputControl).attr('defaultValue')); $('#' + inputControl).focus(function () { if ($(this).val() == $(this).attr('defaultValue')) { $(this).val(''); } }); $('#' + inputControl).blur(function () { if ($(this).val() == '') { $(this).val($(this).attr('defaultValue')); } }); } function changeWorklistStatus(catalogId) { window.modalAlert("You must be logged in to use this feature. The good news is that Edelweiss+ registration is free! To log-in, register or learn more, click <span style='cursor:pointer;font-weight:bold;' onclick='javascript:actionWelcome();'>here</span>") return false; } function addToWorklistSimple(catalogId) { $(".worklist_" + catalogId).removeClass("icon-rating-inactive-icon"); $(".worklist_" + catalogId).removeClass("accFont"); $(".worklist_" + catalogId).addClass("icon-rating-active-icon"); $(".worklist_" + catalogId).addClass("accFont"); $(".worklist_" + catalogId).addClass("colorCommunity"); if ($("#dash_2").length) { $(".worklist_" + catalogId).show(); } if ($("#value_204").length > 0) { $("#value_204").html($("#value_204").html() * 1 + 1); $("#headerCount_2").html($("#headerCount_2").html() * 1 + 1); } //My Edelweiss Value if ($("#meVal_204").length > 0) { $("#meVal_204").html($("#meVal_204").html() * 1 + 1); } $.getJSON("/getJSONData.aspx?builder=AddToWorkList", { catalogID: catalogId }, function (data) { if (data.id == 0) { $(".worklist_" + catalogId).addClass("icon-rating-inactive-icon"); $(".worklist_" + catalogId).removeClass("icon-rating-active-icon"); $(".worklist_" + catalogId).removeClass("colorCommunity"); if ($("#value_204").length > 0) { $("#value_204").html($("#value_204").html() * 1 - 1); } } else { $(".wl_" + catalogId).attr("title", "Remove from Work List"); $(".wlText_" + catalogId).html("On Worklist"); } }); } function removeFromWorklistSimple(catalogId) { $(".worklist_" + catalogId).addClass("icon-rating-inactive-icon"); $(".worklist_" + catalogId).addClass("accFont"); $(".worklist_" + catalogId).removeClass("icon-rating-active-icon"); $(".worklist_" + catalogId).removeClass("accFont"); $(".worklist_" + catalogId).removeClass("colorCommunity"); if ($("#value_204").length > 0) { $("#value_204").html($("#value_204").html() * 1 - 1); $("#headerCount_2").html($("#headerCount_2").html() * 1 - 1); } //My Edelweiss Value if ($("#meVal_204").length > 0) { $("#meVal_204").html($("#meVal_204").html() * 1 - 1); } $.getJSON("/getJSONData.aspx?builder=RemoveFromWorklist", { catalogID: catalogId }, function (data) { if (data.code != "OK") { $(".worklist_" + catalogId).removeClass("icon-rating-inactive-icon"); $(".worklist_" + catalogId).addClass("icon-rating-active-icon"); $(".worklist_" + catalogId).addClass("colorCommunity"); if ($("#value_204").length > 0) { $("#value_204").html($("#value_204").html() * 1 + 1); } } else { $(".wl_" + catalogId).attr("title", "Add to Worklist"); $(".wlText_" + catalogId).html("Add to Worklist"); } }); } function addToWorklist(resultType, catalogNumber, catalogId) { displayMessage("Adding catalog to worklist", 1000, "300px"); $.getJSON("/getJSONData.aspx?builder=AddToWorkList", { catalogID: catalogId }, function (data) { if (data.id > 0) { $("#" + resultType + "_" + catalogNumber).remove(); $("#value_204").html($("#value_204").html() * 1 + 1); $("#value_" + resultType).html($("#value_" + resultType).html() * 1 - 1); $("#headerCount_2").html($("#headerCount_2").html() * 1 - 1); $("#resultCount_2").val($("#headerCount_2").html()); } }); } function RemoveWLItem(key, workListId, pageTag, catalogNumber, thumbType) { displayMessage("Removing catalog from worklist", 1000, "300px"); $.getJSON("/getJSONData.aspx?builder=RemoveItemFromCollection", { key: key, collectionID: workListId }, function (data) { if (data.code === "ERROR") { alert('An error occurred'); } else { if (thumbType === "204") { $("#" + thumbType + "_" + catalogNumber).remove(); $("#value_204").html($("#value_204").html() * 1 - 1); $("#headerCount_2").html($("#headerCount_2").html() * 1 - 1); $("#resultCount_2").val($("#headerCount_2").html()); var sly = new Sly('#frame' + thumbType); sly.reload(); } else { $("#addWL_" + pageTag + "_" + catalogNumber).show(); $("#removeWL_" + pageTag + "_" + catalogNumber).hide(); $("#value_204").html($("#value_204").html() * 1 - 1); } } }); } function saveShelf(sku, newShelf, shelfIcon) { var oldShelf = +$("#currentShelf_" + sku).val(); if (newShelf != oldShelf) { window.savingModal('Saving'); $.getJSON("/GetJSONData.aspx?builder=SetShelfStatus", { sku: sku, status: newShelf }, function (data) { if (data.code == "OK") { var oldShelfIcon = $("#currentShelfIcon_" + sku).val(); $(".myShelf_" + sku).removeClass(oldShelfIcon); $(".myShelf_" + sku).addClass(shelfIcon); if (oldShelf <= 0) { $(".myShelf_" + sku).removeClass("hidden"); if ($(".simpleShelf_" + sku).length > 0) { $(".simpleShelf_" + sku).show() } } if (newShelf <= 0) { $(".myShelf_" + sku).addClass("hidden"); if ($(".simpleShelf_" + sku).length > 0) { $(".simpleShelf_" + sku).hide() } } $("#currentShelf_" + sku).val(newShelf); $("#currentShelfIcon_" + sku).val(shelfIcon); closeModal(); //Update Dashboard If Appropriate var refresh = 0 if ($("#dash_1").length > 0) { var resultType = $("#selectedResult_1").val() if (oldShelf == 15 || newShelf == 15) { if (resultType == '10' || resultType == '81') { refresh = 1; } } if (oldShelf == 16 || newShelf == 16) { if (resultType == '11' || resultType == '81') { refresh = 1; } } if (oldShelf == 20 || newShelf == 20) { if (resultType == '12' || resultType == '81') { refresh = 1; } } if (oldShelf == 30 || newShelf == 30) { if (resultType == '13' || resultType == '81') { refresh = 1; } } if (oldShelf == 40 || newShelf == 40) { if (resultType == '14' || resultType == '81') { refresh = 1; } } if (oldShelf == 50 || newShelf == 50) { if (resultType == '15' || resultType == '81') { refresh = 1; } } if (refresh == 1) { window.GetDashboardValue(translateShelfToResultType(oldShelf), 0); window.GetDashboardValue(translateShelfToResultType(newShelf), 0); refreshThumbnails(resultType, 1, 10); window.ePlus.modules.dashboard.refreshWidgetsWithResultType(translateShelfToResultType(oldShelf)); window.ePlus.modules.dashboard.refreshWidgetsWithResultType(translateShelfToResultType(newShelf)); } } } else alert(data.text); }); } } function translateShelfToResultType(shelf) { switch (shelf) { case 15: return 10; case 16: return 11; case 20: return 12; case 30: return 13; case 40: return 14; case 50: return 15; } } function saveRating(sku, newRating, ratingIcon) { var oldRating = $("#currentRating_" + sku).val(); $.getJSON("/GetJSONData.aspx?builder=SetRating", { sku: sku, rating: newRating }, function (data) { if (data.code === "OK") { var oldRatingIcon = $("#currentRatingIcon_" + sku).val(); $(".myRating_" + sku).removeClass(oldRatingIcon); $(".myRating_" + sku).addClass(ratingIcon); if (oldRating <= 0) { $(".myRating_" + sku).removeClass("hidden"); if ($(".simpleRating_" + sku).length > 0) { $(".simpleRating_" + sku).show() } } if (newRating <= 0) { $(".myRating_" + sku).addClass("hidden"); if ($(".simpleRating_" + sku).length > 0) { $(".simpleRating_" + sku).hide() } } $("#currentRating_" + sku).val(newRating); $("#currentRatingIcon_" + sku).val(ratingIcon); //Update Dashboard If Appropriate var refresh = 0 if ($("#dash_1").length > 0) { var resultType = $("#selectedResult_1").val() if (oldRating == 1 || newRating == 1) { if (resultType == '80') { refresh = 1; } } if (oldRating == 2 || newRating == 2) { if (resultType == '80') { refresh = 1; } } if (oldRating == 3 || newRating == 3) { if (resultType == '80') { refresh = 1; } } if (oldRating == 4 || newRating == 4) { if (resultType == '80') { refresh = 1; } } if (refresh == 1) { refreshThumbnails(resultType, 1, 10) } } } else { alert(data.text); } }); } function enableSingleCheckbox($checkId) { if ($checkId.hasClass("box_unchecked")) { $checkId.addClass("box_checked").removeClass("box_unchecked"); } else { $checkId.addClass("box_unchecked").removeClass("box_checked box_partial_checked"); } } function enableMultipleCheckbox($checkId, commonClass) { $("." + commonClass).addClass("box_unchecked").removeClass("box_checked"); $("#" + $checkId.attr("id")).addClass("box_checked").removeClass("box_unchecked"); } function submitReview(sku) { window.savingModal('Saving'); var alertmessage = ""; var rating = $("#currentRating_" + sku).val(); if (rating <= 0) { alertmessage = "Please indicate your recommendation (This will be a more stylized alert soon)"; alert(alertmessage); closeSavingModal(); } else { $.comment = encodeURIComponent($('#userComment_' + sku).val()); var submitToPub = 0; if ($('#submit_pub').hasClass("box_checked")) { submitToPub = 1 } var submitToIndie = 0; if ($('#SubmitToIndie').hasClass("box_checked")) { submitToIndie = 1 } var submitToLibraryReads = 0; if ($('#submit_libraryReads').hasClass("box_checked")) { submitToLibraryReads = 1 } $.post("/getJSONData.aspx?builder=SaveBuyerReview", { sku: sku, rating: rating, comment: $.comment, SubmitToPub: submitToPub, SubmitToIndie: submitToIndie, submitToLibraryReads: submitToLibraryReads }, function (data) { //$("#reviewSave").addClass("hidden"); //$("#reviewClear").removeClass("hidden"); closeModal(); }, "json"); return false; } } function clearReview(sku) { if (confirm("Are you sure you want to delete this review? (nicer prompt coming soon)")) { $.getJSON("/getJSONData.aspx?builder=ClearBuyerReview", { sku: sku }, function (data) { $("#userComment_" + sku).val(""); $("#reviewSave").addClass("hidden"); $("#reviewClear").addClass("hidden"); }); } } function clearAssessment(sku) { var $dialog = $("#reviewTitleTurbo_" + sku); $dialog.trigger("showBlock", "Deleting..."); if (confirm("Are you sure you want to delete this review?")) { $.getJSON("/getJSONData.aspx?builder=ClearBuyerAssessment", { sku: sku }, function (data) { $dialog.trigger("hideBlock"); $(".love_" + sku).addClass("icon-heart-o") $(".love_" + sku).removeClass("icon-heart") $(".love_" + sku).addClass("muchLoveOpen") $(".love_" + sku).removeClass("muchLoveFull") if ($(".myRating_" + sku).length > 0) { $(".myRating_" + sku).html(-1); $(".myRating_" + sku).addClass("hidden"); if (window.items && window.sortrefine) { if (getListViewProperty("itemType") != 50) { window.sortrefine[window.items.indexOf(sku)].PersonalReviews = 0; getRefineNumbers(); } } } incrementQHeadCount(20, -1); //If displayed, update the "Downloaded, Not Reviewed" resultType bubble if ($("#value_17").length > 0) { window.GetDashboardValue(17, 0, 0); } if ($(".simpleRating_" + sku).length > 0) { $(".simpleRating_" + sku).hide() } if ($("#dash_1").length > 0) { var resultType = $("#selectedResult_1").val(); if (resultType == '104') { refreshThumbnails(resultType, 1, 10) } } if ($(".reviewBlock_" + sku).length > 0) { $(".reviewBlock_" + sku).html(""); $(".assessment_" + sku).html("-"); $(".reviewTime_" + sku).html('Today'); } $dialog.trigger("close"); }); } } function showModalReview_User(userId, sku) { $("#container-modalWrap").show(); $('html, body').css("overflow", "hidden"); $("#modal-bbyf").show(); $("#modal-bbyf").css("width", "700px"); $("#modal-bbyf").html('<div style="padding:20px;height:300px;"><div><div id="modalReview"></div></div>'); var htmlString = "<div style='float:left;'><img src='" + $("#hiddenJacket_" + sku).val() + "' /></div>"; htmlString += "<div style='float:left;padding-left:20px;width:490px;'>"; htmlString += "<div style='clear:both;'>" + $("#userSummary_" + userId).html() + "</div>"; htmlString += "<div class='textMedium' style='clear:both;margin-top:5px;'>" + $("#rating_" + userId + "_" + sku).html() + "</div>"; htmlString += "<div class='textMedium' style='clear:both;height:200px;overflow:auto;margin-top:20px;'>" + $("#fullReview_" + userId + "_" + sku).val() + "</div>"; htmlString += "</div><div style='clear:both;'></div>"; $("#modalReview").html(htmlString); $("#modal-bbyf").html($("#modal-bbyf").html() + '<div style="background-color: white; text-align: center; font-size: 12px;border-top:1px solid #D2D6D8;cursor:pointer;" onclick="javascript:closeHomepageDialog()">Close</div>'); } function closeHomepageDialog() { $("#container-modalWrap").hide(); $("#modal-bbyf").hide(); $("#modal-bbyf").css("top", "200px"); $("#modal-bbyf").css("left", "0"); $("#modal-bbyf").css("right", "0"); $("#modal-bbyf").css("bottom", null); $("#modal-bbyf").css("width", null); $('html, body').css({ 'overflow': 'auto', 'height': 'auto' }); if ($("#titleFocus").css("display") !== "none") { $("#titleFocus").hide(); } } function displayMessage(messageText, autoTime, width) { $("#container-modalWrap").show(); $('html, body').css("overflow", "hidden"); $("#modal-bbyf").css("width", width); $("#modal-bbyf").show(); $("#modal-bbyf").html("<div style='padding:30px;'>" + messageText + "</div>"); if (autoTime > 0) { setTimeout(function () { closeHomepageDialog(); }, autoTime); } } function showIllustrations(sku, itemNumber) { $('#intImage_1_' + sku).show(); $('#intImage_0_' + sku).hide(); if ($('#TitleView_illustrations' + itemNumber).attr("data-status") == 0) { populateIllustrations(sku, itemNumber, $(".standardTitleFrame").width()); } } function populateTitles(resultType, dashboardType, itemCount, divHeight, dashCount) { savingModalOverlay('Loading', "dashboardFrame" + dashboardType); $.url = "/GetTreelineControl.aspx?controlName=/uc/thumbviews/ThumbScrollSlick.ascx&dashCount=" + dashCount + "&divHeight=" + divHeight + "&itemCount=" + itemCount + "&resultType=" + resultType + "&displayType=1&dashboardType=" + dashboardType; $("#dashTitles_" + dashboardType).load($.url); } function populateReviews(resultType, dashboardType, itemCount, divHeight, dashCount) { savingModalOverlay('Loading', "dashboardFrame" + dashboardType); $.url = "/GetTreelineControl.aspx?controlName=/uc/thumbviews/ThumbScrollSlick.ascx&dashCount=" + dashCount + "&divHeight=" + divHeight + "&itemCount=" + itemCount + "&resultType=" + resultType + "&displayType=50&dashboardType=" + dashboardType; $("#dashTitles_" + dashboardType).load($.url); } function populateTitles_TagVariant(resultType, dashboardType, tag) { savingModalOverlay(window.loadingText, "dashboardFrame" + dashboardType); $.url = "/GetTreelineControl.aspx?controlName=/uc/thumbviews/ThumbScrollSlick.ascx&divHeight=280&tag=" + tag + "&resultType=" + resultType + "&dashboardType=" + dashboardType + "&displayType=1"; $("#dashTitles_" + dashboardType).load($.url); } function populateCatalogs(resultType, dashboardType, divHeight, dashCount, callback) { if (divHeight < 280) { divHeight = 280; } savingModalOverlay('Loading', "dashboardFrame" + dashboardType); $.url = "/GetTreelineControl.aspx?controlName=/uc/thumbviews/ThumbScrollSlick.ascx&dashCount=" + dashCount + "&divHeight=" + divHeight + "&resultType=" + resultType + "&displayType=0&dashboardType=" + dashboardType; $("#dashTitles_" + dashboardType).load($.url, callback); } function populateCatalogsList(resultType, dashboardType, divHeight, dashCount) { if (divHeight < 280) { divHeight = 280; } savingModalOverlay('Loading', "dashboardFrame" + dashboardType); $.url = "/GetTreelineControl.aspx?controlName=/uc/thumbviews/ThumbList.ascx&dashCount=" + dashCount + "&divHeight=" + divHeight + "&resultType=" + resultType + "&displayType=0&dashboardType=" + dashboardType; $("#dashTitles_" + dashboardType).load($.url); } function populateCatalogs_TagVariant(resultType, dashboardType, tag) { var creator = "" if ($("#tagCreator").val() != "") { creator = "&creator=" + encodeURI($("#tagCreator").val()) } savingModalOverlay('Loading', "dashboardFrame" + dashboardType); $.url = "/GetTreelineControl.aspx?controlName=/uc/thumbviews/ThumbScrollSlick.ascx&divHeight=280&tag=" + tag + "&resultType=" + resultType + "&displayType=0&dashboardType=" + dashboardType + creator; $("#dashTitles_" + dashboardType).load($.url); } function populatePublishers(resultType, dashboardType, dashCount) { $("#dashTitles_" + dashboardType).html('<div style="height:235px;overflow: hidden;"><div id="loadMessage_' + dashboardType + '" style="margin-top: 30px; height: 50px;padding-left:40px;">Loading Publishers...</div></div>'); $.url = "/GetTreelineControl.aspx?controlName=/uc/thumbviews/ThumbScroll.ascx&divHeight=183&dashCount=" + dashCount + "&thumbHeight=80&resultType=" + resultType + "&displayType=2&dashboardType=" + dashboardType; $("#dashTitles_" + dashboardType).load($.url); } function populatePeople(resultType, dashboardType, dashCount) { savingModalOverlay('Loading', "dashboardFrame" + dashboardType); $.url = "/GetTreelineControl.aspx?controlName=/uc/thumbviews/ThumbScrollSlick.ascx&dashCount=" + dashCount + "&thumbHeight=80&resultType=" + resultType + "&displayType=3&dashboardType=" + dashboardType; $("#dashTitles_" + dashboardType).load($.url); } function populateOrders(resultType, dashboardType, dashCount) { savingModalOverlay('Loading', "dashboardFrame" + dashboardType); $.url = "/GetTreelineControl.aspx?controlName=/uc/thumbviews/ThumbScrollSlick.ascx&dashCount=" + dashCount + "&thumbHeight=80&resultType=" + resultType + "&displayType=4&dashboardType=" + dashboardType $("#dashTitles_" + dashboardType).load($.url); } function populatePubilicityCampaigns(resultType, dashboardType, dashCount) { var thumbHeight = 80 savingModalOverlay('Loading', "dashboardFrame" + dashboardType); $.url = "/GetTreelineControl.aspx?controlName=/uc/thumbviews/ThumbScrollSlick.ascx&dashCount=" + dashCount + "&thumbHeight=" + thumbHeight + "&resultType=" + resultType + "&displayType=12&dashboardType=" + dashboardType $("#dashTitles_" + dashboardType).load($.url); } function populateFixedJackets(catalogId, thumbHeight) { $("#jackets_" + catalogId).html('<div style="overflow: hidden;"><div style="margin-top: 30px; height: 50px;padding-left:40px;">Loading Titles...</div></div>') $.url = "/GetTreelineControl.aspx?controlName=/uc/thumbviews/ThumbFixed.ascx&thumbHeight=" + thumbHeight + "&catalogID=" + catalogId + "&resultType=31&displayType=1" $("#jackets_" + catalogId).load($.url); } function populateFixedJackets_People(resultType, userId) { $.url = "/GetTreelineControl.aspx?controlName=/uc/thumbviews/ThumbFixed.ascx&thumbHeight=110&userID=" + userId + "&resultType=" + resultType + "&displayType=1" $("#jackets_" + resultType + "_" + userId).load($.url); } function populateFixedCovers(resultType, orgId) { $("#covers_" + resultType + "_" + orgId).html('<div style="overflow: hidden;"><div style="margin-top: 30px; height: 50px;padding-left:40px;">Loading Catalogs...</div></div>') $.url = "/GetTreelineControl.aspx?controlName=/uc/thumbviews/ThumbFixed.ascx&thumbHeight=110&orgID=" + orgId + "&resultType=" + resultType + "&displayType=0" $("#covers_" + resultType + "_" + orgId).load($.url); } function renderCompDetail(sku, source, view, mailingID) { window.savingModalOverlay('Loading', "compHolder_" + source + "_" + sku) $.url = "/GetTreelineControl.aspx?controlName=/uc/product/CompsBasicDetailGrid.ascx&sku=" + sku + "&source=" + source + "&mailingID=" + mailingID; $(".compHolder_" + source + "_" + sku).load($.url, function () { window.closeSavingModalOverlay("compHolder_" + source + "_" + sku) $(".compHolder_" + source + "_" + sku).show(); $(".noCompHolder_" + source + "_" + sku).hide(); if ($("#compsFor_" + sku).length > 0 && window.hasPosData) { var options = { skuList: $("#compsFor_" + sku).val(), rowClass: sku, selectedOrgId: getListViewProperty("selectedOrgID"), gridType: 'single' }; loadCompAnalytics(options); } }); } function reloadDashboard(dashboardType) { $("#dashboard_" + dashboardType).html('<div style="height:170px;overflow: hidden;"><div style="margin-top: 30px; height: 50px;padding-left:40px;">Loading...</div></div>'); $.url = "/GetTreelineControl.aspx?controlName=/uc/dashboard/Dashboard.ascx&dashboardType=" + dashboardType; $("#dashboard_" + dashboardType).load($.url); } function populateWelcomeTitles(resultType, itemCount) { $("#welcomeScroll").html('<div style="height:170px;overflow: hidden;"><div style="margin-top: 30px; height: 50px;padding-left:40px;">Loading Titles...</div></div>'); $.url = "/GetTreelineControl.aspx?controlName=/uc/thumbviews/ThumbScroll.ascx&thumbHeight=130&itemCount=" + itemCount + "&resultType=" + resultType + "&displayType=title"; $("#welcomeScroll").load($.url); } function showNoteDetail(sku) { $("#noteWidget" + sku).html('<div style="height:200px;background:#E9EBEC;width:515px;overflow: hidden;"><div style="margin-top: 200px; height: 50px;padding-left:40px;">Loading...</div></div>'); $.url = "/GetTreelineControl.aspx?controlName=/uc/product/ProductNotes.ascx&sku=" + sku; $("#noteWidget" + sku).load($.url); animateUp("noteWidget" + sku); } function showDisplayNote(sku) { $.url = "/GetTreelineControl.aspx?controlName=/uc/product/two_Notes.ascx&reload=1&sku=" + sku; $("#displayNote" + sku).load($.url); } function animateDown(controlDiv) { var div = $("#" + controlDiv); var height = div.height(); div.css({ overflow: "hidden", marginTop: 0, height: height }).animate({ marginTop: height, height: 0 }, 1000, function () { $(this).css({ display: "none", overflow: "", height: "", marginTop: "" }); }); } function animateUp(controlDiv) { var div = $("#" + controlDiv + ":not(:visible)"); var height = div.css({ display: "block" }).height(); div.css({ overflow: "hidden", marginTop: height, height: 0 }).animate({ marginTop: 0, height: height }, 1000, function () { $(this).css({ display: "", overflow: "", height: "", marginTop: "" }); }); } function openListViewTags(sku, displayOnly, focusOn) { if ($("#curTags_" + sku).html() != "" && $("#curTags_" + sku).html() != 'Loading' && $(".myTags_" + sku).html() * 1 == 0 && $(".orgTags_" + sku).length == 0) { $("#curTags_" + sku).html("") } else { if ($("#curTags_" + sku).html() == "") { $("#curTags_" + sku).html("Loading"); } $.url = "/GetTreelineControl.aspx?controlName=/uc/controls/tagTitleInline.ascx&sku=" + sku + "&displayOnly=" + displayOnly + "&focusOn=" + focusOn; $("#curTags_" + sku).load($.url); } } function openListViewNote(sku) { $.getJSON("/getJSONData.aspx?builder=GetOrgNote", { sku: sku }, function (data) { if (data.data == "SUCCESS") { if (data.text == "" || data.text == undefined) { data.text = ""; data.obj = ""; } $("#curNote_" + sku).html("<div class='notes-tags-label'>Note</div><div class='notes-tags-content'><div id='curNoteText_" + sku + "' class='notes-tags-editable personal-note'>" + data.text + "</div><p class='no-margin'>" + data.obj + "</p><textarea id='curNoteEditor_" + sku + "' style='display:none;'>" + data.text + "</textarea></div>"); } }, "json"); } function openListViewAccountNotes(skus) { if (!_.isArray(skus)) { return; } var postParams = JSON.stringify(skus); var selectedOrgId = getListViewProperty("selectedOrgID"); if (!ePlus.modules.org.isValidOrgId(selectedOrgId)) { for (var i = 0, max = skus.length; i < max; i++) { $("#curAccountNote_" + skus[i]).html(""); } } else { $.ajax({ type: "POST", data: postParams, cache: false, url: "api/me/notes/accounts/" + selectedOrgId, contentType: "application/json", success: function (data) { var selectedAccountName = $("#selectedAccountName").text().trim(); if (selectedAccountName && selectedAccountName.length > 0) { selectedAccountName += " Notes"; } var defaultLabel = "Account Notes"; for (var i = 0, max = skus.length; i < max; i++) { if (data[skus[i]]) { var notesText = buildAccountNotes(data[skus[i]]); $("#curAccountNote_" + skus[i]) .html("<div class='notes-tags-label'>" + (selectedAccountName || defaultLabel) + "</div><div class='notes-tags-content'>" + notesText + '</div>'); } else { $("#curAccountNote_" + skus[i]).html(""); } } } }); } } function openListViewAccountTags(skus) { if (!_.isArray(skus)) { return; } var postParams = JSON.stringify(skus); var selectedOrgId = getListViewProperty("selectedOrgID"); if (!ePlus.modules.org.isValidOrgId(selectedOrgId)) { for (var i = 0, max = skus.length; i < max; i++) { $("#account-shared-tags-" + skus[i]).html(""); } } else { $.ajax({ type: "POST", data: postParams, url: "api/me/orgtags/accounts/" + selectedOrgId, contentType: "application/json", success: function (data) { var selectedAccountName = $("#selectedAccountName").text().trim(); if (selectedAccountName && selectedAccountName.length > 0) { selectedAccountName += " Tags"; } var defaultLabel = "Account Tags"; for (var i = 0, max = skus.length; i < max; i++) { if (data[skus[i]]) { var tagsHtml = buildAccountTags(data[skus[i]]); $("#account-shared-tags-" + skus[i]) .html("<div class='notes-tags-label'>" + (selectedAccountName || defaultLabel) + "</div><div class='notes-tags-content shared-tag-container'>" + tagsHtml + '</div>'); } else { $("#account-shared-tags-" + skus[i]).html(""); } } } }); } } function buildAccountTags(tags) { var tagInnerHtml = _.reduce(tags, function (html, tag) { var nameString = ''; if (tag.firstName && tag.lastName && _.size(tag.firstName.trim()) > 0 && _.size(tag.lastName.trim()) > 0) { nameString = ' (' + tag.firstName.substring(0, 1) + '. ' + tag.lastName + ')'; } return html + '<li class="colleagueTag-tag colleague-tag-text">' + tag.value + nameString + '</li>'; }, ""); return '<ul class="colleagueTag">' + tagInnerHtml + '</ul>'; } function buildAccountNotes(notes) { var notesText = ""; for (var i = 0; i < notes.length; i++) { notesText += notes[i].text + " "; } return notesText; } function goToAnalyticsHome(dashboardType, subDash) { pageChange("analytics=" + dashboardType + "&subDash=" + subDash); } function isAnalyticsRowsUsed() { return parseInt(getListViewProperty("dashboardType")) === parseInt(getEnumValue("dashType", "LA_HOME")) || parseInt(getListViewProperty("listType")) === parseInt(getEnumValue("listType", "ANALYSISOFTITLESET")); } function getSelectedItems() { var rows = isAnalyticsRowsUsed() ? EdelweissAnalytics.rows : window.rows; var arr = []; for (var i = 0; i < rows.length; i++) { if (rows[i].selected == 1) { arr.push(rows[i].item); } } return arr; } function getSelectedItemsIntoString() { var rows = isAnalyticsRowsUsed() ? EdelweissAnalytics.rows : window.rows; var selectedItems = getSelectedItems(); return _.join(selectedItems, ','); } function getItemsWithClass(classToCheck, classToCheckFor, attributeToRetrieve) { var arr = new Array(); $("." + classToCheck + "." + classToCheckFor).each(function (i, obj) { arr[arr.length] = $(this).attr(attributeToRetrieve); }); return arr; } function getItemsWithClassIntoString(classToCheck, classToCheckFor, attributeToRetrieve) { var result = ""; $("." + classToCheck + "." + classToCheckFor).each(function (i, obj) { if (result != "") { result += ","; } result += $(this).attr(attributeToRetrieve); }); return result; } function getItemsWithClassAndAttributeIntoString(classToCheck, classToCheckFor, attributeToCheckFor, attributeValue, attributeToRetrieve) { var result = ""; var $element = $("." + classToCheck + "." + classToCheckFor) $element.each(function (i, obj) { if ($(this).attr(attributeToCheckFor) == attributeValue) { if (result != "") { result += ","; } result += $(this).attr(attributeToRetrieve); } }); return result; } //The function to open and close the 'Content' link in the moreTitleInfo.ascx page function ToggleContentReference(id, sku, mode) { if (mode == 1 && (!$('#' + id).is(":hidden"))) { //Show all when the overall content page is shown already $(".expandContent").show() $('#' + id + '-plus-arrow').hide(); } else { $('#' + id + '-plus-arrow').show(); $('#' + id).toggle(); if (!$('#' + id).is(":hidden")) { $('#' + id + '-arrow').removeClass("icon-drop-down-icon"); $('#' + id + '-arrow').addClass("icon-drop-up-icon-01"); $.url = "/GetTreelineControl.aspx?controlName=/uc/product/two_Enhanced.ascx&sku=" + sku + "&idPrefix=" + id + "&mode=" + mode; $('#' + id).load($.url); if (mode == 1) { $('#' + id + '-plus-arrow').hide(); } } else { $('#' + id + '-arrow').addClass("icon-drop-down-icon"); $('#' + id + '-arrow').removeClass("icon-drop-up-icon-01"); $(".expandContent").hide() } } } function HideContentReference() { $('.content_plus_arrow').show(); $('.content_arrow').addClass("icon-drop-down-icon"); $('.content_arrow').removeClass("icon-drop-up-icon-01"); $('.titleContentDiv').hide(); } function ShowContentReference(id, sku, mode) { if (mode == 1 && (!$('#' + id).is(":hidden"))) { //Show all when the overall content page is shown already $(".expandContent").show() $('#' + id + '-plus-arrow').hide(); } else { if ($('#' + id).is(":hidden")) { $('#' + id).toggle(); $('#' + id + '-plus-arrow').show(); $('#' + id + '-arrow').removeClass("icon-drop-down-icon"); $('#' + id + '-arrow').addClass("icon-drop-up-icon-01"); $.url = "/GetTreelineControl.aspx?controlName=/uc/product/two_Enhanced.ascx&sku=" + sku + "&idPrefix=" + id + "&mode=" + mode; $('#' + id).load($.url); if (mode == 1) { $('#' + id + '-plus-arrow').hide(); } } } } //The function to open and close the 'Content' link in the moreTitleInfo.ascx page function ToggleRelatedProduct(id, sku) { $('#' + id + '-plus-arrow').show(); $('#' + id).toggle(); if (!$('#' + id).is(":hidden")) { $('#' + id + '-arrow').removeClass("icon-drop-down-icon"); $('#' + id + '-arrow').addClass("icon-drop-up-icon-01"); reloadRelatedProduct(id, sku); } else { $('#' + id + '-arrow').addClass("icon-drop-down-icon"); $('#' + id + '-arrow').removeClass("icon-drop-up-icon-01"); //$(".expandContent").hide() } } function reloadRelatedProduct(id, sku) { $('#related-titles-locations-count').webuiPopover('destroy'); $.url = "/GetTreelineControl.aspx?controlName=/uc/product/RelatedBasic.ascx"; var params = $.param({ sku: sku, idPrefix: id, mailingId: getListViewProperty("selectedMailingID"), selectedStoreIds: getRelatedProductsSelectedStores(sku) }) $('#' + id).load($.url, params); } function getRelatedProductsSelectedStores(sku) { var storeIdsInputValue = $('#selected-store-id-' + sku).val(); return storeIdsInputValue && storeIdsInputValue.length ? storeIdsInputValue : ''; } //The function to open and close the 'Content' link in the moreTitleInfo.ascx page function ToggleComps(id, sku, isPublisherCompsVisible) { $('#' + id + '-plus-arrow').show(); $('#' + id).toggle(); if (!$('#' + id).is(":hidden")) { $('#' + id + '-arrow').removeClass("icon-drop-down-icon"); $('#' + id + '-arrow').addClass("icon-drop-up-icon-01"); var mailingId = getListViewProperty("selectedMailingID"); if (!mailingId) { mailingId = getHashValue("mailingID"); } $.url = "/GetTreelineControl.aspx?controlName=/uc/product/CompsBasic.ascx&sku=" + sku + "&idPrefix=" + id + "&mailingID=" + mailingId + (isPublisherCompsVisible !== undefined ? "&isPublisherCompsVisible=" + isPublisherCompsVisible : ""); $('#' + id).load($.url); } else { $('#' + id + '-arrow').addClass("icon-drop-down-icon"); $('#' + id + '-arrow').removeClass("icon-drop-up-icon-01"); //$(".expandContent").hide() } } //The function to open and close the 'Content' link in the moreTitleInfo.ascx page function ToggleReferences(id, sku, orgId, catalogId, pubOrgId, cms) { $('#' + id + '-plus-arrow').show(); $('#' + id).toggle(); if (!$('#' + id).is(":hidden")) { $('#' + id + '-arrow').removeClass("icon-drop-down-icon"); $('#' + id + '-arrow').addClass("icon-drop-up-icon-01"); $.url = "/GetTreelineControl.aspx?controlName=/uc/product/lookup/ProductLookup.ascx" + "&sku=" + sku + "&idPrefix=" + id + "&orgID=" + orgId + "&catalogID=" + catalogId + "&pubOrgId=" + pubOrgId + "&cms=" + cms; $('#' + id).load($.url); } else { $('#' + id + '-arrow').addClass("icon-drop-down-icon"); $('#' + id + '-arrow').removeClass("icon-drop-up-icon-01"); //$(".expandContent").hide() } } function showIntImage(sku) { $("#intImage_0_" + sku).hide(); $("#intImage_1_" + sku).show(); } function hideIntImage(sku) { $("#intImage_0_" + sku).show(); $("#intImage_1_" + sku).hide(); } function ShowComps(id, sku, isPublisherCompsVisible) { var mailingId = getListViewProperty("selectedMailingID"); if ($('#' + id).is(":hidden")) { $('#' + id + '-plus-arrow').show(); $('#' + id).toggle(); $('#' + id + '-arrow').removeClass("icon-drop-down-icon"); $('#' + id + '-arrow').addClass("icon-drop-up-icon-01"); $.url = "/GetTreelineControl.aspx?controlName=/uc/product/CompsBasic.ascx&sku=" + sku + "&idPrefix=" + id + "&mailingID=" + mailingId + (isPublisherCompsVisible !== undefined ? "&isPublisherCompsVisible=" + isPublisherCompsVisible : ""); $('#' + id).load($.url); } } function HideComps() { $('.comps_arrow').addClass("icon-drop-down-icon"); $('.comps_arrow').removeClass("icon-drop-up-icon-01"); $('.titleCompsDiv').hide(); } function AddCompTitleToMarkup(sku, compSkusStr, _, options) { showMultiModalLoadingAnimation('comp-search-results-' + sku, getRes('saving')); var mailingId = getListViewProperty("selectedMailingID"); var url = "api/products/" + sku + "/comps"; var data = { comparableProductSkus: compSkusStr.split(','), markupId: mailingId }; $.ajax({ type: "POST", url: url, contentType: "application/json", data: JSON.stringify(data) }).done(function () { if ($(".cbd").length == 0) { renderCompDetail(sku, 0, 0, mailingId); } else { renderCompDetail(sku, 0, 1, mailingId); } $(".comp-add-" + compSkusStr + "-to-" + sku).hide(); closeCompSearch(sku); if (options && typeof options.onSuccess === "function") { options.onSuccess(); } }).fail(function (xhr) { alertXhrResponse(xhr); }); } function AddPublisherCompTitle(sku, compSkusStr, sourceOrgId, options) { showMultiModalLoadingAnimation('comp-search-results-' + sku, getRes('saving')); var compSkus = compSkusStr.split(','); var url = 'api/products/' + sku + '/comps/type/publisher'; var data = { sourceOrgId: sourceOrgId, comparableProductSkus: compSkus }; $.ajax({ type: 'POST', url: url, contentType: 'application/json', data: JSON.stringify(data) }).done(function () { var compsAddedCount = compSkus.length; var currentCompsCount = 0; if ($("#modal_7-count").length) { currentCompsCount = parseInt($("#modal_7-count").html(), 10); } $("#modal_7-count").html(currentCompsCount + compsAddedCount); closeCompSearch(sku); ePlus.modules.listViewTitleRow.setTitleBlockerStatus(true); if (options && typeof options.onSuccess === "function") { options.onSuccess(); } }).fail(function (xhr) { alertXhrResponse(xhr); }); } function openAnalyticsListViewHeaders(header, dashType) { if ($('#popover_' + header).css("display") == "none") { $('.pop_menu').slideUp(); var detailListPosition = $('#detailList_' + dashType).position(); var listTop = detailListPosition.top; $('#popover_analyticsListView_block').css( { top: listTop }); $('#popover_analyticsListView_block').show(); if (header == 'actions') { $('#popover_' + header + '_arrow').css("left", $("#ic_" + header).position().left * 1 + 8 + "px"); } else { $('#popover_' + header + '_arrow').css("left", "17px"); $('#popover_' + header).css("left", $("#ic_" + header).position().left * 1 - 8 + "px"); } $('#popover_' + header).slideDown(); } } function closeListViewHeaders(header) { $('#popover_' + header).slideUp(); $('#popover_listView_block').hide(); } //The functions to open and close the catalog hovers function openCatalogHover(selectedControl, hoverContent) { createCatalogHover(selectedControl, hoverContent); var o1 = $("." + selectedControl).position(); var left = o1.left - 1; var top = o1.top; var controlWidth = $("." + selectedControl).width() * 1; $("#pop_arrow").css("left", left * 1 + controlWidth / 2 - 7 + "px"); $("#pop_arrow").css("left", "90%"); $("#popFrame").css("top", top + 20 + "px"); //$("#pop_content").html(decodeURI(hoverContent)); $("#popFrame").slideDown(); } function createCatalogHover(selectedControl, hoverContent) { try { $("#popFrame").remove(); var dHTML = '<div id="popFrame" class="socialMainPop" style="position: absolute; display: none; z-index: 91002;left:0;right:0;">'; dHTML += '<div id="pop_arrow" class="hover_top_arrow" style="left: 150px;"></div>'; dHTML += '<div id="pop_content" class="popover_content bgdHelp overallStyles textMedium" style="cursor: pointer;font-weight:normal;padding: 15px;color:#fff;">' + decodeURI(hoverContent) + '</div></div>'; $("." + selectedControl).after(dHTML); } catch (err) { alert('here') } } function closeCatalogHover() { $("#popFrame").remove(); } //The functions to open and close the menus on the Action Strip function initializeHover(elem, text) { $("." + elem).mouseout(function () { window.closeHover(); }).mouseover(function () { window.openHover(elem, text); }); } function deleteCollections(collectionIds) { var message = "Are you sure you want to delete these collections?"; modalConfirm({ message: message, width: "400px", height: "200px", buttons: { "Yes": function () { var data = { collectionIds: collectionIds.join(',') }; $.post("/getJSONData.aspx?m=Collection&builder=DeleteCollections", data, function (response) { if (response.code == "OK") { goToCollections(); } }, "json"); closeModal(); }, "No": function () { closeModal(); } } }); } function deleteCollection(collectionID) { var message = "Are you sure you want to delete this collection?"; modalConfirm({ message: message, width: "400px", height: "200px", buttons: { "Yes": function () { $.post("/getJSONData.aspx?m=Collection&builder=DeleteCollection", { collectionID: collectionID }, function (data) { if (data.code == "OK") { goToCollections(); } }, "json"); closeModal(); }, "No": function () { closeModal(); } } }); } function addNewCollection() { window.savingModal('Saving'); var collectionValues = { collectionName: $("#collectionName").val(), collectionOverview: $("#collectionOverview").val() }; $.post("/getJSONData.aspx?builder=CreateNewUserCollection", collectionValues, function (data3) { if (data3.code == "SUCCESS") { var catalogId = data3.data; pageChange('catalogID=' + catalogId); closeModal(); } }, "json"); } function matchTitlesToCollections(sku, priorities, compTitles, markupNotes, tags, mailingId, doEditCollection) { //Get Catalogs In and Catalogs Out var collections_In = getItemsWithClassIntoString('addCollectionOption', 'box_checked', 'catalogID'); var markups; var catalogs = { collections_In: collections_In }; var doCopyPriorities = $(priorities).hasClass('box_checked'); var doCopyCompTitles = $(compTitles).hasClass('box_checked'); var doCopyMarkupNotes = $(markupNotes).hasClass('box_checked'); var doCopyTags = $(tags).hasClass('box_checked'); if (doCopyPriorities || doCopyCompTitles || doCopyMarkupNotes || doCopyTags) { $.getJSON("/getJSONData.aspx?builder=GetMarkupsFromCatalogID", catalogs, function (data) { if (data.code == "SUCCESS") { markups = data.data; openSelectMarkupsModal(markups, sku, mailingId, "Please select which markups to override in each collection."); } else if (data.code == "NOSELECTION") { AddToOrRemoveFromCollection(sku, priorities, compTitles, markupNotes, tags, mailingId, false, false, doEditCollection); } }); } else { AddToOrRemoveFromCollection(sku, priorities, compTitles, markupNotes, tags, mailingId, false, false, doEditCollection); } } function AddToOrRemoveFromCollection(sku, priorities, compTitles, markupNotes, tags, mailingId, doCloseModalFirst, doRemove, doEditCollection) { if (doCloseModalFirst) { closeModal(); } window.savingModal('Saving'); var collections_In = getItemsWithClassIntoString('addCollectionOption', 'box_checked', 'catalogID'); var collections_Out = []; if (doRemove) { collections_Out = collections_In; collections_In = []; } var targetMailingIds = getItemsWithClassIntoString('markupSelectionOption', 'box_checked', 'data-mailingId'); var doCopyPriorities = $(priorities).hasClass('box_checked'); var doCopyCompTitles = $(compTitles).hasClass('box_checked'); var doCopyMarkupNotes = $(markupNotes).hasClass('box_checked'); var doCopyTags = $(tags).hasClass('box_checked'); var mode = "singleTitle"; if (sku == "All") { skuList = getSelectedItems(); skuList = skuList.join(","); mode = "multipleTitle"; } else { skuList = sku; } if ($("#createNewCollection").hasClass("box_checked") && $("#collectionName").val() != "" && !doRemove) { var collectionValues = { collectionName: $("#collectionName").val(), collectionOverview: $("#collectionOverview").val() }; $.post("/getJSONData.aspx?builder=CreateNewUserCollection", collectionValues, function (data3) { if (data3.code == "SUCCESS") { collections_In += "," + data3.data; var values = { CatalogsIn: collections_In, CatalogsOut: collections_Out, targetMailingIds: targetMailingIds, skus: skuList, doCopyPriorities: doCopyPriorities, doCopyCompTitles: doCopyCompTitles, doCopyMarkupNotes: doCopyMarkupNotes, doCopyTags: doCopyTags, sourceMailingID: mailingId }; $.post("/getJSONData.aspx?builder=AddToCollection", values, function (data2) { if (data2.code == "SUCCESS") { var collectionInfo = getCollectionInfoIfAddedToSingleCollection(collections_In); closeSavingModal(); closeModal(); if (mode == "singleTitle") { $(".myCollections_" + sku).html(data2.data); if (data2.data > 0) { if (!$(".myCollections_" + sku).hasClass("hidden")) { $(".myCollections_" + sku).show(); } if ($(".simpleCollections_" + sku).length > 0) { $(".simpleCollections_" + sku).show() } } else { $(".myCollections_" + sku).hide(); if ($(".simpleCollections_" + sku).length > 0) { $(".simpleCollections_" + sku).hide() } } if (doEditCollection) { goToEditCollection(collectionInfo); } } else { //Loop Through and Replace values in myCollections for each visible SKU $.post("/getJSONData.aspx?builder=RefreshCollectionTotals", { skus: skuList }, function (data) { if (data && data.length) { for (var i = 0; i < data.length; i++) { if ($(".myCollections_" + data[i].text).length > 0) { $(".myCollections_" + data[i].text).html(data[i].data); if (data[i].data > 0) { if (!$(".myCollections_" + data[i].text).hasClass("hidden")) { $(".myCollections_" + data[i].text).show(); } if ($(".simpleCollections_" + data[i].text).length > 0) { $(".simpleCollections_" + data[i].text).show() } } else { $(".myCollections_" + data[i].text).hide(); if ($(".simpleCollections_" + data[i].text).length > 0) { $(".simpleCollections_" + data[i].text).hide() } } } } } if (doEditCollection) { goToEditCollection(collectionInfo); } }, "json"); } } else { closeSavingModal(); alert(data2.text); } }, "json"); } }, "json"); } else { var values = { CatalogsIn: collections_In, CatalogsOut: collections_Out, targetMailingIds: targetMailingIds, skus: skuList, doCopyPriorities: doCopyPriorities, doCopyCompTitles: doCopyCompTitles, doCopyMarkupNotes: doCopyMarkupNotes, doCopyTags: doCopyTags, sourceMailingID: mailingId }; $.post("/getJSONData.aspx?builder=AddToCollection", values, function (data) { if (data.code == "SUCCESS") { var collectionInfo = getCollectionInfoIfAddedToSingleCollection(collections_In); closeModal(); closeSavingModal(); if (mode == "singleTitle") { $(".myCollections_" + sku).html(data.data); if (data.data > 0) { if (!$(".myCollections_" + sku).hasClass("hidden")) { $(".myCollections_" + sku).show(); } if ($(".simpleCollections_" + sku).length > 0) { $(".simpleCollections_" + sku).show() } } else { $(".myCollections_" + sku).hide(); if ($(".simpleCollections_" + sku).length > 0) { $(".simpleCollections_" + sku).hide() } } if (doEditCollection) { goToEditCollection(collectionInfo); } } else { //Loop Through and Replace values in myCollections for each visible SKU $.post("/getJSONData.aspx?builder=RefreshCollectionTotals", { skus: skuList }, function (data) { if (data && data.length) { for (var i = 0; i < data.length; i++) { if ($(".myCollections_" + data[i].text).length > 0) { $(".myCollections_" + data[i].text).html(data[i].data); if (data[i].data > 0) { if (!$(".myCollections_" + data[i].text).hasClass("hidden")) { $(".myCollections_" + data[i].text).show(); } if ($(".simpleCollections_" + data[i].text).length > 0) { $(".simpleCollections_" + data[i].text).show() } } else { $(".myCollections_" + data[i].text).hide(); if ($(".simpleCollections_" + data[i].text).length > 0) { $(".simpleCollections_" + data[i].text).hide() } } } } } if (doEditCollection) { goToEditCollection(collectionInfo); } }, "json"); } } else { closeSavingModal(); alert(data.text); } }, "json"); } } // Presentation Mode Functions function changePresentationImage(pageNumber, sku) { $(".presNav" + sku).removeClass("extraBold"); var activeFrame = $(".activeFrame" + sku).html(); var inactiveFrame = $(".inactiveFrame" + sku).html(); var imagePath = $(".presentationImagePath" + sku).html(); $(".pictureFrame" + sku + inactiveFrame).css("background-image", "url('" + imagePath + $('.presentationPage' + sku + pageNumber).html() + "?height=450')"); $(".pr_selectedPage" + sku).html(pageNumber); $('.pictureFrame' + sku + activeFrame).fadeOut(1, function () { $('.pictureFrame' + sku + inactiveFrame).fadeIn(100); $(".activeFrame" + sku).html(inactiveFrame); $(".inactiveFrame" + sku).html(activeFrame); }); $(".presNav" + sku + pageNumber).addClass("extraBold"); } function focusNext(sku) { var focusSection = $(".pr_selectedPage" + sku).html() * 1; if (focusSection == $("#pr_totalPages" + sku).val() - 1) { changePresentationImage(0, sku); } else { changePresentationImage(focusSection + 1, sku); } } function focusPrevious(sku) { var focusSection = $(".pr_selectedPage" + sku).html() * 1; if (focusSection == 0) { changePresentationImage($("#pr_totalPages" + sku).val() - 1, sku); } else { changePresentationImage(focusSection - 1, sku); } } function loadTitleFrame_Presentation(sku) { var doShowPresentationView = $("#stripPresentation" + sku).hasClass("hidden"); if (doShowPresentationView) { $.url = "/GetTreelineControl.aspx?controlName=/uc/listviews/TitleFrame_Presentation.ascx&sku=" + sku + "&source=lv"; $("#stripPresentation" + sku).removeClass("hidden"); $("#titleFrame_Basic" + sku).addClass("hidden"); $(".legacyContainer", $("#as_" + sku)).addClass("hidden"); $("#presentationHolder" + sku).load($.url); } else { $(".legacyContainer", $("#as_" + sku)).removeClass("hidden"); $("#stripPresentation" + sku).addClass("hidden"); $("#titleFrame_Presentation" + sku).remove(); $("#titleFrame_Basic" + sku).removeClass("hidden"); } } function saveMarkupPotential(mailingId, sku, potential) { $("#markupPotential" + sku).css("background-color", "#FC601F"); $.getJSON("/GetJSONData.aspx?builder=SetMarkupPotential", { sku: sku, potential: potential, mailingID: mailingId }, function (data) { if (data.code == "OK") { $("#markupPotential" + sku).css("background-color", "#FFF"); $("#poError_" + sku).hide(); $("#poSave_" + sku).hide(); $("#markupPotential" + sku).val(data.data); } else { if (data.code == "numeric") { $("#poError_" + sku).show(); } else { alert(data.text); } } }); } function toggleCheckBox(element) { if ($(element).hasClass("box_checked")) { $(element).removeClass("box_checked").addClass("box_unchecked"); } else { $(element).addClass("box_checked").removeClass("box_unchecked"); } } function changeOrderStatus(elem, orderId, resultType, orderStatus) { var status = !_.isNil(elem) ? elem.attr("data-Status") : orderStatus; if (_.isNil(status)) { return; } $.getJSON("/GetJSONData.aspx?builder=ChangeOrderStatus", { orderList: orderId, newStatus: status }, function () { $("#as_" + orderId).parent().slideUp(); removeListViewItem(orderId); updateRefineFilterCounts(); adjustTotalResultsCount(-1); var activeOrdersResultType = "50", completedOrdersResultType = "51"; if (status === "3") { adjustResultTypeCount(activeOrdersResultType, -1); adjustResultTypeCount(completedOrdersResultType, 1); } else { adjustResultTypeCount(activeOrdersResultType, 1); adjustResultTypeCount(completedOrdersResultType, -1); } }); } function setOrderLineItemMode(exportType) { var BOOKSCAPE = '12'; var SQUAREONE = '1'; var IS_PUBLISHER = false; if ((exportType == BOOKSCAPE || exportType == SQUAREONE) && !IS_PUBLISHER) { o.setStoreMultiLineMode(true); } else { o.setStoreMultiLineMode(false); } } function SaveOrganizationPreference(type, name, value, callbackFunction) { $.getJSON("/getJSONData.aspx?builder=SaveOrganizationPreference", { type: type, name: name, value: value }, function (data) { if (typeof callbackFunction === "function") { callbackFunction(data); } }); } function SearchEditItem(orderId, mode) { var url = '/GetTreelineControl.aspx?controlName=/uc/search/searchSku.ascx&orderID=' + orderId + '&mode=' + (mode || 0); openModal(url, '500px', '150px'); } function saveOrderRecordChanges(options, callback) { if (!options || !options.changes || options.changes.length === 0) return; var listViewOptions = { onDone: function (result) { var addItemToOrderEvent = new CustomEvent("itemAdded", { detail: { didSucceed: result.didSucceed } }); window.dispatchEvent(addItemToOrderEvent) } } window.savingModal('Saving'); var reportName = ''; if ($('#exportType').attr("val")) { var exportInfo = $('#exportType').attr("val").split("~"); reportName = exportInfo[1]; } var values = { cultureName: options.cultureName, orderId: options.order.id, orderOrgId: options.order.orgId, changes: JSON.stringify(options.changes), isNew: options.isNew, dupeCheck: options.dupeCheck, sortBy: options.sortBy, sortDirection: options.sortDirection, reportName: reportName }; $.post("/GetJSONData.aspx?builder=SaveOrderEdits", values, function (data) { closeSavingModal(); if (data.code) { if (data.code == "NEW") { $('#addSKUIcon').webuiPopover('destroy'); if (typeof loadExportPreview === "function") { loadExportPreview($("#curStartRow").val()); } else if (isInListView({ itemType: getEnumValue('itemType', 'TITLE') })) { reloadCurrentPage(); } if (listViewOptions && typeof listViewOptions.onDone === 'function') { listViewOptions.onDone({didSucceed: true}) } closeModal(); } else if (data.code == "ERROR") { if ($('#message').length > 0) { $('#message') .html('<div class="error" style="clear:both;width:100%;color:Red;font-weight:bold;">' + data.text + '</div>'); } else { alert(data.text); } if (listViewOptions && typeof listViewOptions.onDone === 'function') { listViewOptions.onDone({ didSucceed: false }) } } else if (data.code == "duplicate") { if (confirm(data.text)) { saveOrderExportRecord(false, options.mode); } closeModal(); } else { $.orderDirty = true; } } else { if (typeof loadExportPreview === "function") { loadExportPreview($("#curStartRow").val()); } if (typeof window.UpdateListRow == "function") { window.UpdateListRow(data); } if (typeof window.refreshMessages == 'function') { window.refreshMessages(); } if (getListViewProperty("itemType") === 1) { closeModal(); } if (typeof callback === 'function') { callback(); } if (listViewOptions && typeof listViewOptions.onDone === 'function') { listViewOptions.onDone({ didSucceed: true }) } } }, "json"); } function ProductEditRecord(id, orderID, referenceNumber, exportType, sku, index, field, value, isDynamic, isSKULevelOverride) { this.id = id; this.orderID = orderID; this.referenceNumber = referenceNumber; this.exportType = exportType; this.sku = sku; this.index = index; this.field = field; this.value = value; this.mappingCode = null; this.mappingFromCode = null; this.mappingIsPermanent = null; this.isDynamic = isDynamic; this.errorCode = null; this.isSKULevelOverride = isSKULevelOverride; } function removeComp(sku, compSkusStr, targetOrgId, mailingId, catalogId) { $("#markUpComp_" + sku).html("Saving. Please wait..."); var url = 'api/products/' + sku + '/comps'; var data = { comparableProductSkus: compSkusStr.split(','), targetOrgId: targetOrgId, markupId: mailingId, catalogId: catalogId }; $.ajax({ type: 'DELETE', url: url, contentType: 'application/json', data: JSON.stringify(data) }).done(function () { var cbd = $(".cbd").length if (cbd == 0) { renderCompDetail(sku, 0, 0, mailingId); } else { renderCompDetail(sku, 0, 1, mailingId); } if (sku === compsku && $("#compToSelf")) { $("#compToSelf" + sku).show(); } $(".comp-add-" + compsku + "-to-" + sku).show(); }).fail(function (xhr) { alertXhrResponse(xhr); }); } function ActivateLineItemDept(sku, storeId, lineItem) { $(".inputCatLoc").each(function () { var inputId = $(this).attr("id"); LoadCategories(inputId, storeId, sku, lineItem); var key = inputId.replace("inputCatLoc_", ""), currentCategory = $(".catLoc_" + key).html(), hasCategory = currentCategory != '' && currentCategory != 'Add Category', categoryValue = hasCategory ? currentCategory : ""; $(this).val(categoryValue); }); $(".inputCatLoc").first().select().focus(); } function LoadCategories(autoid, storeId, sku, lineItem) { if (storeId != undefined && $("input#Department_Categories").data("storeID") == storeId) { LoadDepartments(autoid, sku, storeId, lineItem); } else { $("input#Department_Categories").val(""); var passedStore = storeId; if (storeId == "All") { passedStore = ""; } $.get("/getJSONData.aspx?builder=GetStoreCategories", { storeID: passedStore }, function (data) { if (data != "EMPTY") { if ($('#Department_Categories').length == 0) $('body').append("<input type='hidden' value='' id='Department_Categories' />"); $("input#Department_Categories").data("storeID", storeId); $("input#Department_Categories").val(data); LoadDepartments(autoid, sku, storeId, lineItem); } }); } $('#Cat_Dept_Auto_Loading').hide(); } function LoadDepartments(autoid, sku, storeId, lineItem) { var data = $("input#Department_Categories").val(); if (data) { var list = data.split("~"); $("#" + autoid).autocomplete(list, { matchContains: true, max: 200 }).result(function (event) { event.stopPropagation(); saveCategories(sku, storeId, lineItem, true); return false; }); } } function AddUserCompTitle(sku, compSku) { $.ajax({ type: "POST", url: "/api/products/" + sku + "/comps/" + compSku + "/user" }).done(function () { $("#cw_" + compSku).remove(); $("#compTitles_" + sku).html($("#compTitles_" + sku).html() * 1 + 1); var id = "comps_1_" + sku; $.url = "/GetTreelineControl.aspx?controlName=/uc/product/CompsBasic.ascx&sku=" + sku + "&idPrefix=" + id; $('#' + id).load($.url); closeChildModal(); closeModal(); }).fail(function () { alert(window.getRes("error_unexpected")); }); } function RestoreUserCompTitle(sku, compSku, mailingID) { $.ajax({ type: "PUT", url: "/api/products/" + sku + "/comps/" + compSku + "/type/user/restore" }).done(function () { $("#cw_" + compSku).remove(); $("#compTitles_" + sku).html($("#compTitles_" + sku).html() * 1 + 1); var id = "comps_1_" + sku; $.url = "/GetTreelineControl.aspx?controlName=/uc/product/CompsBasic.ascx&sku=" + sku + "&idPrefix=" + id + "&mailingID=" + mailingID; $('#' + id).load($.url); closeModal(); }).fail(function () { alert(window.getRes("error_unexpected")); }); } function RemoveUserCompTitle(sku, compSku) { $.ajax({ type: "PUT", url: "/api/products/" + sku + "/comps/" + compSku + "/type/user/hide" }).done(function () { $("#cw_" + compSku).remove(); $("#compTitles_" + sku).html($("#compTitles_" + sku).html() * 1 - 1); $("#compsHidden_" + sku).html($("#compsHidden_" + sku).html() * 1 + 1) if ($("#compsHidden_" + sku).html() * 1 > 0) { $("#compsHidDiv_" + sku).show(); } else { $("#compsHidDiv_" + sku).hide(); } var cbd = $(".cbd").length var mailingId = getListViewProperty("selectedMailingID"); $(".comp-add-" + compSku + "-to-" + sku).show(); if (cbd == 0) { renderCompDetail(sku, 0, 0, mailingId); } else { renderCompDetail(sku, 0, 1, mailingId); } }).fail(function () { alert(window.getRes("error_unexpected")); }); } function ClearDashboardValue(resultType, itemId) { $(itemId > 0 ? "#value_" + resultType + "_" + itemId : "#value_" + resultType).html("..."); } function ClearDashboardValues(resultTypes) { if (!resultTypes) return; for (var i = 0, max = resultTypes.length; i < max; i++) { ClearDashboardValue(resultTypes[i], 0); } } function GetDashboardValue(resultType, itemId, dashboardType) { var url = "/GetTreelineControl.aspx?controlName=/uc/dashboard/controls/Dashboard_BallValue.ascx&resultType=" + resultType + "&itemID=" + itemId; if (dashboardType != null) url += "&dashboardType=" + dashboardType; if (itemId > 0) { $("#value_" + resultType + "_" + itemId).load(url); } else { $("#value_" + resultType).load(url); } } function GetResultValue(resultType, itemId) { var url = "/GetTreelineControl.aspx?controlName=/uc/dashboard/controls/Dashboard_BallValue.ascx&resultType=" + resultType + "&itemID=" + itemId; var elemSuffix = resultType; if (itemId > 0) { elemSuffix = resultType + "_" + itemId; }; $("#value_" + elemSuffix).load(url, function () { if (+$("#value_" + elemSuffix).html() !== 0) { $("#valueHolder_" + elemSuffix).show(); } }); } function updateDashboardHeader(dashboardType) { var values = { dashboardType: dashboardType } $.getJSON("/GetJSONData.aspx?builder=GetResultTypeCounts", values, function (data) { if (data.code === "SUCCESS") { var counts = JSON.parse(data.data); $.each(counts, function (key, value) { updateHeader(dashboardType, value.visible); updateHiddenHeader(dashboardType, value.hidden); }); } }); } function GetDashboardValues(resultTypes, dashboardType) { if (!resultTypes) return; for (var i = 0, max = resultTypes.length; i < max; i++) { GetDashboardValue(resultTypes[i], 0, dashboardType); } } function SaveResultTypeTimeFrame(resultType, days, dashboardType) { var selectedResultType = getListViewProperty("resultType"); if ($("#value_" + resultType).length > 0) { $("#value_" + resultType).html("..."); } adjustTimeBoxes(days) $.getJSON("/getJSONData.aspx?builder=SaveUserPreference", { type: 'dashboard', name: 'days_' + resultType, value: days }, function () { var timeframeString = $("#timeString_" + days).text(); $("#timeChange_" + resultType) .attr("data-days", days) .attr('title', timeframeString); $("#timeString_" + resultType).html(timeframeString); $("#timeframeString_" + selectedResultType).val(timeframeString); $("#timeframeDays_" + selectedResultType).val(days); if ($("#meVal_" + resultType).length > 0) { GetMyEdelweissValue(resultType); } window.GetDashboardValuePlusRefresh(resultType, dashboardType); if ($("#source_typeOfList_" + dashboardType).val() === '0') { ///If time frame is switched from Dashboard Options if ($("#timeString_" + resultType).length && resultType == selectedResultType) { $("#resultName_" + dashboardType).html($("#displayText_" + resultType).val() + " " + $("#timeString_" + resultType).html()); if (dashboardType == 3) { refreshDashboardCloud(resultType, window.loadingText); } else { if ($("#value_" + resultType).html() != 0) { refreshThumbnails(resultType, dashboardType, $.trim($("#value_" + resultType).html())); } else { $("#dashContent_" + dashboardType).html(""); } } } } else if (resultType == selectedResultType) { window.changeHomePageOption(getListViewProperty("resultType"), getListViewProperty("dashboardType"), null, true); } if ($("#cSelected_shared").length > 0) { $("#cSelected_shared").html("-"); $.url = "/GetTreelineControl.aspx?controlName=/uc/dashboard/controls/Dashboard_BallValue.ascx&resultType=77&targetOrgID=" + $("#cSelected_orgID").val() + "&targetUserID=" + $("#cSelected_userID").val(); $("#cSelected_shared").load(); } closeChildModal(); }); } function GetDashboardValuePlusRefresh(resultType, dashboardType) { var url = "/GetTreelineControl.aspx?controlName=/uc/dashboard/controls/Dashboard_BallValue.ascx&resultType=" + resultType; if (dashboardType != null) url += "&dashboardType=" + dashboardType; $("#value_" + resultType).load(url, function () { var val = $.trim($("#value_" + resultType).html()); var dashType; if ($("#myCheck_" + resultType).length > 0) { dashType = $("#myCheck_" + resultType).attr("data-dashType"); } else { dashType = $("#value_" + resultType).attr("data-dashType"); } }); } function GetMyEdelweissValue(resultType) { $.url = "/GetTreelineControl.aspx?controlName=/uc/dashboard/controls/Dashboard_BallValue.ascx&resultType=" + resultType; $("#meVal_" + resultType).load($.url, function () { var val = $.trim($("#meVal_" + resultType).html()); var dashType; dashType = $("#value_" + resultType).attr("data-dashType"); if (dashType != 3) { if (val == 0) { $("#me_" + resultType).addClass("hidden"); $("#me_" + resultType).removeClass("shown"); $("#dashContent_" + dashType).html(""); } else { $("#me_" + resultType).addClass("shown"); $("#me_" + resultType).removeClass("hidden"); $("#dash_" + dashType).show(); $("#noVal_" + dashType).hide(); } } if ($("#value_" + resultType).length == 0) { var dashType; if ($("#myCheck_" + resultType).length > 0) { dashType = $("#myCheck_" + resultType).attr("data-dashType"); } else { dashType = $("#value_" + resultType).attr("data-dashType"); } if ($("#selectedResult_" + dashType).length > 0) { if ($("#selectedResult_" + dashType).val() == resultType) { populateResultOptionsRefresh(resultType, dashType, val); } } } }); } function saveResultType(resultType, dashType, value, displayName, itemCount) { $(".dashSection" + dashType).removeClass("selectedResultType"); $("#dash_" + resultType).addClass("selectedResultType"); if (value == null) value = resultType; if (displayName != null || $("#value_" + resultType).html() != "0") { if (resultType == "204") { $("#resequenceWorklistIcon").show(); } else { $("#resequenceWorklistIcon").hide(); } $.getJSON("/getJSONData.aspx?builder=SaveUserPreference", { type: 'dashboard', name: 'resultTypes_' + dashType, value: value }, function () { $("#dash_" + dashType).show(); $("#noVal_" + dashType).hide(); if (dashType == window.dashType.tag) { if ($("#tempList1").length > 0) { $("#tempList1").html(""); $("#tempList2").html(""); } populateResultOptionsTags(resultType); } else { populateResultOptionsFull(resultType, dashType, displayName, itemCount); } resizePublisherScroller(); }); } } function populateResultOptionsFull(resultType, dashType, displayName, itemCount) { if (itemCount == null) itemCount = $("#value_" + resultType).html(); itemCount = $.trim(itemCount); if (displayName == null) { displayName = $("#displayText_" + resultType).val() } if ($("#timeframeString_" + resultType).length) { var timeframeString = $("#timeframeString_" + resultType).val(); displayName += " " + timeframeString; } $("#resultName_" + dashType).html(displayName); if ($("#headerCount_" + dashType).length > 0) { $("#headerCount_" + dashType).html(itemCount); $("#resultCount_" + dashType).val(itemCount); } if ($("#selectedResult_" + dashType).length > 0) { $("#selectedResult_" + dashType).val(resultType); } else { closeModal(); } if ($("#source_typeOfList_" + dashType).val() === '0') { var val = $.trim($("#value_" + resultType).html()) if (val != 0) { refreshThumbnails(resultType, dashType, val); } else { $("#dashTitles_" + dashType).html(""); } } else { window.pageChange('#dashList=' + dashType + '&rT=' + resultType + '&start=0'); window.closePop(); } } function loadDash(dashType) { changePage('#dashList=' + dashType); } function populateResultOptionsRefresh(resultType, dashType, count) { if ($("#headerCount_" + dashType).length > 0) { $("#headerCount_" + dashType).html(count); $("#resultCount_" + dashType).val($("#headerCount_" + dashType).html()); } if ($("#source_typeOfList_" + dashType).val() === '0') { var val = $.trim($("#value_" + resultType).html()) refreshThumbnails(resultType, dashType, val); } else { window.changePage('#dashList=' + dashType + '&rT=' + resultType + '&start=0'); window.closePop(); } } function callRestService(uri, _onSuccess, _onFailure) { $.ajax({ type: 'GET', url: uri, async: true, success: function (data) { if (typeof _onSuccess == 'function') _onSuccess(data); }, error: function (xhr, ajaxOptions, thrownError) { if (typeof _onFailure != 'function') console.warn("There was an error loading " + uri) + " error:" + thrownError; else _onFailure(); }, datatype: 'json' }); } function refreshThumbnails(resultType, dashType, val) { //$("#dash_" + dashType).css("height", $("#naturalHeight_" + dashType).val() + "px"); if (dashType == '2') { if (window.catDisplay == 0) { window.populateCatalogs(resultType, dashType, 0, $("#resultCount_" + dashType).val()); } else { window.populateCatalogsList(resultType, dashType, 0, $("#resultCount_" + dashType).val()); } } if (dashType == '9' || dashType == '0' || dashType == '1') { window.populateTitles(resultType, dashType, val, $("#naturalHeight_" + dashType).val(), $("#resultCount_" + dashType).val()); } if (dashType == '6') { window.populateOrders(resultType, dashType, $("#resultCount_" + dashType).val()); } if (dashType == '5') { window.populatePeople(resultType, dashType, $("#resultCount_" + dashType).val()); } if (dashType == '12') { window.populatePubilicityCampaigns(resultType, dashType, $("#resultCount_" + dashType).val()); } if (dashType == '50') { window.populateReviews(resultType, dashType, $("#resultCount_" + dashType).val()); } } function refreshMyPublishers() { savingModalOverlay('Refreshing...', "dash_myPublisher"); var url = "/GetTreelineControl.aspx?controlName=/uc/dashboard/myPublisherScroller.ascx"; $("#dash_myPublisher").load(url) } (function ($) { $.event.special.destroyed = { remove: function (o) { if (o.handler) { o.handler(); } } } })(jQuery); function RenameContactGroup(groupID) { var newName = $("#cSelected_groupName").val() if (newName != '') { $.getJSON("/getJSONData.aspx?m=Contacts&builder=RenameGroups", { groupID: groupID, name: newName }, function (data) { var success = false; for (var i = 0; i < data.length; i++) { if (data[i].status == "SUCCESS") { var primaryId = $('#cSel_i').val(); $('#c_groupName' + primaryId).html(newName); $('#groupNameSave').hide(); success = true; } else if (data[i].status == "ERROR") { alert("There was a problem renaming the group."); } } }); } } function removeContactFromGroup(contactId, groupId) { var groupName = $("#cSelected_groupName").val(); $.getJSON("/getJSONData.aspx?m=Contacts&builder=RemoveContactFromGroup", { contactID: contactId, groupID: groupId, tags: groupName }, function (data) { if (data.code == "OK") { var primaryId = $('#cSel_i').val(); $('#cG_' + contactId).remove(); $('#c_groupCount' + primaryId).html($('#c_groupCount' + primaryId).html() * 1 - 1); success = true; } else if (data.code == "ERROR") { alert("There was a problem renaming the group."); } }); } function addContactToGroupId(contactId, groupId) { var groupName = $("#cSelected_groupName").val(); $.getJSON("/getJSONData.aspx?m=Contacts&builder=AddContactToGroupId", { contactID: contactId, groupID: groupId, groupName: groupName }, function (data) { if (data.code == "OK") { var primaryId = $('#cSel_i').val(); $('#cGQuick_' + contactId).remove(); $('#c_groupCount' + primaryId).html($('#c_groupCount' + primaryId).html() * 1 + 1); $.url = "/GetTreelineControl.aspx?controlName=/uc/contacts/details/contactGroupDetail.ascx&GroupID=" + groupId + "&primaryId=" + primaryId; $("#contactDetails").load($.url); success = true; } else if (data.code == "ERROR") { alert("There was a problem renaming the group."); } }); } function populateAnalyticsCharts(dashType) { $("#chart_" + dashType + "_0").html("") $.url = "/GetTreelineControl.aspx?controlName=/uc/analytics/dashContent/AnalyticsChart_" + dashType + ".ascx&source=mainDash"; $("#chart_" + dashType + "_0").load($.url); } function saveLocationPreference(locationId) { $.getJSON("/getJSONData.aspx?builder=SaveUserPreference", { type: 'analytics', name: 'selectedStoreID', value: locationId }, function () { $.get("/api/v2/analytics/lanes", function (lanes) { for (var laneKey in lanes) { EdelweissAnalytics.addToLocationFilters(lanes[laneKey].dashType, locationId); var dashType = lanes[laneKey].dashType; if (EdelweissAnalytics.isVisibleLane[dashType]) { if (laneKey === EdelweissAnalytics.LaneKeys.WeedingAnalysis) { EdelweissAnalytics.selectedWeedingType = EdelweissAnalytics.weedingType.all; } if ($(".analyticsDetailsGrid").attr("data-lanekey") === EdelweissAnalytics.LaneKeys.TrendsAnalysis) { oTable.fnDestroy(); $("#titleGrid").empty(); } if (laneKey === EdelweissAnalytics.LaneKeys.TrendsAnalysis) { EdelweissAnalytics.isTrendsAnalysisChartUpdated = true; EdelweissAnalytics.isTrendsAnalysisDetailsGridUpdated = true; } EdelweissAnalytics.startLaneUpdateProcess(laneKey); } } }); }); } function saveDashboardViewFilter(filterID, dashboardType, _onSuccess, _onFailure) { $.getJSON("/getJSONData.aspx?builder=SaveUserPreference", { type:'dashboard', name:'selectedSavedFilterId.' + dashboardType, value: filterID }, function (data) { if (data.code == "OK") { if (typeof _onSuccess == "function") { _onSuccess(dashboardType, filterID, data); } } else { if (typeof _onFailure == "function") { _onFailure(dashboardType, filterID, data); } } }); } function saveDashboardViewFilterCatalog(filterID, dashboardType, _onSuccess, catalogID) { saveDashboardViewFilter(filterID, dashboardType); _onSuccess(catalogID); } function getSolrDateRange(pubDateFilterDefinition) { if (pubDateFilterDefinition === "frontlist") { var solrDateRange = "[NOW-3MONTH/DAY TO *]"; } else if (pubDateFilterDefinition === "backlist") { var solrDateRange = "[* TO NOW-3MONTH/DAY]"; } else { // pubDateFilter is a custom date range. var solrDateRange = pubDateFilterDefinition.replace("|", ""); } return solrDateRange; } function saveFilterPreference(filterId) { $.get("/api/v2/analytics/lanes", function (lanes) { for (var laneKey in lanes) { EdelweissAnalytics.clearContentFilters(lanes[laneKey].dashType, true); } if (filterId > 0) { $.getJSON("/api/filters/" + filterId, {}, function (filterObj) { if (filterObj.hasOwnProperty("definition")) { var filterDefinitionObj = JSON.parse(filterObj.definition); if (filterDefinitionObj.hasOwnProperty("pubDate")) { for (var laneKey in lanes) { var pubDateFilter = getSolrDateRange(filterDefinitionObj["pubDate"]); if (typeof EdelweissAnalytics.addPubDateFilter === "function") { EdelweissAnalytics.addPubDateFilter(lanes[laneKey].dashType, pubDateFilter); } } } for (var property in filterDefinitionObj) { if (filterDefinitionObj.hasOwnProperty(property) && property.indexOf("refine_") === 0) { for (var laneKey in lanes) { EdelweissAnalytics.addToAttributeFilters(lanes[laneKey].dashType, property, filterDefinitionObj[property]); } } } } EdelweissAnalytics.Weeding.updateSelectedWeedingSettingsWithNewSavedFilter(filterId, filterObj.name); }); } for (var laneKey in lanes) { var dashType = lanes[laneKey].dashType; if (EdelweissAnalytics.isVisibleLane[dashType]) { if ($(".analyticsDetailsGrid").attr("data-lanekey") === EdelweissAnalytics.LaneKeys.TrendsAnalysis) { oTable.fnDestroy(); $("#titleGrid").empty(); } if (laneKey === EdelweissAnalytics.LaneKeys.TrendsAnalysis) { EdelweissAnalytics.isTrendsAnalysisChartUpdated = true; } if (laneKey === EdelweissAnalytics.LaneKeys.WeedingAnalysis) { EdelweissAnalytics.selectedWeedingType = EdelweissAnalytics.weedingType.all; } EdelweissAnalytics.startLaneUpdateProcess(laneKey); } } // always save the filterId, whether it's greater than 0 (filter selected) or not (no filter selected). $.getJSON("/getJSONData.aspx?builder=SaveUserPreference", { type: 'dashboard', name: 'selectedSavedFilterId.200', value: filterId }); }); } function drawStandardPie(dashType, jsonData, colors, eventName, onEventHandler, laneKey, callback, chartIndex) { laneKey = typeof laneKey !== "undefined" ? laneKey : null; callback = typeof callback !== "undefined" ? callback : null; chartIndex = typeof chartIndex !== "undefined" ? chartIndex : 0; var stockAnalysisClass = EdelweissAnalytics.filterOptions[dashType].stockAnalysisClass; if (stockAnalysisClass == -1) { stockAnalysisClass = 0 } var defaultColors = ['#92D050', '#CCFF66', '#FFEA00', '#FC601F', '#598A18']; var chosenColors = defaultColors; if (typeof colors !== "undefined" && _.isArray(colors) && !_.isEmpty(colors)) { chosenColors = colors; } var options = { backgroundColor: 'transparent', chartArea: { left: '5%', top: '5%', width: '90%', height: '90%' }, colors: chosenColors, height: 160, width: 160, is3D: false, fontSize: 10, tooltip: { ignoreBounds: true }, legend: { position: 'none' }, sliceVisibilityThreshold: 1 / 100000, slices: { 0: { offset: 0.0 }, 1: { offset: 0.0 }, 2: { offset: 0.0 }, 3: { offset: 0.0 }, 4: { offset: 0.0 }, 5: { offset: 0.0 } } }; var data = new google.visualization.DataTable(jsonData); var isOnAnalyticsHome = $("#dash_" + dashType).length; if (isOnAnalyticsHome && !EdelweissAnalytics.filterOptions[dashType].includeTitlesFromAllStockAnalysisClasses) { for (i = 0; i < data.getNumberOfRows(); i++) { if (stockAnalysisClass == i) { options.slices[i] = { offset: 0.1 }; } } } if (laneKey !== null) { var chart_div = EdelweissAnalytics.getChartDivByLaneKeyAndChartIndex(laneKey, chartIndex); } else { var chart_div = getStandardPieDiv(dashType); } var chart = new google.visualization.PieChart(chart_div); if (typeof onEventHandler === "function") { google.visualization.events.addListener(chart, eventName, function () { onEventHandler(chart); }); } if (callback != null) { google.visualization.events.addListener(chart, 'ready', function () { return callback(null, "Pie Chart Initialization Complete"); }); google.visualization.events.addListener(chart, 'error', function () { return callback(new Error("Error initializing pie chart")); }); } chart.draw(data, options); } function getStandardPieDiv(dashType) { return document.getElementById('chartFrame' + dashType); } function initializeMarkupSelect() { $('.markupOptionCheck').on("click", function () { window.enableMultipleCheckbox($(this), "markupOptionCheck"); selectMarkup($(this).attr("markupId")); toggleMarkupImport($(this)) }); } function toggleMarkupImport($markup) { if ($markup.data("readonly-markup")) { $("#importMarkup").hide(); } else { $("#importMarkup").show(); } } function loadSingleTitle(sku, toWhere, dashType) { if ($('#detailList_' + dashType).length == 0) { $(".Analytics").hide(); $("#dash_" + dashType).show(); $("#analytics_content").show(); $("#analytics_content").html("<div style='margin-top:20px;'>Loading Details</div>"); $.url = "/GetTreelineControl.aspx?controlName=/uc/analytics/dashDetails/AnalyticsDetail_" + dashType + ".ascx"; $("#analytics_content").load($.url, function () { $.url = "/GetTreelineControl.aspx?controlName=/uc/listviews/ListView.ascx&start=0&itemID=" + sku + "&resultType=101&dashboardType=0&itemType=1&dataType=communityActivity&sku=" + sku; $("#" + toWhere).load($.url, function () { $("#mp_ShowList").show(); }); }); } else { $.url = "/GetTreelineControl.aspx?controlName=/uc/listviews/ListView.ascx&start=0&itemID=" + sku + "&resultType=101&dashboardType=0&itemType=1&dataType=communityActivity&sku=" + sku; $("#" + toWhere).load($.url); $("#mp_ShowList").show(); } } function showSimpleAction(suffix) { $("#hoverSimple_" + suffix).hide() $(".addSimple").hide(); $("#addSimple_" + suffix).show(); } function hideSimpleAction(suffix) { $("#addSimple_" + suffix).hide() } function addSimpleAction(suffix) { if ($("#addSimple_" + suffix).css("display") == "none") { $(".addSimple").hide(); showSimpleAction(suffix); } else { hideSimpleAction(suffix); } } function clickDashAction(sku, resultType, iClass) { if ($("." + iClass + "_" + resultType + "_" + sku).css("display") == "none") { $(".addSimple").hide(); $("." + iClass + "_" + resultType + "_" + sku).show(); } else { $("." + iClass + "_" + resultType + "_" + sku).hide() } } function hoverDashAction(sku, resultType, iClass) { $("." + iClass + "_" + resultType + "_" + sku).show(); } function closeDashAction(sku, resultType, iClass) { $("." + iClass + "_" + resultType + "_" + sku).hide(); } function hoverSimpleAction(sku, resultType) { $(".hoverSimple_" + resultType + "_" + sku).show(); } function closeSimpleAction(sku, resultType) { $(".hoverSimple_" + resultType + "_" + sku).hide(); } function showDrcHover(sku, resultType) { $(".drcHover_" + resultType + "_" + sku).show(); } function hideDrcHover(sku, resultType) { $(".drcHover_" + resultType + "_" + sku).hide(); } function showTitleHideHover(sku, resultType) { $(".hideTitleHover_" + resultType + "_" + sku).show(); } function hideTitleHideHover(sku, resultType) { $(".hideTitleHover_" + resultType + "_" + sku).hide(); } function hideCatalog(catalogId, dashboardType, resultType) { var url = "api/me/catalogs/exclusions/" + catalogId; $.ajax({ type: "PUT", url: url }).done(function () { if (dashboardType != null) { $('#thumb_' + catalogId).parent().addClass("hidden_" + dashboardType).hide(); } else { $('#lv_' + catalogId).addClass("hidden_" + dashboardType).hide(); } }).error(function () { alert("An unexpected error occurred while performing this action. Please try again or contact Above The Treeline Support."); }); } function setShowHiddenTitles(contextId, dashboardType, value) { $.getJSON("/getJSONData.aspx?builder=SaveUserPreference", { type: 'userContext', name: 'showHidden_' + contextId, value: value }, function () { if (_.startsWith(window.location.hash, "#dashList")) { loadDash(dashboardType); } else { reloadCurrentPage(); } }); } function updateHeader(dashboardType, visibleItems) { $('#headerCount_' + dashboardType).html(visibleItems); } function updateHiddenHeader(dashboardType, hiddenItems) { if (hiddenItems > 0) { $('#hiddenCount_' + dashboardType).text(hiddenItems); $('.hiddenWrapper_' + dashboardType).show(); } else { $('.hiddenWrapper_' + dashboardType).hide(); } } function updateHideToggle(itemId, isHidden) { var $itemToUpdate = $('.hide_' + itemId); var label = ""; if (isHidden) { label = $itemToUpdate.data('type') === "catalog" ? "Show Collection" : "Unhide"; } else { label = $itemToUpdate.data('type') === "catalog" ? "Hide Collection" : "Hide"; } $itemToUpdate.attr("title", label).toggleClass("icon-remove-icon icon-add-icon"); } function unhideItem(itemId, dashboardType, resultType, onDone) { var url = getHideItemApiUri(resultType, itemId); if (!url) return; $.ajax({ type: "DELETE", url: url }).done(function () { $('.simpleTags_' + itemId + '.bgdColorHidden').hide(); if (dashboardType != null) { $('#thumb_' + dashboardType + '_' + itemId).parent().removeClass("excluded").show(); $('#catThumb_' + dashboardType + '_' + itemId).parent().removeClass("excluded").show(); updateDashboardHeader(dashboardType); closeSavingModalOverlay("visual_" + dashboardType + "_" + itemId); closeSavingModalOverlay("cat_" + resultType + "_" + itemId); } else { $('#as_' + itemId).parent().removeClass("excluded").show(); updateHideToggle(itemId, false); } if ($.isFunction(onDone)) { onDone(); } }).error(function () { alert("An unexpected error occurred while performing this action. Please try again or contact Above The Treeline Support."); }); } function hideItem(itemId, dashboardType, resultType, doShowHidden, onDone) { var url = getHideItemApiUri(resultType, itemId); if (!url) return; if (dashboardType === null) { var $hideTarget = $('#as_' + itemId).parent(); if (doShowHidden == null || !doShowHidden) { $hideTarget.slideUp(); } $hideTarget.addClass("excluded"); updateHideToggle(itemId, true); } $.ajax({ type: "PUT", url: url }).done(function () { $('.simpleTags_' + itemId + '.bgdColorHidden').show(); if (dashboardType != null) { ePlus.modules.listView.hideListViewElement(resultType, itemId, dashboardType); var toggle = !!dashboardExclusionFilters[dashboardType]; toggleDashboardExclusionFilter(dashboardType, toggle); updateDashboardHeader(dashboardType); closeSavingModalOverlay("visual_" + dashboardType + "_" + itemId); closeSavingModalOverlay("cat_" + resultType + "_" + itemId); } if (_.isFunction(onDone)) { onDone(); } }).error(function () { alert("An unexpected error occurred while performing this action. Please try again or contact Above The Treeline Support."); }); } function toggleHidden(itemId, dashboardType, resultType, doShowHidden) { if ($("#thumb_" + dashboardType + "_" + itemId).length > 0) { savingModalOverlay('', "visual_" + dashboardType + "_" + itemId); } else if ($("#catThumb_" + dashboardType + "_" + itemId).length > 0) { savingModalOverlay('', "cat_" + resultType + "_" + itemId); } function reinitializeAutoComplete() { if (_.isFunction(window.initializeAutoComplete)) { window.initializeAutoComplete(); } } var isCurrentlyHidden = false; if ($('#as_' + itemId).parent().hasClass("excluded") || $('#thumb_' + dashboardType + '_' + itemId).parent().hasClass("excluded") || $('#catThumb_' + dashboardType + '_' + itemId).parent().hasClass("excluded")) { unhideItem(itemId, dashboardType, resultType, reinitializeAutoComplete); isCurrentlyHidden = true; } else { hideItem(itemId, dashboardType, resultType, doShowHidden, reinitializeAutoComplete); } if (!doShowHidden && !_.isNil($("#hiddenItems").html())) { updateHiddenCount(itemId, isCurrentlyHidden); removeListViewItem(itemId); updateRefineFilterCounts(); } hideSimpleAction(resultType + '_' + itemId); } function updateHiddenCount(itemId, isCurrentlyHidden) { var currentCount = $("#hiddenItems").html().match(/[0-9]+/gi); var totalCount = _.parseInt($("#totalResults").html(), 10); var currentCountInt = 0; if (_.isArray(currentCount) && !_.isNaN(_.parseInt(currentCount[0], 10))) { currentCountInt = _.parseInt(currentCount[0], 10); } if (isCurrentlyHidden) { currentCountInt--; totalCount++; } else { currentCountInt++; totalCount--; } if (currentCountInt > 0) { $("#hiddenItems").html(templateCache.hiddenCount({ hiddenCount: currentCountInt })).show(); } else { $("#hiddenItems").html("").hide(); } if (!_.isNaN(totalCount)) { $("#totalResults").html(totalCount); } } function getHideItemApiUri(resultType, itemId) { switch (parseInt(resultType)) { case 22: case 20: case 21: case 260: return "/api/me/galleys/availability/exclusions/" + itemId; case 106: case 108: case 107: return "/api/me/buzz/exclusions/" + itemId; case 2001: case 2002: case 2003: case 2006: return "/api/me/reviews/exclusions/" + itemId; case 73: case -1: case 208: case 207: case 215: return "api/me/catalogs/exclusions/" + itemId; case 4015: return "api/affiliations/" + itemId + "/exclusions"; default: return ""; } } function getEPlusContextResultTypes(contextId) { if (!window.ePlusContextResultTypesMap || !window.ePlusContextResultTypesMap[contextId]) return null; return window.ePlusContextResultTypesMap[contextId]; } function toggleDashboardExclusionFilter(dashboardType, doShowHidden) { dashboardExclusionFilters = dashboardExclusionFilters || {}; dashboardExclusionFilters[dashboardType] = doShowHidden; if (doShowHidden) { $(".dashboardFrame" + dashboardType).slick("slickUnfilter"); } else { $(".dashboardFrame" + dashboardType).slick("slickFilter", ":not(.excluded)"); } } function changeHomePageOption(resultType, dashType, controlID, isRefresh) { // Exit if this option is already selected. if (resultType === getListViewProperty("resultType") && !isRefresh) { return; } window.stopLoading = getListViewProperty("resultType"); clearFilterUi(); window.scrollTo(0, 0); $("#rightNavContent").fadeOut(); $(".refineOptions").html("").slideUp(); setListViewProperty("resultType", resultType); setListViewProperty("dashboardType", dashType); $(".homeOptionRow", $("#leftNavOptions")).removeClass("accFont").removeClass("selectedOptionRow"); cacheResultOptionCounts(); if (controlID != null) { window.stopLoading = null; var prefValue = $("#" + controlID).attr("data-value"); var prefType = $("#" + controlID).attr("data-type"); window.listView[prefType] = encodeURIComponent(prefValue); $("#displayText_" + resultType).val(prefValue); } if (resultType == 100) { $("#selectedOptionTimeFrame").fadeOut(); adjustDisplayAndSavePreference($("#" + controlID).attr("data-value")); } else { if (resultType == 74 || resultType == 75 || dashType == 3) { $(".listTagRow", $("#leftNavOptions")).removeClass("selectedOptionRow"); $("#" + controlID).addClass("selectedOptionRow"); } else { $("#homeOptionRow_" + getListViewProperty("resultType")).addClass("selectedOptionRow"); } $.getJSON("/getJSONData.aspx?builder=SaveUserPreference", { type: 'dashboard', name: 'resultTypes_' + dashType, value: resultType }, function () { location.hash = updateUriHashParameter(location.hash, "page", 1); if (controlID != null) { $("#selectedOptionTimeFrame").fadeOut(); reloadList(getListViewProperty("resultType"), null, true); } else { reloadCurrentPage(); } } ); } } function adjustDisplayAndSavePreference(viewID) { $(".optRadio").removeClass("radio_checked").addClass("radio_unchecked"); $(".listOptionSection").removeClass("accFont").removeClass("selectedDashOption"); $("#optRadio_" + viewID).addClass("radio_checked").removeClass("radio_unchecked"); $("#selectedOptionText").html('Saved Filter: ' + $("#filtName_" + viewID).html()); $.getJSON("/getJSONData.aspx?builder=SaveUserPreference", { type: 'dashboard', name: 'selectedSavedFilterId.' + window.dashType.filters, value: viewID }, function (data) { if (data.code == "OK") { reloadList(); } }); } function cacheResultOptionCounts() { window.cachedResultOptionCounts = {}; $(".listOptionSection").each(function (i, obj) { var resultType = $(this).attr("data-resultType"); var count = $("#value_" + resultType).html(); window.cachedResultOptionCounts[resultType] = count; }); } function getDashValues_DRC() { window.GetDashboardValue(20, 0, 0); } function getDashValues_Buzz() { window.GetDashboardValue(106, 0); window.GetDashboardValue(107, 0); window.GetDashboardValue(108, 0); window.GetDashboardValue(110, 0); } function convertSortTypesToNames(sortClass) { switch (sortClass) { case 0: return "originalOrder"; case 4: return "Isbn"; case 8: return "Author"; case 9: return "PubDateSort"; case 16: return "Publisher"; case 6: return "Format"; case 18: return "categorySort"; case 5: return "Title"; case 80: return "PeerReviews"; case 82: return "CurrentBuzz"; case 81: return "PeerShelves"; case 1: return "originalOrder"; case 14: return "originalOrder"; case 100: return "AppointmentDateSort"; case 105: return "UpdatedDateSort"; case 90: return "LastViewedSort"; case 26: return "Name"; case 220: return "RecentActivity"; case 20: return "DateAddedSort"; case 93: return "PrcDateCreatedSort"; case 94: return "DrcDateCreatedSort"; case 7: return "Price"; case 92: return "DueDateSort"; case 251: return "publisherSubmissionDateSort" case 300: return "ProcessedDateSort" case 301: return "MostRecentRequestDateSort" case 302: return "EarlierRequestDateSort" case 15: return "OrderQuantity"; case 208: return "StoresOrderedPercent"; case 211: return "StoresOnHandPercent"; case 213: return "StoresSoldPercent"; case 401: return 'accountSort'; case 400: return 'lastFirstNameSort'; case 403: return 'stateSort'; case 402: return 'citySort'; case 33: return "SingleTitleSort"; case 111: return "ShippedDate"; case 503: return "prcStatusSort"; case 500: return "distributorNameSort"; case 501: return "distributorStatusSort"; case 504: return "printableStatusSort"; case 35: return "createdBySort"; case 34: return "createdDateSort"; case 36: return "memberCountSort"; case 600: return "Worklist"; } } function initCompSorting(mailingId, catalogId, orgId) { $(".sortable-comps").sortable({ forcePlaceholderSize: true, handle: ".icon-move-vertical", items: ".comp-sort-row", update: function (event, ui) { var sku = $(this).attr("data-sku"); var compSkus = []; var items = $(this).children().has("[class*='moveVertical']"); items.each(function () { compSkus.push($(this).attr("data-sku")); }); var url = 'api/products/' + sku + '/comps/resequence'; var data = { comparableProductSkus: compSkus, orgId: orgId, markupId: mailingId, catalogId: catalogId } $.ajax({ type: 'POST', url: url, contentType: 'application/json', data: JSON.stringify(data) }).fail(function (xhr) { alertXhrResponse(xhr); }); } }); } function makeCompsSortable(sku, mailingId, catalogId, orgId) { $("#comps" + sku).sortable({ forcePlaceholderSize: true, handle: ".icon-move-vertical", items: "#sortableRow" + sku, update: function (event, ui) { var compSkus = []; var items = $(this).children().has("[class*='moveVertical']"); items.each(function () { compSkus.push($(this).attr("data-sku")); }); var url = 'api/products/' + sku + '/comps/resequence'; var data = { comparableProductSkus: compSkus, orgId: orgId, markupId: mailingId, catalogId: catalogId } $.ajax({ type: 'POST', url: url, contentType: 'application/json', data: JSON.stringify(data) }).fail(function (xhr) { alertXhrResponse(xhr); }); } }); } function goToSavedFilters(viewID) { viewID = viewID.replace('100_', ''); savePreference('dashboard', 'selectedSavedFilterId.' + window.dashType.filters, viewID, function () { pageChange('savedFilters'); closeModal(); }); } function goToTag(tagValue, resultType, viewID, daysBack) { saveTimePreference(resultType, daysBack, function () { if (viewID == 0) { viewID = ''; } savePreference('dashboard', 'selectedSavedFilterId.3', viewID, function () { saveTagAndGo(tagValue, resultType); }); }); } function saveTagAndGo(tagValue, resultType) { savePreference('tag', 'selectedTag', tagValue, function () { savePreference('tag', 'selectedTagType', resultType, function () { goToListFromDashboard(3); }); }); } function goToFolder(folderValue, resultType) { savePreference('folder', 'selectedFolder', folderValue, function () { savePreference('folder', 'selectedFolderType', resultType, function () { window.changePage('#dashList=2&rT=' + resultType + '&start=0'); }); }); } function deleteIndividualOrganizationContact(orgId) { if (confirm("Removing selected organization(s) will remove individual contacts belonging to the organization")) { var orgIds = [orgId]; deleteOrganizationContacts(orgIds); } } function deleteSelectedOrganizationContacts() { var orgIds = window.getSelectedItems(); if (!orgIds.length) { modalAlert('You must select one or more account.'); return; } if (confirm("Removing selected organization(s) will remove individual contacts belonging to the organization")) { deleteOrganizationContacts(orgIds); } } function openShareMarkupsWithAccount(initAuto) { var type = "markup"; var buttons = [{ text: 'Continue', onClick: function () { if (!catalogSelected) { alert('Please select a catalog') } else if (catalogSelected && !markupSelected) { alert('Please select a markup') } else if (catalogSelected && markupSelected) { shareMarkupsWithSelectedAndEmail(); } } }]; var title = "Share Markup"; openShareItemsWithAccountModal(initAuto, type, buttons, title); } function openShareDrcWithAccount(initAuto) { var type = "darc"; var buttons = [{ text: 'Share', onClick: function () { ShareDARC(); closeDialogs(); } }]; var title = "Share Digital Review Copy"; openShareItemsWithAccountModal(initAuto, type, buttons, title); } function openShareItemsWithAccountModal(initAuto, type, buttons, title) { var contacts = window.getSelectedItems(); if (!contacts.length) { modalAlert('You must select one or more account.'); return; } if (!_.isNil(contacts)) { var contactList = contacts.join(); var url = "/GetTreelineControl.aspx?controlName=/uc/contacts/shares/ShareItemWithContact.ascx&type=" + type + "&initAuto=" + initAuto + "&contactList=" + contactList; openDialog({ id: "accountItemShare", url: url, isModal: false, title: title, buttons: buttons, width: "800px", height: "500px", onClose: function () { $('.ac_results').remove(); } }); } } function moreOrLessWidget(resultType, laneId, widgetId, more) { var savedPrefValue = 1; if (more != 1) { savedPrefValue = ""; } savePreference('dashboard', 'WidgetMore.' + resultType + '.' + widgetId, savedPrefValue); $("#dashLane_" + laneId).toggleClass("showMore", more == 1); window.ePlus.modules.dashboard.populateDashLane(resultType, laneId, widgetId, more); } function getCatalogAdminOrgId() { return $('#catalogAdminOrgId').length ? $('#catalogAdminOrgId').val() : ''; } function convertFilterTypesToNames(filterType) { switch (filterType) { case 201: return "CatalogType"; case 61: return "isActive"; case 3: return "PubDateRefine"; case 4: return "PubType"; case 20: return "Order"; case 90: return "Order"; case 5: return "Author"; case 30: return "User"; case 0: return "Publisher"; case 51: return "Honors"; case 8: return "Thema"; case 11: return "ThemaSubjectQualifier"; case 1: return "Category"; case 7: return "Categories"; case 2: return "Format"; case 125: return "PersonalReviews"; case 10: return "DRCAvailability"; case 1401: return "DrcFormats"; case 135: return "PersonalNotes"; case 70: return "Discount"; case 100: return "OwnedStock"; case 111: return "Priority_Shared"; case 110: return "Priority_Markup"; case 30: return "Person"; case 41: return "Tags_Mine"; case 42: return "Tags_Colleagues"; case 45: return "Tags_Account"; case 43: return "Tags_MarkupShared"; case 137: return "Note_MarkupShared"; case 44: return "Tags_Markup"; case 136: return "Note_Markup"; case 138: return "AccountNote"; case 140: return "UpdatedDateRefine"; case 150: return "CreatedDateRefine"; case 151: return "AppointmentDateRefine"; case 152: return "DateAddedRefine"; case 120: return "DueDateRefine"; case 160: return "BoundVendors"; case 50: return "Account"; case 60: return "RecentActivity"; case 130: return "Submitted"; case 80: return "Suggestions"; case 81: return "Suggestions"; case 145: return "EventRequest"; case 300: return "TextReview"; case 126: return "PeerReviewsRefine"; case 127: return "PeerShelvesRefine"; case 1500: return "CommunityCompsRefine"; case 400: return "Viewed"; case 250: return "submittedToPublisher"; case 260: return "submittedToIndieNext"; case 270: return "submittedToLibraryReads"; case 280: return "submittedToSiba"; case 251: return "publisherSubmissionDateRefine"; case 501: return "UserType"; case 500: return "Confidence"; case 46: return "Titles"; case 47: return "Imprints"; case 48: return "Affiliations"; case 510: return "SingleTitle"; case 511: return "Status"; case 9: return "PriceRangeRefine"; case 601: return "state"; case 600: return "city"; case 801: return "isEdelweissFriend"; case 800: return "isEdelweissUser"; case 900: return "hasDrcRequests"; case 901: return "hasDrcDownloads"; case 950: return "hasReviews"; case 951: return "hasEventGridAccess"; case 700: return "groupNames"; case 802: return "isEdelweissAccount"; case 701: return "orderName"; case 1100: return "distributorName"; case 1101: return "distributorStatus"; case 1103: return "prcStatus"; case 1104: return "printableStatus"; case 139: return "TagsAccountShared"; case 1200: return "markupSharedBy"; case 19: return 'language'; case 13: return "createdBy"; case 14: return "memberCount"; case 15: return "hasRequirements"; case 1201: return 'publishingStatus'; case 1202: return 'productAvailability'; case 1400: return "Communities"; } } function getCompsSelectedOrgId() { var orgId = ''; return orgId; } function doUseLibraryColumnsForComps() { return false; } function isLoginPage() { try { return window.location.href.includes('login.edelweiss.plus'); } catch (e) { return true; } } //# sourceURL=HomePage.aspx </script> <script type="text/javascript"> function renderQuickFeedback() { var QuickFeedbackComponent = EdelweissComponents.Generics.FixedQuickFeedbackButton; var rootElement = document.getElementById('quickFeedbackRoot'); var token = 'OvV7f6ldoh-yG1M3w91XlAJv64TGF_Q3tCNmzX6qzL90kPV1iTPYJJ7n7qsBzXWx1acacQhN6Pa_iNhS9QNvt0ArW1MGXBot-AETbJtqEo01:zFjSVr06J9yF_-6SFXjyWB8uXnsz1P4qGL33jXG_gl-vPVNr4CTto9hZhCY8J-UykN_OVB_Hl1oR0hJG9fuoMQDIq5LBmfh7IEduEqhfW_w1'; QuickFeedbackComponent.render(rootElement, { antiForgeryToken: token }); } EdelweissComponentsLoader.handleRender(renderQuickFeedback); </script> </html>