From e769e270eaeedc30db2debaaa3666a17bf973314 Mon Sep 17 00:00:00 2001 From: Andrew Isherwood Date: Fri, 5 Oct 2018 08:56:45 +0100 Subject: [PATCH] Bug 20941: (follow-up) Update N/A handling Modify the conditional display of N/A in accordance with comment #17 --- koha-tmpl/intranet-tmpl/prog/en/modules/ill/ill-requests.tt | 6 +++--- koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-illrequests.tt | 6 ++++-- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/ill/ill-requests.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/ill/ill-requests.tt index d86ed90..8a4705b 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/ill/ill-requests.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/ill/ill-requests.tt @@ -462,7 +462,7 @@
  • - [% type || 'N/A' | html %] + [% IF type %][% type | html %][% ELSE %]N/A[% END %]
  • @@ -571,8 +571,8 @@
    Request type: - % type = request.get_type %] - [% type || 'N/A' | html %] + [% type = request.get_type %] + [% IF type %][% type | html %][% ELSE %]N/A[% END %]
    Cost: diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-illrequests.tt b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-illrequests.tt index f0ee2d7..779c781 100644 --- a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-illrequests.tt +++ b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-illrequests.tt @@ -135,7 +135,9 @@ [% IF request.metadata.Title %][% request.metadata.Title | html %][% ELSE %]N/A[% END %] [% request.backend | html %] - [% type || 'N/A' | html %] + + [% IF type %][% type | html %][% ELSE %]N/A[% END %] + [% request.capabilities.$status.name | html %] [% request.placed | html %] [% request.updated | html %] @@ -179,7 +181,7 @@
  • - [% type || 'N/A' | html %] + [% IF type %][% type | html %][% ELSE %]N/A[% END %]
  • -- 2.1.4