-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
FCREPO-1009 Interaction with the Resource Index
- Loading branch information
Gert Schmeltz Pedersen
committed
Dec 21, 2011
1 parent
f2c5a2b
commit 2df2f86
Showing
7 changed files
with
183 additions
and
77 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<xsl:stylesheet version="1.0" | ||
xmlns:result="http://www.w3.org/2001/sw/DataAccess/rf1/result" | ||
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> | ||
|
||
<xsl:output method="xml" indent="yes" encoding="UTF-8"/> | ||
|
||
<xsl:template match="/"> | ||
<result:newQueryPart> | ||
<xsl:text>(</xsl:text> | ||
<xsl:for-each select="//object"> | ||
<xsl:if test="position()>1"> or </xsl:if> | ||
<xsl:text>$obj1 <mulgara:is></xsl:text> | ||
<xsl:text><info:fedora/</xsl:text><xsl:value-of select="field[@name='PID']"/><xsl:text>></xsl:text> | ||
</xsl:for-each> | ||
<xsl:text>)</xsl:text> | ||
</result:newQueryPart> | ||
</xsl:template> | ||
|
||
<xsl:template match="text()"/> | ||
|
||
</xsl:stylesheet> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<xsl:stylesheet version="1.0" | ||
xmlns:result="http://www.w3.org/2001/sw/DataAccess/rf1/result" | ||
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> | ||
|
||
<xsl:output method="xml" indent="yes" encoding="UTF-8"/> | ||
|
||
<xsl:template match="/"> | ||
<result:newQueryPart> | ||
<xsl:text>(</xsl:text> | ||
<xsl:for-each select="//result:result"> | ||
<xsl:if test="position()>1"> or </xsl:if> | ||
<xsl:text>PID:</xsl:text> | ||
<xsl:text>"</xsl:text><xsl:value-of select="substring-after(result:obj1/@uri, '/')"/><xsl:text>"</xsl:text> | ||
</xsl:for-each> | ||
<xsl:text>)</xsl:text> | ||
</result:newQueryPart> | ||
</xsl:template> | ||
|
||
<xsl:template match="text()"/> | ||
|
||
</xsl:stylesheet> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters