From: Tomasz H. <mo...@po...> - 2013-09-10 18:43:10
|
Thanks Demian, I thought that it wouldn`t be simple, so I`ll just leave links to new items where they are now, this is nothing of great importance. Putting a couple of lines in a .tpl file looks safer than tinkering with indexes :) But I`m curious, is it possible to construct an index from two or more existing indexes? For example: items published in 2012, added to database during, say, last month? Thanks again! Tomasz. On 2013-09-10 14:38, Demian Katz wrote: > There's not a way to do something this complex simply through configuration, but I expect you could achieve it by modifying search/home.tpl within your theme (and possibly web/services/Search/Home.php if you need to do some additional controller-side assignments). Because VuFind 1.x uses the same configuration section for advanced facets and homepage facets, also keep in mind that you may need to do some customization of the advanced search screen to either match the homepage or suppress display of unwanted information. > > Is that helpful? I'm not sure that I fully understand your use case, but if you still have questions, let me know and I'll give it further thought! > > - Demian > >> -----Original Message----- >> From: Tomasz Holdowanski [mailto:mo...@po...] >> Sent: Tuesday, September 10, 2013 8:11 AM >> To: Vufind-general-lista >> Subject: [VuFind-General] Facets with data from multiple indexes (VF 1.1 and >> 1.4) >> >> Hi all, >> >> I want to create a facet containing a set of links to lists of new items >> in my library divisions, something like this: >> >> facet title: New Items >> Link_to_new_items_in_division1 >> Link_to_new_items_in_division2 >> Link_to_new_items_in_division3 >> etc., >> >> but it requires gathering data from at least two indexes, plus setting a >> range. I already created index item_added_date and placed links in >> footer.tpl. It looks like this: >> >> {assign var=today value=$smarty.now|date_format:"%Y%m%d" } >> {assign var=1month value=$today-100} >> >> <li><a >> href="http://localhost/vufind/Search/Results?lookfor=&type=AllFields&filter[]= >> item_added_date%3A%22%5B{$1month}+TO+{$today}%22%5D%22&filter[]=building%3A%22 >> 116W%22">{translate >> text='New in 116W'} >> </a></li> >> >> >> It works pretty well, but I thought about moving these links into more >> visible space, i.e. facets under search box in Home. I created new facet >> in facets.ini for item_added_date, but the list of dates is not what I >> wamted. Couldn`t find out how to make a facet from a combination of two >> indexes, with limit on one of them as in the link above. Is it possible? >> Vufind 1.1 in production state (more or less) and 1.4 testing. >> >> Thanks in advance for any information! >> Cheers, >> Tomasz. >> >> ------------------------------------------------------------------------------ >> How ServiceNow helps IT people transform IT departments: >> 1. Consolidate legacy IT systems to a single system of record for IT >> 2. Standardize and globalize service processes across IT >> 3. Implement zero-touch automation to replace manual, redundant tasks >> http://pubads.g.doubleclick.net/gampad/clk?id=51271111&iu=/4140/ostg.clktrk >> _______________________________________________ >> VuFind-General mailing list >> VuF...@li... >> https://lists.sourceforge.net/lists/listinfo/vufind-general > |