ok one correction, the statement in result.tpl is not quite as you said i.e.:

{if !$summOpenUrl && empty($summURLs) && $summAjaxStatus}

infact it is:

{if !$summOpenUrl && empty($summURLs)}

And I think that was the problem.When I made it include summAjaxStatus, the issue seem to have gone.

A bug of 1.3?

Thanks
Ranju.

----- Original Message -----
From: Ranju Upadhyay <Ranju.Upadhyay@nuim.ie>
Date: Monday, July 30, 2012 11:00 am
Subject: Re: [VuFind-General] eprints records
To: Demian Katz <demian.katz@villanova.edu>
Cc: "vufind-general@lists.sourceforge.net" <vufind-general@lists.sourceforge.net>

> Hi Demian,
>
> I did exactly as you suggested , and all the eprints records (i.e. IndexRecord driver) have returned false.
>
> Thanks
> Ranju.
>
> ----- Original Message -----
> From: Demian Katz <demian.katz@villanova.edu>
> Date: Tuesday, July 24, 2012 5:43 pm
> Subject: RE: RE: RE: RE: [VuFind-General] eprints records
> To: Ranju Upadhyay <Ranju.Upadhyay@nuim.ie>
> Cc: "vufind-general@lists.sourceforge.net" <vufind-general@lists.sourceforge.net>
>

>

>

> > Okay, so that’s all working as expected.  Perhaps now you should take a look at RecordDrivers/Index/result.tpl within your chosen theme.  There should be code that looks something like this:

> >  

> >       {if !$summOpenUrl && empty($summURLs) && $summAjaxStatus}

> >       <div class="ajax_availability hide" id="status{$summId|escape}">{translate text='Loading'}...</div>

> >       {/if}

> >  

> > I would expect that if IndexRecord is loading, then $summAjaxStatus should be false, so this <div> should not display, and you shouldn’t see any availability status.

> >  

> > First of all, make sure you have a similar if statement.  Assuming you do, try adding something like this above it:

> >  

> > {if $summAjaxStatus}true{else}false{/if}

> >  

> > This will display “true” or “false” for each entry depending on whether or not the status flag is set.  That will help you determine whether the driver is somehow passing the wrong data or the template is acting on the data incorrectly.

> >  

> > - Demian

> >  

> > From: Ranju Upadhyay [mailto:Ranju.Upadhyay@nuim.ie]
> > Sent: Tuesday, July 24, 2012 11:58 AM
> > To: Demian Katz
> > Cc: vufind-general@lists.sourceforge.net
> > Subject: Re: RE: RE: RE: [VuFind-General] eprints records

>
>

> >  

> > Hi Demian,
> >
> > The Solr index indeed has record type as eprints:
> >
> > <str name="recordtype">eprints</str>
> >
> > and I made the change on IndexRecord.php as you suggested and looks like they are getting the right record driver i.e. Aleph records have MarcRecord at the end of the title and eprint records have IndexRecord.
> >
> > Thanks
> > Ranju.
> >
> > ----- Original Message -----
> > From: Demian Katz <demian.katz@villanova.edu>
> > Date: Tuesday, July 24, 2012 4:30 pm
> > Subject: RE: RE: RE: [VuFind-General] eprints records
> > To: Ranju Upadhyay <Ranju.Upadhyay@nuim.ie>
> > Cc: "vufind-general@lists.sourceforge.net" <vufind-general@lists.sourceforge.net>

>

> > Mysterious.  It sounds like you shouldn’t be seeing the status for the eprints records.

>  

> A few thoughts that might help pin down the problem:

>  

1.)    Go to the Solr native interface (probably something like http://your-vufind-server:8080/solr) and do a search by ID for an Eprints record in the Biblio core.  (Just type id:record-id, where record-id is one of your Eprints records).  This will show you the raw Solr response for the record.  You can check to be sure recordtype is really set to “eprints” (it should be).

2.)    In web/RecordDrivers/IndexRecord.php, temporarily change this line:

>  

> $interface->assign('summTitle', $this->getTitle());

>  

>                 to:

>  

>                                 $interface->assign('summTitle', $this->getTitle() . get_class($this));

>  

>                 That will put the name of the record driver class on the end of every record title.  That will help you ensure that the right drivers are being loaded in the right places.

>  

>  

> Let me know what you find and maybe I can offer some more suggestions.

>  

> - Demian

>  

> > > From: Ranju Upadhyay [mailto:Ranju.Upadhyay@nuim.ie]
>
> > Sent: Tuesday, July 24, 2012 10:03 AM
>
> > To: Demian Katz
>
> > Cc: vufind-general@lists.sourceforge.net
>
> > Subject: Re: RE: RE: [VuFind-General] eprints records

>
>

> > >  

