Skip to content

Commit 3e40fc4

Browse files
authored
Merge pull request #105 from ebsco/2011-https-update
2011 https update
2 parents 8c2f534 + d4b5c42 commit 3e40fc4

14 files changed

Lines changed: 46 additions & 41 deletions

File tree

Apps/itemmatch/app_itemmatch.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11

2-
jQuery('.table-striped').before('<div id="resultListControl"></div>');
3-
jQuery('body').append('<link rel="stylesheet" type="text/css" href="http://gss.ebscohost.com/alvet/Koha/recom.css">');
2+
jQuery('.table-striped').before('<div id="resultListControl"></div>');
3+
jQuery('body').append('<link rel="stylesheet" type="text/css" href="https://widgets.ebscohost.com/prod/simplekey/recom/koha/recom.css">');
44

5-
jQuery.getScript('http://widgets.ebscohost.com/prod/simplekey/recom/recom.js', function (data, textStatus, jqxhr) {
6-
Recommender(jQuery('#translControl1').val(), 'en', 'https://gss.ebscohost.com/alvet/Koha/', 'json', 'placardb', '3', '1', '0', 'php');
7-
});
5+
jQuery.getScript('https://widgets.ebscohost.com/prod/simplekey/recom/recom.js', function (data, textStatus, jqxhr) {
6+
Recommender(jQuery('#translControl1').val(), 'en', 'https://widgets.ebscohost.com/prod/simplekey/recom/koha/', 'json', 'placardb', '3', '1', '0', 'php');
7+
});

Koha/Plugin/EDS.pm

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

3131
################# DO NOT TOUCH - CONTROLLED BY build.py
3232
our $MAJOR_VERSION = "20.11";
33-
our $SUB_VERSION = "007";
33+
our $SUB_VERSION = "008";
3434
our $VERSION = $MAJOR_VERSION . "" . $SUB_VERSION;
3535
our $SHA_ADD = "https://widgets.ebscohost.com/prod/api/koha/sha/1711.json";
36-
our $DATE_UPDATE = '2021-06-11';
36+
our $DATE_UPDATE = '2021-06-14';
3737
######################################################
3838

3939
## Here is our metadata, some keys are required, some are optional
@@ -251,7 +251,7 @@ sub opac_js {
251251

252252

253253
sub PageURL{
254-
# http://stackoverflow.com/questions/3412280/how-do-i-obtain-the-current-url-in-perl
254+
# https://stackoverflow.com/questions/3412280/how-do-i-obtain-the-current-url-in-perl
255255
my $page_url = 'http';
256256
if ($ENV{HTTPS} == "on") {
257257
#$page_url .= "s";

Koha/Plugin/EDS/admin/configure.tt

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,11 @@
1818
<div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> &rsaquo; <a href="/cgi-bin/koha/plugins/plugins-home.pl">Plugins</a> &rsaquo; EDS API &rsaquo; Configure</div>
1919

2020
<div id="doc3">
21-
<div align="right" style="float:right;width:170px"><a href="http://eadmin.ebscohost.com" target="_blank"><img src="http://eadmin.ebscohost.com/eadmin/images/lib/logoAdmin.gif" ></a>
22-
<p>Visit <a href="http://eadmin.ebscohost.com" target="_blank">EBSCO Admin</a> to configure the EDS API profile</p></div>
21+
<div align="right" style="float:right;width:170px"><a href="https://eadmin.ebscohost.com" target="_blank"><img src="https://eadmin.ebscohost.com/eadmin/images/lib/logoAdmin.gif" ></a>
22+
<p>Visit <a href="https://eadmin.ebscohost.com" target="_blank">EBSCO Admin</a> to configure the EDS API profile</p></div>
2323

2424
<!-- We can access our own plugins resource files using the PLUGIN_PATH variable. -->
25-
<a target="_blank" href="http://www.ebscohost.com/discovery"><img src="https://widgets.ebscohost.com/prod/api/koha/eds_logo.png" width="250" /></a>
25+
<a target="_blank" href="https://www.ebscohost.com/discovery"><img src="https://widgets.ebscohost.com/prod/api/koha/eds_logo.png" width="250" /></a>
2626
<h3>Koha: EDS API: Configure</h3>
2727
<!-- Notice our form here has no 'action', this is good, it means that our forms will always get passed back to 'plugins/run.pl'. You could hard code it instead if you prefer -->
2828
<form method="get">
@@ -84,7 +84,7 @@
8484
<td align="left" valign="top">
8585
<input name="catalogueanprefix" type="text" class="textbox" id="catalogueanprefix" value="[% catalogueanprefix %]">
8686
<small><p>Required if your catalogue is harvested through OAI-PMH or uploaded through FTP in MARC format. You can get this from the URL of a detailed record or permalink in EDS.<br>e.g.
87-
http://ehis.ebscohost.com/eds/detail?AN=prefval.530894. Enter prefval including period (dot) into the text field.</p></small>
87+
https://ehis.ebscohost.com/eds/detail?AN=prefval.530894. Enter prefval including period (dot) into the text field.</p></small>
8888
</td>
8989
</tr>
9090
<tr>
@@ -99,7 +99,7 @@
9999
<th align="left" valign="top" nowrap class="settingLabel" scope="row"> IP Addresses:</th>
100100
<td align="left" valign="top">
101101
[% IF iprange == '' %]<input name="iprange" type="text" class="textbox" id="iprange" value="">[% ELSE %]<input name="iprange" type="text" class="textbox" id="iprange" value="[% iprange %]">[% END %]
102-
<small>Authenticate into EDS using local IP by entering valid IPs seperated by comma(,) e.g. 127.0.0.1,127.0.0.2. To Enter a range; use the example format 100.0.0.0 - 200.79.255.255 <!-- http://stackoverflow.com/questions/24916371/how-do-i-check-if-an-ip-address-is-in-a-specific-range-in-perl -->(<a href="javascript:GetLocalIP();">Get Local IP</a>)</small>
102+
<small>Authenticate into EDS using local IP by entering valid IPs seperated by comma(,) e.g. 127.0.0.1,127.0.0.2. To Enter a range; use the example format 100.0.0.0 - 200.79.255.255 <!-- https://stackoverflow.com/questions/24916371/how-do-i-check-if-an-ip-address-is-in-a-specific-range-in-perl -->(<a href="javascript:GetLocalIP();">Get Local IP</a>)</small>
103103
</td>
104104
</tr>
105105
<tr>
Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,13 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<!-- DO NOT TOUCH THIS FILE - controlled by build.py -->
33
<kohaplugin>
4-
<latestversion>20.11.007</latestversion>
4+
<latestversion>20.11.008</latestversion>
55
<download>https://github.com/ebsco/edsapi-koha-plugin</download>
6-
<lastupdated>2021/06/11</lastupdated>
6+
<lastupdated>2021/06/14</lastupdated>
77
<releasenotes>
8-
<release version="20.11.007" date="2021/06/11">
8+
<release version="20.11.008" date="2021/06/14">
99
<note id="1" author="agupta@ebsco.com">Addresses issues with Koha 20.11. Removed EDSScript.js file.</note>
10+
<note id="2" author="mabrahamson@ebsco.com">Updates issues with http API calls and links.</note>
1011
</release>
1112
</releasenotes>
1213
</kohaplugin>

Koha/Plugin/EDS/admin/setuptool.pl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ sub UpdateEDSPlugin{
148148
}
149149
}
150150
}
151-
# http://www.perlfect.com/articles/perlfile.shtml - PERL file operations
151+
# https://www.perlfect.com/articles/perlfile.shtml - PERL file operations
152152
#use Data::Dumper; die Dumper $PluginDir."/opac/.htaccess";
153153

154154
return $updateLog;

Koha/Plugin/EDS/admin/setuptool.tt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,10 @@
2828
<div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> &rsaquo; <a href="/cgi-bin/koha/plugins/plugins-home.pl">Plugins</a> &rsaquo; EDS API &rsaquo; Setup Tool</div>
2929

3030
<div id="doc3">
31-
<div align="right" style="float:right;width:170px"><a href="http://eadmin.ebscohost.com" target="_blank"><img src="http://eadmin.ebscohost.com/eadmin/images/lib/logoAdmin.gif" ></a>
32-
<p>Visit <a href="http://eadmin.ebscohost.com" target="_blank">EBSCO Admin</a> to configure the EDS API profile</p></div>
31+
<div align="right" style="float:right;width:170px"><a href="https://eadmin.ebscohost.com" target="_blank"><img src="https://eadmin.ebscohost.com/eadmin/images/lib/logoAdmin.gif" ></a>
32+
<p>Visit <a href="https://eadmin.ebscohost.com" target="_blank">EBSCO Admin</a> to configure the EDS API profile</p></div>
3333

34-
<a target="_blank" href="http://www.ebscohost.com/discovery"><img src="https://widgets.ebscohost.com/prod/api/koha/eds_logo.png" width="250" /></a>
34+
<a target="_blank" href="https://www.ebscohost.com/discovery"><img src="https://widgets.ebscohost.com/prod/api/koha/eds_logo.png" width="250" /></a>
3535
<h3>Koha: EDS API: Setup Tool</h3>
3636
<p>This setup tool details version information and provides access to the App manager.</p>
3737

Koha/Plugin/EDS/bootstrap/modules/eds-advsearch.tt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@
128128

129129
<div id="advsearch-itemtypes" class="advsearch ui-tabs-panel ui-corner-bottom ui-widget-content" aria-labelledby="ui-id-1" role="tabpanel" aria-hidden="false">
130130
<fieldset>
131-
<legend>[% EDSLANG.eds_advsearch_TT_search_opt_modes %]<a class="helplink" target="_blank" href="http://support.ebsco.com/help/?int=eds&lang=en&feature_id=SrcMode&TOC_ID=Always&SI=0&BU=0&GU=1&PS=0&ver=live&dbs=">
131+
<legend>[% EDSLANG.eds_advsearch_TT_search_opt_modes %]<a class="helplink" target="_blank" href="https://support.ebsco.com/help/?int=eds&lang=en&feature_id=SrcMode&TOC_ID=Always&SI=0&BU=0&GU=1&PS=0&ver=live&dbs=">
132132
<img valign="middle" src="../images/iconQuestionMarkGeneric.png" width="21" alt="Help (opens in new window)">
133133
</a></legend>
134134
<div id="modeExpanders">
@@ -143,7 +143,7 @@
143143
[% ELSE %]
144144
<input class="advSBOps" name="searchMode" id="[% mode.Mode %]" type="radio" value="[% mode.AddAction %]">
145145
[% END %]
146-
[% mode.Label %]<sub><a href="http://support.ebsco.com/help/?int=eds&lang=en&feature_id=SrcMode&TOC_ID=Always&SI=0&BU=0&GU=1&PS=0&ver=live&dbs=" target="_blank" title="[% EDSLANG.eds_advsearch_TT_search_help_title %]">[% EDSLANG.eds_advsearch_TT_search_help %]</a></sub>
146+
[% mode.Label %]<sub><a href="https://support.ebsco.com/help/?int=eds&lang=en&feature_id=SrcMode&TOC_ID=Always&SI=0&BU=0&GU=1&PS=0&ver=live&dbs=" target="_blank" title="[% EDSLANG.eds_advsearch_TT_search_help_title %]">[% EDSLANG.eds_advsearch_TT_search_help %]</a></sub>
147147
</label>
148148
[% ELSE %]
149149
<label for="[% mode.Mode %]" >

Koha/Plugin/EDS/js/EDSScript.tt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ edsConfig.edsprofileid = "[% edsprofileid %]";
4040
var searchBlockCount = 3;
4141

4242
// DO NOT TOUCH - controlled by build.py
43-
var versionEDSKoha = "20.11007";
43+
var versionEDSKoha = "20.11008";
4444
///////////////////////////////////////
4545

4646
if (document.title == "") {

Koha/Plugin/EDS/opac/eds-detail.pl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ sub cust_EDSSearch
151151
$EDSQuery =~s/ /\+/g;
152152

153153
# generate URI
154-
my $uri = 'http://eds-api.ebscohost.com/edsapi/rest/'.$EDSQuery;
154+
my $uri = 'https://eds-api.ebscohost.com/edsapi/rest/'.$EDSQuery;
155155
$uri=~s/\|/\&/g;
156156

157157
my $response = decode_json(CallREST('GET',$uri,'', GetAuth(), GetSession()));

Koha/Plugin/EDS/opac/eds-methods.pl

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ sub GetAuth
153153
sub CreateSession
154154
{
155155
#end session
156-
my $uri = 'http://eds-api.ebscohost.com/edsapi/rest/endsession';
156+
my $uri = 'https://eds-api.ebscohost.com/edsapi/rest/endsession';
157157
my $json = '{"sessiontoken":"'.$input->cookie('sessionToken').'"}';
158158
if($authtoken eq ''){
159159
$authtoken = CreateAuth();
@@ -163,8 +163,8 @@ sub CreateSession
163163
#$GuestTracker = CheckIPAuthentication();
164164

165165
#ask for SessionToken from EDSAPI
166-
$uri = 'http://eds-api.ebscohost.com/edsapi/rest/createsession';
167-
$json = '{"Profile":"'.$edsprofileid.'","Guest":"'.$GuestTracker.'","Org":"'.$edscustomerid.'"}';
166+
$uri = 'https://eds-api.ebscohost.com/edsapi/rest/createsession';
167+
$json = '{"Profile":"'.$edsprofileid.'","Guest":"'.$GuestTracker.'","Org":"koha-'.$edscustomerid.'"}';
168168

169169
$response = CallREST('POST',$uri,$json, $authtoken, '');
170170

@@ -270,7 +270,7 @@ sub PFISearch
270270
}
271271
$EDSQuery =~s/ /\+/g;
272272
print STDERR "---==---" . $EDSQuery;
273-
my $uri = 'http://eds-api.ebscohost.com/edsapi/'.$apiType.'/'.$EDSQuery;
273+
my $uri = 'https://eds-api.ebscohost.com/edsapi/'.$apiType.'/'.$EDSQuery;
274274
$uri=~s/\|/\&/g;
275275
# use Data::Dumper; die Dumper $uri;
276276
print STDERR "---==---" . $uri;
@@ -324,7 +324,7 @@ sub EDSSearch
324324
$EDSQuery =~s/\{.*?\}/$encodedTerm/;
325325
}
326326
$EDSQuery =~s/ /\+/g;
327-
my $uri = 'http://eds-api.ebscohost.com/edsapi/'.$apiType.'/'.$EDSQuery;
327+
my $uri = 'https://eds-api.ebscohost.com/edsapi/'.$apiType.'/'.$EDSQuery;
328328
$uri=~s/\|/\&/g;
329329
# use Data::Dumper; die Dumper $uri;
330330

0 commit comments

Comments
 (0)