From d94f85afe08d1dcfba79605a781585bb9a75d4c6 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. --- .../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 2997f20583..828d57e741 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.30.2