[open-ils-commits] [GIT] Evergreen ILS branch rel_3_0 updated. 3cc70dc3bb996210d326feb7f275ae5ffd7627a9
Evergreen Git
git at git.evergreen-ils.org
Mon Apr 30 22:51:44 EDT 2018
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "Evergreen ILS".
The branch, rel_3_0 has been updated
via 3cc70dc3bb996210d326feb7f275ae5ffd7627a9 (commit)
from 3b70230b51fd18348d06afd964d08d36481db6ab (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commit 3cc70dc3bb996210d326feb7f275ae5ffd7627a9
Author: Galen Charlton <gmc at equinoxinitiative.org>
Date: Mon Apr 30 22:45:48 2018 -0400
LP#1732591: (follow-up) fix major regressions
This patch works around two regressions introduced by a previous patch:
- record links from titles on the OPAC results page simply re-ran
the search
- record links from cover images on the OPAC results page dropped
all paramters
In one case, a 'record_url' should have been a mkurl() expression. In the
other case, the prior patch did not handle the clear_params parameter
correctly; an empty array is /not/ equivalent to undef, and all CGI parameters
were getting cleared.
This patch is offered in lieu of simply pushing a revert.
Signed-off-by: Galen Charlton <gmc at equinoxinitiative.org>
diff --git a/Open-ILS/src/templates/opac/parts/result/table.tt2 b/Open-ILS/src/templates/opac/parts/result/table.tt2
index 3e26dc3..4d4211a 100644
--- a/Open-ILS/src/templates/opac/parts/result/table.tt2
+++ b/Open-ILS/src/templates/opac/parts/result/table.tt2
@@ -64,13 +64,13 @@
# this case, only, record
record_url_path = ctx.opac_root _ '/record/' _ attrs.mr_constituent_ids.0;
add_parms = { badges => rec.badges.join(',') };
- del_parms = [];
+ del_parms = ['quux'];
END;
hold_type = 'M';
ELSE;
record_url_path = ctx.opac_root _ '/record/' _ rec.bre_id;
add_parms = { badges => rec.badges.join(',') };
- del_parms = [];
+ del_parms = ['quux'];
hold_type = 'T';
END;
@@ -105,7 +105,7 @@
</abbr>
[% END %]
<a class='record_title search_link' name='record_[% rec.id %]'
- href="[% record_url %]"
+ href="[% mkurl(record_url_path, add_parms, del_parms); %]"
[% html_text_attr('title', l('Display record details for "[_1]"', attrs.title)) %]>
[% attrs.title | html %]
</a>
-----------------------------------------------------------------------
Summary of changes:
Open-ILS/src/templates/opac/parts/result/table.tt2 | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
hooks/post-receive
--
Evergreen ILS
More information about the open-ils-commits
mailing list