> > > Hi Demian,
> > >
> > > yes that is indeed my case, in eprints.xsl I have
> > >
> > > <field name="recordtype">eprints</field>
> > >
> > > But there is no EprintsRecord.php in ../web/RecordDrivers.
> > >
> > > And in IndexRecord.php I can see this section:
> > >
> > > // By default, do not display AJAX status; we won't assume that all
> > >         // records exist in the ILS.  Child classes can override this setting
> > >         // to turn on AJAX as needed:
> > >         $interface->assign('summAjaxStatus', false);
> > >
> > > Ranju.
> > >
> > >
> > > ----- Original Message -----
> > > From: Demian Katz <demian.katz@villanova.edu>
> > > Date: Tuesday, July 24, 2012 2:35 pm
> > > Subject: RE: RE: [VuFind-General] eprints records
> > > To: Ranju Upadhyay <Ranju.Upadhyay@nuim.ie>
> > > Cc: "vufind-general@lists.sourceforge.net" <vufind-general@lists.sourceforge.net>

>

> > > In the XSLT you use to index the records, there should be a “recordtype” field.  This determines which record driver VuFind uses to display the records.  For example, if recordtype is set to eprints, VuFind will look for web/RecordDrivers/EprintsRecord.php for a driver.  If that file does not exist, it will default to using web/RecordDrivers/IndexRecord.php… but if it’s using IndexRecord, I don’t think you should be seeing status messages!  Feel free to share your EprintsRecord.php here if you need help with it…  and if it doesn’t actually exist, let me know and I’ll investigate further.

>  

> - Demian

>  

> > > > From: Ranju Upadhyay [mailto:Ranju.Upadhyay@nuim.ie]
>
> > > Sent: Tuesday, July 24, 2012 9:14 AM
>
> > > To: Demian Katz
>
> > > Cc: vufind-general@lists.sourceforge.net
>
> > > Subject: Re: RE: [VuFind-General] eprints records

>
>

> > > >  

> > > > Hi Demian,
> > > >
> > > > yes indeed the eprints records are coming from different system (our institutional repositry which uses ePrints software http://www.eprints.org/)
> > > >
> > > > When I provided those steps for "how to index eprints records"  all I had done was configured vufind to harvest and import/index records from ePrints but it is only now I am begining to look more closely at their metadata(and status) etc shown in the results.I will add to that when I have done more with eprints records!
> > > >
> > > > I do not think I have specified any record drivers anywhere seperately for eprints import so I am not sure whether I am inheriting from IndexRecord or MarcRecord!How do I determine that?
> > > >
> > > > Thanks
> > > > Ranju.
> > > >
> > > > ----- Original Message -----
> > > > From: Demian Katz <demian.katz@villanova.edu>
> > > > Date: Tuesday, July 24, 2012 1:48 pm
> > > > Subject: RE: [VuFind-General] eprints records
> > > > To: Ranju Upadhyay <Ranju.Upadhyay@nuim.ie>, "vufind-general@lists.sourceforge.net" <vufind-general@lists.sourceforge.net>

>

> > > > The eprints are coming from a separate system, not Aleph, correct?  I’m assuming this is related:

>  

> http://vufind.org/wiki/importing_records:how_to_index_eprints_with_vufind

>  

> If my understanding is correct, you just need to make sure that the record driver you are using to display eprints records sets the summAjaxStatus variable to false in the getSearchResult() method.  This should be false by default if you are inheriting from IndexRecord.  If you are instead inheriting from MarcRecord, perhaps you should consider changing to IndexRecord as the parent class.  Unless the Eprints data includes MARC of some sort, you probably don’t need to derive from the MARC driver.

>  

> Let me know if you need more details or if I’m misunderstanding the problem.

>  

> thanks,

> Demian

>  

> > > > > From: Ranju Upadhyay [mailto:Ranju.Upadhyay@nuim.ie]
>
> > > > Sent: Tuesday, July 24, 2012 8:05 AM
>
> > > > To: vufind-general@lists.sourceforge.net
>
> > > > Subject: [VuFind-General] eprints records

>
>

> > > > >  

> > > > > Hi List,
> > > > >
> > > > > having reached some level of stability with MARC records from Aleph I am now dealing with eprints records in vufind.And I think I am going to have several questions!!!
> > > > >
> > > > > But my first question is , how do I disable the display of loan status for eprint items in the searc result list?
> > > > > i.e. an eprint item that is in the search result list (the long list) will display soemthig like this

>

> > > > > by Lebech, Ms Mette Published 2002

>

> > > > >
> > > > > Article

> > > > > Checked Out
> > > > >
> > > > > But of course the status of "Checked out" would not quite apply for an item in electronic repo.I simply want to hide it for all the recordtypes that are "eprints" (in our case) and continue to show it for the Aleph records.
> > > > >
> > > > > Any suggestions?
> > > > >
> > > > > Thanks
> > > > > Ranju.

>
>
>
>

> > > >  

>

> > >  

>

> >  

>
>

> -----------------------------------------------------------------
> -------------
> Live Security Virtual Conference
> Exclusive live event will cover all the ways today's security
> and
> threat landscape has changed and how IT managers can respond.
> Discussions
> will include endpoint security, mobile security and the latest
> in malware
> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/> _______________________________________________
> VuFind-General mailing list
> VuFind-General@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/vufind-general