Koha-clms/admin
Galen Charlton 6fc62bcd32 extended patron attributes tables & syspref (DB rev 081)
Added two tables and system preference to support
a new patron alternate ID and attributes feature.

A patron attribute (or extended patron attribute) is an
additional piece of information associated with a patron
record.  Each attribute has a type that specifies
whether the attribute is repeatable, can serve as
a unique identifier, can take a password, and
whether it can be used to search for patron records
in the staff interface.

The list of attribute types is controlled by the
superlibrarian.  Once an attribute type is defined,
values for that attribute can be added to the patron record
via the staff interface or the batch patron import.

Two uses of extended attributes are:

- defining additional unique identifiers, such as
  a campus student ID number, a library staff
  HR number, and so on.  These IDs can be used
  for searching or matching and overlaying records
  during a batch import.
- additional statistical categories.  For example,
  a library could define an attribute type for
  tracking the academic major of a student patron.
  Any number of attributes of this sort could be
  defined.

The extended attributes feature is completely optional.  If
the new syspref, ExtendPatronAttributes, is OFF, the patron
attributes tables will be ignored; it will not be possible
to display, edit, search for, or match on extended
attributes.

The tables are:

[1] borrower_attribute_types - store attribute types
    defined by the administrator.

    - code
    - description
    - repeatable (whether a patron record can have
      more than value of a given attribute type)
    - unique_id (whether values of this type
      must be unique within the database)
    - opac_display (whether values of this type
      can display in the patron details page in the OPAC)
    - staff_searchable (whether values of this type
      can be used to retrieve patron records in circulation)
    - password_allowed (if set, staff patron editor will
      allow a password to be associated with a value; this
      is mostly a hook for functionality to be implemented
      in the future.
    - authorised_value_category (code of an authorised_value
      category.  If one is specified, the staff patron
      editor will use a dropdown for setting values of this type)
[2] borrower_attributes - the actual attributes.
    - code (attribute type code, FK)
    - borrowernumber (link to patron, FK)
    - attribute (the value)
    - password (password associated with value)

Signed-off-by: Joshua Ferraro <jmf@liblime.com>
2008-05-12 09:03:00 -05:00
..
admin-home.pl functions that were in C4::Interface::CGI::Output are now in C4::Output. 2007-04-24 13:54:28 +00:00
aqbookfund.pl admin subdir - Dates.pm integration and warnings fixes. 2007-12-04 18:21:15 -06:00
aqbudget.pl INNER JOIN was too much restrictive for migrated libraries. 2008-02-11 15:31:16 -06:00
auth_subfields_structure.pl bug 1717: (framework editor) don't display subfield $0 as "New" 2008-01-07 01:57:48 -06:00
auth_tag_structure.pl #1546 REPLACE statements (continued) 2007-11-20 16:06:26 -06:00
authorised_values.pl bug 2047: adding icons to authorized values 2008-04-30 20:10:31 -05:00
authtypes.pl #1546 fix (removing REPLACE) 2007-11-07 08:18:23 -06:00
biblio_framework.pl Prevent default framework from being inadvertently deleted. 2008-02-18 19:30:42 -06:00
branches.pl removing useless code 2007-10-24 17:03:38 -05:00
categorie.pl cleanup in memberentry,categories. 2007-12-17 08:19:07 -06:00
checkmarc.pl added another check to MARC framework test 2008-04-21 11:18:19 -05:00
cities.pl Killing more replace statements, bug 1546 2008-01-08 20:09:52 -06:00
classsources.pl bugfix: correct class sort rule not selected when editing class source 2007-11-20 16:07:43 -06:00
currency.pl currency expansion - symbol and timestamp. PLEASE VERIFY SQL edit. Should be equivalent to: ALTER TABLE `currency` ADD `symbol` varchar(5) default NULL, ADD `timestamp` timestamp NOT NULL default CURRENT_TIMESTAMP on update CURRENT_TIMESTAMP; 2008-01-03 20:21:28 -06:00
finesrules.pl kohabug 2022 - fixed fine and issuing rules editors 2008-04-21 11:17:52 -05:00
issuingrules.pl kohabug 2022 - fixed fine and issuing rules editors 2008-04-21 11:17:52 -05:00
itemtypes.pl bug 2047: refactoring icon manipulation logic 2008-04-30 20:10:09 -05:00
koha2marclinks.pl Fixing some markup issues and alternating table row colors. 2007-12-18 16:40:05 -06:00
letter.pl Removing replace sql from admin/letter.pl as per bug 1546 2008-01-08 19:23:48 -06:00
marc_subfields_structure.pl bug 1717: (framework editor) don't display subfield $0 as "New" 2008-01-07 01:57:48 -06:00
marctagstructure.pl Fix a bug preventing existing tag modification in MARC Framework 2008-03-08 11:19:04 -06:00
matching-rules.pl added editor for MARC matching rules 2007-11-17 10:49:15 -06:00
printers.pl More replace statements, this time admin/printers.pl 2008-01-08 20:09:55 -06:00
roadtype.pl Whoops fixing the update call, had params round the wrong way 2008-01-08 20:09:54 -06:00
smart-rules.pl smart-rules.pl - tighten regexp, Debug for warn statements, readable layout. 2008-04-22 18:02:49 -05:00
stopwords.pl Removing replace from stopwords.pl 2008-01-08 20:09:54 -06:00
systempreferences.pl extended patron attributes tables & syspref (DB rev 081) 2008-05-12 09:03:00 -05:00
z3950servers.pl Fix bug #1789 part 1 2008-01-23 21:30:58 -06:00