Bug 10689: make public note appear in subscriptions search
authorFridolyn SOMERS <fridolyn.somers@biblibre.com>
Tue, 6 Aug 2013 10:13:34 +0000 (12:13 +0200)
committerTomas Cohen Arazi <tomascohen@gmail.com>
Tue, 19 Nov 2013 17:53:37 +0000 (14:53 -0300)
commit0590e2fd5d21c23eb6a24e82658626cb0e42ee87
tree62d71c5b7a4a3c89d5c04bc369c06c65620f0b70
parent149890acf6bb03d2c9beb3e25332b9f3bb82a977
Bug 10689: make public note appear in subscriptions search

In a serials module, when searching subscriptions, the results table as
a "Notes" column.
In TT code, you see that it tries to display public note
"subscription.notes" and internal note "subscription.internalnotes".

The internal note is displayed well but not the public note.

You can see the 2 notes in serial details in summary tab.

The problem commes from the SQL query. A join is perform on subscription
and biblio, both containing a "notes" column.

This patch solves the problem by using a alias in query for both columns
(biblio.notes is acutally not used in template but could be).

Test plan :
- Edit a subscription
- Add public and internal notes. For example : "too busy" and "on holiday"
- Perform a subscription search that returns this subscription
=> "Notes" column contains both notes. For example : "too busy (on holiday)"
- Test with only public note
- Test with only internal note

Works as described.
Signed-off-by:Mathieu Saby <mathieu.saby@uhb.fr>
Signed-off-by: Bernardo Gonzalez Kriegel <bgkriegel@gmail.com>
Signed-off-by: Katrin Fischer <Katrin.Fischer.83@web.de>
All tests and QA script pass.
Works as described, fixes a bug as the templates show that
the intention was to display both notes in the column.

Signed-off-by: Galen Charlton <gmc@esilibrary.com>
(cherry picked from commit 4458e86865d09196591646e29a319958c8680578)
Signed-off-by: Tomas Cohen Arazi <tomascohen@gmail.com>
C4/Serials.pm
koha-tmpl/intranet-tmpl/prog/en/modules/serials/serials-search.tt