Permalink
Browse files

ui tweaks

  • Loading branch information...
1 parent d266b1c commit b8d90ed66170f154aaf68afde246dedbc7d26a7c @edchamberlain committed Feb 18, 2012
Showing with 4 additions and 4 deletions.
  1. +1 −1 api/copacRequest.php
  2. +1 −1 api/salt.php
  3. +2 −2 js/salt.js
View
2 api/copacRequest.php
@@ -1,5 +1,5 @@
<?php
-set_include_path ('/home/httpd/api/common/');
+set_include_path ('common');
require_once 'badgerFish.php';
require_once 'load.php';
# Cross domain wrapper for COPAC's SRU/SRW service. Takes simple ISBN request, interrogates COPAC and returns Mods record fully converted to easily parsable JSON format.
View
2 api/salt.php
@@ -1,5 +1,5 @@
<?php
-set_include_path ('/home/httpd/api/common/');
+set_include_path ('common');
require_once 'xmlserialize.cls.php';
require_once 'load.php';
View
4 js/salt.js
@@ -23,7 +23,7 @@ function cleanISBN(isbnInput) {
function showCopacCitation(isbnInput) {
$('#copacResults').show();
- $('#copacResults').load('../api/external/copacRequest2.php',{input: isbnInput, index: 'isbn', format: "html", mode: "citation"});
+ $('#copacResults').load('/recommend/api/copacRequest.php',{input: isbnInput, index: 'isbn', format: "html", mode: "citation"});
}
////////////////////////////////
@@ -66,7 +66,7 @@ function getSalt(isbnInput,threshold,limit) {
var i=1;
var output ='';
- var saltURL = "../api/external/salt.php?isbn=" + isbnInput + "&threshold=" + threshold + "&format=xml";
+ var saltURL = "recommend/api/salt.php?isbn=" + isbnInput + "&threshold=" + threshold + "&format=xml";
var origURL = "http://vm-salt.mimas.ac.uk/getSuggestions.api?isbn=" + isbnInput + "&threshold=" + threshold + "&format=xml";
$('#debug1').html('<p>Original request URI:<br/> <a href="'+ origURL +'">' + origURL + '</a></p>');

0 comments on commit b8d90ed

Please sign in to comment.