Thanks for all of your help. In addtion to this Record Driver, I also made some changes in 'result.tpl' file according to a patch sent by Demian for importing XML data type. Now I'm getting it right.


On Wed, Nov 24, 2010 at 3:27 PM, Till Kinstler <> wrote:
Am 24.11.2010 08:43, schrieb Altaf Mahmud:

> Now if I include recordtype
> = "custom" in file then how it can trigger my
> custom record driver in ../RecordDriver/ directory? Where should I make
> that change?

If the recordtype field in your index is set to custom, VuFind will look
for a record driver file named CustomRecord.php in the RecordDriver
directory. In that file it expects a php class called CustomRecord, that
implements RecordInterface.
The selection of the record driver to load is made in

If I understand correctly, you want to suppress item status lookup in
the ILS for certain records and these records are in MARC format. So you
may simply want to extend the MarcRecord class and only change the line
$interface->assign('summAjaxStatus', true); to
$interface->assign('summAjaxStatus', false); in the method
So your CustomRecord.php might be as simple as

class CustomRecord extends MarcRecord
   public function getSearchResult()
       global $interface;

       // custom records are MARC records, but have no holding/status
       // data in the ILS. So set summAjaxStatus to false to suppress
       // AJAX calls to the ILS when record is displayed as MARC record
       $template = parent::getSearchResult();
       $interface->assign('summAjaxStatus', false);
       return $template;



Till Kinstler
Verbundzentrale des Gemeinsamen Bibliotheksverbundes (VZG)
Platz der Göttinger Sieben 1, D 37073 Göttingen, +49 (0) 551 39-13431,

Increase Visibility of Your 3D Game App & Earn a Chance To Win $500!
Tap into the largest installed PC base & get more eyes on your game by
optimizing for Intel(R) Graphics Technology. Get started today with the
Intel(R) Software Partner Program. Five $500 cash prizes are up for grabs.
Vufind-tech mailing list

Altaf Mahmud
System Programmer
Ayesha Abed Library
BRAC University