<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv=Content-Type content="text/html; charset=us-ascii">
<meta name=Generator content="Microsoft Word 12 (filtered medium)">
<style>
<!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
span.EmailStyle17
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;}
@page Section1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.Section1
        {page:Section1;}
-->
</style>
<!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang=EN-US link=blue vlink=purple>
<div class=Section1>
<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>Thanks Joe. This addressed the problem by changing the barcode
autogeneration to incremental. It also fixed a label printing problem I
was having. The pdf generator was generating errors because of the home
branch style barcodes.<o:p></o:p></span></p>
<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p> </o:p></span></p>
<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>I would really prefer to use the branch style though, so I hope
that functionality will be restored in the future. In the meantime it
should probably be removed as a choice since it is unreliable.<o:p></o:p></span></p>
<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p> </o:p></span></p>
<div style='border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in 0in 0in'>
<p class=MsoNormal><b><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>From:</span></b><span
style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'> Joe Atzberger
[mailto:ohiocore@gmail.com] <br>
<b>Subject:</b> Re: [Koha] Barcode not being generated in new MARC records<o:p></o:p></span></p>
</div>
<p class=MsoNormal><o:p> </o:p></p>
<div>
<div>
<p class=MsoNormal>Bruce --<br>
<br>
All forms of barcode autogeneration except incremental are problematic. I
strongly recommend against using them.<br>
<br>
"Home branch" or "hbyymmincr" style barcodes, in
particular, are not implemented in a widely applicable way. It should not
be used by multi-branch libraries, or libraries with more than 9999 items, or
libraries with non-4-character branch codes, or libraries with digits or
underscores in their branch codes... or basically anyone.<br>
<br>
The query that obtains the next valid barcode for hbyymmincr is:<o:p></o:p></p>
</div>
<p class=MsoNormal> $query =
"SELECT MAX(CAST(SUBSTRING(barcode,7,4) AS signed)) FROM items WHERE
barcode REGEXP ?";<br>
my $sth=$dbh->prepare($query);<br>
$sth->execute("^[a-zA-Z]{1,}$year");<o:p></o:p></p>
<div>
<p class=MsoNormal><br>
In this case, year would be "08", but you can see the flaws in this
query result in the extreme limitations above. <br>
<br>
You can print the branch and year directly on the barcode stickers and spine
labels you generate. That info does not need to be part of the barcode
itself.<br>
<br>
--Joe Atzberger,<br>
LibLime<o:p></o:p></p>
<div>
<div>
<p class=MsoNormal><o:p> </o:p></p>
<div>
<p class=MsoNormal>On Mon, Sep 1, 2008 at 11:31 PM, Bruce Raymond <<a
href="mailto:braymond@regisjesuit.com">braymond@regisjesuit.com</a>> wrote:<o:p></o:p></p>
<p class=MsoNormal><br>
Installation details: Koha 3.0 stable.<br>
Setting details: Automatic barcode generation using the home branch method<br>
is turned on.<br>
<br>
The automatic barcode generating has been working ok until a few days ago.<br>
Now no barcode is being generated. The automatic setting is still set on.<br>
<br>
Any suggestion about how to troubleshoot this problem?<br>
<span style='color:#888888'>--<br>
View this message in context: <a
href="http://www.nabble.com/Barcode-not-being-generated-in-new-MARC-records-tp19263641p19263641.html"
target="_blank">http://www.nabble.com/Barcode-not-being-generated-in-new-MARC-records-tp19263641p19263641.html</a></span><o:p></o:p></p>
</div>
<p class=MsoNormal><o:p> </o:p></p>
</div>
</div>
</div>
</div>
</div>
</body>
</html>