Skip to content

Instantly share code, notes, and snippets.

@choffee
Created February 23, 2009 14:55
Show Gist options
  • Save choffee/68976 to your computer and use it in GitHub Desktop.
Save choffee/68976 to your computer and use it in GitHub Desktop.
Search York Directory by Surname
//Note: This command was automatically generated by the create-new-search-command command.
CmdUtils.CreateCommand({
name: "yorksurnamesearch",
url: "https://www.york.ac.uk/directory/user.yrk/searchaction.cfm",
icon: "http://www.york.ac.uk/favicon.ico",
description: "Searches www.york.ac.uk",
takes: {"search term": noun_arb_text},
execute: function(input){ var query = encodeURIComponent(input.text);
var postData = "surname={QUERY}&department=&username=&telephone=&scope=staff".replace(/%s|{QUERY}/g, query);
Utils.openUrlInBrowser("https://www.york.ac.uk/directory/user.yrk/searchaction.cfm", postData);}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment