Re: [Archivesspace_Users_Group] Subject Heading Plugin not working properly 1.4.2

2017-06-15 Thread Maurice, Candace A
Thanks for the fast response, Steve! I’ll try your fix to see if it works for 
us as well. Thanks!

From: 
<archivesspace_users_group-boun...@lyralists.lyrasis.org<mailto:archivesspace_users_group-boun...@lyralists.lyrasis.org>>
 on behalf of "Majewski, Steven Dennis (sdm7g)" 
<sd...@eservices.virginia.edu<mailto:sd...@eservices.virginia.edu>>
Reply-To: Archivesspace Users Group 
<archivesspace_users_group@lyralists.lyrasis.org<mailto:archivesspace_users_group@lyralists.lyrasis.org>>
Date: Thursday, June 15, 2017 at 12:26 PM
To: Archivesspace Users Group 
<archivesspace_users_group@lyralists.lyrasis.org<mailto:archivesspace_users_group@lyralists.lyrasis.org>>
Subject: Re: [Archivesspace_Users_Group] Subject Heading Plugin not working 
properly 1.4.2



It appears to be no longer working in any version.
I believe loc has changed the API for the service slightly. Need to investigate 
further.
But trying to reverse engineer the parameters from inspecting the difference in 
the params used in the web page search vs. what’s embedded in LCNAF plugin, I 
tried this change, which appears to work for me:


diff --git a/plugins/lcnaf/frontend/models/opensearcher.rb 
b/plugins/lcnaf/frontend/models/opensearcher.rb
index 9391ab5..37e2813 100644
--- a/plugins/lcnaf/frontend/models/opensearcher.rb
+++ b/plugins/lcnaf/frontend/models/opensearcher.rb
@@ -14,7 +14,7 @@ class OpenSearcher



   def initialize(base_url, scheme )
 @base_url = base_url
-@scheme = scheme
+@scheme = "cs:" + scheme
   end





@@ -71,7 +71,7 @@ class OpenSearcher
   'start' => start_record)



 uri.query = URI.encode_www_form(params)
-
+p uri
 results = HTTPRequest.new.get(uri) do |response|
   if response.code != '200'
 raise OpenSearchException.new("Error during OpenSearch search: 
#{response.body}")


( The other OCLC search has always been unreliable — it’s a test site and not a 
supported service. )

— Steve Majewski



On Jun 15, 2017, at 12:07 PM, Maurice, Candace A 
<cmaur...@tulane.edu<mailto:cmaur...@tulane.edu>> wrote:

Hello All,

We are on version 1.4.2 and we have had a user report that the subject heading 
plugin is not returning results for either LCNAF or LCSH (OCLC works, however). 
The user doesn’t receive any error messages when using the plugin,  but tried 
typing in known subject headings for the Library Of Congress and it’s still not 
returning results. I checked the  Background jobs and logs and there are not 
error messages. I also went to the LOC website and all appears to be fine when 
searching subject headings on their site.

Has anyone else experienced a similar issue? Can you point me in the right 
direction for resolving this issue?


Thanks,

Candace

-
Candace Maurice
Web Developer
Howard-Tiltion Memorial Library
Tulane University
504.314.7784
cmaur...@tulane.edu<mailto:cmaur...@tulane.edu>
<512DA1AA-B52D-4559-9B7E-FB77BCC5BB86.png>
___
Archivesspace_Users_Group mailing list
Archivesspace_Users_Group@lyralists.lyrasis.org<mailto:Archivesspace_Users_Group@lyralists.lyrasis.org>
http://lyralists.lyrasis.org/mailman/listinfo/archivesspace_users_group

___
Archivesspace_Users_Group mailing list
Archivesspace_Users_Group@lyralists.lyrasis.org
http://lyralists.lyrasis.org/mailman/listinfo/archivesspace_users_group


[Archivesspace_Users_Group] Subject Heading Plugin not working properly 1.4.2

2017-06-15 Thread Maurice, Candace A
Hello All,

We are on version 1.4.2 and we have had a user report that the subject heading 
plugin is not returning results for either LCNAF or LCSH (OCLC works, however). 
The user doesn’t receive any error messages when using the plugin,  but tried 
typing in known subject headings for the Library Of Congress and it’s still not 
returning results. I checked the  Background jobs and logs and there are not 
error messages. I also went to the LOC website and all appears to be fine when 
searching subject headings on their site.

Has anyone else experienced a similar issue? Can you point me in the right 
direction for resolving this issue?


Thanks,

Candace

-
Candace Maurice
Web Developer
Howard-Tiltion Memorial Library
Tulane University
504.314.7784
cmaur...@tulane.edu
[Description: Description: cid:image001.jpg@01C9F346.FB284370]
___
Archivesspace_Users_Group mailing list
Archivesspace_Users_Group@lyralists.lyrasis.org
http://lyralists.lyrasis.org/mailman/listinfo/archivesspace_users_group