Closed (won't fix)
Project:
ISBN2node
Version:
7.x-1.3
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
12 Sep 2011 at 14:32 UTC
Updated:
13 Oct 2011 at 17:10 UTC
In some cases, the authors list is bigger than 256 chars.
The solution implies to change the field author to be a multivalue field and to perform some changes in the module so that it fills the authors list. This can be done in the current implementation of the hook_form_alter.
Comments
Comment #1
vertikal.dk commentedbit_jammer,
I can see that this becomes a problem when the author list is very long. I haven't met the problem.
My first reaction would simply be to make the author field longer, accomodating to long author strings. Separating the authors into seperate fields, one author at a time, would require some more work, and basically change the structure of this otherwise pretty simple content type.
I can also see from the data that I get back that the author field is highly irregular, not using any standard for separating authors and oftentimes adding illustrators, editors and other roles to this text.
These are just a few examples from books I fetched:
Dick Brown
Taff Price; illustrations by George Thompson
by Gary LaFontaine
Kim Vletas, Stephen Vletas
Barry & Cathy Beck
As you can see they are not exactly standardized, and separating them into individuals would not be easy. In my own projects I haven't needed separate authors, and I think I'll leave it like it is - apart from making more space in the field.
Martin
Comment #2
bit_jammer commentedOk. I took the hard way (it seems).
I've converted the field in a multivalued one and then splitted the outcome from the webservice and filled this field. My final idea is to become this field in searcheable.
These are my changes:
I'm pretty sure this can be done in a easier way but since I'm quite new to this drupal world, this is the best I can give.
By the way, thanks for the answer.