Skip to content

Commit 106b09d

Browse files
initial test
1 parent 8e6c12a commit 106b09d

4 files changed

Lines changed: 12 additions & 5 deletions

File tree

Koha/Plugin/EDS.pm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ our $MAJOR_VERSION = "21.11";
3434
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 = '2023-04-04';
37+
our $DATE_UPDATE = '2023-06-15';
3838
######################################################
3939

4040
## Here is our metadata, some keys are required, some are optional

Koha/Plugin/EDS/admin/release_notes.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@
33
<kohaplugin>
44
<latestversion>21.11.004</latestversion>
55
<download>https://github.com/ebsco/edsapi-koha-plugin</download>
6-
<lastupdated>2023/04/04</lastupdated>
6+
<lastupdated>2023/06/15</lastupdated>
77
<releasenotes>
8-
<release version="21.11.004" date="2023/04/04">
8+
<release version="21.11.004" date="2023/06/15">
99
<note id="1" author="cwolf@ebsco.com">Adds additional support for translations.</note>
1010
</release>
1111
</releasenotes>

Koha/Plugin/EDS/js/EDSScript.tt

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -650,6 +650,9 @@ function QueryString(key) {
650650

651651
//BASKET START---------
652652
function InitCartWithEDS() {
653+
if (edsConfig.logerrors == "yes"){
654+
console.log("Cart initialized...");
655+
}
653656
jQuery('#addto').change(function () { CheckEDSRecordsforAddToList(); });
654657
jQuery('.addto input:submit').click(function () { CheckEDSRecordsforAddToList(); });
655658

@@ -664,14 +667,18 @@ function InitCartWithEDS() {
664667
}
665668

666669
async function PrepareItems() {
667-
670+
if (edsConfig.logerrors == "yes"){
671+
console.log("Running PrepareItems()...");
672+
}
668673
//Get Bib numbers from the url
669674
var recordList = document.URL;
670675
recordList = QueryString("bib_list").toString();
671676

672677
//Split bib list into array on /
673678
var recordId = recordList.split("/");
674-
679+
if (edsConfig.logerrors == "yes"){
680+
console.log(recordId);
681+
}
675682
//Iterate through all the record IDs
676683
for (var edsItemCount = 0; edsItemCount < recordId.length - 1; edsItemCount++) {
677684
//Check that it doesn't have the catalogue dbid

eds_plugin_21.11004.kpz

5.91 KB
Binary file not shown.

0 commit comments

Comments
 (0)