[Koha-devel] Sort by title. Based only on Title or also on Title-cover ?

Tomas Cohen Arazi tomascohen at gmail.com
Fri May 29 14:30:10 CEST 2015


It is sorting using the 'Title' index. Look at the URL in the OPAC, it
contains sort_by=title_az.

Then look for title_az on C4/Search.pm. You will notice it does:

    $sort_by .= "1=4 <i ";

and then if you look at bib1.att, you will see:

att 4    Title

So that's it.

Hope it helps.

2015-05-29 4:51 GMT-03:00 Tajoli Zeno <z.tajoli at cineca.it>:

> Hi,
>
> reading from
> etc/zebradb/marc_defs/marc21/biblios/biblio-koha-indexdefs.xml I see that
> from 245 $a are crerated two indexes:
> Title and Title-cover:
>
> <index_subfields tag="245" subfields="a">
>      <target_index>Title-cover:w</target_index>
>      <target_index>Title-cover:p</target_index>
>      <target_index>Title-cover:s</target_index>
>      <target_index>Title:w</target_index>
>      <target_index>Title:p</target_index>
>      <target_index>Title:s</target_index>
> </index_subfields>
>
> Sort by title (A-Z) and (Z-A) in opac are based only on 'Title' Zebra
> index or also on Title-cover ?
> It is not clear for me.
>
> Bye
> Zeno Tajoli
> _______________________________________________
> Koha-devel mailing list
> Koha-devel at lists.koha-community.org
> http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-devel
> website : http://www.koha-community.org/
> git : http://git.koha-community.org/
> bugs : http://bugs.koha-community.org/
>



-- 
Tomás Cohen Arazi
Prosecretaría de Informática
Universidad Nacional de Córdoba
✆ +54 351 5353750 ext 13168
GPG: B76C 6E7C 2D80 551A C765  E225 0A27 2EA1 B2F3 C15F
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.koha-community.org/pipermail/koha-devel/attachments/20150529/f6ab0429/attachment.html>


More information about the Koha-devel mailing list