From: Jogiraju T. <raj...@gm...> - 2011-08-24 07:28:20
|
Hi all, Iam not getting dispaly of records imported to vufind from dSpace using OAI/PMH harvesting. When i am searching vufind server output shows the number of hits, but they not shown on the vufind interface.I am using vufind version 1.2. As most of you have already successfully implemented binding of Dspace with Vufind I request the community to kindly help. Please help me to solve this problem. Thank you in advance. I am using vufind version 1.2 The xml records (oai-dc) harvested from dspace have been successfully imported using batch-import-xsl.sh: Harvested dSpace records using: php harvest_oai.php Processing DSpace... Autodetecting date granularity... found YYYY-MM-DDThh:mm:ssZ. Processing 100 records... Processing 100 records... Processing 100 records... Processing 36 records... Completed without errors -- 1 source(s) processed. ------------------ output of my import after importing one record : sh ./batch-import-xsl.sh ./DSpace ../import/dspace.properties Processing /usr/local/vufind/harvest/./DSpace/1314204804_ir_123456789_310.xml ... Aug 24, 2011 10:46:02 PM org.apache.solr.core.SolrCore execute INFO: [biblio] webapp=/solr path=/admin/ping params={} hits=0 status=0 QTime=11 Aug 24, 2011 10:46:02 PM org.apache.solr.core.SolrCore execute INFO: [biblio] webapp=/solr path=/admin/ping params={} status=0 QTime=12 Aug 24, 2011 10:46:02 PM org.apache.solr.core.SolrDeletionPolicy onInit INFO: SolrDeletionPolicy.onInit: commits:num=1 commit{dir=/usr/local/vufind/solr/biblio/index,segFN=segments_j,version=1313608628867,generation=19,filenames=[_h.prx, _h.fnm, _h.fdt, _h.tvd, _h.tvf, _h.fdx, _h.tii, _h.tvx, _h.frq, _h.nrm, segments_j, _h.tis] Aug 24, 2011 10:46:02 PM org.apache.solr.core.SolrDeletionPolicy updateCommits INFO: newest commit = 1313608628867 Aug 24, 2011 10:46:02 PM org.apache.solr.update.processor.LogUpdateProcessor finish INFO: {add=[0-8493-1875-0]} 0 216 Aug 24, 2011 10:46:02 PM org.apache.solr.core.SolrCore execute INFO: [biblio] webapp=/solr path=/update/ params={} status=0 QTime=216 Successfully imported /usr/local/vufind/harvest/./DSpace/1314204804_ir_123456789_310.xml... Optimizing index... Aug 24, 2011 10:46:02 PM org.apache.solr.core.SolrCore execute INFO: [biblio] webapp=/solr path=/admin/ping params={} hits=0 status=0 QTime=3 Aug 24, 2011 10:46:02 PM org.apache.solr.core.SolrCore execute INFO: [biblio] webapp=/solr path=/admin/ping params={} status=0 QTime=4 Aug 24, 2011 10:46:02 PM org.apache.solr.update.DirectUpdateHandler2 commit INFO: start commit(optimize=false,waitFlush=false,waitSearcher=true,expungeDeletes=false) Aug 24, 2011 10:46:02 PM org.apache.solr.core.SolrDeletionPolicy onCommit INFO: SolrDeletionPolicy.onCommit: commits:num=2 commit{dir=/usr/local/vufind/solr/biblio/index,segFN=segments_j,version=1313608628867,generation=19,filenames=[_h.prx, _h.fnm, _h.fdt, _h.tvd, _h.tvf, _h.fdx, _h.tii, _h.tvx, _h.frq, _h.nrm, segments_j, _h.tis] commit{dir=/usr/local/vufind/solr/biblio/index,segFN=segments_k,version=1313608628868,generation=20,filenames=[_h.prx, _h_1.del, _i.nrm, _h.fnm, _i.tvf, _i.frq, segments_k, _h.frq, _h.nrm, _h.tis, _i.tis, _h.fdt, _h.tvd, _h.tvf, _i.tvx, _h.fdx, _h.tii, _i.fdx, _i.tvd, _i.tii, _h.tvx, _i.fnm, _i.fdt, _i.prx] Aug 24, 2011 10:46:02 PM org.apache.solr.core.SolrDeletionPolicy updateCommits INFO: newest commit = 1313608628868 Aug 24, 2011 10:46:02 PM org.apache.solr.search.SolrIndexSearcher <init> INFO: Opening Searcher@17a7706 main Aug 24, 2011 10:46:02 PM org.apache.solr.update.DirectUpdateHandler2 commit INFO: end_commit_flush Aug 24, 2011 10:46:02 PM org.apache.solr.search.SolrIndexSearcher warm INFO: autowarming Searcher@17a7706 main from Searcher@3e97df main fieldValueCache{lookups=0,hits=0,hitratio=0.00,inserts=0,evictions=0,size=0,warmupTime=0,cumulative_lookups=0,cumulative_hits=0,cumulative_hitratio=0.00,cumulative_inserts=0,cumulative_evictions=0} Aug 24, 2011 10:46:02 PM org.apache.solr.search.SolrIndexSearcher warm INFO: autowarming result for Searcher@17a7706 main fieldValueCache{lookups=0,hits=0,hitratio=0.00,inserts=0,evictions=0,size=0,warmupTime=0,cumulative_lookups=0,cumulative_hits=0,cumulative_hitratio=0.00,cumulative_inserts=0,cumulative_evictions=0} Aug 24, 2011 10:46:02 PM org.apache.solr.search.SolrIndexSearcher warm INFO: autowarming Searcher@17a7706 main from Searcher@3e97df main filterCache{lookups=0,hits=0,hitratio=0.00,inserts=0,evictions=0,size=1,warmupTime=0,cumulative_lookups=0,cumulative_hits=0,cumulative_hitratio=0.00,cumulative_inserts=0,cumulative_evictions=0} Aug 24, 2011 10:46:02 PM org.apache.solr.search.SolrIndexSearcher warm INFO: autowarming result for Searcher@17a7706 main filterCache{lookups=0,hits=0,hitratio=0.00,inserts=0,evictions=0,size=1,warmupTime=11,cumulative_lookups=0,cumulative_hits=0,cumulative_hitratio=0.00,cumulative_inserts=0,cumulative_evictions=0} Aug 24, 2011 10:46:02 PM org.apache.solr.search.SolrIndexSearcher warm INFO: autowarming Searcher@17a7706 main from Searcher@3e97df main queryResultCache{lookups=2,hits=1,hitratio=0.50,inserts=2,evictions=0,size=2,warmupTime=0,cumulative_lookups=2,cumulative_hits=1,cumulative_hitratio=0.50,cumulative_inserts=1,cumulative_evictions=0} Aug 24, 2011 10:46:02 PM org.apache.solr.search.SolrIndexSearcher warm INFO: autowarming result for Searcher@17a7706 main queryResultCache{lookups=0,hits=0,hitratio=0.00,inserts=2,evictions=0,size=2,warmupTime=2,cumulative_lookups=2,cumulative_hits=1,cumulative_hitratio=0.50,cumulative_inserts=1,cumulative_evictions=0} Aug 24, 2011 10:46:02 PM org.apache.solr.search.SolrIndexSearcher warm INFO: autowarming Searcher@17a7706 main from Searcher@3e97df main documentCache{lookups=0,hits=0,hitratio=0.00,inserts=0,evictions=0,size=0,warmupTime=0,cumulative_lookups=0,cumulative_hits=0,cumulative_hitratio=0.00,cumulative_inserts=0,cumulative_evictions=0} Aug 24, 2011 10:46:02 PM org.apache.solr.search.SolrIndexSearcher warm INFO: autowarming result for Searcher@17a7706 main documentCache{lookups=0,hits=0,hitratio=0.00,inserts=0,evictions=0,size=0,warmupTime=0,cumulative_lookups=0,cumulative_hits=0,cumulative_hitratio=0.00,cumulative_inserts=0,cumulative_evictions=0} Aug 24, 2011 10:46:02 PM org.apache.solr.core.QuerySenderListener newSearcher INFO: QuerySenderListener sending requests to Searcher@17a7706 main Aug 24, 2011 10:46:02 PM org.apache.solr.core.SolrCore execute INFO: [biblio] webapp=null path=null params={start=0&event=newSearcher&q=science+art+business+engineering+history&rows=10} hits=0 status=0 QTime=4 Aug 24, 2011 10:46:02 PM org.apache.solr.core.QuerySenderListener newSearcher INFO: QuerySenderListener done. Aug 24, 2011 10:46:02 PM org.apache.solr.handler.component.SpellCheckComponent$SpellCheckerListener newSearcher INFO: Index is not optimized therefore skipping building spell check index for: default Aug 24, 2011 10:46:02 PM org.apache.solr.handler.component.SpellCheckComponent$SpellCheckerListener newSearcher INFO: Index is not optimized therefore skipping building spell check index for: basicSpell Aug 24, 2011 10:46:02 PM org.apache.solr.core.SolrCore registerSearcher INFO: [biblio] Registered new searcher Searcher@17a7706 main Aug 24, 2011 10:46:02 PM org.apache.solr.search.SolrIndexSearcher close INFO: Closing Searcher@3e97df main fieldValueCache{lookups=0,hits=0,hitratio=0.00,inserts=0,evictions=0,size=0,warmupTime=0,cumulative_lookups=0,cumulative_hits=0,cumulative_hitratio=0.00,cumulative_inserts=0,cumulative_evictions=0} filterCache{lookups=0,hits=0,hitratio=0.00,inserts=0,evictions=0,size=1,warmupTime=0,cumulative_lookups=0,cumulative_hits=0,cumulative_hitratio=0.00,cumulative_inserts=0,cumulative_evictions=0} queryResultCache{lookups=2,hits=1,hitratio=0.50,inserts=2,evictions=0,size=2,warmupTime=0,cumulative_lookups=2,cumulative_hits=1,cumulative_hitratio=0.50,cumulative_inserts=1,cumulative_evictions=0} documentCache{lookups=0,hits=0,hitratio=0.00,inserts=0,evictions=0,size=0,warmupTime=0,cumulative_lookups=0,cumulative_hits=0,cumulative_hitratio=0.00,cumulative_inserts=0,cumulative_evictions=0} Aug 24, 2011 10:46:02 PM org.apache.solr.update.processor.LogUpdateProcessor finish INFO: {commit=} 0 112 Aug 24, 2011 10:46:02 PM org.apache.solr.core.SolrCore execute INFO: [biblio] webapp=/solr path=/update/ params={} status=0 QTime=112 Aug 24, 2011 10:46:02 PM org.apache.solr.update.DirectUpdateHandler2 commit INFO: start commit(optimize=true,waitFlush=false,waitSearcher=true,expungeDeletes=false) Aug 24, 2011 10:46:02 PM org.apache.solr.core.SolrDeletionPolicy onInit INFO: SolrDeletionPolicy.onInit: commits:num=1 commit{dir=/usr/local/vufind/solr/biblio/index,segFN=segments_k,version=1313608628868,generation=20,filenames=[_h.prx, _h_1.del, _i.nrm, _h.fnm, _i.tvf, _i.frq, segments_k, _h.frq, _h.nrm, _h.tis, _i.tis, _h.fdt, _h.tvd, _h.tvf, _i.tvx, _h.fdx, _h.tii, _i.fdx, _i.tvd, _i.tii, _h.tvx, _i.fnm, _i.fdt, _i.prx] Aug 24, 2011 10:46:02 PM org.apache.solr.core.SolrDeletionPolicy updateCommits INFO: newest commit = 1313608628868 Aug 24, 2011 10:46:04 PM org.apache.solr.core.SolrDeletionPolicy onCommit INFO: SolrDeletionPolicy.onCommit: commits:num=2 commit{dir=/usr/local/vufind/solr/biblio/index,segFN=segments_k,version=1313608628868,generation=20,filenames=[_h.prx, _h_1.del, _i.nrm, _h.fnm, _i.tvf, _i.frq, segments_k, _h.frq, _h.nrm, _h.tis, _i.tis, _h.fdt, _h.tvd, _h.tvf, _i.tvx, _h.fdx, _h.tii, _i.fdx, _i.tvd, _i.tii, _h.tvx, _i.fnm, _i.fdt, _i.prx] commit{dir=/usr/local/vufind/solr/biblio/index,segFN=segments_l,version=1313608628869,generation=21,filenames=[_j.fdx, _j.tvf, _j.tis, _j.tvx, _j.fdt, _j.fnm, _j.nrm, _j.tii, _j.prx, segments_l, _j.frq, _j.tvd] Aug 24, 2011 10:46:04 PM org.apache.solr.core.SolrDeletionPolicy updateCommits INFO: newest commit = 1313608628869 Aug 24, 2011 10:46:04 PM org.apache.solr.search.SolrIndexSearcher <init> INFO: Opening Searcher@1bdbfec main Aug 24, 2011 10:46:04 PM org.apache.solr.search.SolrIndexSearcher warm INFO: autowarming Searcher@1bdbfec main from Searcher@17a7706 main fieldValueCache{lookups=0,hits=0,hitratio=0.00,inserts=0,evictions=0,size=0,warmupTime=0,cumulative_lookups=0,cumulative_hits=0,cumulative_hitratio=0.00,cumulative_inserts=0,cumulative_evictions=0} Aug 24, 2011 10:46:04 PM org.apache.solr.search.SolrIndexSearcher warm INFO: autowarming result for Searcher@1bdbfec main fieldValueCache{lookups=0,hits=0,hitratio=0.00,inserts=0,evictions=0,size=0,warmupTime=0,cumulative_lookups=0,cumulative_hits=0,cumulative_hitratio=0.00,cumulative_inserts=0,cumulative_evictions=0} Aug 24, 2011 10:46:04 PM org.apache.solr.search.SolrIndexSearcher warm INFO: autowarming Searcher@1bdbfec main from Searcher@17a7706 main filterCache{lookups=0,hits=0,hitratio=0.00,inserts=0,evictions=0,size=1,warmupTime=11,cumulative_lookups=0,cumulative_hits=0,cumulative_hitratio=0.00,cumulative_inserts=0,cumulative_evictions=0} Aug 24, 2011 10:46:04 PM org.apache.solr.search.SolrIndexSearcher warm INFO: autowarming result for Searcher@1bdbfec main filterCache{lookups=0,hits=0,hitratio=0.00,inserts=0,evictions=0,size=1,warmupTime=1,cumulative_lookups=0,cumulative_hits=0,cumulative_hitratio=0.00,cumulative_inserts=0,cumulative_evictions=0} Aug 24, 2011 10:46:04 PM org.apache.solr.search.SolrIndexSearcher warm INFO: autowarming Searcher@1bdbfec main from Searcher@17a7706 main queryResultCache{lookups=0,hits=0,hitratio=0.00,inserts=3,evictions=0,size=3,warmupTime=2,cumulative_lookups=2,cumulative_hits=1,cumulative_hitratio=0.50,cumulative_inserts=1,cumulative_evictions=0} Aug 24, 2011 10:46:04 PM org.apache.solr.update.DirectUpdateHandler2 commit INFO: end_commit_flush Aug 24, 2011 10:46:04 PM org.apache.solr.search.SolrIndexSearcher warm INFO: autowarming result for Searcher@1bdbfec main queryResultCache{lookups=0,hits=0,hitratio=0.00,inserts=3,evictions=0,size=3,warmupTime=3,cumulative_lookups=2,cumulative_hits=1,cumulative_hitratio=0.50,cumulative_inserts=1,cumulative_evictions=0} Aug 24, 2011 10:46:04 PM org.apache.solr.search.SolrIndexSearcher warm INFO: autowarming Searcher@1bdbfec main from Searcher@17a7706 main documentCache{lookups=0,hits=0,hitratio=0.00,inserts=0,evictions=0,size=0,warmupTime=0,cumulative_lookups=0,cumulative_hits=0,cumulative_hitratio=0.00,cumulative_inserts=0,cumulative_evictions=0} Aug 24, 2011 10:46:04 PM org.apache.solr.search.SolrIndexSearcher warm INFO: autowarming result for Searcher@1bdbfec main documentCache{lookups=0,hits=0,hitratio=0.00,inserts=0,evictions=0,size=0,warmupTime=0,cumulative_lookups=0,cumulative_hits=0,cumulative_hitratio=0.00,cumulative_inserts=0,cumulative_evictions=0} Aug 24, 2011 10:46:04 PM org.apache.solr.core.QuerySenderListener newSearcher INFO: QuerySenderListener sending requests to Searcher@1bdbfec main Aug 24, 2011 10:46:04 PM org.apache.solr.core.SolrCore execute INFO: [biblio] webapp=null path=null params={start=0&event=newSearcher&q=science+art+business+engineering+history&rows=10} hits=0 status=0 QTime=6 Aug 24, 2011 10:46:04 PM org.apache.solr.core.QuerySenderListener newSearcher INFO: QuerySenderListener done. Aug 24, 2011 10:46:04 PM org.apache.solr.handler.component.SpellCheckComponent$SpellCheckerListener buildSpellIndex INFO: Building spell index for spell checker: default Aug 24, 2011 10:46:08 PM org.apache.solr.handler.component.SpellCheckComponent$SpellCheckerListener buildSpellIndex INFO: Building spell index for spell checker: basicSpell Aug 24, 2011 10:46:09 PM org.apache.solr.core.SolrCore registerSearcher INFO: [biblio] Registered new searcher Searcher@1bdbfec main Aug 24, 2011 10:46:09 PM org.apache.solr.search.SolrIndexSearcher close INFO: Closing Searcher@17a7706 main fieldValueCache{lookups=0,hits=0,hitratio=0.00,inserts=0,evictions=0,size=0,warmupTime=0,cumulative_lookups=0,cumulative_hits=0,cumulative_hitratio=0.00,cumulative_inserts=0,cumulative_evictions=0} filterCache{lookups=0,hits=0,hitratio=0.00,inserts=0,evictions=0,size=1,warmupTime=11,cumulative_lookups=0,cumulative_hits=0,cumulative_hitratio=0.00,cumulative_inserts=0,cumulative_evictions=0} queryResultCache{lookups=0,hits=0,hitratio=0.00,inserts=3,evictions=0,size=3,warmupTime=2,cumulative_lookups=2,cumulative_hits=1,cumulative_hitratio=0.50,cumulative_inserts=1,cumulative_evictions=0} documentCache{lookups=0,hits=0,hitratio=0.00,inserts=0,evictions=0,size=0,warmupTime=0,cumulative_lookups=0,cumulative_hits=0,cumulative_hitratio=0.00,cumulative_inserts=0,cumulative_evictions=0} Aug 24, 2011 10:46:09 PM org.apache.solr.update.processor.LogUpdateProcessor finish INFO: {optimize=} 0 7056 Aug 24, 2011 10:46:09 PM org.apache.solr.core.SolrCore execute INFO: [biblio] webapp=/solr path=/update/ params={} status=0 QTime=7056 ===-------------------=== My sample dSpace oai harvested xml record looks like: <oai_dc:dc xmlns:oai_dc="http://www.openarchives.org/OAI/2.0/oai_dc/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.openarchives.org/OAI/2.0/oai_dc/ http://www.openarchives.org/OAI/2.0/oai_dc.xsd"><identifier>ir-123456789-421</identifier><datestamp>2010-04-15T13:10:31Z</datestamp><dc:creator>Myers, Chris J.</dc:creator><dc:date>2010-04-15T13:10:31Z</dc:date><dc:date>2010-04-15T13:10:31Z</dc:date><dc:date>2010-04-15T13:10:31Z</dc:date><dc:identifier>0-471-41543-X (Hardback)</dc:identifier><dc:identifier>0-471-22414-6 (Electronic)</dc:identifier><dc:identifier>http://localhost:8081/xmlui/handle/123456789/421</dc:identifier><dc:description>Copyright 2001 by John Wiley & Sons, Inc.</dc:description><dc:description>In 1969, Stephen Unger published his classic textbook on asynchronous Circuit design. This book presented a comprehensive look at the asynchronous design methods of the time. In the 30 years hence, there have been numerous technical publications and there has not been another text book. This book attempts to fill this void by providing an updated look at asynchronous circuit design in a form accessible to a student who simply has some background in digital logic design. An asynchronous circuit is one in which synchronization is performed with-out a global clock. Asynchronous circuits have several advantages over their synchronous counterparts, including:</dc:description><dc:language>en_US</dc:language><dc:subject>Digital desing using VHDL</dc:subject><dc:title>Asynchronous Circuit Design</dc:title><dc:type>Book</dc:type></oai_dc:dc> ------------------------ My oni.ini file has the following contents added: ;CONFIGURATION FOR DSPCE [DSpace] url = http://localhost:8180/oai/request metadataPrefix = oai_dc idSearch[] = "/^oai:localhost:/" idReplace[] = "ir-" idSearch[] = "/\//" idReplace[] = "-" injectId = "identifier" injectDate = "datestamp" dateGranularity = auto harvestedIdLog = harvest.log --------------------------- my dspace.properties file contains: ; XSLT Import Settings for DSpace [General] ; REQUIRED: Name of XSLT file to apply. Path is relative to the import/xsl directory ; of the VuFind installation. xslt = dspace.xsl ; OPTIONAL: PHP function(s) to register for use within XSLT file. You may repeat ; this line to register multiple PHP functions. ;php_function[] = str_replace ; OPTIONAL: PHP class filled with public static functions for use by the XSLT file. ; The class name must match the filename, and the file must exist in the import/xsl ; directory of the VuFind installation. You may repeat this line to load multiple ; custom classes. custom_class[] = VuFind ; XSLT parameters -- any key/value pairs set here will be passed as parameters to ; the XSLT file, allowing local values to be set without modifying XSLT code. [Parameters] institution = "MREC Library" collection = "DSpace" ---------------------- Following is the content of my dspace.xsl file: <!-- available fields are defined in solr/biblio/conf/schema.xml --> <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:oai_dc="http://www.openarchives.org/OAI/2.0/oai_dc/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:php="http://php.net/xsl" xmlns:xlink="http://www.w3.org/2001/XMLSchema-instance"> <xsl:output method="xml" indent="yes" encoding="utf-8"/> <xsl:param name="institution">MREC Library</xsl:param> <xsl:param name="collection">DSpace</xsl:param> <xsl:template match="oai_dc:dc"> <add> <doc> <!-- ID --> <!-- Important: This relies on an <identifier> tag being injected by the OAI-PMH harvester --> <field name="id"> <xsl:value-of select="//dc:identifier"/> </field> <field name="format">eResource</field> <!-- RECORDTYPE --> <field name="recordtype">dspace</field> <!-- FULLRECORD --> <!-- disabled for now; records are so large that they cause memory problems! <field name="fullrecord"> <xsl:copy-of select="php:function('VuFind::xmlAsText', //oai_dc:dc)"/> </field> --> <!-- ALLFIELDS --> <field name="allfields"> <xsl:value-of select="normalize-space(string(//oai_dc:dc))"/> </field> <!-- INSTITUTION --> <field name="institution"> <xsl:value-of select="$institution" /> </field> <!-- COLLECTION --> <field name="collection"> <xsl:value-of select="$collection" /> </field> <!-- LANGUAGE --> <xsl:if test="//dc:language"> <xsl:for-each select="//dc:language"> <xsl:if test="string-length() > 0"> <field name="language"> <xsl:value-of select="php:function('VuFind::mapString', normalize-space(string(.)), 'language_map_iso639-1.properties')"/> </field> </xsl:if> </xsl:for-each> </xsl:if> <!-- FORMAT --> <!-- populating the format field with dc.type instead, see TYPE below. if you like, you can uncomment this to add a hard-coded format in addition to the dynamic ones extracted from the record. <field name="format">Online</field> --> <field name="format">eResource</field> <!-- SUBJECT --> <xsl:if test="//dc:subject"> <xsl:for-each select="//dc:subject"> <xsl:if test="string-length() > 0"> <field name="topic"> <xsl:value-of select="normalize-space()"/> </field> </xsl:if> </xsl:for-each> </xsl:if> <!-- DESCRIPTION --> <xsl:if test="//dc:description"> <field name="description"> <xsl:value-of select="//dc:description" /> </field> </xsl:if> <!-- ADVISOR / CONTRIBUTOR --> <xsl:if test="//dc:contributor[normalize-space()]"> <field name="author_additional"> <xsl:value-of select="//dc:contributor[normalize-space()]" /> </field> </xsl:if> <!-- TYPE --> <!-- No more dynamic type, all are under single type <xsl:if test="//dc:type"> <field name="format"> <xsl:value-of select="//dc:type" /> </field> </xsl:if> --> <!-- AUTHOR --> <xsl:if test="//dc:creator"> <xsl:for-each select="//dc:creator"> <xsl:if test="normalize-space()"> <!-- author is not a multi-valued field, so we'll put first value there and subsequent values in author2. --> <xsl:if test="position()=1"> <field name="author"> <xsl:value-of select="normalize-space()"/> </field> <field name="author-letter"> <xsl:value-of select="normalize-space()"/> </field> </xsl:if> <xsl:if test="position()>1"> <field name="author2"> <xsl:value-of select="normalize-space()"/> </field> </xsl:if> </xsl:if> </xsl:for-each> </xsl:if> <!-- TITLE --> <xsl:if test="//dc:title[normalize-space()]"> <field name="title"> <xsl:value-of select="//dc:title[normalize-space()]"/> </field> <field name="title_short"> <xsl:value-of select="//dc:title[normalize-space()]"/> </field> <field name="title_full"> <xsl:value-of select="//dc:title[normalize-space()]"/> </field> <field name="title_sort"> <xsl:value-of select="php:function('VuFind::stripArticles', string(//dc:title[normalize-space()]))"/> </field> </xsl:if> <!-- PUBLISHER --> <xsl:if test="//dc:publisher[normalize-space()]"> <field name="publisher"> <xsl:value-of select="//dc:publisher[normalize-space()]"/> </field> </xsl:if> <!-- PUBLISHDATE --> <xsl:if test="//dc:date"> <field name="publishDate"> <xsl:value-of select="substring(//dc:date, 1, 4)"/> </field> </xsl:if> <!-- URL --> <xsl:for-each select="//dc:identifier"> <xsl:if test="substring(., 1, 35) = "http://localhost:8180/xmlui/handle""> <field name="url"> <xsl:value-of select="." /> </field> </xsl:if> </xsl:for-each> </doc> </add> </xsl:template> </xsl:stylesheet> ------------------ The following is the vuFind server output after clicking eResources from the vuFind Interface: It is showing hits as 1 but I am not getting any display on the browser: raj@debianSqueez:/usr/local/vufind$ Aug 24, 2011 11:19:58 PM org.apache.solr.core.SolrCore execute INFO: [biblio] webapp=/solr path=/admin/ping params={} hits=0 status=0 QTime=13 Aug 24, 2011 11:19:58 PM org.apache.solr.core.SolrCore execute INFO: [biblio] webapp=/solr path=/admin/ping params={} status=0 QTime=14 Aug 24, 2011 11:20:02 PM org.apache.solr.core.SolrCore execute INFO: [biblio] webapp=/solr path=/admin/ping params={} hits=0 status=0 QTime=2 Aug 24, 2011 11:20:02 PM org.apache.solr.core.SolrCore execute INFO: [biblio] webapp=/solr path=/admin/ping params={} status=0 QTime=3 Aug 24, 2011 11:20:07 PM org.apache.solr.core.SolrCore execute INFO: [biblio] webapp=/solr path=/admin/ping params={} hits=0 status=0 QTime=3 Aug 24, 2011 11:20:07 PM org.apache.solr.core.SolrCore execute INFO: [biblio] webapp=/solr path=/admin/ping params={} status=0 QTime=3 Aug 24, 2011 11:20:07 PM org.apache.solr.core.SolrCore execute INFO: [biblio] webapp=/solr path=/admin/ping params={} hits=0 status=0 QTime=5 Aug 24, 2011 11:20:07 PM org.apache.solr.core.SolrCore execute INFO: [biblio] webapp=/solr path=/admin/ping params={} status=0 QTime=5 Aug 24, 2011 11:20:07 PM org.apache.solr.request.UnInvertedField uninvert INFO: UnInverted multi-valued field {field=topic_facet,memSize=4224,tindexSize=32,time=4,phase1=4,nTerms=0,bigTerms=0,termInstances=0,uses=0} Aug 24, 2011 11:20:07 PM org.apache.solr.request.UnInvertedField uninvert INFO: UnInverted multi-valued field {field=institution,memSize=4260,tindexSize=64,time=5,phase1=5,nTerms=1,bigTerms=0,termInstances=1,uses=0} Aug 24, 2011 11:20:07 PM org.apache.solr.request.UnInvertedField uninvert INFO: UnInverted multi-valued field {field=building,memSize=4224,tindexSize=32,time=1,phase1=1,nTerms=0,bigTerms=0,termInstances=0,uses=0} Aug 24, 2011 11:20:07 PM org.apache.solr.request.UnInvertedField uninvert INFO: UnInverted multi-valued field {field=format,memSize=4254,tindexSize=58,time=0,phase1=0,nTerms=1,bigTerms=0,termInstances=1,uses=0} Aug 24, 2011 11:20:07 PM org.apache.solr.request.UnInvertedField uninvert INFO: UnInverted multi-valued field {field=authorStr,memSize=4266,tindexSize=70,time=1,phase1=1,nTerms=1,bigTerms=0,termInstances=1,uses=0} Aug 24, 2011 11:20:07 PM org.apache.solr.request.UnInvertedField uninvert INFO: UnInverted multi-valued field {field=language,memSize=4246,tindexSize=50,time=0,phase1=0,nTerms=1,bigTerms=0,termInstances=1,uses=0} Aug 24, 2011 11:20:07 PM org.apache.solr.request.UnInvertedField uninvert INFO: UnInverted multi-valued field {field=genre_facet,memSize=4224,tindexSize=32,time=1,phase1=1,nTerms=0,bigTerms=0,termInstances=0,uses=0} Aug 24, 2011 11:20:07 PM org.apache.solr.request.UnInvertedField uninvert INFO: UnInverted multi-valued field {field=era_facet,memSize=4224,tindexSize=32,time=1,phase1=1,nTerms=0,bigTerms=0,termInstances=0,uses=0} Aug 24, 2011 11:20:07 PM org.apache.solr.request.UnInvertedField uninvert INFO: UnInverted multi-valued field {field=geographic_facet,memSize=4224,tindexSize=32,time=0,phase1=0,nTerms=0,bigTerms=0,termInstances=0,uses=0} Aug 24, 2011 11:20:07 PM org.apache.solr.request.UnInvertedField uninvert INFO: UnInverted multi-valued field {field=publishDate,memSize=4244,tindexSize=48,time=0,phase1=0,nTerms=1,bigTerms=0,termInstances=1,uses=0} Aug 24, 2011 11:20:07 PM org.apache.solr.core.SolrCore execute INFO: [biblio] webapp=/solr path=/select/ params={spellcheck=true&facet=true&facet.mincount=1&indent=yes&facet.limit=30&spellcheck.q=*:*&hl.simple.pre={{{{START_HILITE}}}}&hl.fl=*&json.nl=arrarr&wt=json&hl=true&rows=20&fl=score&facet.sort=&start=0&q=*:*&facet.prefix=&spellcheck.dictionary=default&hl.simple.post={{{{END_HILITE}}}}&facet.field=topic_facet&facet.field=institution&facet.field=building&facet.field=format&facet.field=callnumber-first&facet.field=authorStr&facet.field=language&facet.field=genre_facet&facet.field=era_facet&facet.field=geographic_facet&facet.field=publishDate&fq=format:"eResource"} hits=1 status=0 QTime=107 Aug 24, 2011 11:20:07 PM org.apache.solr.core.SolrCore execute INFO: [biblio] webapp=/solr path=/admin/ping params={} hits=0 status=0 QTime=3 Aug 24, 2011 11:20:07 PM org.apache.solr.core.SolrCore execute INFO: [biblio] webapp=/solr path=/admin/ping params={} status=0 QTime=3 Aug 24, 2011 11:20:07 PM org.apache.solr.core.SolrCore execute INFO: [biblio] webapp=/solr path=/select/ params={spellcheck=true&indent=yes&spellcheck.q=*:*&hl.simple.pre={{{{START_HILITE}}}}&hl.fl=*&json.nl=arrarr&wt=json&hl=true&rows=20&fl=score&start=0&q=*:*&spellcheck.dictionary=basicSpell&hl.simple.post={{{{END_HILITE}}}}&fq=format:"eResource"} hits=1 status=0 QTime=23 Regards, T. JOGI RAJU Librarian, Malla Reddy Engineering College Secunderabad, India |