From 30048f4aabeec27fdf0a4f195f82c822eddab501 Mon Sep 17 00:00:00 2001 From: Tomas Cohen Arazi Date: Mon, 7 Aug 2017 12:05:54 -0300 Subject: [PATCH] Bug 17969: (QA followup) Add POD Signed-off-by: Tomas Cohen Arazi Signed-off-by: Kyle M Hall Signed-off-by: Jonathan Druart --- C4/Letters.pm | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/C4/Letters.pm b/C4/Letters.pm index a3821ea44d..4c25330503 100644 --- a/C4/Letters.pm +++ b/C4/Letters.pm @@ -1632,6 +1632,20 @@ sub _get_tt_params { return $params; } +=head2 get_item_content + + my $item = Koha::Items->find(...)->unblessed; + my @item_content_fields = qw( date_due title barcode author itemnumber ); + my $item_content = C4::Letters::get_item_content({ + item => $item, + item_content_fields => \@item_content_fields + }); + +This function generates a tab-separated list of values for the passed item. Dates +are formatted following the current setup. + +=cut + sub get_item_content { my ( $params ) = @_; my $item = $params->{item}; -- 2.39.5