-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Implement full text search using DSpace OpenSearch API #4
Comments
From previous Drupal project: `<?php Full Text Search";//get current url to find out what the user searched //Narrow Scope to Just AQSI Statements //Open Search does everything in D-Space //convert weird character codes like '&' and spaces into the right code for Dspace <a href="" . $more_url . "">Narrow Results- (Search only AQSI Statements)";//Open Search feed for DSpace // Debugging code for OpenSearch queries to make sure the API call is formatted correctly -Mike Z// // echo " " . $feed_url . "";// End debugging code // //get the xml file associated with that search //this will have all the data including title, link, and description //we will format this file to full the full text search with data //get rid of the extra tags at the top of the document //this is extra information about the feed that we don't need //get each individual entry, so we can go through it one at a time in our for loop //formatting to match regular searches //first one is empty not sure why, but there's no data there, so we'll skip it //the first statement starts at index 1 "; } echo ""; if($len ==21){ //there are more results that we can't see //convert weird character codes like '&' and spaces into the right code for Dspace $query = str_replace("%25", "%", $query ); $more_url = "http://triceratops.brynmawr.edu/dspace/handle/10066/4022/discover?order=DESC&rpp=20&sort_by=0&page=2&query=" . $query . "&etal=0"; echo " <a href="" . $more_url . "">More Full Text Results...";} ?>` |
The API call looks like this:
https://scholarship.tricolib.brynmawr.edu/open-search/discover?query=" . $query . "&scope=10066/4022&order=DESC&rpp=20&sort_by=0&page=1&etal=0
Where $query is the search query
The text was updated successfully, but these errors were encountered: