From: mike Date: Mon, 13 Dec 2004 16:35:11 +0000 (+0000) Subject: New from Hedzer Westra X-Git-Tag: v1.5~151 X-Git-Url: http://sru.miketaylor.org.uk/cgi-bin?a=commitdiff_plain;h=696183926382104c6de067348534afa55d90f700;p=cql-java-moved-to-github.git New from Hedzer Westra --- diff --git a/etc/xslt/README b/etc/xslt/README new file mode 100644 index 0000000..42fd180 --- /dev/null +++ b/etc/xslt/README @@ -0,0 +1,13 @@ +$Id: README,v 1.1 2004-12-13 16:35:11 mike Exp $ + +The XSLT files in this directory are supposed to allow you to make +a thin-client for SRU using only an XSLT-enabled web browser. It +looks like an HTML file is also required to get you started, though. + +These were sent to the ZNG mailing list by + Hedzer Westra +in a message entitled + "Re: CQL implementation details" +on Monday 13th December 2004. They are modified versions of files +that he says he get in the CQL-Java distributed he downloaded from +OCLC. I know (as yet) of no such distribution. diff --git a/etc/xslt/dublinCoreRecord.xsl b/etc/xslt/dublinCoreRecord.xsl new file mode 100644 index 0000000..6b96092 --- /dev/null +++ b/etc/xslt/dublinCoreRecord.xsl @@ -0,0 +1,22 @@ + + + + + + + + + + + + + + : + + + + + + diff --git a/etc/xslt/explainResponse.xsl b/etc/xslt/explainResponse.xsl new file mode 100644 index 0000000..865902a --- /dev/null +++ b/etc/xslt/explainResponse.xsl @@ -0,0 +1,334 @@ + + + + + + + + + + + + <xsl:value-of select="srw:record/srw:recordData/zr:explain/zr:databaseInfo/zr:title"/> + + + + + + +
+

+ +
+ +

+
+ +

+ +

+ + + + + +
+ +

Search

+ +

+

+ + + + + + + + + + + + + + + + + +
IndexRelationTermBoolean
+ + + index + . + + + + + + term + + + +
+
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Record Schema: + + +
Number of Records: + + + + + + + + 1 + + + + +
Record Position: + +
Result Set TTL: + +
Record Packing: + +
Record XPath:
Sort Keys:
+ + +
+

+ +
+ +

Browse

+ + +
+ + + + + + + +
IndexRelationTermBoolean
+ + +
+
+ +
+ http://:/ + + + + + + + + + + + + + +
Response Position: + +
Maximum Terms: + +
+ +
+ + + + +
+ +
+ + + + +
+ + +

Diagnostics

+ +
+ + + + +
+
+ +Code: + + +Message: + + +Details: + + +
diff --git a/etc/xslt/scanResponse.xsl b/etc/xslt/scanResponse.xsl new file mode 100644 index 0000000..42c0a02 --- /dev/null +++ b/etc/xslt/scanResponse.xsl @@ -0,0 +1,86 @@ + + + + + + +Result of scan for term: + + + + + + + + + + + + + + + +

Terms

+ + + +
TermFrequency
+ + + +
+ + + + + + + + + + + ?operation=searchRetrieve&version=1.1&query=""&maximumRecords=1&startRecord=1 + + + + + + + + + + + + +

+<-- + + +?operation=scan&scanClause= +"" +&responsePosition= +&version=1.1 +&maximumTerms= + +Previous + + +| + + + +?operation=scan&scanClause= +"" +&responsePosition=1&version=1.1 +&maximumTerms= + +Next + +--> +

+
+ +
diff --git a/etc/xslt/searchRetrieveResponse.xsl b/etc/xslt/searchRetrieveResponse.xsl new file mode 100644 index 0000000..08c3168 --- /dev/null +++ b/etc/xslt/searchRetrieveResponse.xsl @@ -0,0 +1,128 @@ + + + + + + + + +Result of search: + + + + + + + + + + + + +

Matches:

+
+ + + Result Set Identifier: + + + + (Will last for seconds) + + + +

Records

+ + + +
+ + +

+ + + +

+
+ + + Schema: + + + + Dublin Core + + + MARC XML + + + MODS + + + Collectable Card Schema + + + adlibXML + + + + + + + + + Position: + + + + + + + + + + + + + + + + + + +
+
+
+
+ + + + + + + + + + + + + &recordSchema= + + + + + ?operation=searchRetrieve&version=1.1&sortKeys=&stylesheet=searchRetrieveResponse.xsl&startRecord=&maximumRecords=&resultSetTTL=&query=Previous Record(s) + + + + + ?operation=searchRetrieve&version=1.1&sortKeys=&stylesheet=searchRetrieveResponse.xsl&startRecord=&maximumRecords=&resultSetTTL=&query=Next Record(s) + + + +
diff --git a/etc/xslt/stdiface.xsl b/etc/xslt/stdiface.xsl new file mode 100644 index 0000000..ed70acf --- /dev/null +++ b/etc/xslt/stdiface.xsl @@ -0,0 +1,76 @@ + + + + + + + +<xsl:value-of select="$title"/> +

+

+

+Home +

+ + + +
+ + + + +

Diagnostics

+ +
+ + + + + +
+
+ + + +Identifier: + + + + + + +Code: + + + +Meaning: + + + + + General System Error + + + Query Syntax Error + + + Unsupported Index + + + Result Set Does Not Exist + + + First Record Position Out Of Range + + + Unknown Schema For Retrieval + + + + + + +Details: +Message: + +