<div dir="ltr">Hey all, this is something I've been thinking about for a while now, and I should probably throw it out there to see if it's just a terrible idea ; )<div><br></div><div>Right now we have 5 tables dealing with circulation rules. I think we can add much greater flexibility *and* simplicity to how we store and select rules.</div>
<div><br></div><div>Instead of having the assortment of branch/patron/item, and then the columns for the rules themselves. what if we had just one table with the following schema:</div><div><br></div><div>branchcode</div>
<div>categorycode</div><div>itemtype</div><div>rule_name</div><div>rule_value</div><div><br></div><div>For example, if every rule right now has a checkout length of 14, but have different max issue quantities, we need to set the checkout length to 14 for each and every combination. With this schema we could have just:</div>
<div><span style="color:rgb(0,0,0);font-family:arial,geneva,helvetica,lucida,sans-serif;font-size:14px">*, *, *, issuelength, 14</span></div><div><font color="#000000" face="arial, geneva, helvetica, lucida, sans-serif"><span style="font-size:14px">*,*, BOOK, </span></font><span style="color:rgb(0,0,0);font-family:arial,geneva,helvetica,lucida,sans-serif;font-size:14px">maxissueqty, 20</span></div>
<div><span style="color:rgb(0,0,0);font-family:arial,geneva,helvetica,lucida,sans-serif;font-size:14px">*,*,DVD, </span><span style="color:rgb(0,0,0);font-family:arial,geneva,helvetica,lucida,sans-serif;font-size:14px">maxissueqty, 5</span></div>
<div><span style="color:rgb(0,0,0);font-family:arial,geneva,helvetica,lucida,sans-serif;font-size:14px">*,*,CD, </span><span style="color:rgb(0,0,0);font-family:arial,geneva,helvetica,lucida,sans-serif;font-size:14px">maxissueqty, 10</span></div>
<div><span style="color:rgb(0,0,0);font-family:arial,geneva,helvetica,lucida,sans-serif;font-size:14px"><br></span></div><div><span style="color:rgb(0,0,0);font-family:arial,geneva,helvetica,lucida,sans-serif;font-size:14px">What does everyone think of this idea?</span></div>
<div><span style="color:rgb(0,0,0);font-family:arial,geneva,helvetica,lucida,sans-serif;font-size:14px"><br></span></div><div>Kyle</div><div><br clear="all"><div><a href="http://www.kylehall.info" target="_blank">http://www.kylehall.info</a><br>
ByWater Solutions ( <a href="http://bywatersolutions.com" target="_blank">http://bywatersolutions.com</a> )<br>Meadville Public Library ( <a href="http://www.meadvillelibrary.org" target="_blank">http://www.meadvillelibrary.org</a> )<br>
Crawford County Federated Library System ( <a href="http://www.ccfls.org" target="_blank">http://www.ccfls.org</a> )<br>Mill Run Technology Solutions ( <a href="http://millruntech.com" target="_blank">http://millruntech.com</a> )<br>
</div>
</div></div>