*** biblio.module	2009-05-11 13:46:05.000000000 +0100
--- biblio.module	2009-05-11 13:41:19.000000000 +0100
***************
*** 1378,1391 ****
        }
        break;
      default:
!       if ($form_state['storage'] == $form_state['values']['biblio_type'] || (!empty($form['#node']->biblio_type) && $form['#node']->biblio_type == $form_state['values']['biblio_type'])) {
!         $form_state['storage'] = "";
          $form_state['rebuild'] = FALSE;
        }
        else {
          $form_state['storage']['doi'] = TRUE;
          $form_state['storage']['paste'] = TRUE;
!         $form_state['storage'] = $form_state['values']['biblio_type'];
          $form_state['rebuild'] = TRUE;
          return;
        }
--- 1378,1391 ----
        }
        break;
      default:
!       if ($form_state['storage']['biblio_type'] == $form_state['values']['biblio_type'] || (!empty($form['#node']->biblio_type) && $form['#node']->biblio_type == $form_state['values']['biblio_type'])) {
!         unset($form_state['storage']['biblio_type']);
          $form_state['rebuild'] = FALSE;
        }
        else {
          $form_state['storage']['doi'] = TRUE;
          $form_state['storage']['paste'] = TRUE;
!         $form_state['storage']['biblio_type'] = $form_state['values']['biblio_type'];
          $form_state['rebuild'] = TRUE;
          return;
        }
