@@ -, +, @@ --- admin/systempreferences.pl | 1 + installer/data/mysql/en/mandatory/sysprefs.sql | 1 + .../1-Obligatoire/unimarc_standard_systemprefs.sql | 1 + installer/data/mysql/updatedatabase.pl | 11 ++ .../prog/en/modules/members/memberentrygen.tmpl | 121 +++++++++++++++----- members/memberentry.pl | 6 + 6 files changed, 111 insertions(+), 30 deletions(-) --- a/admin/systempreferences.pl +++ a/admin/systempreferences.pl @@ -187,6 +187,7 @@ $tabsysprefs{viewLabeledMARC} = "StaffClient"; $tabsysprefs{viewISBD} = "StaffClient"; # Patrons +$tabsysprefs{BorrowerUnusedFields} = "Patrons"; $tabsysprefs{autoMemberNum} = "Patrons"; $tabsysprefs{checkdigit} = "Patrons"; $tabsysprefs{intranetreadinghistory} = "Patrons"; --- a/installer/data/mysql/en/mandatory/sysprefs.sql +++ a/installer/data/mysql/en/mandatory/sysprefs.sql @@ -262,3 +262,4 @@ INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES INSERT INTO systempreferences (variable,value,options,explanation,type)VALUES('DisplayOPACiconsXSLT', '1', '', 'If ON, displays the format, audience, type icons in XSLT MARC21 results and display pages.', 'YesNo'); INSERT INTO systempreferences (variable,value,explanation,options,type) VALUES('AllowAllMessageDeletion','0','Allow any Library to delete any message','','YesNo'); INSERT INTO systempreferences (variable,value,explanation,options,type)VALUES('ShowPatronImageInWebBasedSelfCheck', '0', 'If ON, displays patron image when a patron uses web-based self-checkout', '', 'YesNo'); +INSERT INTO systempreferences (variable,value,explanation,options,type)VALUES('BorrowerUnusedFields', '', 'Allow to input a list of undesired fields in Member input page Fill that with borrower table field names separated by , or | or ; ', '', 'Text'); --- a/installer/data/mysql/fr-FR/1-Obligatoire/unimarc_standard_systemprefs.sql +++ a/installer/data/mysql/fr-FR/1-Obligatoire/unimarc_standard_systemprefs.sql @@ -261,3 +261,4 @@ INSERT INTO systempreferences (variable,value,options,explanation,type)VALUES('H INSERT INTO systempreferences (variable,value,options,explanation,type)VALUES('DisplayOPACiconsXSLT', '1', '', 'Si activé, affiche le format, le type de public et les icônes de type en XSLT (MARC21)).', 'YesNo'); INSERT INTO systempreferences (variable,value,explanation,options,type) VALUES('AllowAllMessageDeletion','0','Allow any Library to delete any message','','YesNo'); INSERT INTO systempreferences (variable,value,explanation,options,type)VALUES('ShowPatronImageInWebBasedSelfCheck', '0', 'Si activé, affiche la photo de l''adhérent lors de l''utilisation de la console de prêt auto-contrôlé', '', 'YesNo'); +INSERT INTO systempreferences (variable,value,explanation,options,type)VALUES('BorrowerUnusedFields', '', 'Entrez ici la liste des champs que vous ne souhaitez pas utiliser à la saisie des Adhérents (liste des noms des champs de la table borrowers séparés par ; ou , ou |)', '', 'Text'); --- a/installer/data/mysql/updatedatabase.pl +++ a/installer/data/mysql/updatedatabase.pl @@ -2675,6 +2675,17 @@ if (C4::Context->preference("Version") < TransformToNum($DBversion)) { SetVersion ($DBversion); } +$DBversion = '3.01.00.062'; +if (C4::Context->preference("Version") < TransformToNum($DBversion)) { + my $str; + $str=<do($str); + SetVersion ($DBversion); +} + =item DropAllForeignKeys($table) Drop all foreign keys of the table $table --- a/koha-tmpl/intranet-tmpl/prog/en/modules/members/memberentrygen.tmpl +++ a/koha-tmpl/intranet-tmpl/prog/en/modules/members/memberentrygen.tmpl @@ -161,6 +161,7 @@
Organization Patron identity
    +
  1. @@ -174,8 +175,10 @@ Required
  2. -
  3. + + +
  4. + +
  5. + +
  6. + +
  7. + +
  8. + +
  9. @@ -268,6 +281,7 @@
  10. +
@@ -351,6 +365,7 @@
Main address
    +
  1. +
  2. @@ -373,6 +389,7 @@ Required
  3. +
  4. + +
  5. + +
  6. + +
  7. + +
  8. +
- Contact
    + Contact
      +
    1. + +
    2. + +
    3. + +
    4. + +
    5. + +
    6. +
@@ -501,8 +539,10 @@ +
Alternate address
    +
  1. + +
  2. + +
  3. + +
  4. + +
  5. -
  6. + +
  7. " /> Required -
  8. -
  9. +
  10. +
  11. " /> - Required
  12. -
  13. + Required
  14. +
  15. Required -
  16. +
-
+ -
+
Alternate Contact
    -
  1. +
  2. + +
  3. +
  4. " /> Required -
  5. + +
  6. " /> Required -
  7. -
  8. +
  9. +
  10. " size="40" /> Required -
  11. -
  12. +
  13. +
  14. " size="40" /> Required -
  15. -
  16. +
  17. +
  18. " size="40" /> Required -
  19. -
  20. +
  21. +
  22. " size="5" /> Required -
  23. -
  24. +
  25. +
  26. " size="20" /> Required -
  27. -
  28. +
  29. +
  30. " /> Required -
  31. +
-
+
+ @@ -740,7 +801,7 @@ Please create one -
  • +
  • -
  • +
  • +
  • +
    --- a/members/memberentry.pl +++ a/members/memberentry.pl @@ -595,6 +595,12 @@ if (C4::Context->preference('ExtendedPatronAttributes')) { $template->param(ExtendedPatronAttributes => 1); patron_attributes_form($template, $borrowernumber); } +my $unusedfields=C4::Context->preference("BorrowerUnusedFields"); +my @fields_unused=split(/,|;|\|/,$unusedfields); +foreach (@fields_unused) { + warn $_; + $template->param( "unused$_" => 1); +} if (C4::Context->preference('EnhancedMessagingPreferences')) { if ($op eq 'add') { --