TAN-search-functions
Definition: doc('TAN-search-services.xml')
Used by function tan:search-for-entities()
.
Does not rely upon global variables, keys, functions, or templates.
TAN-search-functions
tan:search-for-entities($server-idref as xs:string, $params as element()+) as item()*
Input: a sequence of strings (search keywords), a string (options: loc), a string (options: marcxml, dc, mods), a positive integer
Output: up to N records (N = integer parameter) in the protocol of the 3rd paramater, using the SRU protocol of the library catalog specified in the 2nd parameter based on search words in the 1st
Used by function tan:search-for-entities()
, tan:search-for-scripta()
, tan:search-for-persons()
, tan:search-wikipedia()
, tan:search-morpheus()
.
Relies upon $internet-available
, $search-services
, tan:search-for-entities()
.
TAN-search-functions
tan:search-for-persons($search-expression as xs:string?, $max-records as xs:integer) as item()*
Input: a search expression, an integer indicating the number of records requested
Output: that number of records using the search expression in the Virtual International Authority File
No variables, keys, functions, or named templates depend upon this xsl:function.
Relies upon tan:search-for-entities()
.
TAN-search-functions
tan:search-for-scripta($search-expression as xs:string?, $max-records as xs:integer) as item()*
Input: a search expression, an integer indicating the number of records requested
Output: that number of records using the search expression in the Library of Congress
No variables, keys, functions, or named templates depend upon this xsl:function.
Relies upon tan:search-for-entities()
.
TAN-search-functions
tan:search-morpheus($search-expression as xs:string?) as document-node()?
Input: a token in Greek or Latin
Output: lexico-morphological data using Morpheus's service
Used by function tan:lm-data()
.
Relies upon tan:node-type()
, tan:search-for-entities()
.
TAN-search-functions
tan:search-results-to-claims($search-results as item()*, $results-vendor as xs:string) as item()*
Input: XML representing a search result that is a claim; a string indicating which vendor supplied the results
Output: the claim represented in TAN elements
This experimental function, so far only supporting results from
tan:search-morpheus()
Used by function tan:lm-data()
.
Relies upon ŧ claims-morpheus
.
Option 1 (TAN-search-functions)
tan:search-results-to-IRI-name-pattern($search-results as item()*) as item()*
One-parameter version of the fuller one, below
Used by function tan:search-results-to-IRI-name-pattern()
.
Relies upon tan:search-results-to-IRI-name-pattern()
.
Option 2 (TAN-search-functions)
tan:search-results-to-IRI-name-pattern($search-results as item()*, $format-results as xs:boolean) as item()*
Input: search results from tan:search-for-entities()
Output: for every entity found, an<item>
with<IRI>
,<name>
, and perhaps<desc>
Note, this is intended to format results from searches that result in identifiers and descriptions of entities, not claims.
Used by function tan:search-results-to-IRI-name-pattern()
.
Relies upon ŧ get-IRI-name
.
TAN-search-functions
tan:search-wikipedia($search-expression as xs:string?, $max-records as xs:integer) as item()*
Input: a search expression, an integer indicating the number of records requested
Output: that number of records using the search expression in Wikipedia
No variables, keys, functions, or named templates depend upon this xsl:function.
Relies upon tan:search-for-entities()
.