Bug 13867 - change input in 245$a and 245$c for textarea
Summary: change input in 245$a and 245$c for textarea
Status: NEW
Alias: None
Product: Koha
Classification: Unclassified
Component: Cataloging (show other bugs)
Version: Main
Hardware: All All
: P5 - low enhancement (vote)
Assignee: Galen Charlton
QA Contact: Testopia
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-03-18 18:18 UTC by Marjorie Barry-Vila
Modified: 2017-11-17 13:18 UTC (History)
2 users (show)

See Also:
Change sponsored?: ---
Patch complexity: ---
Documentation contact:
Documentation submission:
Text to go in the release notes:
Version(s) released in:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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..