Authors name saparated by ; in category listing

Started by BeniaminQB, 07 November 2011, 17:36:48

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

BeniaminQB

I would like to have the authors name saparated by ; instead of , in the category listing. I managed to do it in search results, and book details, but not in category listing.

See the image for details

Thanks in advance for your support.

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

BeniaminQB

Never mind, solved. I didi it editing separator in /models/ files.

federica

Hi BeniaminQB,
ok, this is the only one solution.
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]

cutare

BeniaminQB, how did you do exactly? where and what you changed?

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

Hi cutare,
open the file <your_site>/components/com_abook/models/category.php
modify the row n°198 from:
$query = "SELECT idbook, GROUP_CONCAT(name ORDER BY name ASC SEPARATOR ', ') AS author "
to:
$query = "SELECT idbook, GROUP_CONCAT(name ORDER BY name ASC SEPARATOR '; ') AS author "

open the file <your_site>/components/com_abook/models/search.php
modify the row n°193 from:
$query = "SELECT idbook, GROUP_CONCAT(name ORDER BY name ASC SEPARATOR ', ') AS author "
to:
$query = "SELECT idbook, GROUP_CONCAT(name ORDER BY name ASC SEPARATOR '; ') AS author "

open the file <your_site>/components/com_abook/models/author.php
modify the row n°139 from:
$this->_authorname = implode(', ', $this->_authorname);
to:
$this->_authorname = implode('; ', $this->_authorname);
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]