Bug 9123: Authorities search ordered by authid does not work

Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Tested with Zebra, marc21, grs1.
Discovered that paging through auth search results does no longer work, but that is not related to these changes.

Signed-off-by: Katrin Fischer <Katrin.Fischer.83@web.de>
Tested with Zebra, marc21, dom.
All tests pass.
Signed-off-by: Jared Camins-Esakov <jcamins@cpbibliography.com>

Signed-off-by: Chris Cormack <chris@bigballofwax.co.nz>
Signed-off-by: Liz Rea <liz@catalyst.net.nz>
This commit is contained in:
Fridolyn SOMERS 2012-11-21 11:05:05 +01:00 committed by Liz Rea
parent bd35ea5ff6
commit b44bd1c048
5 changed files with 6 additions and 5 deletions

View File

@ -285,9 +285,9 @@ sub SearchAuthorities {
} elsif ($sortby eq 'HeadingDsc') {
$orderstring = '@attr 7=2 @attr 1=Heading 0';
} elsif ($sortby eq 'AuthidAsc') {
$orderstring = '@attr 7=1 @attr 1=Local-Number 0';
$orderstring = '@attr 7=1 @attr 4=109 @attr 1=Local-Number 0';
} elsif ($sortby eq 'AuthidDsc') {
$orderstring = '@attr 7=2 @attr 1=Local-Number 0';
$orderstring = '@attr 7=2 @attr 4=109 @attr 1=Local-Number 0';
}
$query=($query?$query:"\@attr 1=_ALLRECORDS \@attr 2=103 ''");
$query="\@or $orderstring $query" if $orderstring;

View File

@ -23,6 +23,7 @@ authority-zebra-indexdefs.xsl`
<!-- Original record ID -->
<kohaidx:index_control_field tag="001">
<kohaidx:target_index>Local-Number:w</kohaidx:target_index>
<kohaidx:target_index>Local-Number:n</kohaidx:target_index>
<kohaidx:target_index>Local-Number:s</kohaidx:target_index>
</kohaidx:index_control_field>

View File

@ -46,7 +46,7 @@ authority-zebra-indexdefs.xsl` (substituting the appropriate file names).
</z:index>
</xslo:template>
<xslo:template match="marc:controlfield[@tag='001']">
<z:index name="Local-Number:w Local-Number:s">
<z:index name="Local-Number:w Local-Number:n Local-Number:s">
<xslo:value-of select="."/>
</z:index>
</xslo:template>

View File

@ -11,7 +11,7 @@ systag sysno rank
xpath enable
all any
melm 001 Local-Number,Local-Number:s
melm 001 Local-Number,Local-Number:n,Local-Number:s
melm 942$a authtype:w,authtype:p
# Personal Name

View File

@ -11,7 +11,7 @@ systag sysno rank
xpath enable
all any
melm 001 Local-Number,Local-Number:s
melm 001 Local-Number,Local-Number:n,Local-Number:s
melm 942$a authtype
melm 152$b authtype:w,authtype:p