From dedace9fc689cb0a6aff2130bca78ea5247bdb93 Mon Sep 17 00:00:00 2001 From: Owen Leonard Date: Tue, 13 Feb 2024 17:52:33 +0000 Subject: [PATCH] Bug 36044: Show ISBN number of purchase suggestions on the OPAC This patch adds output of ISBN in the table of purchase suggestions in the OPAC. The patch also adds some formatting markup to the output of suggestions information to make it more compact, and corrects the label on the suggestion titles so that they work to trigger the corresponding checkbox. To test, apply the patch and submit some suggestions. Include ISBN with some requests. Log in to the OPAC and view your suggestions. Confirm that the information is displayed well, including ISBN. Signed-off-by: David Nind Signed-off-by: Martin Renvoize --- .../bootstrap/en/modules/opac-suggestions.tt | 59 ++++++++++++++----- 1 file changed, 44 insertions(+), 15 deletions(-) diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-suggestions.tt b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-suggestions.tt index 2997f20583f..828d57e7413 100644 --- a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-suggestions.tt +++ b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-suggestions.tt @@ -426,22 +426,51 @@ [% END %] -

- -

-

[% IF ( suggestion.author ) %][% suggestion.author | html %],[% END %] - [% IF ( suggestion.copyrightdate ) %] - [% suggestion.copyrightdate | html %],[% END %] - [% IF ( suggestion.publishercode ) %] - [% suggestion.publishercode | html %][% END %] - [% IF ( suggestion.place ) %]([% suggestion.place | html %])[% END %] - [% IF ( suggestion.collectiontitle ) %] , [% suggestion.collectiontitle | html %][% END %] - [% IF ( suggestion.itemtype ) %] - [% AuthorisedValues.GetByCode( 'SUGGEST_FORMAT', suggestion.itemtype, 1 ) | html %][% END %] -

+ + [% END %] + [% IF ( suggestion.collectiontitle ) %] + + Collection: + [% suggestion.collectiontitle | html %] + + [% END %] + [% IF ( suggestion.itemtype ) %] + + Item type: + [% AuthorisedValues.GetByCode( 'SUGGEST_FORMAT', suggestion.itemtype, 1 ) | html %] + + [% END %] + [% IF ( suggestion.isbn ) %] + + ISBN: + [% suggestion.isbn | html %] + + [% END %] [% IF ( suggestion.suggesteddate ) %][% suggestion.suggesteddate |$KohaDates %][% END %] -- 2.43.1