text: function Projects(){for(var e=this,a=0;a<projects.length;a++)projects[a].sire=GetAnimalById(collection,projects[a].sireId),projects[a].dam=GetAnimalById(collection,projects[a].damId);e.projects=projects}function GetAnimalById(e,a){var i=$.grep(e,function(e){return e.id==a?e:void 0});return i.length>0?i[0]:null}!function(){angular.module("grr").controller("Projects",Projects)}();var projects=[{id:"GRR2014",dateStart:"11/14/2013",dateEnd:"04/17/2014",dateLaid:"02/23/2014",dateHatched:"04/16/2014",incubation:"artificial",sireId:"MSBB0910",damId:"EA0910Vi",description:"This is a pairing between my female 'Lucille' HY chondro and my 'Dupree' Calico x Kelme male. Very excited to see what happens here - my first chondro breeding project!",eggs:{count:17,fertile:17,infertile:0,slugs:0,questionable:0},offspring:[{animalId:"GRR1401"},{animalId:"GRR1402"},{animalId:"GRR1403"},{animalId:"GRR1404"},{animalId:"GRR1405"},{animalId:"GRR1406"},{animalId:"GRR1407"},{animalId:"GRR1408"},{animalId:"GRR1409"},{animalId:"GRR1410"},{animalId:"GRR1411"},{animalId:"GRR1412"},{animalId:"GRR1413"},{animalId:"GRR1414"},{animalId:"GRR1415"},{animalId:"GRR1416"}],photos:[{filename:"EA0910Vi",caption:"Dam"},{filename:"MSBB0910",caption:"Sire"}],events:[{date:"11/14/2013",title:"Introduction",description:"Introduced Male to Female",photo:""},{date:"11/15/2013",title:"Observed Copulation",description:"Copulation with [MSBB0910] Dupree",photo:"http://www.iherp.com/Gallery/91844/58984_327370_Large_c1AH4eXpIrHsy.jpg"},{date:"2/8/2014",title:"Pre-lay Shed",description:"",photo:""},{date:"2/24/2014",title:"Laid Eggs",description:"17 big, beautiful, plump eggs!",photo:"http://www.iherp.com/Gallery/91844/58984_338884_Large_IZJMfybjqfGhaJ8.jpg"}]},{id:"GRR2015",dateStart:"11/14/2014",dateEnd:"04/17/2015",dateLaid:"11/30/2015",dateHatched:"",incubation:"artificial",sireId:"MSBB0910",damId:"JEMS1019",description:"This is a pairing between my female 'Ella', an Arfak outcross produced by Jason Stevens and Ryan Burke, and my 'Dupree' Calico male.",eggs:{count:16,fertile:16,infertile:0,slugs:0,questionable:2},offspring:[{animalId:"GRR1501"},{animalId:"GRR1502"},{animalId:"GRR1503"},{animalId:"GRR1504"},{animalId:"GRR1505"},{animalId:"GRR1506"},{animalId:"GRR1507"},{animalId:"GRR1508"},{animalId:"GRR1509"},{animalId:"GRR1510"},{animalId:"GRR1511"},{animalId:"GRR1512"},{animalId:"GRR1513"},{animalId:"GRR1514"}],photos:[{filename:"JEMS1019",caption:"Dam"},{filename:"MSBB0910",caption:"Sire"}],events:[{date:"09/23/2014",title:"Introduction",description:"Introduced Male to Female",photo:""},{date:"09/23/2014",title:"Observed Copulation",description:"Copulation with [MSBB0910] Dupree",photo:"http://www.iherp.com/Gallery/91844/56664_365803_Large_uVJlAIHZcwXu6.jpg"},{date:"11/6/2014",title:"Removed Male",description:"Neither is showing any interest at this point.",photo:""},{date:"11/14/2014",title:"Pre-Lay Shed",description:"",photo:""},{date:"11/30/2014",title:"Laid Eggs",description:"16 big, beautiful, plump eggs!",photo:"http://www.iherp.com/Gallery/91844/56664_374125_Large_TdLElvE6SzbB.jpg"},{date:"01/19/2015",title:"Eggs Hatched",description:"All 14 good eggs hatched and babies are lookin great!  11 reds, 3 yellows.",photo:""}]}];