Hi!

How could I create a search block for the biblio module. I was thinking off looking a the code produce by "/biblio/filer" to create a php snippet, and then maybe create a custom search page for my biblios... Any thougs how I could do this without blowing my brain!

Denis

Comments

jtrant’s picture

I've been wondering if it was possible to use drupal's search for this kind of thing. You can already search just biblio nodes on my site using advanced search

http://conference.archimuse.com/search/node/evaluation+type%3Abiblio

but it's not tied in to the biblio sectionof the site.

jt

rjerome’s picture

I'm afraid brain blowing is unavoidable in this case :-)

The good news is that I was planning on creating a custom search page anyway. What would you like to see on it?

Ron

p0732658’s picture

Hi Ron,

Simply, I would like the ability to create a block containing the same elements that we find on the "biblio/filter" page (i.e. the Authors, Type, Years and Keyword check box and drop downs menus : adding the same for the Publishing house would also be nice...). But, I would also like to be able to customise the "/biblio/filter" page by adding a custum title, maybe some explantion text or simply be able to add it in a drupal book.

Denis

p0732658’s picture

Hi Ron !

You can see at http://www.bibliothequevirtuelleacadienne.org/repertoire-bibliographique... and exemple of part of what I wanted to do. I use this code (php snippet) to obtain that result :

<?php
// We save and restore the real path for the page
$q = $_GET['q'];
// Change event to the path you want, this is the part after q= (or after the base path if you have clean URLs enabled)
$_GET['q'] = 'biblio/filter';
// Get and print the output for just the content associated with the path
// If you see the complete page within a page it means the path callback is probably calling theme('page', ....)
print menu_execute_active_handler();
// Restore the real path for the page
$_GET['q'] = $q;
?>

I going to play arround with this and see if I can create a block.

Denis

Jasieboy’s picture

Sorry if I've missed this but has any clever soul managed to come up with a neat way to have a search tool for just the biblio in a block?

I realize users can use the advanced search option or /search/node/XXXX+type%3Abiblio but most of my users never get this far and are emailing me looking for a simple way to search everything from journal title to word in abstracts in one go.

The biblio module is great and the biggest pull on my site so any pointers on this would be much appreciated.

Jase - http://digiplay.info

Jasieboy’s picture

I'm certain that many of you have already done this but it's new to me and I though it would be worth passing on.

To create a block with a search form that returns only biblio types I used the following:

<form action="?q=/search/node" method="post"  id="search-form" class="search-form">
<input type="text" maxlength="125" name="keys" id="edit-keys" size="15" value="" />
<input type="submit" name="op" id="edit-submit" value="Search" />
<input type="hidden" name="form_token" value="<?php print drupal_get_token('search_form'); ?>"  />
<input type="hidden" name="form_id" id="edit-search-form" value="search_form"   /> 
<input type="hidden" name="type[biblio]" id="edit-type-biblio" value="biblio" />
</form>

I'm sure it's not the most elegant solution but it works for me and saves me from having to respond to users who email me about how to search the games research bibliography without explaining the advanced search options. Currently I have the block visible only to registered users.

Jase

seat’s picture

As anyone been able to find anything on this issue

bekasu’s picture

Upgrade to Biblio 6x.
Install Views and panels
Create a view, panel or mini-panel -- which ever you need for your site and theme.
Add that new view/panel/mini-panel to a block in your theme.

Since Biblio plays friendly with Views, you can filter, sort, etc whatever you want to show in your theme block.

Marking issue closed.

bekasu’s picture

Status: Active » Closed (fixed)