I need to extend the volume input so I can fit volumes such as "Fall/Winter" - the maxlength is 10 characters right now which gives me Fall/Winte.

I noticed that the maximum char length is set in the biblio.install. Do I need to reinstall to change this? I would rather not have to do this, seeing as the site is already populated and configured.

Is there some other way to change this?

Thanks so much for the help.

Comments

rjerome’s picture

Assuming your OK with working directly with the database you can apply the following commands to fix your problem...

UPDATE biblio_fields SET maxsize = 24 WHERE title = 'Volume';
ALTER TABLE biblio MODIFY COLUMN biblio_volume VARCHAR(24) ;

Otherwise an update could be added to the install file which would do the same things, but unless you are planning to upgrade to 6.x, adding your own update could cause problems since your installation will be out of sync with the distributed one.

Ron.

masood_mj’s picture

does this work with citekey? I need to extend the size of the citekey field because some bibliography applications autogenerate the citekey and when we import from them, the citekey shows the length error

Thanks

rhaschke’s picture

The same applies for citekey as well. Just adapt the names:

UPDATE biblio_fields SET maxsize = 255 WHERE name = 'biblio_citekey';
ALTER TABLE biblio MODIFY COLUMN biblio_citekey VARCHAR(255) ;

In biblio 6.x the citekey field is 255 in length already.

masood_mj’s picture

Version: 5.x-1.6 » 6.x-1.0-rc2

really? but the UI doesn't allow me to input a long citekey (more than 16 character) , and also it shows an error if I change it in DB and then edit the biblio item!

rjerome’s picture

Indeed, the form doesn't seem to be following it's own rules... according to the FAPI documentation

#maxlength

Used by: textfield

Description: The maximum amount of characters to accept as input.

and that fields maxlength is set to 255 but it doesn't seem to matter.

I'll check into this.

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.