From: James F. <jfa...@dr...> - 2007-12-26 15:24:27
|
Hi, We have a preliminary driver for Unicorn that implements getHolding and = seems to work ok for displaying detailed item info when looking at the full record. But I can't yet get detailed information (e.g., call number, availability, = location) to display on the brief hits page. Can someone point me to what code needs to be modified to get this = detailed info to appear on the brief hits page (list-list.tpl and its compiled = version)? thanks, Jim ----------------- BACKGROUND: At the vufind demo, when I did a search on "algebra" I looked at two = different views of the source of the brief-hits page -- a plain "view source" and a "view = generated source". The first one showed this kind of info: Algebra by Waerden, B. L. van der Published 1970 Call Number: Loading Located: Loading Loading... Book Book and the second view of the source show this: Algebra by Waerden, B. L. van der Published 1970 Call Number: QA155.W323 Located: 2nd flr A-DS; 3rd flr DT-PM; 4th flr PN-Z Available Book Book=20 In my setup, I always get the "Loading" placeholders, never any detailed = item info, which would make sense, since I haven't changed the defaults for = this area. How to, is the question... I've looked at ...web/services/Search/templates/list-list.tmpl and its = compiled version in ...web/interface/compile. In the .tpl file, there are these lines: <b>{translate text=3D'Call Number'}</b>: <span id=3D"callnumber{$record.id}= ">Loading</span> <b>{translate text=3D'Located'}: <span id=3D"location{$record.id}= ">Loading</span></b> <div class=3D"status" id=3D"status{$record.id}"> <span class=3D"unknown" style=3D"font-size: 8pt;">Loading...</s= pan> which in my compiled version look like: <b><Xphp echo translate(array('text' =3D> 'Call Number'), $this);?> </b>: <span id=3D"callnumber<Xphp echo $this->_tpl_vars['record']['id']; = ?> ">Loading</span> <b><Xphp echo translate(array('text' =3D> 'Located'), $this);?> : <span id=3D"location<Xphp echo $this->_tpl_vars['record']['id']; ?> ">Loading</span></b> <div class=3D"status" id=3D"status<Xphp echo $this->_tpl_vars['re= cord']['id']; ?> "> <span class=3D"unknown" style=3D"font-size: 8pt;">Loading...</s= pan> I can't figure out what code gets or should get called to take something = like 'callnumberocm12345678', 'locationocm1234567', or 'statusocm12342234' and = return a callnumber, location, or status. Or am I looking at the wrong things? ---------------------------------------------------------------------------= --------------------------------------------------------------- |