anchor.diff:      if (action == 'create' && object_class == 'sample' && "<%=new_specimen%>" == "true" ){
           window.opener.loadNewSpecimenAfterCreation(specimen_row, '<%=strain_id%>','<%=strain.is_dummy%>');
       }else if (action == 'create' && object_class == 'sample' && "<%=new_specimen%>" == "false"){
  -        window.opener.loadNewSampleAfterCreation(sample_row, '<%=object.specimen.title%>' );
  +        window.opener.loadNewSampleAfterCreation(sample_row, '<%=specimen_title%>' );
       }else if (action == 'create' && object_class == 'specimen' ){
           window.opener.loadNewSpecimenAfterCreation(specimen_row,'<%=strain_id%>','<%=strain.is_dummy%>');
       }else if (action == 'update' && object_class == 'sample'){
  
positive.code:     }
      alert("New item was " + action + "d!");
      window.close();
  </script>
negative.code: <% sample_row = []
     specimen_row = []
     new_specimen ||= false
     specimen_title = nil
     if object.kind_of?(Sample)
      sample_row = sample_row_data(object)
      specimen_row = specimen_row_data(object.specimen)
  