Skip to content

Instantly share code, notes, and snippets.

@miku
Created April 20, 2017 14:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save miku/4913230b8c52d4f7ccce1d0184ae1879 to your computer and use it in GitHub Desktop.
Save miku/4913230b8c52d4f7ccce1d0184ae1879 to your computer and use it in GitHub Desktop.
// TODO: #8575, for sid 127, use finer access facet (e.g. "Software" should be "Local Holdings")
// Why isn't result of getFormat ("FormatOrig") passed directly to "access_map.properties"?
// Use switch here?
switch (source_id) {
case "0":
return getFormat(record);
case "3":
result.add("LocalAccess");
break;
case "51":
result.add("LocalAccess");
break;
case "127":
result.add(getFormat(record));
break;
default:
result.add("RemoteAccess");
break;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment