Am 2014-02-12 um 13:28 schrieb Alexander Wagner <[email protected]>:

>>> my search results normally use BibFormat’s Default_HTML_brief template, but 
>>> WebSearch insists to use it’s own hardcoded format for the first page, 
>>> „Latest Entries“.
>>> - How can I disable „Latest entries“?
>>> - How can I force WebSearch to use a BibFormat template?
>> Sorry, I meant „Latest Additions“, and the format is „hb“ of course.
> I think for disabeling it
> 
> ## CFG_WEBSEARCH_INSTANT_BROWSE -- the number of records to display
> ## under 'Latest Additions' in the web collection pages.
> CFG_WEBSEARCH_INSTANT_BROWSE = 10
> is your fiend, setting it to 0.

Thank you, I’ll try that as a last resort.

> For display it uses hb, but if you change hb it might be that you need a
> forced webcoll as webcoll is building up those pages and they are static.

Of course I run webcoll - a lot.

> I do not understand exactly what you refer to with websearch to use a
> format.

Sorry, it’s BibFormat that sometimes uses a hardcoded format (aarrrgh, can’t 
find it again). I was confused by websearch/lib/search_engine.py, where there 
are some other output formats hardcoded.

Using INSPECT, I finally found out (what I should have suspected), that 
WebSearch never used my custom templates (websearch_templates_uca.py), but 
always its default. I expected _uca to work like in WebStyle.

> Check out
> /admin/bibformat/bibformatadmin.py/output_formats_manage
> You can then select the format like HB and define rules when to use
> which template. Criteria are some marc field and it's contents.
> Probably, you use collections for that but you can use any field that
> uses normalized content.

Thank you, I do the same using the files, otherwise my changes get lost all the 
time if I install changes.




Greetlings, Hraban
---
http://www.fiee.net
https://www.cacert.org (I'm an assurer)







Reply via email to