text
stringlengths 1
254
| output
stringlengths 2
255
|
---|---|
This function allows you to set the file in which you want XSLT log messages to, XSLT log messages are different than error messages, in that log messages are not actually error messages but rather messages related to the state of the XSLT processor.
|
This parameter is either a boolean value which toggles logging on and off, or a string containing the logfile in which log errors too.
|
?php $xh = xslt_create(); xslt_set_log($xh, true); xslt_set_log($xh, getcwd(). 'myfile.log'); $result = xslt_process($xh, 'dog.xml', 'pets.xsl'); print($result); xslt_free($xh);?
|
By default logging is disabled, in order to enable logging you must first call xslt_set_log() with a boolean parameter which enables logging, then if you want to set the log file to debug to, you must then pass it a string containing the filename:
|
Prev
|
äŸ 1 Using the XSLT Logging features
|
Set SAX handlers on the resource handle given by xh.
|
(4.0.3 - 4.0.6 only)
|
Warning
|
(PHP 4 = 4.0.6)
|
Prev
|
ãã®é¢æ°ã¯ã çŸåšã®ãšããè©³çŽ°ãªæ
å ±ã¯ãããŸãããåŒæ°ã®ãªã¹ãã®ã¿ã èšè¿°ãããŠããŸãã
|
Set Scheme handlers on the resource handle given by xh.
|
(4.0.5 - 4.0.6 only)
|
array( [get_all] = get all handler, [open] = open handler, [get] = get handler, [put] = put handler, [close] = close handler)
|
xh ã§æå®ãããªãœãŒã¹ãã³ãã«ã«ã¹ããŒããã³ ãã©ãèšå®ããŸããã¹ããŒããã³ãã©ã¯ããã©ãŒãããã®é
åãšããå¿
èŠããããŸãã(å
šãŠã®èŠçŽ ã¯ãªãã·ã§ã³ã§ã)
|
Warning
|
(PHP 4 = 4.0.6)
|
Prev
|
ãã®é¢æ°ã¯ã çŸåšã®ãšããè©³çŽ°ãªæ
å ±ã¯ãããŸãããåŒæ°ã®ãªã¹ãã®ã¿ã èšè¿°ãããŠããŸãã
|
(PHP 4 = 4.0.1)
|
(PHP 4 = 4.0.1)
|
An empty string is returned if last operation was a success or if no additional information was provided by the target.
|
(çŽè¿ã®ãªã¯ãšã¹ãã®)ã¿ãŒã²ããã«é¢ãã詳现ãªãšã©ãŒã¡ãã»ãŒãžãè¿ ããŸããçŽè¿ã®åŠçãæåãããã¿ãŒã²ããã«ããè©³çŽ°ãªæ
å ±ãæäŸã ããŠããªãå Žåã«ã¯ãç©ºã®æååãè¿ãããŸãã
|
This function configures the CCL query parser for a target with definitions of access points (CCL qualifiers) and their mapping to RPN.
|
(PHP 4 = 4.0.5)
|
Each index of the array config is the name of a CCL field and the corresponding value holds a string that specifies a mapping to RPN.
|
ãã®é¢æ°ã¯ãã¢ã¯ã»ã¹ãã€ã³ã(CCLéå®èŸ)ãå®çŸ©ããã¿ãŒã²ããã«é¢ã ãŠCCLã¯ãšãªããŒãµãšRPNãžã®ãããã³ã°ãèšå®ããŸããç¹å®ã®CCLã¯ãšãª ãåŸã§RPNã«ãããããã«ã¯ã yaz_ccl_parse() 颿° ãã³ãŒã«ããŠäžãããé
å config ã®åæ·»åã¯ã CCLãã£ãŒã«ãã®ååã§ããã察å¿ããå€ã¯RPNãžã®ãããã³ã°ãæå®ã ãæååãä¿æããŸãããããã³ã°ã¯å±æ§åããã³å±æ§å€ã®çµã䞊ãã ãã®ã§ãã屿§åãšå±æ§å€ã¯ãçå· (= )ã§åºåãã ãŸããåçµã¯ã空çœã§åºåãããŸãã
|
Each field is mapped to their BIB-1 equivalent.
|
äŸ 1CCL èšå®
|
$fields[ "ti"] = "1=4"; $fields["au"] = "1=1"; $fields["isbn"] = "1=7"; yaz_ccl_conf($id,$fields);
|
以äžã®äŸã§ã¯ãCCLããŒãµã¯ ti ã au ã isbn ãšãã3ã€ã®CCLãã£ãŒ ã«ãããµããŒãããããã«èšå®ãããŸããåãã£ãŒã«ãã¯ãç䟡㪠BIB-1ãžããããããŸãã ãã®äŸã§ã¯ã $id ãã¿ãŒ ã²ããIDã§ããããšãä»®å®ããŠããŸãã
|
To define a set of valid CCL fields call yaz_ccl_conf() prior to this function.
|
(PHP 4 = 4.0.5)
|
(PHP 4 = 4.0.1)
|
(PHP 4 = 4.0.1)
|
The id is a connection resource as returned by a previous yaz_connect() call.
|
id ã§æå®ããZæ¥ç¶(Z-association)ãã¯ããŒãº ããŸãã id ã¯ãã³ãã³ã yaz_connect() ã®è¿ãå€ã§ããã¿ãŒã²ããIDã§ãã
|
(PHP 4 = 4.0.1)
|
(PHP 4 = 4.0.1)
|
yaz_connect() prepares for a connection to a Z39.50 target.
|
yaz_connect() ã¯ãZ39.50 ã¿ãŒã²ãããžã®æ¥ç¶ã æºåããŸããåŒæ° zurl ã¯host[:port][/database]ãšãã圢åŒã§ãã port ãçç¥ãããå Žåã210ã䜿çšãããŸããdatabaseãçç¥ãããå Ž å Default ã䜿çšãããŸãããã®é¢æ°ã¯ãéãããã¯ã¢ãŒãã§åäœãã ãœã±ãããäœæããããšããŸãããåã«åŸã§ yaz_wait() ãã³ãŒã«ãããéã«æ¥ç¶ãå®è¡ããæºå ãè¡ãã ãã§ãã
|
This function is non-blocking and doesn' t attempt to establish a socket - it merely prepares a connect to be performed later when yaz_wait() is called.
|
2çªç®ã®åŒæ°ã options ã«æååãæå®ãããå Žåã Z39.50 V2èªèšŒæåå(OpenAuth)ãšããŠåŠçãããŸãã
|
If options is given as an array the contents of the array serves as options.
|
options ã«é
åãæå®ãããå Žåããã®é
åã®å
容ã¯ãªãã·ã§ã³ãšããŠåŠçãããŸããé
åãªãã·ã§ã³ã¯ãPHP 4.1.0以é ã§ã®ã¿ãµããŒããããããšã«æ³šæããŠäžããã
|
yaz_connect() options
|
yaz_connect() ãªãã·ã§ã³
|
Group for authentication.
|
èªèšŒçšã®ãŠãŒã¶å
|
Cookie for session (YAZ proxy).
|
èªèšŒçšã®ã°ã«ãŒã
|
A boolean.
|
èªèšŒçšã®ãã¹ã¯ãŒã
|
By default connections are persistent.
|
ã»ãã·ã§ã³ã¯ãã㌠(YAZ proxy).
|
By default piggyback is enabled.
|
æ¥ç¶çšãããã· (YAZ proxy).
|
However, a few Z39.50 targets doesn 't support piggyback or they ignore element set names.
|
è«çå€ã TRUE ã®å Žåãæ¥ç¶ã¯æç¶çãšãªããŸãã FALSE ã® å Žåãæ¥ç¶ã¯æç¶çã§ã¯ãããŸãããããã©ã«ãã§ãæ¥ç¶ã¯ æç¶çã§ãã
|
A Z39.50 proxy is part of the free YAZ+ + package.
|
è«çå€ã TRUE ã®å Žåãæ€çŽ¢æã®piggybackãæå¹ã«ãªããŸãã FALSE ã®å Žåãpiggybackãç¡å¹ã«ãªããŸããããã©ã«ãã§ã¯ã piggyback ã¯æå¹ã§ããpiggybackãæå¹ã«ãããšããå¹ççãšãªãã éåžžãã¬ã³ãŒããæåã«ååŸããéã®ãããã¯ãŒã¯åŸåŸ©æéãç¯çŽ ããããšãå¯èœã§ããããããå°æ°ã® Z39.50ã¿ãŒã²ãã㯠piggybackããµããŒãããŠããªããããšã¬ã¡ã³ãéååãç¡èŠããŸãã ãã®å Žåãpiggybackãç¡å¹ãšããå¿
èŠããããŸãã
|
Prev
|
(PHP 4 = 4.0.6)
|
This function specifies one or more databases to be used in search, retrieval, etc. - overriding databases specified in call to yaz_connect().
|
ãã®é¢æ°ã¯ãæ€çŽ¢ãååŸçã§äœ¿çšããïŒã€ãŸãã¯è€æ°ã®ããŒã¿ããŒã¹ã æå®ããŸãã yaz_connect() ãã³ãŒã«ããéã«æå® ããããŒã¿ããŒã¹ãäžæžãããŸããè€æ°ã®ããŒã¿ããŒã¹ã¯ãå¯ç®èšå· + ã§åºåããŸãã
|
This function allows you to use different sets of databases within a session.
|
ãã®é¢æ°ã¯ãããã»ãã·ã§ã³ã®äžã§ç°ãªãããŒã¿ããŒã¹ã®éåã䜿çšã ãããšãå¯èœã«ããŸãã
|
Prev
|
æåæã« TRUE ããšã©ãŒæã« FALSE ãè¿ããŸãã
|
This function sets the element set name for retrieval.
|
(PHP 4 = 4.0.1)
|
Most servers support F (for full records) and B (for brief records).
|
ãã®é¢æ°ã¯ã yaz_search() ããã³ yaz_present() ãšå
±ã«äœ¿çšãããååŸããã¬ã³ãŒã ã®èŠçŽ éåã®ååãæå®ããŸããå€ãã®ãµãŒãã¯ã F (å®å
šç)ããã³ B (ççž®ç) ã®ååããµããŒãããŸãã
|
Prev
|
æåæã« TRUE ããšã©ãŒæã« FALSE ãè¿ããŸãã
|
(PHP 4 = 4.0.1)
|
(PHP 4 = 4.0.1)
|
The error code is either a Z39.50 diagnostic code (usually a Bib-1 diagnostic) or a client side error code which is generated by PHP / YAZ itself, such as "Connect failed", "Init Rejected ", etc.
|
(çŽè¿ã®ãªã¯ãšã¹ãã®)ã¿ãŒã²ããã®ãšã©ãŒãè¿ããŸããã¿ãŒã²ãããå å ã³ãŒããè¿ããå Žåã«ã¯ãæ£ã®å€ãè¿ãããŸãããšã©ãŒãçºçããŠã ãªãå Žå(æåæ)ã¯å€ãŒããè¿ãããŸããã¿ãŒã²ãããåé¡ã®ãããšã©ãŒ ã§ã¯ãªããšå€å®ãããã®ä»ã®ãšã©ãŒã®å Žåã¯ãè² ã®å€ãè¿ãããŸãã
|
To get a text description of the error, call yaz_error().
|
yaz_errno() ã¯ãåã¿ãŒã²ãããžã®ãããã¯ãŒã¯æ¥ ç¶ã確ç«ãããåŸ(ã€ãŸãã yaz_wait() ã®åŸ)ã« ã³ãŒã«ãããå¿
èŠããããçŽè¿ã®æäœ(äŸãã°æ€çŽ¢)ãæåããã倱æã ãããå€å®ããŸãã
|
(PHP 4 = 4.0.1)
|
(PHP 4 = 4.0.1)
|
An empty string is returned if last operation was a success.
|
(çŽè¿ã®ãªã¯ãšã¹ãã®)ã¿ãŒã²ããã«é¢ãããšã©ãŒã¡ãã»ãŒãžãè¿ããŸãã çŽè¿ã®æäœãæåããå Žåã«ã¯ç©ºã®æååãè¿ãããŸãã
|
Prev
|
yaz_error() ã¯ã yaz_errno() ã§è¿ãããçŽè¿ã®ãšã©ãŒçªå·ã«å¯Ÿå¿ããè±èªã®ã¡ãã»ãŒãžãè¿ããŸãã
|
(PHP 5 CVS only)
|
(PHP 5 CVS only)
|
If option is unset, an empty string is returned.
|
Returns value of option with the name specified. If option is unset, an empty string is returned.
|
Prev
|
See description of yaz_set_option() for available options.
|
Prev
|
(PHP 4 = 4.0.1)
|
yaz_hits() returns number of hits for last search.
|
yaz_hits() ã¯ãçŽè¿ã®æ€çŽ¢ã«é¢ãããããæ°ãè¿ ããŸãã
|
(PHP 4 = 4.0.5)
|
(PHP 4 = 4.0.5)
|
The key of the hash is the name of the corresponding ASN.1 tag path.
|
ILL-Request ãã©ã¡ãŒã¿ã¯æ¬¡ã®ããã«ãªããŸãã
|
package-name user-id contact-name contact-phone contact-email itemorder-item
|
Extended Services Requestããã±ãŒãžããã³ItemOrderããã±ãŒãžã«ã 次ã®ãããªå°æ°ã®ãã©ã¡ãŒã¿ããããŸãã
|
(PHP 4 = 4.0.5)
|
(PHP 4 = 4.0.5)
|
The yaz_range() should be called prior to this function to specify the range of records to be retrieved.
|
ãã®é¢æ°ã¯ãæ€çŽ¢ã«æåããåŸãã¬ã³ãŒããååŸããããã®æºåãè¡ã ãŸãããã®é¢æ°ãã³ãŒã«ããåã«ååŸããã¬ã³ãŒãã®ç¯å²ãæå®ããã ãã« yaz_range() ãã³ãŒã«ããŠããå¿
èŠããããŸãã
|
(PHP 4 = 4.0.1)
|
(PHP 4 = 4.0.1)
|
The start specifies position of first record to be retrieved and number is the number records.
|
ãã®é¢æ°ã¯ã yaz_search() ãšå
±ã«äœ¿çšãããååŸã ãã¬ã³ãŒãã®æå€§æ°ãšãæåã®ã¬ã³ãŒãã®äœçœ®(start)ãæå®ããŸãã ãã®é¢æ°ã䜿çšããªãå Žå( yaz_search() ã®ã¿ã®å Ž å)ãstartã¯1ã«ãnumberã¯10ã«èšå®ãããŸãã
|
Returns TRUE on success; FALSE on error.
|
æåæã« TRUE ããšã©ãŒæã« FALSE ãè¿ããŸãã
|
Returns record at position pos or empty string if no record exists at given position.
|
(PHP 4 = 4.0.1)
|
If no database record exists at the given position an empty string is returned.
|
æå®ããäœçœ®ã®ã¬ã³ãŒããŸãã¯ã¬ã³ãŒããæå®äœçœ®ã«ååšããªãå Žåã« ç©ºã®æååãè¿ããŸãã
|
If type is "array" the record is returned as an array representation (for structured records).
|
yaz_record() 颿°ã¯ãã«ã¬ã³ãã®çµæã»ããæå® ããäœçœ®ã«ããã¬ã³ãŒãã調ã¹ãŸããæå®ããäœçœ®ã«ããŒã¿ããŒã¹ã¬ã³ãŒ ããååšããªãå Žåã«ã¯ãç©ºã®æååãè¿ãããŸããåŒæ° type ã¯è¿ã ããã¬ã³ãŒãã®åœ¢åŒãæå®ããŸãã type ã "string" ã®å Žåã(XMLããã³SUTRSçšã«)åºåå¯èœãªæååè¡šçŸ ã§ã¬ã³ãŒããè¿ãããŸããtypeã"array"ã®å Žåã(æ§é åãããã¬ã³ãŒ ãçšã«)é
å衚çŸã§ã¬ã³ãŒããè¿ãããŸãã
|
The form in which is the starting term is specified is given by type.
|
(PHP 4 = 4.0.5)
|
Upon completion of yaz_wait() call yaz_error() and yaz_scan_result() to handle the response.
|
startterm ã®æ§æã¯ã yaz_search() ã§èª¬æããRPNã¯ãšãªã«äŒŒãŠããŸãã starttermã¯ããŒã以äžã® @attr æŒç®åã®åŸã«ããŒã¯ ã³ãäžã€ã ãç¶ã圢åŒãšãªããŸãã
|
The startterm consists of zero or more @attr -operator specifications, then followed by exactly one token.
|
äŸ 1ã¿ã€ãã«ãã¹ãã£ã³ããPHP颿°
|
This function returns an array (0..n-1) where n is the number of terms returned.
|
(PHP 4 = 4.0.5)
|
(PHP 4 = 4.2.0)
|
(PHP 4 = 4.2.0)
|
GILS-schema, Holdings, Zthes,...
|
The schema must be specified as an OID (Object Identifier) in a raw dot-notation (like 1.2.840.10003.13.4) or as one of the known registered schemas: GILS-schema, Holdings, Zthes,... This function should be called before yaz_search() or yaz_present().
|
yaz_search() prepares for a search on the connection given by id.
|
(PHP 4 = 4.0.1)
|
Like yaz_connect() this function is non-blocking and only prepares for a search to be executed later when yaz_wait() is called.
|
yaz_search() ã¯ãæå®ããidãæããã¿ãŒã²ãã ã§æ€çŽ¢ãè¡ãæºåãããŸããtype ã¯ãã¯ãšãªã®åã衚ããŸããçŸåšã "rpn" ã®ã¿ããµããŒããããŠããããã®å Žåã3çªç®ã®åŒæ°ã¯Type-1ã¯ãš ãª(RPN)ãæå®ããŸãã yaz_connect() ãšåããã ãã®é¢æ°ã¯ãéãããã¯ã¢ãŒãã§åäœããåŸã§ yaz_wait() ãã³ãŒã«ãããéã«å®è¡ãããæ€çŽ¢ã® æºåãããã ãã§ãã
|
The query string is a sequence of tokens where white space is ignored is ignored unless surrounded by double quotes.
|
RPNã¯ãšãªã¯ãZ39.50èŠæ Œã«ããå®çŸ©ãããType-1 ã¯ãšãªã®ããã¹ã衚 çŸã§ããããããYAZã«ãã䜿çšãããããã¹ã衚çŸã§ã¯ãæŒç®åããªã ã©ã³ãã®åã«ããå眮衚èšã䜿çšãããŸããã¯ãšãªæååã¯ããŒã¯ã³ã® 䞊ã³ã§ããããã®ããŒã¯ã³ã§ã¯2éåŒçšç¬Šã§æ¬ãããªãéãç©ºçœæåã¯ç¡ èŠãããŸããããŒã¯ã³ã¯ãã¢ããããŒã¯( @ )ã§å§ãŸ ããæŒç®åãšã¿ãªãããããããã§ãªãå Žåã¯æ€çŽ¢é
ç®ãšããŠåŠçãã ãŸãã
|
Table 1.
|
衚 1RPN æŒç®å
|
This construction is only allowed once - in the beginning of the whole query
|
äŸ 1ã¯ãšãªã®äŸ
|
The set, if given, specifies the attribute-set.
|
ã¯ãšãª
|
@attr 1=1003 @attr 4=1 "knuth donald"
|
ã¯ãšãª
|
You can find information about attributes at the Z39.50 Maintenance Agency site.
|
ã¯ãšãª
|
Prev
|
ãã®ä»ã®ããè€éãªã¯ãšãªã®äŸ:
|
Setting this option is equivalent to using function yaz_schema()
|
(PHP 5 CVS only)
|
Setting this option is equivalent to using function yaz_syntax()
|
Sets option name to value.
|
Setting this option in combination with option count has the same effect as calling yaz_range() except that records are numbered from 1 in yaz_range()
|
衚 1PYP/YAZ Connection Options
|
Call this function before yaz_search().
|
(PHP 4 = 4.1.0)
|
When in conjunction with yaz_search(), a Z39.50 Sort will be sent after a search response has been received and before any records are retrieved with Z39.50 Present.
|
ãã®é¢æ°ã¯ããœãŒãã®åºæºãèšå®ããZ39.50 Sortãæå¹ã«ããŸãã ãã®é¢æ°ã¯ã yaz_search() ãŸã㯠yaz_present() ãšå
±ã«äœ¿çšããŠäžããããã®é¢æ°ã® ã¿ã䜿çšããŠãäœãæå³ã¯ãããŸããã yaz_search() ãšçµã¿åãããŠäœ¿çšããå Žåã æ€çŽ¢å¿çãåä¿¡ãããå
šãŠã®Z39.50 Presentã§ååŸãããåã«Z39.50 Sortãéä¿¡ãããŸãã
|
field1 flags1 field2 flags2...
|
field1 flags1 field2 flags2...
|
The field specifies either numerical attribute combinations consisting of type=value pairs separated by comma (e.g.
|
ãã ããfield1ã¯æåã®å±æ§ã§ã®ãœãŒããæå®ãã2çªç®ã«field2ãšã㣠ãããã«æå®ããŸãããã£ãŒã«ãã¯ãã«ã³ãã§åºåããã å=å€ ã®çµã ããªãæ°å€å±æ§ã®çµã¿åãã(äŸ 1=4,2=1 )ããŸãã¯ã æååã®æ¹æ³ãæå®ããããšãå¯èœã§ãã (äŸ title) ãã©ã°ã¯ãæ¬¡ã®æåã®äžŠã³ãããªãã空çœã«ããåºåãããšã¯ãããŸããã
|
1=4,2=1); or the field may specify a plain string criteria (e.g. title.
|
ãœãŒããã©ã°
|
The flags is a sequnce of the following characters which may not be separated by any white space.
|
æé ãœãŒã
|
Sort Flags
|
éé ãœãŒã
|
Sort descending
|
倧æåå°æåãåºå¥ããªããœãŒã
|
Case sensitive sorting
|
æåå°æåãåºå¥ãããœãŒã
|
Sort Criterias
|
äŸ 1ãœãŒãæ¹æ³
|
1=4 ia
|
Bib1屿§ã¿ã€ãã«ã§å€§æåå°æåãåºå¥ããªãæé ã®ãœãŒããè¡ãã«ã¯ã 以äžã®ãœãŒãæ¹æ³ã䜿çšããŠäžããã
|
1=4 ia 1=1003 sa
|
2çªç®ã®ãœãŒãæ¹æ³ãauthorãšãã倧æåå°æåãåºå¥ããæé ã®ãœãŒ ããè¡ãã«ã¯ã以äžã®ããã«ããŸãã
|
(PHP 4 = 4.0.1)
|
(PHP 4 = 4.0.1)
|
This function should be called before yaz_search() or yaz_present().
|
syntaxã«ã¯ã( 1.2.840.10003.5.10 ã®ãããª)ããã 衚èšã®OIDãŸãã¯æ¢ç¥ã®ç»é²ãããã¬ã³ãŒãæ§æã®äžã€(sutrs, usmarc, grs1, xml,ç)ãæå®ããŸãããã®é¢æ°ã¯ yaz_search() ããã³ yaz_present() ãšå
±ã«äœ¿çšãããååŸæã®ã¬ã³ãŒã æ§æãæå®ããŸãã
|
Prev
|
(PHP 4 = 4.0.1)
|
Sets timeout in seconds.
|
é
å options ãæå®ãããå Žåã yaz_wait() ã®åäœã倿Žãããªãã·ã§ã³ãšãªããŸãã
|
The default value for timeout is 15 seconds.
|
æéã®ã¿ã€ã ã¢ãŠããèšå®ããŸããã¿ãŒã²ãããæéå
ã«å¿çããªã㣠ãå ŽåãåäœããŠããªããšã¿ãªããã yaz_wait() ã¯åž°ããŸããã¿ã€ã ã¢ãŠãã®ããã©ã«ãå€ã¯15sã§ãã
|
Warning
|
(PHP 4 = 4.0.6)
|
Prev
|
ãã®é¢æ°ã¯ã çŸåšã®ãšããè©³çŽ°ãªæ
å ±ã¯ãããŸãããåŒæ°ã®ãªã¹ãã®ã¿ã èšè¿°ãããŠããŸãã
|
Warning
|
(PHP 4 = 4.0.6)
|
Prev
|
ãã®é¢æ°ã¯ã çŸåšã®ãšããè©³çŽ°ãªæ
å ±ã¯ãããŸãããåŒæ°ã®ãªã¹ãã®ã¿ã èšè¿°ãããŠããŸãã
|
yp_errno() returns the error code of the previous operation.
|
(PHP 4 = 4.0.6)
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.