@@ -, +, @@
module
extended patron attributes (PA) in combination with the date option:
* PA is a date and not mandatory
* Patron form should have the calendar widget to let you set the date.
* PA is a date and mandatory
* Patron form shoudl have calendar widget and check that the date is
set for allowing you to save the record.
* PA is a date and unique
* For this set the date in one patron record and try to
set the same date in another. You should not be able to save.
* PA displays in brief patron information
* Make sure the date displays on the left formatted correctly
* When the date PAs are saved, they should display nicely formatted
on the details tab.
---
.../intranet-tmpl/prog/en/includes/circ-menu.inc | 7 ++++++-
.../prog/en/modules/members/memberentrygen.tt | 16 +++++++++++++---
.../prog/en/modules/members/moremember.tt | 6 +++++-
members/memberentry.pl | 1 +
4 files changed, 25 insertions(+), 5 deletions(-)
--- a/koha-tmpl/intranet-tmpl/prog/en/includes/circ-menu.inc
+++ a/koha-tmpl/intranet-tmpl/prog/en/includes/circ-menu.inc
@@ -106,7 +106,12 @@
[% IF ( extendedattribute.type.display_checkout ) %] [%# FIXME We should filter in the line above %]
[% IF ( extendedattribute.attribute ) %] [%# FIXME Why that? why not if == 0? %]
- [% extendedattribute.type.description | html %]: [% extendedattribute.description | html %]
+ [% extendedattribute.type.description | html %]:
+ [% IF extendedattribute.type.is_date %]
+ [% extendedattribute.description | $KohaDates %]
+ [% ELSE %]
+ [% extendedattribute.description | html %]
+ [% END %]
[% END %]
[% END %]
--- a/koha-tmpl/intranet-tmpl/prog/en/modules/members/memberentrygen.tt
+++ a/koha-tmpl/intranet-tmpl/prog/en/modules/members/memberentrygen.tt
@@ -1575,13 +1575,23 @@ legend:hover {
[% ELSE %]
[% IF patron_attribute.mandatory %]
-
+ [% IF patron_attribute.is_date %]
+
+ [% ELSE %]
+
+ [% END %]
[% ELSE %]
-
+ [% IF patron_attribute.is_date %]
+
+ [% ELSE %]
+
+ [% END %]
[% END %]
[% END # /IF ( patron_attribute.use_dropdown ) %]
- Clear
+ [% IF ( !patron_attribute.is_date ) %]
+ Clear
+ [% END %]
[% IF ( patron_attribute.repeatable ) %]
New
[% END %]
--- a/koha-tmpl/intranet-tmpl/prog/en/modules/members/moremember.tt
+++ a/koha-tmpl/intranet-tmpl/prog/en/modules/members/moremember.tt
@@ -320,7 +320,11 @@
[% FOREACH item IN attribute.items %]