www.Inmagic.com    Inmagic Forums    Inmagic Forums  Hop To Forum Categories  Genie    Customizing mylabels.config
Go
New
Find
Notify
Tools
Reply
  
-star Rating Rate It!  Login/Join 
Posted
I have been trying to get Gaylord labels to work in Genie. Currently the problem we have is that the call numbers do not wrap to a second line. The software permits a line break only when there is a space (for example we always have a space between the call number and the cutter, and another between the cutter and the year). So the longer call numbers get cut off. I've made the allowable space in the template as wide as possible, and the font as small as we can realistically go while having clear labels, and still our longer numbers are being cut off.

For example:
346.713092 059R 1965

Should display as:

quote:
346.713092
059R
1965

Currently displays as:

quote:
346.713
059R
1965


Does anybody know if there is a piece of code I can add to the gaylord label area in mylabels.config to force the text to wrap to the second line after a certain number of characters?

Here is the original code:

quote:
<inmg:Label Name="Gaylord" LabelSetWidth="7.5" LabelSetHeight="1.25" Unit="inch" NumberAcross="1" LeftMargin="0.5" TopMargin="0.5" BottomMargin="0.5" ShowBorder="false">
<TextArea Name="Box1" Left="0.2" Top="0.1" Width="0.6" Height="1.10">
<Field Name="CatCallNumber" TreatAs="WordList"/>
</TextArea>
<TextArea Name="Box2" Left="1.49" Top="0.1" Width="0.6" Height="1.10">
<Field Name="CatCallNumber" TreatAs="WordList"/>
</TextArea>
<TextArea Name="Box3" Left="2.1" Top="0.1" Width="2.11" Height="1.10">
<Field Name="CatAuthor" Footer="<br/>"/>
<Field Name="CatTitle" UpperCase="true"/>
</TextArea>
<TextArea Name="Box4" Left="4.73" Top="0.1" Width="0.6" Height="1.10">
<Field Name="CatCallNumber" TreatAs="WordList"/>
</TextArea>
<TextArea Name="Box5" Left="5.35" Top="0.1" Width="2.11" Height="1.10">
<Field Name="CatAuthor" Footer="<br/>"/>
<Field Name="CatTitle" UpperCase="true"/>
</TextArea>
</inmg:Label>


And here is the amended code:

quote:
<inmg:Label Name="Gaylord" LabelSetWidth="7.5" LabelSetHeight="1.25" Unit="inch" NumberAcross="1" LeftMargin="0.5" TopMargin="0.5" BottomMargin="0.5" ShowBorder="false">
<TextArea Name="Box1" Left="0.1" Top="0.1" Width="0.7" Height="1.10">
<Field Name="CatCallNumber" TreatAs="WordList"/>
</TextArea>
<TextArea Name="Box2" Left="1.49" Top="0.1" Width="0.7" Height="1.10">
<Field Name="CatCallNumber" TreatAs="WordList"/>
</TextArea>
<TextArea Name="Box3" Left="2.2" Top="0.1" Width="2.0" Height="1.10">
<Field Footer="<br/>" Name="CatAuthor"/>
<Field Name="CatTitle" UpperCase="false"/>
</TextArea>
<TextArea Name="Box4" Left="4.7" Top="0.1" Width="0.7" Height="1.10">
<Field Name="CatCallNumber" TreatAs="WordList"/>
</TextArea>
<TextArea Name="Box5" Left="5.40" Top="0.1" Width="1.9" Height="1.10">
<Field Footer="<br/>" Name="CatAuthor"/>
<Field Name="CatTitle" UpperCase="false"/>
</TextArea>
</inmg:Label>


I have tried removing TreatAs="WordList" but this does not help - it brings the year and the cutter up to the same line but doesn't break the classification. Is this something you've been able to customize before? We use a modified Dewey, and our longest call numbers can be three digits before the decimal and eight afterwards. We really need to get this text to wrap. I've considered the option of larger labels and a new template, but the larger labels wouldn't fit on our spines. A smaller font is also not an option - I have it on Arial 10 bold now (set in BookLabel.aspx) and we can't go any smaller - our older ones were 11 point.

The second (related) issue with labels is that we'd like to be able to limit the number of characters displayed for a given field. For example, we don't need all the authors listed on the gaylord labels - sometimes there are three or four and then there's no room for the title! So if it's possible to dictate that the label only contain the first entry in the author field, or that it only include the first 20 characters, we'd like to know how.

Thanks!
 
Posts: 4 | Registered: Tue May 09 2006Reply With QuoteEdit or Delete MessageReport This Post
Posted Hide Post
I have no suggestions for your first issue.

To specify the number of entries, use the NumberOfEntries() function. For example:

<Field Name="CatAuthor" Footer="</br>" UseFunction="NumberOfEntries(1)"/>

The forums insist on converting "lt" and "gt" codes to < and >, so you won't be able to cut/paste the above.

Note that this feature was implemented in version 2.1, so if you're using an earlier version, you'll need to upgrade.
 
Posts: 217 | Registered: Wed June 29 2005Reply With QuoteEdit or Delete MessageReport This Post
 Previous Topic | Next Topic powered by eve community  
 

www.Inmagic.com    Inmagic Forums    Inmagic Forums  Hop To Forum Categories  Genie    Customizing mylabels.config