The $summLCCN variable in result.tpl is filled in using data indexed from the MARC record (one of the callnumber* fields populated in import/marc.properties -- can't remember exactly which one off the top of my head, but they all use the same general MARC fields).  If it's missing a value, it may indicate that your bib record call numbers are out of sync with your item record call numbers (since that's often where the real-time AJAX data is coming from).  So you might be able to fix this through some adjustments to your indexing process...

- Demian

From: Thomas Misilo [misilot@fit.edu]
Sent: Wednesday, February 13, 2013 3:24 PM
To: Demian Katz; vufind-tech@lists.sourceforge.net
Subject: RE: [VuFind-Tech] Availabity status is not displayed vufind 1.3 when books have online information (ie TOC)

Actually, the LCCN isnít there for a lot of our records.

 

Is there an easy way to check the call number in the result.tpl file? I know it is being pulled in via JS, but wasnít sure if the marc data is available.

 

Tom

From: Demian Katz [mailto:demian.katz@villanova.edu]
Sent: Wednesday, February 13, 2013 12:09 PM
To: Thomas Misilo; vufind-tech@lists.sourceforge.net
Subject: RE: [VuFind-Tech] Availabity status is not displayed vufind 1.3 when books have online information (ie TOC)

 

Glad you found something that works!

However, empty(!$summLCCN) is a bit syntactically unusual (basically what it's doing is turning a string into a boolean and then checking if that is false) -- have you tried !empty($summLCCN)?  That might be slightly more reliable.

- Demian


From: Thomas Misilo [misilot@fit.edu]
Sent: Wednesday, February 13, 2013 11:26 AM
To: Demian Katz; vufind-tech@lists.sourceforge.net
Subject: RE: [VuFind-Tech] Availabity status is not displayed vufind 1.3 when books have online information (ie TOC)

I changed the if statement to:

 

{if !$summOpenUrl && empty(!$summLCCN)} which seems to be working, except on a few of our government documents.

 

Tom

 

 

From: Thomas Misilo [mailto:misilot@fit.edu]
Sent: Wednesday, February 13, 2013 8:49 AM
To: 'Demian Katz'; vufind-tech@lists.sourceforge.net
Subject: Re: [VuFind-Tech] Availabity status is not displayed vufind 1.3 when books have online information (ie TOC)

 

Thanks Demian,

 

I found the  line:

 

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

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

{/if}

 

Still trying to figure out the logic, to determine if it is in Location INTERNET, then do not display the Availability, otherwise display. I would also like to expand this to even make it stop displaying the Call Number and Location, if it is in the Location Internet.

 

Though the Location, I am not sure I can get before hand, as it is being displayed via AJAX calls I believe.

 

Tom

 

 

From: Demian Katz [mailto:demian.katz@villanova.edu]
Sent: Wednesday, February 13, 2013 8:23 AM
To: Thomas Misilo; vufind-tech@lists.sourceforge.net
Subject: RE: [VuFind-Tech] Availabity status is not displayed vufind 1.3 when books have online information (ie TOC)

 

I believe that the default template behavior is to suppress the availability status when there are URLs present in the record -- so it's not the format that is causing what you are seeing, it is the presence of an 856.  I think you'll need to customize a template in order to solve this -- the logic is (if memory serves) in web/interface/themes/[your theme]/RecordDrivers/Index/result.tpl.  If you need more specifics, let me know and I'll look it all up when I get home from Code4Lib; I'm working from memory at the moment.

- Demian


From: Thomas Misilo [misilot@fit.edu]
Sent: Tuesday, February 12, 2013 2:44 PM
To: vufind-tech@lists.sourceforge.net
Subject: [VuFind-Tech] Availabity status is not displayed vufind 1.3 when books have online information (ie TOC)

Hi,

 

I was wondering what I might need to look for in order to determine if a check to see if the book is available or not? As it seems that when the item has the Online format attached, it does not see if the book is available or not, even though it is a Book.

 

Thanks,

 

Tom