@@ -, +, @@ --- C4/Search.pm | 7 +- .../prog/en/modules/catalogue/results.tt | 6 ++- .../prog/en/xslt/MARC21slim2intranetResults.xsl | 43 ++++++++++++ .../prog/en/xslt/UNIMARCslim2intranetResults.xsl | 69 ++++++++++++++++++++ 4 files changed, 120 insertions(+), 5 deletions(-) create mode 100644 koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slim2intranetResults.xsl create mode 100644 koha-tmpl/intranet-tmpl/prog/en/xslt/UNIMARCslim2intranetResults.xsl --- a/C4/Search.pm +++ a/C4/Search.pm @@ -1743,12 +1743,11 @@ sub searchResults { use C4::Charset; SetUTF8Flag($marcrecord); $debug && warn $marcrecord->as_formatted; - if (!$scan && $search_context eq 'opac' && C4::Context->preference("OPACXSLTResultsDisplay")) { - # FIXME note that XSLTResultsDisplay (use of XSLT to format staff interface bib search results) - # is not implemented yet + my $interface = $search_context eq 'opac' ? 'OPAC' : ''; + if (!$scan && C4::Context->preference($interface . "XSLTResultsDisplay")) { $oldbiblio->{XSLTResultsRecord} = XSLTParse4Display($oldbiblio->{biblionumber}, $marcrecord, 'Results', $search_context, 1); - # the last parameter tells Koha to clean up the problematic ampersand entities that Zebra outputs + # the last parameter tells Koha to clean up the problematic ampersand entities that Zebra outputs } --- a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/results.tt +++ a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/results.tt @@ -439,8 +439,11 @@ YAHOO.util.Event.onContentReady("searchheader", function () { + [% IF ( SEARCH_RESULT.XSLTResultsRecord ) %] + [% SEARCH_RESULT.XSLTResultsRecord %] + [% ELSE %]

[% SEARCH_RESULT.result_number %]. - [% biblionumber = SEARCH_RESULT.biblionumber %] + [% biblionumber = SEARCH_RESULT.biblionumber %] [% INCLUDE 'biblio-default-view.inc' %] [% IF ( SEARCH_RESULT.title ) %][% SEARCH_RESULT.title |html %][% ELSE %]No title[% END %] @@ -495,6 +498,7 @@ YAHOO.util.Event.onContentReady("searchheader", function () { [% END %] [% END %] + [% END %]

[% IF ( SEARCH_RESULT.norequests ) %] No holds allowed [% ELSE %] --- a/koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slim2intranetResults.xsl +++ a/koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slim2intranetResults.xsl @@ -0,0 +1,43 @@ + + + + + + + + + + + + + + + + + + + + + + + /cgi-bin/koha/catalogue/detail.pl?biblionumber= + + + + + : + + + + : + + + + + + + --- a/koha-tmpl/intranet-tmpl/prog/en/xslt/UNIMARCslim2intranetResults.xsl +++ a/koha-tmpl/intranet-tmpl/prog/en/xslt/UNIMARCslim2intranetResults.xsl @@ -0,0 +1,69 @@ + + + + + + + + + + + + + + + + + + + + + + /cgi-bin/koha/catalogue/detail.pl?biblionumber= + + + + + + + : + + + + [ + + ] + + + : + + + + : + + + + / + + + + ; + + + + + + + + + + + + + + --