Bug 13867

Summary: change input in 245$a and 245$c for textarea
Product: Koha Reporter: Marjorie Barry-Vila <marjorie.barry-vila>
Component: CatalogingAssignee: Galen Charlton <gmcharlt>
Status: NEW --- QA Contact: Testopia <testopia>
Severity: enhancement    
Priority: P5 - low CC: m.de.rooy, patrick.robitaille
Version: Main   
Hardware: All   
OS: All   
Change sponsored?: --- Patch complexity: ---
Documentation contact: Documentation submission:
Text to go in the release notes:
Version(s) released in:

Description Marjorie Barry-Vila 2015-03-18 18:18:01 UTC
Hi,

Is it be possible to have for subfield 245$a and 245$c in marc21 textarea and not input like textarea for fields 5XX?

Title and statement of responsability are now often a length greater than a line only and that would be easier to catalog with textarea.

Regards,

Marjorie
Comment 1 Marcel de Rooy 2015-03-19 08:10:24 UTC
This is hardcoded in addbiblio:
 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" )
          )
[ then textarea ... ]

Note that if you save a string of 101 chars and re-edit, you should get a textarea..
A regex from a syspref instead of the hardcoded 500 and 600 here would be an idea..