Hello again!
I have a problem with the creation of new types of publications. A new type of publishing I have not made a major "year of publication", but biblio when creating a record still requires me to this.

CommentFileSizeAuthor
year-2.jpg42.42 KBkeha3912
year-1.jpg30.6 KBkeha3912

Comments

keha3912’s picture

My problem is not relevant?

rjerome’s picture

Sorry about that, I looked at this request and then it completely slipped my mind. This has been fixed in the -dev version, and you can fix your own version by commenting out lines 1431 - 1434 in the biblio_form_validate function contained in the biblio.module file as shown below...

//  $today = getdate();
//  if (!is_numeric(_biblio_numeric_year($form_state['values']['biblio_year'])))  {
//    form_set_error('biblio_year', t('Year of Publication must be a number between 1 and @thisyear or the words "In Press" or "Submitted" ', array('@thisyear' => $today['year'] + 1 )));
//  }

Ron.
(http://drupal.org/cvs?commit=230150)

keha3912’s picture

I looked corrected errors in the -dev version and therefore decided to upgrade biblio.module. Yes, now a 'biblio_year' has become optional. However, this module automatically adds a column 'Submitted'. But I thought how can I fix this - I'm changed translation 'Submitted' - 'Не указан' ('Not specified').
PS Thank you for your attention to my problems! :)

rjerome’s picture

Yes, what's happening is the database fills this column with the value 9999 if none is supplied (and I am interpreting a value of 9999 to mean that the paper has been submitted for publication but not actually published. There is another "magic" value of 9998 which means "In Press" and perhaps a third magic value of 0 could mean "Not Specified/Not Available". The values were chosen such that the "Submitted and In Press" entries would precede all others when sorted by year (descending), so a value of 0 would put all entries without a date after all other entries when sorted by year (descending).

Ron.

liam morland’s picture

Issue summary: View changes
Status: Active » Closed (outdated)

This version is no longer maintained. If this issue is still relevant to the Drupal 7 version, please re-open and provide details.