[Koha-bugs] [Bug 12990] add overflow option to label creator

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Wed Sep 24 21:35:53 CEST 2014


http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=12990

--- Comment #1 from Chris Nighswonger <cnighswonger at foundations.edu> ---
(In reply to Nicole C. Engard from comment #0)
> Created attachment 31860 [details]
> labels
> 
> Maybe have an option in the template to put overflow onto the next line? If
> the logic knows enough to cut off information when it gets to the end of the
> column in the PDF exporter, I'd think adding a newline character might not
> be that big of a deal.

This is not as simple as it may seem with the way things are written atm. The
code which does the wrapping arbitrarily limits the title field to two lines
and all other fields (ie. the aforementioned $n) to one line.[1] There is a
comment in there which notes the need to fix this, but it will take reworking
the label logic to fix it right. Every field to be printed on a given label
will have to be examined to see how long it is and how it will interact with
the other fields on the label if it overflows the line. Then some sort of
weighting would have to be designated in order to allow the logic to determine
the importance of the content of one field over another when conflicts arose as
to just what actually gets placed on the label so that the entire label content
does not overflow the label itself.

At least that is what it looked like when the code was written. Perhaps there
is an easier way.

[1] http://tinyurl.com/kml7zu4

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list