Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Last revision Both sides next revision
repo:jpglr [2013/06/18 10:46]
giancarlo
repo:jpglr [2013/06/18 10:47]
giancarlo
Line 92: Line 92:
 <WRAP prewrap center> <WRAP prewrap center>
 <code xml> <code xml>
-<?xml version="1.0"?> +<fmm:MethodMap xmlns:fmm="http://fedora.comm.nsdlib.org/service/methodmap" bDefPID="djatoka:bDef" name="MethodMap - djatoka Service Methods"> 
-<fmm:MethodMap xmlns:fmm="http://fedora.comm.nsdlib.org/service/methodmap" name="methodmap"> + <fmm:Method operationName="getJpgLD" wsdlMsgName="getRegionRequest" wsdlMsgOutput="response"> 
-  <fmm:Method operationName="dc2pico" wsdlMsgName="dc2picoRequestMsg" wsdlMsgOutput="response"> +            <fmm:DefaultInputParm defaultValue="$PID" label="fedora object pid" parmName="PID" passBy="VALUE" required="true"></fmm:DefaultInputParm
-    <fmm:DatastreamInputParm parmName="DC" passBy="URL_REF" required="true"/> +            <fmm:DefaultInputParm defaultValue="TIFF" label="content model" parmName="DSID" passBy="VALUE" required="true"></fmm:DefaultInputParm
-    <fmm:DatastreamInputParm parmName="XSL" passBy="URL_REF" required="true"/> +            <fmm:DefaultInputParm defaultValue="info:lanl-repo/svc/getRegion" parmName="svc_id" passBy="VALUE" required="true"></fmm:DefaultInputParm
-    <fmm:UserInputParm defaultValue="" parmName="uid" passBy="VALUE" required="false"/> +            <fmm:MethodReturnType wsdlMsgName="response" wsdlMsgTOMIME="image/jpeg"></fmm:MethodReturnType
-    <fmm:MethodReturnType wsdlMsgName="response" wsdlMsgTOMIME="text/xml"/> + </fmm:Method>
-  </fmm:Method>+
 </fmm:MethodMap> </fmm:MethodMap>
 </code> </code>
 </WRAP> </WRAP>
-  * XSL (see next paragraph) 
  
- 
-===== XSLT for DC to PICO transformation =====  
-XSL datastream contains xslt transformation: 
-<WRAP prewrap center> 
-<code xml> 
-<?xml version="1.0"?> 
-<xsl:stylesheet xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:dcterms="http://purl.org/dc/terms/" xmlns:fn="http://www.w3.org/2005/xpath-functions" xmlns:foxml="info:fedora/fedora-system:def/foxml#" xmlns:oai_dc="http://www.openarchives.org/OAI/2.0/oai_dc/" xmlns:pico="http://purl.org/pico/1.0/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" exclude-result-prefixes="oai_dc fn foxml rdf" version="1.0" xsi:schemaLocation="http://purl.org/pico/1.0/ http://www.culturaitalia.it/opencms/export/sites/culturaitalia/attachments/schemas/1.0/pico.xsd"> 
-  <xsl:output encoding="UTF-8" indent="yes" method="xml"/> 
-  <xsl:variable name="ns" select="'http://purl.org/pico/1.0/'"/> 
-  <xsl:variable name="schemaLoc" select="'http://purl.org/pico/1.0/ http://www.culturaitalia.it/opencms/export/sites/culturaitalia/attachments/schemas/1.0/pico.xsd'"/> 
-  <xsl:template match="/"> 
-    <pico:record> 
-      <xsl:attribute name="xsi:schemaLocation" namespace="http://www.w3.org/2001/XMLSchema-instance"> 
-        <xsl:value-of select="$schemaLoc"/> 
-      </xsl:attribute> 
-      <dc:title> 
-        <xsl:value-of select="/oai_dc:dc/dc:title"/> 
-      </dc:title> 
-      <dc:creator> 
-        <xsl:value-of select="/oai_dc:dc/dc:creator"/> 
-      </dc:creator> 
-      <xsl:apply-templates select="/oai_dc:dc/dc:subject"/> 
-      <xsl:if test="/oai_dc:dc/dc:description != ''"> 
-        <dc:description> 
-          <xsl:value-of select="/oai_dc:dc/dc:description"/> 
-        </dc:description> 
-      </xsl:if> 
-      <dc:publisher> 
-        <xsl:value-of select="/oai_dc:dc/dc:publisher"/> 
-      </dc:publisher> 
-      <dc:date> 
-        <xsl:value-of select="/oai_dc:dc/dc:date"/> 
-      </dc:date> 
-      <xsl:apply-templates select="/oai_dc:dc/dc:type"/> 
-      <xsl:for-each select="/oai_dc:dc/dc:identifier"> 
-        <xsl:choose> 
-          <xsl:when test="contains(.,'http')"> 
-            <xsl:element name="dcterms:isReferencedBy"> 
-              <xsl:attribute name="xsi:type" namespace="http://www.w3.org/2001/XMLSchema-instance">pico:Anchor</xsl:attribute> 
-              <xsl:value-of select="'title=visualizza la scheda esterna; url='"/> 
-              <xsl:value-of select="."/> 
-            </xsl:element> 
-            <xsl:element name="pico:preview"> 
-              <xsl:attribute name="xsi:type" namespace="http://www.w3.org/2001/XMLSchema-instance">dcterms:URI</xsl:attribute> 
-              <xsl:value-of select="."/> 
-              <xsl:value-of select="'/TN'"/> 
-            </xsl:element> 
-          </xsl:when> 
-          <xsl:otherwise> 
-            <dc:identifier> 
-              <xsl:value-of select="."/> 
-            </dc:identifier> 
-          </xsl:otherwise> 
-        </xsl:choose> 
-      </xsl:for-each> 
-      <dc:language> 
-        <xsl:value-of select="/oai_dc:dc/dc:language"/> 
-      </dc:language> 
-    </pico:record> 
-  </xsl:template> 
-  <xsl:template match="dc:subject"> 
-    <dc:subject> 
-      <xsl:value-of select="/oai_dc:dc/dc:subject"/> 
-    </dc:subject> 
-    <xsl:element name="dc:subject"> 
-      <xsl:attribute name="xsi:type" namespace="http://www.w3.org/2001/XMLSchema-instance">pico:Thesaurus</xsl:attribute> 
-      <xsl:value-of select="'http://culturaitalia.it/pico/thesaurus/4.2#libri'"/> 
-    </xsl:element> 
-  </xsl:template> 
-  <xsl:template match="dc:type"> 
-    <xsl:element name="dc:type"> 
-      <xsl:attribute name="xsi:type" namespace="http://www.w3.org/2001/XMLSchema-instance">dcterms:DCMIType</xsl:attribute> 
-      <xsl:value-of select="/oai_dc:dc/dc:type"/> 
-    </xsl:element> 
-  </xsl:template> 
-</xsl:stylesheet> 
-</code> 
-</WRAP> 
 ===== Fedora Commons bookCModel ===== ===== Fedora Commons bookCModel =====
 Add the new service to RELS-EXT datastream: Add the new service to RELS-EXT datastream:
 
 
repo/jpglr.txt · Last modified: 2013/06/18 10:49 by giancarlo

Developers: CNR IRCrES IT Office and Library
Giancarlo Birello (giancarlo.birello _@_ ircres.cnr.it) and Anna Perin (anna.perin _@_ ircres.cnr.it)
DigiBess is licensed under: Creative Commons License
Recent changes RSS feed Creative Commons License Valid XHTML 1.0 Valid CSS Driven by DokuWiki
Drupal Garland Theme for Dokuwiki