| Summary: | change input in 245$a and 245$c for textarea | ||
|---|---|---|---|
| Product: | Koha | Reporter: | Marjorie Barry-Vila <marjorie.barry-vila> |
| Component: | Cataloging | Assignee: | 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 | ||
| GIT URL: | Initiative type: | --- | |
| Sponsorship status: | --- | Comma delimited list of Sponsors: | |
| Crowdfunding goal: | 0 | Patch complexity: | --- |
| Documentation contact: | Documentation submission: | ||
| Text to go in the release notes: | Version(s) released in: | ||
| Circulation function: | |||
|
Description
Marjorie Barry-Vila
2015-03-18 18:18:01 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..
|