Hi Gert, thanks for the reply.
I can't find anything pickin up the rights datastream in the xlst file.
But just in case I'm attaching it to this post .
The object is referenced in the policy datastream, and the link points
to the parent object.
Any ideas appreciated.
Here is the catalina.out bit:
Jan 13, 2009 4:22:09 PM com.sun.xacml.finder.PolicyFinder findPolicy
INFO: An error occured while trying to find a single applicable policy
for a request: Error getting content stream
dk.defxws.fedoragsearch.server.errors.FedoraObjectNotFoundException:
Fedora Object llgc-id:101746 not found at DemoAtDtu; nested exception is:
fedora.server.errors.authorization.AuthzDeniedException:
at
dk.defxws.fedoragsearch.server.GenericOperationsImpl.getFoxmlFromPid(GenericOperationsImpl.java:320)
at dk.defxws.fgssolr.OperationsImpl.fromPid(OperationsImpl.java:378)
at
dk.defxws.fgssolr.OperationsImpl.updateIndex(OperationsImpl.java:226)
at
dk.defxws.fedoragsearch.server.GenericOperationsImpl.updateIndex(GenericOperationsImpl.java:288)
at
dk.defxws.fedoragsearch.server.RESTImpl.updateIndex(RESTImpl.java:257)
at dk.defxws.fedoragsearch.server.RESTImpl.doGet(RESTImpl.java:114)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:690)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:269)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:174)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:108)
at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:174)
at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:874)
at
org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:665)
at
org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:528)
at
org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:81)
at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:689)
at java.lang.Thread.run(Thread.java:619)
Caused by: fedora.server.errors.authorization.AuthzDeniedException:
at
org.apache.axis.message.SOAPFaultBuilder.createFault(SOAPFaultBuilder.java:222)
at
org.apache.axis.message.SOAPFaultBuilder.endElement(SOAPFaultBuilder.java:129)
at
org.apache.axis.encoding.DeserializationContext.endElement(DeserializationContext.java:1087)
at
org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown Source)
at
org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanEndElement(Unknown
Source)
at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown
Source)
at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown
Source)
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown
Source)
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown
Source)
at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
at
org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source)
at org.apache.xerces.jaxp.SAXParserImpl.parse(Unknown Source)
at
org.apache.axis.encoding.DeserializationContext.parse(DeserializationContext.java:227)
at org.apache.axis.SOAPPart.getAsSOAPEnvelope(SOAPPart.java:696)
at org.apache.axis.Message.getSOAPEnvelope(Message.java:435)
at
org.apache.axis.handlers.soap.MustUnderstandChecker.invoke(MustUnderstandChecker.java:62)
at org.apache.axis.client.AxisClient.invoke(AxisClient.java:206)
at org.apache.axis.client.Call.invokeEngine(Call.java:2784)
at org.apache.axis.client.Call.invoke(Call.java:2767)
at org.apache.axis.client.Call.invoke(Call.java:2443)
at org.apache.axis.client.Call.invoke(Call.java:2366)
at org.apache.axis.client.Call.invoke(Call.java:1812)
at
fedora.server.management.FedoraAPIMBindingSOAPHTTPStub.export(FedoraAPIMBindingSOAPHTTPStub.java:639)
at
dk.defxws.fedoragsearch.server.GenericOperationsImpl.getFoxmlFromPid(GenericOperationsImpl.java:318)
... 21 more
Cheers
Remi
Gert Schmeltz Pedersen wrote:
Hi Remi
It seems like you have to look into the indexing stylesheet and tailor it for
your purpose. Let me hear, if you have tried this already, or if you need
assistance on doing so.
Cheers,
Gert
-----Original Message-----
From: Remi Malessa [mailto:[email protected]]
Sent: Friday, January 16, 2009 5:43 PM
To: [email protected]
Subject: [Fedora-commons-users] Problem with Rights datastream and
auto-update
Hi everybody.
I've got Fedora G Search configured to auto-update my index if object
is
ingested or removed etc.
I use FGS's Solr plug-in to operate the index.
I've got a problem with FGS index auto-update function.
When ingesting objects the child objects are ingested first and parent
objects later.
This causes exception in FGS , as the child element has a reference to
the foxml:datastream
containing rights, and the parent element doesn't exist yet.
Is there a way to stop auto-update from looking after this one
particular datastream ?
Cheers
Remi
-----------------------------------------------------------------------
-------
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
_______________________________________________
Fedora-commons-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/fedora-commons-users
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0" xmlns:foxml="info:fedora/fedora-system:def/foxml#" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:mods="http://www.loc.gov/mods/v3" xmlns:METS="http://www.loc.gov/METS/" xmlns:exts="xalan://dk.defxws.fedoragsearch.server.GenericOperationsImpl" exclude-result-prefixes="exts" xmlns:zs="http://www.loc.gov/zing/srw/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:oai_dc="http://www.openarchives.org/OAI/2.0/oai_dc/" xmlns:uvalibdesc="http://dl.lib.virginia.edu/bin/dtd/descmeta/descmeta.dtd" xmlns:uvalibadmin="http://dl.lib.virginia.edu/bin/admin/admin.dtd/">
<xsl:output method="xml" version="1.0" encoding="UTF-8" indent="yes"/>
<!-- Initialising variables and parameters -->
<xsl:param name="foxmlProps" select="/foxml:digitalObject/foxml:objectProperties/foxml:proper...@name='info:fedora/fedora-system:def/model#contentModel']"/>
<xsl:param name="mets" select="/foxml:digitalObject/foxml:datastre...@id='METS']/foxml:datastreamVersion/foxml:xmlContent/METS:mets"/>
<xsl:param name="pid" select="/foxml:digitalObject/@PID"/>
<!-- Fedora G Search parameters -->
<xsl:param name="REPOSITORYNAME" select="repositoryName"/>
<xsl:param name="FEDORASOAP" select="repositoryName"/>
<xsl:param name="FEDORAUSER" select="repositoryName"/>
<xsl:param name="FEDORAPASS" select="repositoryName"/>
<xsl:param name="TRUSTSTOREPATH" select="repositoryName"/>
<xsl:param name="TRUSTSTOREPASS" select="repositoryName"/>
<xsl:variable name="PID" select="/foxml:digitalObject/@PID"/>
<xsl:variable name="type" select="$mets/@PROFILE"/>
<xsl:variable name="docBoost" select="1.4*2.5"/>
<!-- or any other calculation, default boost is 1.0 -->
<!-- Main template -->
<xsl:template match="/">
<xsl:if test="$foxmlProps/@VALUE='METS-VITAL07'">
<!-- Issue level parameters -->
<xsl:variable name="issue_mods" select="/foxml:digitalObject/foxml:datastre...@id='METS']/foxml:datastreamVersion/foxml:xmlContent/METS:mets/METS:dmdSec/METS:mdwr...@label='ISSUE']/METS:xmlData/mods:mods"/>
<xsl:variable name="journal_title_en" select="$issue_mods/mods:titlein...@lang='en']/mods:title/text()"/>
<xsl:variable name="journal_title_cy" select="$issue_mods/mods:titlein...@lang='cy']/mods:title/text()"/>
<xsl:variable name="date" select="$issue_mods/mods:no...@type='issue_chronology']/text()"/>
<xsl:variable name="issue_title" select="concat($issue_mods/mods:no...@type='issue_chronology']/text(), ' - ', $issue_mods/mods:no...@type='issue_numeration']/text())"/>
<xsl:variable name="articles" select="/foxml:digitalObject/foxml:datastre...@id='METS']/foxml:datastreamVersion/foxml:xmlContent/METS:mets/METS:dmdSec/METS:mdwr...@label='ARTICLE']"/>
<!-- Open root element -->
<xsl:element name="add">
<!-- Add articles -->
<xsl:for-each select="$articles">
<!-- setting up temporary article ID -->
<xsl:variable name="id" select="./METS:xmlData/mods:mods/mods:no...@type='article_code']/text()"/>
<!-- doc Element -->
<xsl:element name="doc">
<!-- Fedora G Search elements -->
<xsl:attribute name="boost"><xsl:value-of select="$docBoost"/></xsl:attribute>
<field name="PID" boost="2.5">
<xsl:value-of select="$PID"/>
</field>
<!-- pid element -->
<xsl:element name="field">
<xsl:attribute name="name"><xsl:value-of select="'pid'"/></xsl:attribute>
<xsl:value-of select="$pid"/>
</xsl:element>
<xsl:comment>
<xsl:value-of select="'Issue fields'"/>
</xsl:comment>
<!-- type element -->
<xsl:element name="field">
<xsl:attribute name="name"><xsl:value-of select="'type'"/></xsl:attribute>
<xsl:value-of select="$type"/>
</xsl:element>
<xsl:comment>
<xsl:value-of select="'Issue fields'"/>
</xsl:comment>
<!-- journal_title element CY -->
<xsl:element name="field">
<xsl:attribute name="name"><xsl:value-of select="'journal_title_cy'"/></xsl:attribute>
<xsl:value-of select="$journal_title_cy"/>
</xsl:element>
<!-- journal_title element EN -->
<xsl:element name="field">
<xsl:attribute name="name"><xsl:value-of select="'journal_title_en'"/></xsl:attribute>
<xsl:value-of select="$journal_title_en"/>
</xsl:element>
<!-- full journal title Welsh - not needed at the moment , because field is copied over in the schema file.
<xsl:element name="field">
<xsl:attribute name="name"><xsl:value-of select="'full_J_title_cy'"/></xsl:attribute>
<xsl:value-of select="$journal_title_cy"/>
</xsl:element>-->
<!-- full journal title English
<xsl:element name="field">
<xsl:attribute name="name"><xsl:value-of select="'full_J_title_en'"/></xsl:attribute>
<xsl:value-of select="$journal_title_en"/>
</xsl:element>-->
<!-- date element -->
<xsl:element name="field">
<xsl:attribute name="name"><xsl:value-of select="'date'"/></xsl:attribute>
<xsl:value-of select="$date"/>
</xsl:element>
<!-- issue_title -->
<xsl:element name="field">
<xsl:attribute name="name"><xsl:value-of select="'issue_title'"/></xsl:attribute>
<xsl:value-of select="$issue_title"/>
</xsl:element>
<!-- article fields -->
<xsl:comment>
<xsl:value-of select="'article fields'"/>
</xsl:comment>
<!-- author element -->
<xsl:element name="field">
<xsl:attribute name="name"><xsl:value-of select="'author'"/></xsl:attribute>
<xsl:value-of select="./METS:xmlData/mods:mods/mods:name/mods:displayForm/text()"/>
</xsl:element>
<!-- title element (article) -->
<xsl:element name="field">
<xsl:attribute name="name"><xsl:value-of select="'title'"/></xsl:attribute>
<xsl:value-of select="./METS:xmlData/mods:mods/mods:titleInfo/mods:title/text()"/>
</xsl:element>
<!-- subtitle ? -->
<!-- responsibility element -->
<xsl:element name="field">
<xsl:attribute name="name"><xsl:value-of select="'responsibility'"/></xsl:attribute>
<xsl:value-of select="./METS:xmlData/mods:mods/mods:name/mods:namePart/text()"/>
</xsl:element>
<!-- TEI element -->
<xsl:element name="field">
<xsl:attribute name="name"><xsl:value-of select="'tei'"/></xsl:attribute>
<xsl:copy-of select="string(/foxml:digitalObject/foxml:datastre...@id='TEI']/foxml:datastreamVersion/foxml:xmlContent/TEI.2/text/body/di...@id=$id])"/>
</xsl:element>
<!-- article_id element -->
<xsl:element name="field">
<xsl:attribute name="name"><xsl:value-of select="'id'"/></xsl:attribute>
<xsl:value-of select="./METS:xmlData/mods:mods/mods:no...@type='article_id']/text()"/>
</xsl:element>
<!-- article_type element -->
<xsl:element name="field">
<xsl:attribute name="name"><xsl:value-of select="'article_type'"/></xsl:attribute>
<xsl:value-of select="./METS:xmlData/mods:mods/mods:no...@type='article_type']/text()"/>
</xsl:element>
</xsl:element>
</xsl:for-each>
<!--
<xsl:for-each select="foxml:datastre...@control_group='M']">
<field index="TOKENIZED" store="YES" termVector="NO">
<xsl:attribute name="name"><xsl:value-of select="concat('dsm.', @ID)"/></xsl:attribute>
<xsl:value-of select="exts:getDatastreamText($PID, $REPOSITORYNAME, @ID, $FEDORASOAP, $FEDORAUSER, $FEDORAPASS, $TRUSTSTOREPATH, $TRUSTSTOREPASS)"/>
</field>
</xsl:for-each>
-->
</xsl:element>
</xsl:if>
<xsl:if test="$foxmlProps/@VALUE='METS-VITAL04'">
<!-- Collection level parameters -->
<xsl:variable name="pubTitles" select="$mets/METS:dmdSec/METS:mdWrap/METS:xmlData/mods:mods/mods:titleInfo"/>
<xsl:variable name="pubId" select="string(//METS:mets/@ID)"/>
<xsl:element name="add">
<xsl:element name="doc">
<!-- Fedora G Search elements -->
<xsl:attribute name="boost"><xsl:value-of select="$docBoost"/></xsl:attribute>
<field name="PID" boost="2.5">
<xsl:value-of select="$PID"/>
</field>
<!-- pid element -->
<xsl:element name="field">
<xsl:attribute name="name"><xsl:value-of select="'pid'"/></xsl:attribute>
<xsl:value-of select="$pid"/>
</xsl:element>
<!-- id element -->
<xsl:element name="field">
<xsl:attribute name="name"><xsl:value-of select="'id'"/></xsl:attribute>
<xsl:value-of select="$pubId"/>
</xsl:element>
<!-- pid element -->
<xsl:element name="field">
<xsl:attribute name="name"><xsl:value-of select="'type'"/></xsl:attribute>
<xsl:value-of select="$type"/>
</xsl:element>
<!-- pid element -->
<xsl:element name="field">
<xsl:attribute name="name"><xsl:value-of select="'pubTitle_cy'"/></xsl:attribute>
<xsl:value-of select="$pubtitl...@lang='cy']/mods:title"/>
</xsl:element>
<!-- pid element -->
<xsl:element name="field">
<xsl:attribute name="name"><xsl:value-of select="'pubTitle_en'"/></xsl:attribute>
<xsl:value-of select="$pubtitl...@lang='en']/mods:title"/>
</xsl:element>
</xsl:element>
</xsl:element>
</xsl:if>
</xsl:template>
</xsl:stylesheet>
------------------------------------------------------------------------------
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
_______________________________________________
Fedora-commons-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/fedora-commons-users