]> git.evergreen-ils.org Git - Evergreen.git/commit
LP#1756912: restore display of copy counts for preferred library
authorGalen Charlton <gmc@equinoxinitiative.org>
Wed, 21 Mar 2018 16:03:27 +0000 (12:03 -0400)
committerKathy Lussier <klussier@masslnc.org>
Wed, 16 May 2018 13:10:25 +0000 (09:10 -0400)
commitb1c3e85d4ed000d168abf8663f2d27d5ca4d1ea3
tree04b66223331377c4469f4cb4885bb8990bcc1cde
parentf14c6b9d89616fce058f172a562adf02f76397e7
LP#1756912: restore display of copy counts for preferred library

This patch fixes a regression introduced by the patches for bug 1698206
and restores the display of copy counts for the preferred library (when set)
on the public catalog results and record details pages.

To test
-------
[1] Log into the public catalog as a user and set a preferred library.
[2] Perform a catalog search at a system that is other than the
    preferred library set in step 1. Repeat the search with
    "Groups Formats and Editions" checked.
[3] Note that in both cases, the copy counts displayed in search results and
    the record details pages do not include a line for the preferred
    library.
[4] Apply the patch and repeat step 2. This time, the preferred library
    count should be included in the display.

The substance of this patch (with the exception of the pgTAP tests)
follows an approach suggested by Bob Wicksall <bwicksall@pls-net.org>

Signed-off-by: Galen Charlton <gmc@equinoxinitiative.org>
Signed-off-by: Cesar Velez <cesar.velez@equinoxinitiative.org>
Signed-off-by: Kathy Lussier <klussier@masslnc.org>
Conflicts:
Open-ILS/src/perlmods/lib/OpenILS/WWW/EGCatLoader/Util.pm
Open-ILS/src/perlmods/lib/OpenILS/WWW/EGCatLoader/Util.pm
Open-ILS/src/sql/Pg/990.schema.unapi.sql
Open-ILS/src/sql/Pg/t/lp1756912_unapi_feed_copy_counts_include_preflib.pg [new file with mode: 0644]
Open-ILS/src/sql/Pg/upgrade/XXXX.schema.add_pref_lib_to_unapi_feeds.sql [new file with mode: 0644]