@@ -, +, @@
modification tool
entry)
Lancaster Theological Seminary (https://lancasterseminary.edu/)
---
koha-tmpl/intranet-tmpl/prog/en/modules/tools/modborrowers.tt | 6 ++++++
tools/modborrowers.pl | 8 +++++++-
2 files changed, 13 insertions(+), 1 deletion(-)
--- a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/modborrowers.tt
+++ a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/modborrowers.tt
@@ -239,6 +239,8 @@
Country |
Registration date |
Expiry date |
+ Circulation note |
+ Opac Note |
[% FOREACH attrh IN attributes_header %]
[% attrh.attribute %] |
[% END %]
@@ -261,6 +263,8 @@
[% borrower.country %] |
[% borrower.dateenrolled | $KohaDates %] |
[% borrower.dateexpiry | $KohaDates %] |
+ [% borrower.borrowernotes %] |
+ [% borrower.opacnote %] |
[% FOREACH pa IN borrower.patron_attributes %]
[% IF ( pa.code ) %]
[% pa.code %]=[% pa.value %] |
@@ -315,6 +319,8 @@
Expiry date:
[% CASE 'borrowernotes' %]
Circulation note:
+ [% CASE 'opacnote' %]
+ OPAC note:
[% END %]
[% IF field.mandatory %]
--- a/tools/modborrowers.pl
+++ a/tools/modborrowers.pl
@@ -247,6 +247,12 @@ if ( $op eq 'show' ) {
type => "text",
mandatory => ( grep /borrowernotes/, @mandatoryFields ) ? 1 : 0,
}
+ ,
+ {
+ name => "opacnote",
+ type => "text",
+ mandatory => ( grep /opacnote/, @mandatoryFields ) ? 1 : 0,
+ }
);
$template->param('patron_attributes_codes', \@patron_attributes_codes);
@@ -260,7 +266,7 @@ if ( $op eq 'do' ) {
my @disabled = $input->multi_param('disable_input');
my $infos;
- for my $field ( qw/surname firstname branchcode categorycode city state zipcode country sort1 sort2 dateenrolled dateexpiry borrowernotes/ ) {
+ for my $field ( qw/surname firstname branchcode categorycode city state zipcode country sort1 sort2 dateenrolled dateexpiry borrowernotes opacnote/ ) {
my $value = $input->param($field);
$infos->{$field} = $value if $value;
$infos->{$field} = "" if grep { /^$field$/ } @disabled;
--