[Koha-devel] Koha frameworks - customizing size of input text/text boxes
Linda Culberson
lculber at mdah.state.ms.us
Thu Mar 24 19:58:14 CET 2011
All,
Before I get too much into reinventing the wheel, I was wondering if
anyone had customized the frameworks to expand the size of the input
boxes from text to text boxes?
I was thinking it was coming from addbiblio.pl
if (
length($value) > 100
or
( C4::Context->preference("marcflavour") eq "UNIMARC" &&
$tag >= 300
and $tag < 400 && $subfield eq 'a' )
or ( $tag >= 500
and $tag < 600
&& C4::Context->preference("marcflavour") eq "MARC21" )
)
{
$subfield_data{marc_value} =
"<textarea cols=\"70\"
rows=\"4\"
id=\"".$subfield_data{id}."\"
name=\"".$subfield_data{id}."\"
class=\"input_marceditor\"
tabindex=\"1\"
>$value</textarea>
";
}
else {
$subfield_data{marc_value} =
"<input type=\"text\"
id=\"".$subfield_data{id}."\"
name=\"".$subfield_data{id}."\"
value=\"$value\"
tabindex=\"1\"
size=\"67\"
maxlength=\"$max_length\"
class=\"input_marceditor\"
\/>
";
}
But in our version 3.02.02.003, the only fields that have 4 rows are
fields 500 through 526. The others, 530-590 only have one row.
Am I looking in the wrong place? I thought it was correct because if I
change the number of rows in the script it does affect the input box,
but it doesn't do the entire range of 5XX fields. Any help would be
appreciated.
Thanks!
--
Linda Culberson lculber at mdah.state.ms.us
Archives and Records Services Division
Ms. Dept. of Archives & History
P. O. Box 571
Jackson, MS 39205-0571
Telephone: 601/576-6873
Facsimile: 601/576-6824
More information about the Koha-devel
mailing list