@@ -, +, @@ details text: |
This is an HTML paragraph
This is another HTML paragraph
av_category_code: YES_NO text: copyright text for all article type requests av_category_code: YES_NO bypass: 1 --- Koha/Illrequest.pm | 30 +++++++++++++++++++ .../prog/en/modules/ill/ill-requests.tt | 10 +++++++ 2 files changed, 40 insertions(+) --- a/Koha/Illrequest.pm +++ a/Koha/Illrequest.pm @@ -1103,6 +1103,36 @@ sub get_type { return $attr->value; }; +=head3 get_type_disclaimer_value + + my $type = $abstract->get_type_disclaimer_value(); + +Return the value submitted in the type disclaimer workflow stage + +=cut + +sub get_type_disclaimer_value { + my ($self) = @_; + my $attr = $self->illrequestattributes->find( { type => 'type_disclaimer_value' } ); + return if !$attr; + return $attr->value; +} + +=head3 get_type_disclaimer_date + + my $type = $abstract->type_disclaimer_date(); + +Return the time the disclaimer was submitted in the type disclaimer workflow stage + +=cut + +sub get_type_disclaimer_date { + my ($self) = @_; + my $attr = $self->illrequestattributes->find( { type => 'type_disclaimer_date' } ); + return if !$attr; + return $attr->value; +} + #### Illrequests Imports =head3 check_limits --- a/koha-tmpl/intranet-tmpl/prog/en/modules/ill/ill-requests.tt +++ a/koha-tmpl/intranet-tmpl/prog/en/modules/ill/ill-requests.tt @@ -683,6 +683,16 @@ [% type = request.get_type %] [% IF type %][% type | html %][% ELSE %]N/A[% END %] +