From: Jason Stephenson Date: Wed, 25 Jun 2014 15:59:21 +0000 (-0400) Subject: Filter template output with the xml filter where appropriate. X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=98e7bde2f33f3e7d740651860dbd32eb51afedba;p=NCIPServer.git Filter template output with the xml filter where appropriate. Signed-off-by: Jason Stephenson --- diff --git a/templates/includes/AcceptItemResponse.inc b/templates/includes/AcceptItemResponse.inc index 5b30807..436deeb 100644 --- a/templates/includes/AcceptItemResponse.inc +++ b/templates/includes/AcceptItemResponse.inc @@ -1,8 +1,8 @@ - [% requestagency %] - [% requestid %] + [% requestagency | xml %] + [% requestid | xml %] Item Barcode - [% newbarcode %] + [% newbarcode | xml%] diff --git a/templates/includes/CheckInItemResponse.inc b/templates/includes/CheckInItemResponse.inc index 33a693a..c677422 100644 --- a/templates/includes/CheckInItemResponse.inc +++ b/templates/includes/CheckInItemResponse.inc @@ -1,5 +1,5 @@ -[% barcode %] +[% barcode | xml %] diff --git a/templates/includes/CheckOutItemResponse.inc b/templates/includes/CheckOutItemResponse.inc index 48e36c5..3b6a74d 100644 --- a/templates/includes/CheckOutItemResponse.inc +++ b/templates/includes/CheckOutItemResponse.inc @@ -1,6 +1,6 @@ [% datedue %] -[% barcode %] +[% barcode | xml %] diff --git a/templates/includes/LookupUserResponse.inc b/templates/includes/LookupUserResponse.inc index fbcad05..a9c4057 100644 --- a/templates/includes/LookupUserResponse.inc +++ b/templates/includes/LookupUserResponse.inc @@ -1,6 +1,6 @@ -[% user.userdata.cardnumber %] +[% user.userdata.cardnumber | xml %] [%# LoanedItemsCount @@ -15,21 +15,21 @@ RequestedItem Primary Address - [% user.userdata.streetnumber %] [% user.userdata.address %] + [% user.userdata.streetnumber | xml %] [% user.userdata.address | xml %] [% IF user.userdata.address2 %] - [% user.userdata.address2 %] + [% user.userdata.address2 | xml %] [% END %] [% IF user.userdata.city %] - [% user.userdata.city %] + [% user.userdata.city | xml %] [% END %] [% IF user.userdata.state %] - [% user.userdata.state %] + [% user.userdata.state | xml %] [% END %] [% IF user.userdata.zipcode %] - [% user.userdata.zipcode %] + [% user.userdata.zipcode | xml %] [% END %] [% IF user.userdata.country %] - [% user.userdata.country %] + [% user.userdata.country | xml %] [% END %] @@ -39,8 +39,8 @@ RequestedItem - [% user.userdata.firstname %] - [% user.userdata.surname %] + [% user.userdata.firstname | xml %] + [% user.userdata.surname | xml %] diff --git a/templates/includes/RequestItemResponse.inc b/templates/includes/RequestItemResponse.inc index 36d7d20..eafd628 100644 --- a/templates/includes/RequestItemResponse.inc +++ b/templates/includes/RequestItemResponse.inc @@ -1,4 +1,4 @@ - [% requestagency %] - [% messages.request_id %] + [% requestagency | xml %] + [% messages.request_id | xml %] diff --git a/templates/problem.tt b/templates/problem.tt index f51c82f..ef93460 100644 --- a/templates/problem.tt +++ b/templates/problem.tt @@ -34,11 +34,11 @@ [% END %] [% END %] - [% processingerrorelement %] - [% barcode %] + [% processingerrorelement | xml %] + [% barcode | xml %] - [% error_detail %] + [% error_detail | xml %]