From: Stephen H. <ho...@bu...> - 2012-05-14 11:24:24
|
The default $holdings is a 2 dimensional array In mine, I have something like $holdings->library And then library->records So I would have something like {Foreach from=$holdings item=holding key=library} <h1>{$library}</h1> {foreach from=$holding item=row} <-- note singular 'holding' from first foreach <h3>{$row.callnumber}</h3> $h3>{$row.location}</h3> </foreach} {/foreach} Fields being referenced as the $item.fieldname Don't know if that's helpful - I'm fairly new to this framework. -----Original Message----- From: Katharina Wolkwitz [mailto:wol...@fh...] Sent: Monday, May 14, 2012 7:10 AM To: vuf...@li... Subject: [VuFind-General] Items-grouping in holdings.tpl hi there, I'm trying to change the heading for the items-grouping in holdings.tpl I've changed the values in the foreach-loop and the heading like this: {* {foreach from=$holdings item=holding key=location} <h3>{$location|translate|escape}</h3> *} {foreach from=$holdings item=holding key=sub_lib_desc} <h1>{$sub_lib_desc|translate|escape}</h1> But instead of the value inside sub_lib_desc the heading still contains the value from location. Where is my error of thinking? Example: http://194.94.3.187/vufind/Record/000607106 Here are a few lines of the given Array. Array ( [0] => Array ( [id] => 000607106 [item_id] => SWF50000607106000220 [availability] => [status] => Normalausleihe [location] => I5001 [reserve] => N [callnumber] => E/ZB-Wfk5 1:22 [duedate] => [number] => 2011/864-E [collection] => Hagen [collection_desc] => Hagen [barcode] => 607106-220 [is_holdable] => 1 [holdtype] => hold [sub_lib_desc] => FHB-SWF: Hagen [no_of_loans] => 1 [requested] => ) [1] => Array ( [id] => 000607106 [item_id] => SWF50000607106000230 [availability] => [status] => Normalausleihe [location] => I5001 [reserve] => N [callnumber] => E/ZB-Wfk5 1:22A [duedate] => [number] => 2011/865-E [collection] => Hagen [collection_desc] => Hagen [barcode] => 607106-230 [is_holdable] => 1 [holdtype] => hold [sub_lib_desc] => FHB-SWF: Hagen [no_of_loans] => 1 [requested] => ) [2] => Array ( [id] => 000607106 [item_id] => SWF50000607106000030 [availability] => [status] => Normalausleihe [location] => I5002 [reserve] => N [callnumber] => M/P-Wfk5 1:22B [duedate] => [number] => 07/4124-M [collection] => Iserlohn [collection_desc] => Iserlohn [barcode] => 607106-30 [is_holdable] => 1 [holdtype] => hold [sub_lib_desc] => FHB-SWF: Iserlohn [no_of_loans] => 11 [requested] => ) [3] => Array ( [id] => 000607106 [item_id] => SWF50000607106000040 [availability] => [status] => Normalausleihe [location] => I5002 [reserve] => N [callnumber] => M/P-Wfk5 1:22C [duedate] => [number] => 07/4125-M [collection] => Iserlohn [collection_desc] => Iserlohn [barcode] => 607106-40 [is_holdable] => 1 [holdtype] => hold [sub_lib_desc] => FHB-SWF: Iserlohn [no_of_loans] => 10 [requested] => ) [4] => Array ( [id] => 000607106 [item_id] => SWF50000607106000010 [availability] => [status] => Normalausleihe [location] => I5002 [reserve] => N [callnumber] => M/P-Wfk5 1:22 [duedate] => [number] => 07/4122-M [collection] => Iserlohn [collection_desc] => Iserlohn [barcode] => 607106-10 [is_holdable] => 1 [holdtype] => hold [sub_lib_desc] => FHB-SWF: Iserlohn [no_of_loans] => 10 [requested] => ) Kate ------------------------------------------------------------------------------ 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 VuF...@li... https://lists.sourceforge.net/lists/listinfo/vufind-general The Buffalo & Erie County Public Library System has more than 2.6 million materials available for borrowing including books, eBooks, DVDs, music and more. Free library card applications can be downloaded and taken to any of the 37- local public libraries for processing. A valid form of identification and proof of address is necessary. For more information call 716-858-8900 or visit www.BuffaloLib.org . |