Re: [IUG] spine label line breaks


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Karen,

$F{callEntireCR} should already format your call number correctly. What you need is to insert carriage returns into your $F{iteme}. That could be done by replacing any amount of whitespace with a carriage return. I think the following would work:

($F{iteme}.trim().replaceAll("(\\s)+","\n") + "\n" + $F{callEntireCR})

Steve McDonald
Steve dot mcdonald at tufts dot edu


> -----Original Message-----
> From: innopac-bounces at innovativeusers dot org [mailto:innopac-
> bounces at innovativeusers dot org] On Behalf Of Karen Perone
> Sent: Wednesday, December 14, 2011 11:50 AM
> To: innopac
> Subject: [IUG] spine label line breaks
>
> I'm making progress with the spine label printing but I'm stumped about
> how to get line breaks in the iteme ("Label" variable field) and the
> call number.
>
> Here is what I have:
> ($F{iteme} + "\n" + $F{callEntireCR})
>
> Variable field e: CHILDRN DVD
> Call number: D756shgs 1970
>
> I want the label to look like this:
> CHILDRN
> DVD
> D756shgs
> 1970
>
> Any thoughts?
>
> --
> Karen Perone peroneka at oplin dot org
> Head of Technology and Technical Services
> Rodman Public Library voice: 330-821-2665 x101
> 215 E. Broadway Street fax: 330-821-5053
> Alliance, OH 44601 http://www.rodmanlibrary.com
>
>
> --
> This message has been scanned for viruses and
> dangerous content by MailScanner, and is
> believed to be clean.
>
> --
> This message was distributed through the Innovative Users Group INNOPAC
> list
> Public replies: INNOPAC at innovativeusers dot org
> You are currently subscribed to innopac as: steve dot mcdonald at tufts dot edu dot
> Update your subscription options: http://innovativeusers.org/iug-
> discussion-list

--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.