Bug 22818: (QA follow-up) Translation fix + Branch notices
This patch removes the hard coded 'N/A' being passed to GetPreparedLetter and passes in the branchcode of the ILLRequest so notices can be branch specific. Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de> Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
This commit is contained in:
parent
51d73f8393
commit
14986fce53
|
|
@ -1556,6 +1556,7 @@ sub get_notice {
|
|||
my $letter = C4::Letters::GetPreparedLetter(
|
||||
module => 'ill',
|
||||
letter_code => $params->{notice_code},
|
||||
branchcode => $self->branchcode,
|
||||
message_transport_type => $params->{transport},
|
||||
lang => $self->patron->lang,
|
||||
tables => {
|
||||
|
|
@ -1565,8 +1566,8 @@ sub get_notice {
|
|||
branches => $self->branchcode,
|
||||
},
|
||||
substitute => {
|
||||
ill_bib_title => $title ? $title->value : 'N/A',
|
||||
ill_bib_author => $author ? $author->value : 'N/A',
|
||||
ill_bib_title => $title ? $title->value : qw{},
|
||||
ill_bib_author => $author ? $author->value : qw{},
|
||||
ill_full_metadata => $metastring
|
||||
}
|
||||
);
|
||||
|
|
|
|||
Loading…
Reference in New Issue