Skip to content

Commit 2baa556

Browse files
authored
Merge pull request #137 from ebsco/limiters-facets-update-issue-2311
Update to facet functionality
2 parents 42b13e3 + 97dfbf4 commit 2baa556

6 files changed

Lines changed: 15 additions & 16 deletions

File tree

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
.DS_Store
22
.vscode
3-
.perlcriticrc
3+
.perlcriticrc
4+
OMtesting.txt

Koha/Plugin/EDS.pm

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,10 +31,10 @@ $PluginDir = $PluginDir.'/Koha/Plugin/EDS';
3131

3232
################# DO NOT TOUCH - CONTROLLED BY build.py
3333
our $MAJOR_VERSION = "22.11";
34-
our $SUB_VERSION = "002";
34+
our $SUB_VERSION = "004";
3535
our $VERSION = $MAJOR_VERSION . "" . $SUB_VERSION;
3636
our $SHA_ADD = "https://widgets.ebscohost.com/prod/api/koha/sha/1711.json";
37-
our $DATE_UPDATE = '2024-04-15';
37+
our $DATE_UPDATE = '2024-10-07';
3838
######################################################
3939

4040
## Here is our metadata, some keys are required, some are optional
Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<!-- DO NOT TOUCH THIS FILE - controlled by build.py -->
33
<kohaplugin>
4-
<latestversion>22.11.002</latestversion>
4+
<latestversion>22.11.004</latestversion>
55
<download>https://github.com/ebsco/edsapi-koha-plugin</download>
6-
<lastupdated>2024/04/15</lastupdated>
6+
<lastupdated>2024/10/07</lastupdated>
77
<releasenotes>
8-
<release version="22.11.002" date="2024/04/15">
9-
<note id="1" author="mabrahamson@ebsco.com">Builds community PRs into installer.</note>
8+
<release version="22.11.004" date="2024/10/07">
9+
<note id="1" author="omuzzy@ebsco.com">fixes issues where facets drop upon new selection.</note>
1010
</release>
1111
</releasenotes>
1212
</kohaplugin>

Koha/Plugin/EDS/js/EDSScript.tt

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ edsConfig.pluginhttppath = "[% PLUGIN_HTTP_PATH %]";
4141
var searchBlockCount = 3;
4242

4343
// DO NOT TOUCH - controlled by build.py
44-
var versionEDSKoha = "22.11002";
44+
var versionEDSKoha = "22.11004";
4545
///////////////////////////////////////
4646

4747
if (document.title == "") {
@@ -1095,10 +1095,9 @@ function UpdateFacet() {
10951095
str.push(e + "=" + multiFacet[e]);
10961096
}
10971097
}
1098-
window.location.href = document.URL.split("|")[0].replace("&default=1", "") + "|" + str.join("|");
1098+
window.location.assign(document.getElementById("searchTerm").parentElement.href.replace("&default=1", "").replace("action=removequery(1)","") + str.join("|"));
10991099
}
11001100

1101-
11021101
function SearchAgain() {
11031102
var resultsSelector = (jQuery('#noresultsfound').length) ? '#noresultsfound' : '#top-pages'; // top-pages for bootstrap
11041103
var searchQueryString = document.URL;
@@ -1111,7 +1110,7 @@ function SearchAgain() {
11111110
window.location.href = searchQueryString;
11121111
}
11131112

1114-
// Multile Facets END
1113+
// Multiple Facets END
11151114

11161115
//
11171116
function PlacardTabs(placardTab) {
@@ -1331,5 +1330,4 @@ jQuery('body').on('click', '#translControl1', function () {
13311330
if (eds_sessionStorage.get('defaultsearch') == "eds") {
13321331
jQuery("#translControl1").autocomplete("search");
13331332
}
1334-
});
1335-
1333+
});

version.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
{
22
"MajorVersion": "22.11",
3-
"MinorVersion": "002",
3+
"MinorVersion": "004",
44
"ReleaseNotes": [
55
{
6-
"author": "mabrahamson@ebsco.com",
7-
"note": "Builds community PRs into installer."
6+
"author": "omuzzy@ebsco.com",
7+
"note": "fixes issues where facets drop upon new selection."
88
}
99
],
1010
"ShaAdd": "https://widgets.ebscohost.com/prod/api/koha/sha/1711.json"

0 commit comments

Comments
 (0)