Started testing
This commit is contained in:
+577
@@ -0,0 +1,577 @@
|
|||||||
|
;;;;;;;;;;
|
||||||
|
;;;Legend:;;;;;;;
|
||||||
|
;;;Open Question;Mapping to Classification;Create Campaign;Copy to Keywords;Do not migrate;;;
|
||||||
|
;;;;Mapping to Media Type;;;;;;
|
||||||
|
;;;;;;;;;;
|
||||||
|
Action;Parameter;;;;;;;;;
|
||||||
|
;;;;;;;;;;
|
||||||
|
classify;Status.Released;;Advertising Media;;;;;;;
|
||||||
|
classify;BusinessUnit.CAP;;;Brands & Concepts CAP;;;;;;
|
||||||
|
brand;;;;;Advantage;;;;;
|
||||||
|
campaign;;;;;;2006 - Makeover Kit Packaging;;;;
|
||||||
|
campaign;;;;;;2008 - Speed of Flea Kill;;;;
|
||||||
|
campaign;;;;;;2010 - CAP Parasiticides;;;;
|
||||||
|
campaign;;;;;;2012 - Rabbit Detailer;;;;
|
||||||
|
campaign;;;;;;2013 - Advantage vs. Activyl Detailer;;;;
|
||||||
|
campaign;;;;;;2013 - Flea Escape Game;;;;
|
||||||
|
campaign;;;;;;2014 - Cat to the Vet Detailer;;;;
|
||||||
|
campaign;;;;;;2015 - Toolbox;;;;
|
||||||
|
campaign;;;;;;2016 - Cat Breeds Poster;;;;
|
||||||
|
campaign;(2007-2017);;;;;FSM Detailer;;;;
|
||||||
|
brand;;;;;Advantix ;;;;;
|
||||||
|
skip;;;;;;Concepts - Toolkits;;;;
|
||||||
|
campaign;;;;;;;2003 - Free the Dog - Toolkit;;;
|
||||||
|
campaign;;;;;;;2006 - Go to the Max - Toolkit;;;
|
||||||
|
campaign;;;;;;;2012 - Tape Campaign;;;
|
||||||
|
campaign;;;;;;;2016 - No Bite Campaign;;;
|
||||||
|
campaign;;;;;;;2017 - Advantix Toolbox;;;
|
||||||
|
campaign;;;;;;;2017 - Neighbor Dogs;;;
|
||||||
|
skip;;;;;;Detailer ;;;;
|
||||||
|
campaign;;;;;;;2004 - eDetailer & Virtual Detailer;;;
|
||||||
|
campaign;;;;;;;2007 - eDetailer & Virtual Detailer;;;
|
||||||
|
campaign;;;;;;;2008 - New evidence of efficacy ;;;
|
||||||
|
campaign;;;;;;;2009 - Detailer Ehrlichosis;;;
|
||||||
|
campaign;;;;;;;2010 - Otranto Detailer ;;;
|
||||||
|
campaign;;;;;;;2012 - LeishVet Detailer;;;
|
||||||
|
campaign;;;;;;;2013 - Detailer - Ehrlichia;;;
|
||||||
|
campaign;;;;;;;2013 - eDetailer;;;
|
||||||
|
campaign;;;;;;;2015 - H2H Detailer;;;
|
||||||
|
campaign;;;;;;;2016 - Advantix H2H eDetailer;;;
|
||||||
|
campaign;(2014);;;;;Info Website;;;;
|
||||||
|
brand;;;;;Advocate;;;;;
|
||||||
|
campaign;;;;;;2006 - Technical Manual;;;;
|
||||||
|
campaign;;;;;;2007 - Advocate Meets Advocate Toolkit;;;;
|
||||||
|
campaign;;;;;;2007 - Launch Campaign Toolkit;;;;
|
||||||
|
campaign;;;;;;2007 - New Indications;;;;
|
||||||
|
campaign;;;;;;2008 - Lice Management;;;;
|
||||||
|
campaign;;;;;;2008 - The Endectocide;;;;
|
||||||
|
campaign;;;;;;2009 - Baermann Protocol;;;;
|
||||||
|
campaign;;;;;;2009 - Detailer Angiostrongylus Vasorum;;;;
|
||||||
|
campaign;;;;;;2009 Ferret;;;;
|
||||||
|
skip;;;;;;;Communication Strategy;;;
|
||||||
|
skip;;;;;;;Market Research;;;
|
||||||
|
skip;;;;;;;PR;;;
|
||||||
|
skip;;;;;;;Veterinary Services Support;;;
|
||||||
|
campaign;;;;;;2009/2010 - Lifecycle Aelurostrongylus abstrusus;;;;
|
||||||
|
campaign;;;;;;2010 - Lifecycle Crenosoma;;;;
|
||||||
|
campaign;;;;;;2010/2011 - Detailers;;;;
|
||||||
|
campaign;;;;;;2011 - Speed of Flea kill Detailer;;;;
|
||||||
|
campaign;;;;;;2013 - Evolution Campaign;;;;
|
||||||
|
campaign;;;;;;2014 - Advocate Advertorials;;;;
|
||||||
|
campaign;;;;;;2014 - Advocate eDetailer ;;;;
|
||||||
|
campaign;;;;;;2015 - D. repens Detailer;;;;
|
||||||
|
campaign;;;;;;2015 - Global website Localization Docs;;;;
|
||||||
|
campaign;;;;;;2015 - Steady State Detailer;;;;
|
||||||
|
campaign;;;;;;2016 - Advocate Vet Ad;;;;
|
||||||
|
campaign;;;;;;2016 - Diagnosis of Mites;;;;
|
||||||
|
campaign;;;;;;2017 - Advocate Poster;;;;
|
||||||
|
brand;;;;;Baytril;;;;;
|
||||||
|
campaign;;;;;;2000 - Intelligence at Work - Toolkit;;;;
|
||||||
|
campaign;;;;;;2009 - New Branding Campaign Toolkit;;;;
|
||||||
|
campaign;;;;;;2009 - Baytril Symposium Florence;;;;
|
||||||
|
campaign;;;;;;2011 - Oral Suspension ;;;;
|
||||||
|
campaign;;;;;;2013/14 - Clinical Cases;;;;
|
||||||
|
brand;;;;;Bolfo/Bay-o-Pet;;;;;
|
||||||
|
brand;;;;;CVBD;;;;;
|
||||||
|
campaign;;;;;;2009 - Risk Map;;;;
|
||||||
|
campaign;;;;;;2010 - Canine Leishmaniosis;;;;
|
||||||
|
campaign;;;;;;2010 - Clinic Manual;;;;
|
||||||
|
campaign;;;;;;2011 - CVBD, Idexx;;;;
|
||||||
|
campaign;;;;;;2012 - CVBD World Forum recommendations;;;;
|
||||||
|
campaign;;;;;;2013 - CVBD Diagnostic Paths;;;;
|
||||||
|
campaign;;;;;;2013 - CVBD Diagnostic Poster;;;;
|
||||||
|
campaign;;;;;;2014 - CVBD Digest;;;;
|
||||||
|
campaign;(2016-2017);;;;;CVBD Feline Clinical Cases;;;;
|
||||||
|
campaign;(2012-2015);;;;;CVBD Symposia;;;;
|
||||||
|
brand;;;;;Drontal;;;;;
|
||||||
|
campaign;;;;;;2007 - Wormers;;;;
|
||||||
|
campaign;;;;;;2010 - Giardia;;;;
|
||||||
|
campaign;;;;;;2012 - Vet Detailer;;;;
|
||||||
|
campaign;;;;;;2013 - Drontal Tasty Communication;;;;
|
||||||
|
campaign;;;;;;2015 - Drontal eDetailer;;;;
|
||||||
|
campaign;;;;;;2016 - Digital Game;;;;
|
||||||
|
campaign;;;;;;2016 - Giardia;;;;
|
||||||
|
campaign;;;;;;2017 - Drontal Tasty Images;;;;
|
||||||
|
brand;;;;;Procox;;;;;
|
||||||
|
campaign;;;;;;2011 - Procox Launch Communication Concept ;;;;
|
||||||
|
classify;MediaType.Packshot;;;;;;Packshots;;;
|
||||||
|
campaign;;;;;;2012 - Brand Guideline;;;;
|
||||||
|
campaign;;;;;;2012 - Easy digest 1, Coccidia;;;;
|
||||||
|
campaign;;;;;;2014 - Procox Positioning Video;;;;
|
||||||
|
brand;;;;;Profender;;;;;
|
||||||
|
keyword;;;;;;Profender Cat;;;;
|
||||||
|
campaign;;;;;;;2005 - Launch Campaign - Toolkit;;;
|
||||||
|
campaign;;;;;;;2005 - Technical Manual;;;
|
||||||
|
campaign;;;;;;;2008 - Spot-on Toolkit;;;
|
||||||
|
campaign;;;;;;;2011 - Spot on Detailer;;;
|
||||||
|
campaign;;;;;;;2011 - Tapeworm Materials;;;
|
||||||
|
campaign;;;;;;;2011 - Vet Ad;;;
|
||||||
|
campaign;;;;;;;2012 - Comparative study vet detailer;;;
|
||||||
|
campaign;;;;;;;2013 - iPad eDetailer materials;;;
|
||||||
|
campaign;;;;;;;2016 - Cat Breeds Poster;;;
|
||||||
|
campaign;;;;;;;2016 - Happy Cat Campaign;;;
|
||||||
|
keyword;;;;;;Profender Dog;;;;
|
||||||
|
campaign;;;;;;;2009 - Tablets Launch Concept;;;
|
||||||
|
campaign;;;;;;;2011 - Advocate MDR1;;;
|
||||||
|
campaign;;;;;;;2011 - Toxocara canis in dogs;;;
|
||||||
|
campaign;;;;;;;2012 - Vet Detailer;;;
|
||||||
|
brand;;;;;Seresto;;;;;
|
||||||
|
campaign;(2017);;;;;Augmented Reality;;;;
|
||||||
|
campaign;(2016);;;;;Blogger Materials;;;;
|
||||||
|
keyword;;;;;;;Blogger Box;;;
|
||||||
|
keyword;;;;;;;Guideline;;;
|
||||||
|
keyword;;;;;;;Microsite;;;
|
||||||
|
campaign;(2011-2017);;;;;Brand Guideline;;;;
|
||||||
|
campaign;(2012);;;;;Conference Material;;;;
|
||||||
|
keyword;;;;;;;PowerPoint Templates;;;
|
||||||
|
campaign;(2014);;;;;PR Material;;;;
|
||||||
|
campaign;(2011-2014);;;;;Pet Owner Material;;;;
|
||||||
|
keyword;;;;;;;Images TV Spot;;;
|
||||||
|
keyword;;;;;;;Key Visuals;;;
|
||||||
|
campaign;(2011-2017);;;;;Seresto Images;;;;
|
||||||
|
campaign;(2015);;;;;Technical Manual;;;;
|
||||||
|
campaign;(2012-2016);;;;;Vet /Nurse Material;;;;
|
||||||
|
keyword;;;;;;;Advertisements;;;
|
||||||
|
keyword;;;;;;;Print Detailer;;;
|
||||||
|
keyword;;;;;;;eDetailer;;;
|
||||||
|
brand;;;;;Veraflox;;;;;
|
||||||
|
campaign;;;;;;2011 - Veraflox Brands;;;;
|
||||||
|
keyword;;;;;;;Key Visuals;;;
|
||||||
|
keyword;;;;;;;Pictograms;;;
|
||||||
|
campaign;;;;;;2013 - Laboratory card;;;;
|
||||||
|
campaign;;;;;;2013 - Product Manual;;;;
|
||||||
|
campaign;;;;;;"2014 - Concept ""Reduce the risk of recurrens""";;;;
|
||||||
|
campaign;(2016-2017);;;;;AI Symposium Proceedings/Digest;;;;
|
||||||
|
campaign;(2013-1014);;;;;Clinical Cases;;;;
|
||||||
|
campaign;(2006-2013);;;;;Veraflox Symposium;;;;
|
||||||
|
brand;;;;;miscellaneous;;;;;
|
||||||
|
campaign;;;;;;2009 - Symposium ESVD/ECVD;;;;
|
||||||
|
campaign;;;;;;2011 - Dog Breed Poster;;;;
|
||||||
|
campaign;;;;;;2013 - A. ceylanicum detailer for Asia;;;;
|
||||||
|
campaign;;;;;;2013 - Egg Shedding Leaflet;;;;
|
||||||
|
campaign;;;;;;2013 - WSAVA CE Ad;;;;
|
||||||
|
campaign;;;;;;2014 - Worming Tool;;;;
|
||||||
|
campaign;;;;;;2016 - Endo Book;;;;
|
||||||
|
campaign;;;;;;2017 - Ecto Book;;;;
|
||||||
|
campaign;(2007-2017);;;;;Dermatology Brochure ;;;;
|
||||||
|
skip;;;;;;Parasite Calendar;;;;
|
||||||
|
classify;BusinessUnit.FAP;;;Brands & Concepts FAP;;;;;;
|
||||||
|
brand;;;;;Baycox;;;;;
|
||||||
|
keyword;;;;;;Baycox Bovis;;;;
|
||||||
|
campaign;;;;;;;2012 - Toolkit;;;
|
||||||
|
campaign;;;;;;;2013 - iPad eDetailer;;;
|
||||||
|
campaign;;;;;;;2016 - Baycox Bovis Detailer;;;
|
||||||
|
keyword;;;;;;Baycox Lamb;;;;
|
||||||
|
keyword;;;;;;Baycox Poultry;;;;
|
||||||
|
keyword;;;;;;Baycox Swine;;;;
|
||||||
|
campaign;;;;;;;2010 - Old Concept: Gain more by preventing coccidiosis;;;
|
||||||
|
campaign;;;;;;;2012 - Toolkit;;;
|
||||||
|
campaign;(2015-2016);;;;;;2015/16 - Baycox Iron Oral;;;
|
||||||
|
skip;;;;;;;;Images;;
|
||||||
|
campaign;;;;;;;2016 - Baycox Swine Detailer;;;
|
||||||
|
campaign;(2004-2008);;;;;Baycox Technical Information;;;;
|
||||||
|
skip;;;;;;Videos/Animations;;;;
|
||||||
|
keyword;;;;;;;Baycox Bovis;;;
|
||||||
|
keyword;;;;;;;Baycox Lamb;;;
|
||||||
|
keyword;;;;;;;Baycox Swine;;;
|
||||||
|
brand;;;;;Bayticol;;;;;
|
||||||
|
brand;;;;;Baytril;;;;;
|
||||||
|
campaign;(2011-2013);;;;;Brand Guide;;;;
|
||||||
|
campaign;(2006-2013);;;;;Cattle;;;;
|
||||||
|
keyword;;;;;;;Advertisements;;;
|
||||||
|
keyword;;;;;;;Mastitis Technical Manual;;;
|
||||||
|
campaign;(2011);;;;;MPC Concept;;;;
|
||||||
|
campaign;(2013);;;;;Poultry;;;;
|
||||||
|
keyword;;;;;;;Advertisements;;;
|
||||||
|
keyword;;;;;;;Brochures & Manuals;;;
|
||||||
|
campaign;(2011-2015);;;;;Swine;;;;
|
||||||
|
keyword;;;;;;;Advertisements;;;
|
||||||
|
keyword;;;;;;;Brochures & Manuals;;;
|
||||||
|
keyword;;;;;;;eDetailer;;;
|
||||||
|
brand;;;;;Bayvarol;;;;;
|
||||||
|
campaign;(2006-2013);;;;;Bayvarol Perizin Checkmite - Toolkit;;;;
|
||||||
|
skip;;;;;;;Animated PowerPoint Presentation;;;
|
||||||
|
skip;;;;;;;Give Aways;;;
|
||||||
|
brand;;;;;Biosecurity;;;;;
|
||||||
|
campaign;;;;;;2014 - eDetailer;;;;
|
||||||
|
brand;;;;;Catosal;;;;;
|
||||||
|
campaign;;;;;;2008 - Trust Pink Toolkit;;;;
|
||||||
|
campaign;;;;;;2011 - Metabolic Moments;;;;
|
||||||
|
campaign;(2013-2016);;;;;Body Condition Score;;;;
|
||||||
|
brand;;;;;Ceffect;;;;;
|
||||||
|
brand;;;;;Dairy Products;;;;;
|
||||||
|
brand;;;;;Honey bee care;;;;;
|
||||||
|
keyword;;;;;;Images;;;;
|
||||||
|
brand;;;;;Polyvar;;;;;Brand noch nicht im System
|
||||||
|
classify;Status.Archived;;;;Transforming Livestock Production;;;Wird archiviert;;Welche Brand?
|
||||||
|
classify;Status.Archived;;;;;TLP Pictograms;;;;
|
||||||
|
brand;;;;;Victrio;;;;;
|
||||||
|
brand;;;;;Zelnate;;;;;
|
||||||
|
campaign;(2016);;;;;Brand Guide;;;;
|
||||||
|
campaign;(2016);;;;;Digital;;;;
|
||||||
|
campaign;(2015);;;;;Logo;;;;
|
||||||
|
campaign;(2015-2016);;;;;Print;;;;
|
||||||
|
campaign;(2016);;;;;Videos;;;;
|
||||||
|
classify;MediaType.Guideline;;;Copyright Templates;-> unter Guidelines;;;;;
|
||||||
|
classify;MediaType.Guideline;;;Guidelines;;;;;;
|
||||||
|
skip;;;;;AH Meeting Culture;;;;;
|
||||||
|
skip;;;;;Agency Briefing Templates;;;;;
|
||||||
|
skip;;;;;BAH eDetailer Template;;;;;
|
||||||
|
classify;BusinessUnit.CAP;;;;CAP Brand/Packaging Design;;;;;
|
||||||
|
campaign;(2009-2017);;;;;Advantage Family;;;;
|
||||||
|
campaign;(2003-2012);;;;;Bolfo/Bayopet (OTC);;;;
|
||||||
|
campaign;(2012-2017);;;;;Drontal Product Family;;;;
|
||||||
|
campaign;(2014);;;;;Ethical Pack;;;;
|
||||||
|
campaign;(2005);;;;;Kiltix Products;;;;
|
||||||
|
campaign;(2017);;;;;Lifestyle Photography 2017;;;;
|
||||||
|
campaign;(2009-2012);;;;;Profender Products;;;;
|
||||||
|
campaign;(2011-2017);;;;;Seresto Packaging;;;;
|
||||||
|
classify;BusinessUnit.FAP;;;;FAP Brand/Packaging Design;;;;;
|
||||||
|
campaign;(2011);;;;;Farm Animal Products;;;;
|
||||||
|
campaign;(2006);;;;;Farmhygiene Products;;;;
|
||||||
|
skip;;;;;Global Exhibit Design Manual;;;;;
|
||||||
|
not migrated;;;;;Training Tools - MediaAssistant;;;;;
|
||||||
|
classify;BusinessUnit.General;;;Images;;;kommt komplett in Space General;;;Nach Motives-Baum unter Images
|
||||||
|
motives;;;;;Applications;;;;;
|
||||||
|
motives;;;;;Different animals together;;;;;
|
||||||
|
motives;;;;;Disease Symptoms;;;;;
|
||||||
|
motives;;;;;;Organs;;;;
|
||||||
|
motives;;;;;;Skin;;;;
|
||||||
|
motives;;;;;Examination/Sampling;;;;;
|
||||||
|
motives;;;;;Illustrations;;;;;
|
||||||
|
motives;;;;;;Animals and people;;;;
|
||||||
|
motives;;;;;;Application;;;;
|
||||||
|
motives;;;;;;Art;;;;
|
||||||
|
skip;;;;;;;Cat and DogART, Portugal;;;
|
||||||
|
skip;;;;;;;Cat and DogART, Prague;;;
|
||||||
|
skip;;;;;;;CattleART;;;
|
||||||
|
skip;;;;;;;PigART;;;
|
||||||
|
skip;;;;;;;PoultryART;;;
|
||||||
|
skip;;;;;;;SheepART;;;
|
||||||
|
motives;;;;;;Cells and microorganisms;;;;
|
||||||
|
motives;;;;;;Lifecycles & Routes of infection;;;;
|
||||||
|
motives;;;;;;Maps;;;;
|
||||||
|
motives;;;;;;Parasites;;;;
|
||||||
|
motives;;;;;;Pictograms;;;;
|
||||||
|
motives;;;;;Insects and arachnids;;;;;
|
||||||
|
motives;;;;;;Fleas;;;;
|
||||||
|
motives;;;;;;Flies;;;;
|
||||||
|
motives;;;;;;Lice;;;;
|
||||||
|
motives;;;;;;Mites;;;;
|
||||||
|
motives;;;;;;Mosquitoes;;;;
|
||||||
|
motives;;;;;;Ticks;;;;
|
||||||
|
motives;;;;;Laboratory;;;;;
|
||||||
|
motives;;;;;Microorganism;;;;;
|
||||||
|
motives;;;;;People;;;;;
|
||||||
|
motives;;;;;People with animals;;;;;
|
||||||
|
motives;;;;;Target animals;;;;;
|
||||||
|
motives;;;;;;Birds;;;;
|
||||||
|
motives;;;;;;Cats;;;;
|
||||||
|
motives;;;;;;Cattle;;;;
|
||||||
|
motives;;;;;;Dogs;;;;
|
||||||
|
motives;;;;;;Honey bees;;;;
|
||||||
|
keyword;;;;;;;Flowers;;;
|
||||||
|
motives;;;;;;Horses;;;;
|
||||||
|
motives;;;;;;Poultry;;;;
|
||||||
|
motives;;;;;;Reptiles and turtles;;;;
|
||||||
|
motives;;;;;;Sheep;;;;
|
||||||
|
motives;;;;;;Small furry animals;;;;
|
||||||
|
motives;;;;;;Swine;;;;
|
||||||
|
motives;;;;;;Zoo and other animals;;;;
|
||||||
|
motives;;;;;Worms (Helminths);;;;;
|
||||||
|
motives;;;;;;Roundworms;;;;
|
||||||
|
motives;;;;;;Tapeworms;;;;
|
||||||
|
scan;;;;Logos;;;;;;bitte den Brands zuordnen
|
||||||
|
skip;;;;Packshots;;;;;;
|
||||||
|
brand;;;;;Advantage;;;;;
|
||||||
|
brand;;;;;Advantix;;;;;
|
||||||
|
brand;;;;;Advocate;;;;;
|
||||||
|
brand;;;;;Baycox;;;;;
|
||||||
|
brand;;;;;Baytril;;;;;
|
||||||
|
brand;;;;;Bolfo/Bay-o-Pet;;;;;
|
||||||
|
brand;;;;;Byemite;;;;;
|
||||||
|
brand;;;;;Catosal;;;;;
|
||||||
|
brand;;;;;Clavobay;;;;;
|
||||||
|
brand;;;;;Droncit;;;;;
|
||||||
|
brand;;;;;Drontal;;;;;
|
||||||
|
brand;;;;;Procox;;;;;
|
||||||
|
brand;;;;;Profender;;;;;
|
||||||
|
brand;;;;;Seresto;;;;;
|
||||||
|
brand;;;;;Veraflox;;;;;
|
||||||
|
scan;;;;Video Library;;-> alles was nicht brand-related ist, bitte unter Space General;;;;Wenn möglich, Brand zuordnen, sonst General/unassigned
|
||||||
|
keyword;;;;;Events;;;;;
|
||||||
|
brand;;;;;;CVBD;;;;
|
||||||
|
skip;;;;;Films by Brand;;;;;
|
||||||
|
brand;;;;;;Advantage;;;;
|
||||||
|
brand;;;;;;Advantix / K9 Advantix;;;;
|
||||||
|
skip;;;;;;;No Bite;;;
|
||||||
|
skip;;;;;;;Repel & Kill - 2014;;;
|
||||||
|
brand;;;;;;Advocate/Advantage Multi;;;;
|
||||||
|
brand;;;;;;Baycox;;;;
|
||||||
|
brand;;;;;;Bayer Parasite Solutions;;;;
|
||||||
|
brand;;;;;;Catosal;;;;
|
||||||
|
brand;;;;;;Drontal;;;;
|
||||||
|
brand;;;;;;Procox;;;;
|
||||||
|
brand;;;;;;Profender Cat;;;;
|
||||||
|
brand;;;;;;Profender Dog;;;;
|
||||||
|
brand;;;;;;Seresto;;;;
|
||||||
|
brand;;;;;;Veraflox;;;;
|
||||||
|
brand;;;;;;Victrio;;;;
|
||||||
|
brand;;;;;;Zelnate;;;;
|
||||||
|
skip;;;;;Films by Indication;;;;;
|
||||||
|
keyword;;;;;;Flea;;;;
|
||||||
|
keyword;;;;;;Giardia;;;;
|
||||||
|
keyword;;;;;;Mite;;;;
|
||||||
|
keyword;;;;;;Mosquito;;;;
|
||||||
|
keyword;;;;;;Tick;;;;
|
||||||
|
keyword;;;;;;Worms;;;;
|
||||||
|
keyword;;;;;;;Aelurostrongylus abstrusus;;;
|
||||||
|
keyword;;;;;;;Angiostrongylus vasorum;;;
|
||||||
|
keyword;;;;;;;Dirofilaria immitis;;;
|
||||||
|
keyword;;;;;;;Dirofilaria repens;;;
|
||||||
|
keyword;;;;;;;Toxocara;;;
|
||||||
|
keyword;;;;;;Zoonosis;;;;
|
||||||
|
skip;;;;;TV Commercials;;;;;
|
||||||
|
brand;;;;;;Advantix / K9 Advantix;;;;
|
||||||
|
brand;;;;;;Advocate / Advantage Multi;;;;
|
||||||
|
brand;;;;;;Seresto;;;;
|
||||||
|
not migrated;;;BAH Image series;;;;;;;wird nicht migriert
|
||||||
|
skip;;;;Image series 1;;;;;;
|
||||||
|
skip;;;;Image series 2;;;;;;
|
||||||
|
classify;Status.Archived;;BAH Internal Videos;;"alle ins Archiv -> unter classification ""interne Videos""";;;;;
|
||||||
|
not migrated;;;BAH Webshop;;;;;;;wird nicht migriert
|
||||||
|
skip;;;;Advantage;;;;;;
|
||||||
|
skip;;;;Advantix;;;;;;
|
||||||
|
skip;;;;Advocate;;;;;;
|
||||||
|
skip;;;;BAH in general ;;;;;;
|
||||||
|
skip;;;;Baycox;;;;;;
|
||||||
|
skip;;;;Bayer Parasite Solution ;;;;;;
|
||||||
|
skip;;;;Bayticol;;;;;;
|
||||||
|
skip;;;;Baytril;;;;;;
|
||||||
|
skip;;;;Baytril CAP;;;;;;
|
||||||
|
skip;;;;Bayvarol;;;;;;
|
||||||
|
skip;;;;Bolfo ;;;;;;
|
||||||
|
skip;;;;Byemite ;;;;;;
|
||||||
|
skip;;;;CVBD Congress;;;;;;
|
||||||
|
skip;;;;Catosal;;;;;;
|
||||||
|
skip;;;;Cattle Art;;;;;;
|
||||||
|
skip;;;;Drontal;;;;;;
|
||||||
|
skip;;;;ESFM Congress ;;;;;;
|
||||||
|
skip;;;;Foresto ;;;;;;
|
||||||
|
skip;;;;IPVS Congress ;;;;;;
|
||||||
|
skip;;;;Kiltix;;;;;;
|
||||||
|
skip;;;;NAVC ;;;;;;
|
||||||
|
skip;;;;Pen;;;;;;
|
||||||
|
skip;;;;Perizin;;;;;;
|
||||||
|
skip;;;;Pig ART ;;;;;;
|
||||||
|
skip;;;;Procox;;;;;;
|
||||||
|
skip;;;;Profender;;;;;;
|
||||||
|
skip;;;;Renalzin;;;;;;
|
||||||
|
skip;;;;Rompun;;;;;;
|
||||||
|
skip;;;;Sebacil;;;;;;
|
||||||
|
skip;;;;Seresto;;;;;;
|
||||||
|
skip;;;;TLP Transforming LIvestock Production ;;;;;;
|
||||||
|
skip;;;;Technical Supplement ;;;;;;
|
||||||
|
skip;;;;Veraflox;;;;;;
|
||||||
|
skip;;;;Veterinary Parasitology;;;;;;
|
||||||
|
skip;;;;WAAVP Congress ;;;;;;
|
||||||
|
skip;;;;WBC Congress;;;;;;
|
||||||
|
skip;;;;Watches ;;;;;;
|
||||||
|
classify;Status.Archived;;BAH archive;;;-> muss gesondert nochmal besprochen werden;;;;
|
||||||
|
skip;;;;Advertising Media;;;;;;
|
||||||
|
classify;BusinessUnit.CAP;;;;CAP;;;;;
|
||||||
|
keyword;;;;;;Acticam;;;;Frage: Im Archiv sind brands, die es nicht mehr gibt.
|
||||||
|
brand;;;;;;Advantage;;;;D.h. wenn wir diese jetzt aufführen, sieht man doch auch brands
|
||||||
|
brand;;;;;;Advantix;;;;(die es nicht mehr gibt) in der User-Sicht? Oder? Evtl. alte Brands in Keywords
|
||||||
|
keyword;;;;;;;CVBD WebConference;;;
|
||||||
|
skip;;;;;;;;2014;;
|
||||||
|
skip;;;;;;;;2015;;
|
||||||
|
brand;;;;;;Advocate;;;;
|
||||||
|
keyword;;;;;;;Poster;;;
|
||||||
|
keyword;;;;;;BPS;;;;
|
||||||
|
brand;;;;;;Baytril;;;;
|
||||||
|
keyword;;;;;;Catosal;;;;
|
||||||
|
keyword;;;;;;Clavobay;;;;
|
||||||
|
keyword;;;;;;Dermatology;;;;
|
||||||
|
keyword;;;;;;Droncit;;;;
|
||||||
|
brand;;;;;;Drontal;;;;
|
||||||
|
keyword;;;;;;Fuciderm, Fucidin, Conoptal;;;;
|
||||||
|
keyword;;;;;;Hyonate;;;;
|
||||||
|
keyword;;;;;;Kiltix;;;;
|
||||||
|
brand;;;;;;Miscellaneous;;;;
|
||||||
|
brand;;;;;;Profender;;;;
|
||||||
|
keyword;;;;;;Renalzin;;;;
|
||||||
|
brand;;;;;;Seresto;;;;
|
||||||
|
keyword;;;;;;;2012 - Client education;;;
|
||||||
|
keyword;;;;;;;2012 - Launch;;;
|
||||||
|
keyword;;;;;;;Augmented Reality;;;
|
||||||
|
keyword;;;;;;;OTC;;;
|
||||||
|
keyword;;;;;;;POM;;;
|
||||||
|
keyword;;;;;;;Seresto Profender;;;
|
||||||
|
keyword;;;;;;;Seresto e-detailer;;;
|
||||||
|
brand;;;;;;Veraflox;;;;
|
||||||
|
classify;BusinessUnit.FAP;;;;FAP;;;;;
|
||||||
|
brand;;;;;;Baycox;;;;
|
||||||
|
keyword;;;;;;;Baycox Bovis Toolkit (Old);;;
|
||||||
|
skip;;;;;;;;Awareness Campaign;;
|
||||||
|
skip;;;;;;;;Images Baycox bovis Toolkit;;
|
||||||
|
skip;;;;;;;;Launch Campaign;;
|
||||||
|
keyword;;;;;;;Baycox Brand Communication 2009;;;
|
||||||
|
skip;;;;;;;;Key Visuals;;
|
||||||
|
skip;;;;;;;;Logos;;
|
||||||
|
keyword;;;;;;;Baycox Lamb Toolkit;;;
|
||||||
|
skip;;;;;;;;Images Baycox Lamb Toolkit;;
|
||||||
|
keyword;;;;;;;Baycox Piglet Launch Campaign - Toolkit;;;
|
||||||
|
skip;;;;;;;;Baycox Piglet Images;;
|
||||||
|
keyword;;;;;;;Baycox Poultry;;;
|
||||||
|
skip;;;;;;;;Images Baycox Poultry;;
|
||||||
|
keyword;;;;;;;The European Campaigns;;;
|
||||||
|
skip;;;;;;;;Awareness;;
|
||||||
|
skip;;;;;;;;Launch;;
|
||||||
|
brand;;;;;;Bayticol;;;;
|
||||||
|
skip;;;;;;;Images;;;
|
||||||
|
brand;;;;;;Baytril;;;;
|
||||||
|
keyword;;;;;;; Baytril International Communication Concepts;;;
|
||||||
|
skip;;;;;;;;Images;;
|
||||||
|
keyword;;;;;;;Baytril - Communication Concept 2011;;;
|
||||||
|
skip;;;;;;;;Images;;
|
||||||
|
keyword;;;;;;;Baytril 1nject Concept;;;
|
||||||
|
skip;;;;;;;;Images;;
|
||||||
|
keyword;;;;;;;Baytril Eyecatcher Campaign;;;
|
||||||
|
skip;;;;;;;;Images;;
|
||||||
|
keyword;;;;;;;Baytril MPC Brochure;;;
|
||||||
|
skip;;;;;;;;Images;;
|
||||||
|
keyword;;;;;;;Baytril The right choice Toolkit;;;
|
||||||
|
skip;;;;;;;;Images;;
|
||||||
|
keyword;;;;;;;Baytril against Mastitis - Technical manual;;;
|
||||||
|
skip;;;;;;;;Images;;
|
||||||
|
keyword;;;;;;;Baytril max -Advertising Concept 1998;;;
|
||||||
|
skip;;;;;;;;Images;;
|
||||||
|
skip;;;;;;;;Technical Manual;;
|
||||||
|
skip;;;;;;;;;Images;
|
||||||
|
keyword;;;;;;Bayvarol;;;;
|
||||||
|
keyword;;;;;;;Bayvarol Perizin Checkmite - Toolkit;;;
|
||||||
|
skip;;;;;;;;Images;;
|
||||||
|
keyword;;;;;;ByeMite ;;;;
|
||||||
|
keyword;;;;;;;ByeMite Say Goodbye to Red Mites - The Toolkit;;;
|
||||||
|
skip;;;;;;;;Images;;
|
||||||
|
skip;;;;;;;Images;;;
|
||||||
|
brand;;;;;;Catosal;;;;
|
||||||
|
keyword;;;;;;;Metabolic Moments 2011;;;
|
||||||
|
skip;;;;;;;;Images;;
|
||||||
|
keyword;;;;;;;Trust Pinkt Toolkit 2008;;;
|
||||||
|
skip;;;;;;;;Images;;
|
||||||
|
brand;;;;;;Dairy Products;;;;
|
||||||
|
brand;;;;;;Biosecurity;;;;
|
||||||
|
keyword;;;;;;Prolongal;;;;
|
||||||
|
brand;;;;;;Transforming Livestock Production;;;;
|
||||||
|
skip;;;;;;;Images;;;
|
||||||
|
not migrated;;;;Give Aways;;;;;;
|
||||||
|
not migrated;;;;Graphics/tables;;;;;;
|
||||||
|
not migrated;;;;Guidelines;;;;;;
|
||||||
|
;;;;;Advocate Guideline 2009;;;;;
|
||||||
|
;;;;;CAP Brand Design;;;;;
|
||||||
|
;;;;;;Advantage family;;;;
|
||||||
|
;;;;;;Drontal Plus;;;;
|
||||||
|
;;;;;;HOB 2000;;;;
|
||||||
|
;;;;;;Kiltix;;;;
|
||||||
|
;;;;;;Packaging Design 1996;;;;
|
||||||
|
;;;;;;Pet Care Products (OTC);;;;
|
||||||
|
;;;;;;Profender;;;;
|
||||||
|
;;;;;;Seresto;;;;
|
||||||
|
;;;;;;;Packaging Images;;;
|
||||||
|
;;;;;FAP Brand Design;;;;;
|
||||||
|
;;;;;;Farm Animal Products;;;;
|
||||||
|
;;;;;;Farmhygiene Products;;;;
|
||||||
|
;;;;;Packaging;;;;;
|
||||||
|
;;;;;;Absolut;;;;
|
||||||
|
;;;;;;Advantage;;;;
|
||||||
|
;;;;;;Advantix;;;;
|
||||||
|
;;;;;Training Tools MA;;;;;
|
||||||
|
;;;;;eDetailer Template;;;;;
|
||||||
|
not migrated;;;;Illustrations;;;;;;
|
||||||
|
not migrated;;;;Images;;;;;;
|
||||||
|
motives;;;;;Animals;;;;;
|
||||||
|
motives;;;;;;Bees;;;;
|
||||||
|
motives;;;;;;Benelux Images black/white;;;;
|
||||||
|
motives;;;;;;Cats;;;;
|
||||||
|
motives;;;;;;Cattle;;;;
|
||||||
|
motives;;;;;;Dogs;;;;
|
||||||
|
motives;;;;;;Ectoparasites in pictures;;;;
|
||||||
|
motives;;;;;;Horses;;;;
|
||||||
|
motives;;;;;;Images from Mexico;;;;
|
||||||
|
motives;;;;;;Insects and arachnids;;;;
|
||||||
|
motives;;;;;;;Red bird mite;;;
|
||||||
|
motives;;;;;;Poultry;;;;
|
||||||
|
motives;;;;;;Sheep ticks and control;;;;
|
||||||
|
motives;;;;;;Sheeps;;;;
|
||||||
|
motives;;;;;;Small furry animals;;;;
|
||||||
|
motives;;;;;;Swine;;;;
|
||||||
|
motives;;;;;;Ticks and tickborne;;;;
|
||||||
|
motives;;;;;;Worms;;;;
|
||||||
|
motives;;;;;Application;;;;;
|
||||||
|
motives;;;;;Different animals together;;;;;
|
||||||
|
motives;;;;;Disease symptoms;;;;;
|
||||||
|
motives;;;;;;Myiases;;;;
|
||||||
|
motives;;;;;Events;;;;;
|
||||||
|
motives;;;;;;CVBD symposium, Billesley 2006;;;;
|
||||||
|
motives;;;;;;WSAVA 2006, Prag;;;;
|
||||||
|
motives;;;;;Microorganisms;;;;;
|
||||||
|
motives;;;;;Microscope images;;;;;
|
||||||
|
motives;;;;;;LM images;;;;
|
||||||
|
motives;;;;;;SEM images;;;;
|
||||||
|
motives;;;;;People;;;;;
|
||||||
|
motives;;;;;People and animals;;;;;
|
||||||
|
motives;;;;;;Advantix, 2003 - Free the dog Toolkit;;;;
|
||||||
|
not migrated;;;;Logos;;;;;;
|
||||||
|
not migrated;;;;PR & Congresses;;;;;;
|
||||||
|
;;;;;Congresses;;;;;
|
||||||
|
;;;;;;Angio Forum;;;;
|
||||||
|
;;;;;;CVBD;;;;
|
||||||
|
;;;;;;ECVIM;;;;
|
||||||
|
;;;;;;ESFM;;;;
|
||||||
|
;;;;;;ESVD;;;;
|
||||||
|
;;;;;;IPVS, WBC;;;;
|
||||||
|
;;;;;Public Relations;;;;;
|
||||||
|
;;;;;;Brand PR;;;;
|
||||||
|
;;;;;;Press Releases;;;;
|
||||||
|
not migrated;;;;Packshots;;;;;;
|
||||||
|
not migrated;;;;Videos;;;;;;
|
||||||
|
;;;;;CAP;;;;;
|
||||||
|
;;;;;;Advantage;;;;
|
||||||
|
;;;;;;Advantix;;;;
|
||||||
|
;;;;;;Advocate;;;;
|
||||||
|
;;;;;;BPS;;;;
|
||||||
|
;;;;;;Baytril;;;;
|
||||||
|
;;;;;;Drontal;;;;
|
||||||
|
;;;;;;Profender;;;;
|
||||||
|
;;;;;;Renalzin;;;;
|
||||||
|
;;;;;;Rompun;;;;
|
||||||
|
;;;;;;Seresto;;;;
|
||||||
|
;;;;;;Worms;;;;
|
||||||
|
;;;;;Events;;;;;
|
||||||
|
;;;;;;Baytril Symposium 2009 Florence;;;;
|
||||||
|
;;;;;;CVBD / Zoonosis;;;;
|
||||||
|
;;;;;;GM Workshop 2011, Krefeld;;;;
|
||||||
|
;;;;;;IPVS 2010;;;;
|
||||||
|
;;;;;;Parasite Exhibition Museum;;;;
|
||||||
|
;;;;;;WBC;;;;
|
||||||
|
;;;;;FAP;;;;;
|
||||||
|
;;;;;;Baycox;;;;
|
||||||
|
;;;;;;Baytril;;;;
|
||||||
|
;;;;;;Bye Mite;;;;
|
||||||
|
;;;;;Historical films;;;;;
|
||||||
|
;;;;;Marketing Excellence;;;;;
|
||||||
|
;;;;;TV Spots;;;;;
|
||||||
|
;;;;;Webinars;;;;;
|
||||||
|
not migrated;;;;Webshop;;;;;;
|
||||||
|
;;;;;Clothes;;;;;
|
||||||
|
;;;;;Special Edition;;;;;
|
||||||
|
not migrated;;;M-CAP-Links;;;;;;;
|
||||||
|
skip;;;;AI Symposia;;;;;;
|
||||||
|
skip;;;;Advocate D repens SEM '16;;;;;;
|
||||||
|
skip;;;;AngioSEM;;;;;;
|
||||||
|
skip;;;;Baytril CC;;;;;;
|
||||||
|
skip;;;;CVBD;;;;;;
|
||||||
|
skip;;;;Veraflox Det;;;;;;
|
||||||
|
not migrated;;;Medical Care ;;;;;;;
|
||||||
|
File diff suppressed because it is too large
Load Diff
@@ -31,7 +31,7 @@ import com.bayer.edam.migration.mam.Entry.Download;
|
|||||||
import com.bayer.edam.migration.mam.Entrylist;
|
import com.bayer.edam.migration.mam.Entrylist;
|
||||||
import com.fasterxml.jackson.databind.ObjectMapper;
|
import com.fasterxml.jackson.databind.ObjectMapper;
|
||||||
|
|
||||||
@SpringBootApplication
|
//@SpringBootApplication
|
||||||
@PropertySource("file:secret.properties")
|
@PropertySource("file:secret.properties")
|
||||||
public class EntryDownloader implements CommandLineRunner {
|
public class EntryDownloader implements CommandLineRunner {
|
||||||
|
|
||||||
|
|||||||
@@ -1,6 +1,7 @@
|
|||||||
package com.bayer.edam.migration;
|
package com.bayer.edam.migration;
|
||||||
|
|
||||||
import java.io.File;
|
import java.io.File;
|
||||||
|
import java.io.IOException;
|
||||||
import java.net.URI;
|
import java.net.URI;
|
||||||
import java.nio.charset.Charset;
|
import java.nio.charset.Charset;
|
||||||
import java.text.SimpleDateFormat;
|
import java.text.SimpleDateFormat;
|
||||||
@@ -43,7 +44,7 @@ import com.bayer.edam.migration.mam.categories.CategoryTree;
|
|||||||
import com.bayer.edam.migration.mam.categories.CategoryTree.Node;
|
import com.bayer.edam.migration.mam.categories.CategoryTree.Node;
|
||||||
import com.fasterxml.jackson.databind.ObjectMapper;
|
import com.fasterxml.jackson.databind.ObjectMapper;
|
||||||
|
|
||||||
//@SpringBootApplication
|
@SpringBootApplication
|
||||||
@PropertySource("file:secret.properties")
|
@PropertySource("file:secret.properties")
|
||||||
public class MamMigrationSelective implements CommandLineRunner {
|
public class MamMigrationSelective implements CommandLineRunner {
|
||||||
|
|
||||||
@@ -51,11 +52,11 @@ public class MamMigrationSelective implements CommandLineRunner {
|
|||||||
|
|
||||||
static final String adamHost = "https://edam-q.bayer.com:2015";
|
static final String adamHost = "https://edam-q.bayer.com:2015";
|
||||||
static final String mamHost = "https://service.media-assistant.animalhealth.bayer.com";
|
static final String mamHost = "https://service.media-assistant.animalhealth.bayer.com";
|
||||||
static final int[] selection = { 71948, /*71048, 70778, 70746, 70142,*/ 70361, /*63924, 71263, 63201, 56942, 57641, 70745, 70440, 70340,
|
private List<Integer> entrySelection = new ArrayList<Integer>(Arrays.asList( 28861, 28860, 71948, /*71048, 70778, 70746, 70142,*/ 70361/*, 63924, 71263, 63201, 56942, 57641, 70745, 70440, 70340,
|
||||||
70288, 71725*/ };
|
70288, 71725*/));
|
||||||
|
|
||||||
static final String categoryJson = "C:\\Users\\gexce\\git\\mam-migration\\AH MAM Migration\\resources\\2017-10-19_categories.json";
|
static final String categoryJson = "resources/2017-10-19_categories.json";
|
||||||
static final String categoryMapping = "C:\\Users\\gexce\\git\\mam-migration\\AH MAM Migration\\resources\\Media_Assistant_Categories_131017_EDITED.csv";
|
static final String categoryMapping = "resources/Media_Assistant_Categories_131017_EDITED_without_archive.csv";
|
||||||
|
|
||||||
static final File entryLog = new File("C:\\Temp\\Migration AH\\files\\entry.log");
|
static final File entryLog = new File("C:\\Temp\\Migration AH\\files\\entry.log");
|
||||||
static final File problemLog = new File("C:\\Temp\\Migration AH\\files\\problem.log");
|
static final File problemLog = new File("C:\\Temp\\Migration AH\\files\\problem.log");
|
||||||
@@ -84,6 +85,8 @@ public class MamMigrationSelective implements CommandLineRunner {
|
|||||||
@Override
|
@Override
|
||||||
public void run(String... strings) throws Exception {
|
public void run(String... strings) throws Exception {
|
||||||
|
|
||||||
|
// readEntryIDsFromFile();
|
||||||
|
|
||||||
log.info("Write log headers for " + entryLog.getAbsolutePath());
|
log.info("Write log headers for " + entryLog.getAbsolutePath());
|
||||||
FileUtils.writeStringToFile(entryLog, "Location" + fieldSeparator + "Entry" + lineSeparator, Charset.forName("utf-8"));
|
FileUtils.writeStringToFile(entryLog, "Location" + fieldSeparator + "Entry" + lineSeparator, Charset.forName("utf-8"));
|
||||||
log.info("Write log headers for " + problemLog.getAbsolutePath());
|
log.info("Write log headers for " + problemLog.getAbsolutePath());
|
||||||
@@ -114,22 +117,24 @@ public class MamMigrationSelective implements CommandLineRunner {
|
|||||||
}
|
}
|
||||||
|
|
||||||
HttpEntity<String> entity = new HttpEntity<String>("", mamHeaders);
|
HttpEntity<String> entity = new HttpEntity<String>("", mamHeaders);
|
||||||
for (int id : selection) {
|
for (int id : entrySelection) {
|
||||||
log.info("GET entry " + id);
|
log.info("GET entry " + id);
|
||||||
|
|
||||||
Entry entry = restTemplate.exchange(mamHost + "/rest/migration/entry/{id}", HttpMethod.GET, entity, Entry.class, id).getBody();
|
Entry entry = restTemplate.exchange(mamHost + "/rest/migration/entry/{id}", HttpMethod.GET, entity, Entry.class, id).getBody();
|
||||||
|
|
||||||
|
log.debug("Name: " + entry.name.get("en"));
|
||||||
|
|
||||||
// check exclusion criteria
|
// check exclusion criteria
|
||||||
if (entry.stateId == 7) {
|
if (entry.stateId == 7) {
|
||||||
log.info("Skipping entry " + entry.id + ": Status " + entry.stateId + "(LOCKED_BY_ADMIN)");
|
log.info("RESULT Skipping entry " + entry.id + ": Status " + entry.stateId + "(LOCKED_BY_ADMIN)");
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
else if (entry.stateId == 8) {
|
else if (entry.stateId == 8) {
|
||||||
log.info("Skipping entry " + entry.id + ": Status " + entry.stateId + "(ASSIGNED_TO_INDEXATION)");
|
log.info("RESULT Skipping entry " + entry.id + ": Status " + entry.stateId + "(ASSIGNED_TO_INDEXATION)");
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
else if (entry.stateId == 10) {
|
else if (entry.stateId == 10) {
|
||||||
log.info("Skipping entry " + entry.id + ": Status " + entry.stateId + "(ARCHIVED)");
|
log.info("RESULT Skipping entry " + entry.id + ": Status " + entry.stateId + "(ARCHIVED)");
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -155,24 +160,27 @@ public class MamMigrationSelective implements CommandLineRunner {
|
|||||||
// process categories
|
// process categories
|
||||||
Set<String> keywords = new HashSet<String>();
|
Set<String> keywords = new HashSet<String>();
|
||||||
|
|
||||||
if (entry.categories.size() > 1)
|
|
||||||
log.warn("Entry " + entry.id + " has " + entry.categories.size() + " categories assigned");
|
|
||||||
|
|
||||||
for (int categoryId : entry.categories) {
|
for (int categoryId : entry.categories) {
|
||||||
log.debug("Category: " + categoryId);
|
log.debug("Category: " + categoryId);
|
||||||
|
|
||||||
Node node = mamCategoryTree.getNode(categoryId);
|
Node node = mamCategoryTree.getNode(categoryId);
|
||||||
|
log.debug("Node: " + node);
|
||||||
List<Node> path = new LinkedList<Node>();
|
List<Node> path = new LinkedList<Node>();
|
||||||
|
|
||||||
Node tmpNode = node;
|
Node tmpNode = node;
|
||||||
while (tmpNode.id != CategoryTree.ROOT_NODE_ID) {
|
while (tmpNode.id != CategoryTree.ROOT_NODE_ID) {
|
||||||
|
if (tmpNode.id == 0) {
|
||||||
|
log.info("RESULT Skipping entry " + entry.id + ": Node outside of category tree (" + node.toString() + ")");
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
path.add(0, tmpNode);
|
path.add(0, tmpNode);
|
||||||
tmpNode = tmpNode.parent;
|
tmpNode = tmpNode.parent;
|
||||||
}
|
}
|
||||||
|
|
||||||
for (Node n : path) {
|
for (Node n : path) {
|
||||||
if (n.action.equals("not migrated")) {
|
if (n.action.equals("not migrated")) {
|
||||||
log.warn("Skipping entry " + entry.id + " because of tag on (parent) category " + n.name + " (" + n.id + ")");
|
log.info("RESULT Skipping entry " + entry.id + " because of tag on (parent) category " + n.name + " (" + n.id + ")");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -206,7 +214,7 @@ public class MamMigrationSelective implements CommandLineRunner {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (yearClassification == null) {
|
if (yearClassification == null) {
|
||||||
log.info("Create campaign year " + campaignYear);
|
log.debug("Create campaign year " + campaignYear);
|
||||||
|
|
||||||
UploadClassification newYear = new UploadClassification(campaignYear, campaignYear);
|
UploadClassification newYear = new UploadClassification(campaignYear, campaignYear);
|
||||||
|
|
||||||
@@ -215,8 +223,6 @@ public class MamMigrationSelective implements CommandLineRunner {
|
|||||||
EntityId classificationId = restTemplate.exchange(adamHost + "/classifications", HttpMethod.POST, httpEntity, EntityId.class).getBody();
|
EntityId classificationId = restTemplate.exchange(adamHost + "/classifications", HttpMethod.POST, httpEntity, EntityId.class).getBody();
|
||||||
newYear.guid = classificationId.id;
|
newYear.guid = classificationId.id;
|
||||||
|
|
||||||
log.info("Created campaign year: " + campaignYear);
|
|
||||||
|
|
||||||
// retrieve the newly created classification back
|
// retrieve the newly created classification back
|
||||||
yearClassification = restTemplate.exchange(adamHost + "/classification/" + newYear.guid, HttpMethod.GET, adamHeadersEntity, Classification.class).getBody();
|
yearClassification = restTemplate.exchange(adamHost + "/classification/" + newYear.guid, HttpMethod.GET, adamHeadersEntity, Classification.class).getBody();
|
||||||
campaignYears.add(yearClassification);
|
campaignYears.add(yearClassification);
|
||||||
@@ -246,19 +252,16 @@ public class MamMigrationSelective implements CommandLineRunner {
|
|||||||
try {
|
try {
|
||||||
EntityId campaignId = restTemplate.exchange(adamHost + "/classifications", HttpMethod.POST, httpEntity, EntityId.class).getBody();
|
EntityId campaignId = restTemplate.exchange(adamHost + "/classifications", HttpMethod.POST, httpEntity, EntityId.class).getBody();
|
||||||
campaign.guid = campaignId.id;
|
campaign.guid = campaignId.id;
|
||||||
|
|
||||||
log.info("Created campaign: " + campaignName + ";" + campaignLabel + ";" + campaign.guid);
|
|
||||||
record.addClassification(new WriteClassification(campaign.guid, 1));
|
record.addClassification(new WriteClassification(campaign.guid, 1));
|
||||||
|
|
||||||
campaigns.add(campaign);
|
campaigns.add(campaign);
|
||||||
|
}
|
||||||
} catch (HttpStatusCodeException hsce) {
|
catch (HttpStatusCodeException hsce) {
|
||||||
log.error("Could not create campaign '" + campaignName + "' for entry " + entry.id + ": " + hsce.getStatusCode().toString());
|
log.error("Could not create campaign '" + campaignName + "' for entry " + entry.id + ": " + hsce.getStatusCode().toString());
|
||||||
log.error(hsce.getResponseBodyAsString());
|
log.error(hsce.getResponseBodyAsString());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} catch (NumberFormatException nfe) {
|
} catch (NumberFormatException nfe) {
|
||||||
log.warn("Could not parse year from string " + campaignYear);
|
log.error("Could not parse year from string " + campaignYear);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else if (n.action.equals("keyword")) {
|
else if (n.action.equals("keyword")) {
|
||||||
@@ -323,18 +326,31 @@ public class MamMigrationSelective implements CommandLineRunner {
|
|||||||
HttpEntity<UploadRecord> httpEntity = new HttpEntity<UploadRecord>(record, adamHeaders);
|
HttpEntity<UploadRecord> httpEntity = new HttpEntity<UploadRecord>(record, adamHeaders);
|
||||||
try {
|
try {
|
||||||
URI location = restTemplate.postForLocation(adamHost + "/records", httpEntity, UploadRecord.class);
|
URI location = restTemplate.postForLocation(adamHost + "/records", httpEntity, UploadRecord.class);
|
||||||
log.info("Entry " + entry.id + " migrated to record " + location);
|
log.info("RESULT Entry " + entry.id + " migrated to record " + location);
|
||||||
|
|
||||||
FileUtils.writeStringToFile(entryLog, location.toString() + fieldSeparator + entryJson + lineSeparator,
|
FileUtils.writeStringToFile(entryLog, location.toString() + fieldSeparator + entryJson + lineSeparator,
|
||||||
Charset.forName("utf-8"), true);
|
Charset.forName("utf-8"), true);
|
||||||
}
|
}
|
||||||
catch (HttpStatusCodeException hsce) {
|
catch (HttpStatusCodeException hsce) {
|
||||||
log.error("Skipping entry " + entry.id + ": Error while creating record " + hsce.getStatusCode().toString());
|
log.error("RESULT Skipping entry " + entry.id + ": Error while creating record " + hsce.getStatusCode().toString());
|
||||||
log.error(hsce.getResponseBodyAsString());
|
log.error(hsce.getResponseBodyAsString());
|
||||||
FileUtils.writeStringToFile(problemLog, entry.id + fieldSeparator + entryJson + lineSeparator, Charset.forName("utf-8"), true);
|
FileUtils.writeStringToFile(problemLog, entry.id + fieldSeparator + entryJson + lineSeparator, Charset.forName("utf-8"), true);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private void readEntryIDsFromFile() throws IOException {
|
||||||
|
File idFile = new File("resources/entrylist_2017-10-25.txt");
|
||||||
|
log.debug("Reading entry IDs from " + idFile.getAbsolutePath());
|
||||||
|
List<String> entryIdList = FileUtils.readLines(idFile, Charset.forName("utf-8"));
|
||||||
|
|
||||||
|
entrySelection = new ArrayList<Integer>();
|
||||||
|
|
||||||
|
log.debug("Parsing " + entryIdList.size() + " IDs");
|
||||||
|
for (String s : entryIdList) {
|
||||||
|
entrySelection.add(Integer.parseInt(s));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
private HttpHeaders createMamHeaders() {
|
private HttpHeaders createMamHeaders() {
|
||||||
HttpHeaders headers = new HttpHeaders();
|
HttpHeaders headers = new HttpHeaders();
|
||||||
headers.add("Accept", "application/json");
|
headers.add("Accept", "application/json");
|
||||||
|
|||||||
@@ -39,6 +39,16 @@ public class CategoryTree {
|
|||||||
return this.name.compareTo(o.name);
|
return this.name.compareTo(o.name);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public String toString() {
|
||||||
|
String s = "";
|
||||||
|
Node pointer = this;
|
||||||
|
while (pointer != pointer.parent) {
|
||||||
|
s = "/" + pointer.name + s;
|
||||||
|
pointer = pointer.parent;
|
||||||
|
}
|
||||||
|
return s;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
static class JsonCategory {
|
static class JsonCategory {
|
||||||
|
|||||||
Reference in New Issue
Block a user