<div dir="ltr">Hi,<div class="gmail_extra"><br><div class="gmail_quote">On Tue, Sep 17, 2013 at 7:03 AM, Paul Poulain <span dir="ltr"><<a href="mailto:paul.poulain@biblibre.com" target="_blank">paul.poulain@biblibre.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">I was wondering if a good way to do that would be to transform our<br>

"borrowers attributes" to become "extended attributes". Those extended<br>
attributes being managed as patron, subscription, acquisition,...<br>
attributes.<br></blockquote><div><br></div><div>I think a generalized attribute system would be useful.  Besides the ones you've listed, I can immediately see uses for bib-level attributes.</div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">

What it means :<br>
 * changing the table name ! (now, it's borrowers_attributes and<br>
borrowers_attribute_types)<br>
 * removing foreign keys to borrowers table.<br></blockquote><div><br></div><div>However, I don't think it should be implemented in such a way that it drops foreign key constraints, of which we need more in Koha, not fewer.  Instead, I propose that each class we want to give extended attributes to get a separate table.  Each attribute table would have the same structure, allowing for code (and DBIC classes) to be generic, e.g.,</div>
<div><br></div><div>subscription_attributes:</div><div>  subscriptionid int(11)</div><div>  code varchar(10) -> attribute_types.code</div><div>  attribute varchar(255)</div><div><br></div><div><div>aqorder_attributes<br>
</div></div><div>  ordernumber init(11)</div><div><div><div>  code varchar(10) -> attribute_types.code</div><div>  attribute varchar(255)</div></div></div><div><br></div><div>... and so on.</div><div><br></div><div>Note that the proposed attribute_types table (which could be created by renaming borrower_attribute_types) could be shared</div>
<div><br></div><div>Regards,</div><div><br></div><div>Galen</div></div>-- <br><div dir="ltr"><div>Galen Charlton</div><div>Manager of Implementation</div><div>Equinox Software, Inc. / The Open Source Experts</div><div>email:  <a href="mailto:gmc@esilibrary.com" target="_blank">gmc@esilibrary.com</a></div>
<div>direct: +1 770-709-5581</div><div>cell:   +1 404-984-4366</div><div>skype:  gmcharlt</div><div>web:    <a href="http://www.esilibrary.com/" target="_blank">http://www.esilibrary.com/</a></div><div>Supporting Koha and Evergreen: <a href="http://koha-community.org" target="_blank">http://koha-community.org</a> & <a href="http://evergreen-ils.org" target="_blank">http://evergreen-ils.org</a></div>
</div>
</div></div>