Search by Author

Started by miguelcorreia, 23 February 2016, 23:17:54

Previous topic - Next topic
A financial contribution is greatly appreciated as a support, to help us to keep live the project.
If you like this project you can donate some piece of BitCoin to this address: bc1qy5tgq6tvrckac2a57unxvqcnxamrvhduve9sj9

miguelcorreia

Hello
Again, congrats on this amazing component. I wasn't sure if I should post all my questions on a single topic or create as many as I go.
I've decided to open multiple topics, maybe others have the same issues and will look them at the topics.

So here it goes my first question:
Is there a way to do a search by an author's name?

A financial contribution is greatly appreciated as a support, to help us to keep live the project.
If you like this project you can donate some piece of BitCoin to this address: bc1qy5tgq6tvrckac2a57unxvqcnxamrvhduve9sj9

miguelcorreia

(better said)... using an expression in the search box.

federica

Open several topics is the best way, thanks

To enable the search by author name:
go to menu search->list layouts then set "filters" and "Authors" = show
Al mondo ci sono 10 tipi di persone, quelli che hanno capito il codice binario e quelli che non l'hanno capito.
Informatizzati [url="https://informatizzati.org"]https://informatizzati.org[/url]
Stacca la spina [url="https://disconnessi.org"]https://disconnessi.org[/url]

miguelcorreia

Hi Federica,
Thanks for your reply. Maybe I didn't explained myself well.
I don't want to create an author's filter search.

I am asking how can the search box look up for author's, like it does for the title.

Thanks

A financial contribution is greatly appreciated as a support, to help us to keep live the project.
If you like this project you can donate some piece of BitCoin to this address: bc1qy5tgq6tvrckac2a57unxvqcnxamrvhduve9sj9

federica

You have to modify the author input from selectbox to text, then modify the query to search authors by text (lastname or firstname) instead by author ID.
The search query is located in model/search.php
Al mondo ci sono 10 tipi di persone, quelli che hanno capito il codice binario e quelli che non l'hanno capito.
Informatizzati [url="https://informatizzati.org"]https://informatizzati.org[/url]
Stacca la spina [url="https://disconnessi.org"]https://disconnessi.org[/url]

miguelcorreia

Sorry, I'm struggling a lot with this. I can't find where I change the selectbox to text.

Just to make sure my question was understood, I'm not talking about the filters comboboxes, but on the general search that only gets the tite, subtitle, isbn and catalog... I've also notice it searches inside the review field (fig. attch).

Can you please specify what code should I change, please?
Thanks.

federica

Quote from: miguelcorreiaJust to make sure my question was understood, I'm not talking about the filters comboboxes, but on the general search that only gets the tite, subtitle, isbn and catalog... I've also notice it searches inside the review field (fig. attch).
I will change the description

Quote from: miguelcorreia
Can you please specify what code should I change, please?
Is not possible to obtain your wish through a single line edit
You have to modify the getListQuery function (components/com_abook/search.php)
Al mondo ci sono 10 tipi di persone, quelli che hanno capito il codice binario e quelli che non l'hanno capito.
Informatizzati [url="https://informatizzati.org"]https://informatizzati.org[/url]
Stacca la spina [url="https://disconnessi.org"]https://disconnessi.org[/url]