X-Git-Url: http://koha-dev.rot13.org:8081/gitweb/?a=blobdiff_plain;f=koha-tmpl%2Fopac-tmpl%2Fbootstrap%2Fen%2Fmodules%2Fopac-results.tt;h=afaa7758a4a7a938ea71759f44fc4d721699dfb1;hb=2b0e73b9e1b7f19a55510521a990fa00411157c5;hp=27c5a1058adad82d43d97b1fe79972144b682eaf;hpb=f94d4526e587f41aa6b7ffb1032619b95c0d598b;p=koha_ffzg diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-results.tt b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-results.tt index 27c5a1058a..afaa7758a4 100644 --- a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-results.tt +++ b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-results.tt @@ -1,22 +1,24 @@ +[% USE raw %] +[% USE Asset %] [% USE Koha %] [% SET TagsShowEnabled = ( ( Koha.Preference( 'TagsEnabled' ) == 1 ) && TagsShowOnList ) %] [% SET TagsInputEnabled = ( ( Koha.Preference( 'opacuserlogin' ) == 1 ) && ( Koha.Preference( 'TagsEnabled' ) == 1 ) && TagsInputOnList ) %] [% INCLUDE 'doc-head-open.inc' %] -[% IF ( LibraryNameTitle ) %][% LibraryNameTitle %][% ELSE %]Koha online[% END %] catalog › +[% IF ( LibraryNameTitle ) %][% LibraryNameTitle | html %][% ELSE %]Koha online[% END %] catalog › [% IF ( searchdesc ) %] - Results of search [% IF ( query_desc ) %]for '[% query_desc | html%]'[% END %][% IF ( limit_desc ) %] with limit(s): '[% limit_desc | html %]'[% END %] + Results of search [% IF ( query_desc ) %]for '[% query_desc | html %]'[% END %][% IF ( limit_desc ) %] with limit(s): '[% limit_desc | html %]'[% END %] [% ELSE %] You did not specify any search criteria. -[% END %] +[% END %] [% INCLUDE 'doc-head-close.inc' %] [% IF ( OpacStarRatings == 'all' || Koha.Preference('Babeltheque') ) %] [% BLOCK cssinclude %] - + [% Asset.css("css/jquery.rating.css") | $raw %] [% END %] [% END %] - + [% INCLUDE 'bodytag.inc' bodyid='results' bodyclass='scrollto' %] @@ -27,7 +29,7 @@
  • Home
  • [% IF ( searchdesc ) %] - Results of search [% IF ( query_desc ) %]for '[% query_desc | html%]'[% END %][% IF ( limit_desc ) %] with limit(s): '[% limit_desc | html %]'[% END %] + Results of search [% IF ( query_desc ) %]for '[% query_desc | html %]'[% END %][% IF ( limit_desc ) %] with limit(s): '[% limit_desc | html %]'[% END %] [% ELSE %] You did not specify any search criteria [% END %] @@ -41,19 +43,19 @@ No results found!

    [% IF ( searchdesc ) %] - No results found for that in [% LibraryName %] catalog. Subscribe to this search + No results found for that in [% LibraryName | html %] catalog. Subscribe to this search [% ELSE %] You did not specify any search criteria. [% END %]

    [% IF ( ReturnPath ) %]
    -

    Return to the last advanced search

    +

    Return to the last advanced search

    [% END %] [% IF ( OPACNoResultsFound ) %]
    - [% OPACNoResultsFound %] + [% OPACNoResultsFound | $raw %]
    [% END %] @@ -77,15 +79,15 @@ [% IF ( searchdesc ) %]

    - [% IF ( total ) %]Your search returned [% total |html %] results. + [% IF ( total ) %]Your search returned [% total | html %] results. [% IF ( related ) %] (related searches: [% FOREACH relate IN related %] - [% relate.related_search %] + [% relate.related_search | html %] [% END %] ). [% END %] - Subscribe to this search + Subscribe to this search [% END # / IF total %]

    [% END # / IF searchdesc %] @@ -102,7 +104,7 @@ @@ -110,14 +112,14 @@ [% IF ( total ) %] [% IF ( ReturnPath ) %]
    -

    Return to the last advanced search

    +

    Return to the last advanced search

    [% END %] [% END %] [% IF ( query_error ) %]

    Error:

    - [% query_error %] + [% query_error | html %]
    [% END %] @@ -128,10 +130,10 @@
    [% IF ( searchdesc ) %] [% FOREACH QUERY_INPUT IN QUERY_INPUTS %] - + [% END %] [% FOREACH LIMIT_INPUT IN LIMIT_INPUTS %] - + [% END %] [% END # IF /searchdesc %] @@ -187,14 +189,14 @@ [% # Cell 1: Checkbox %] [% IF Koha.Preference( 'opacbookbag' ) == 1 %] - + [% ELSE %] [% IF Koha.Preference( 'virtualshelves' ) == 1 %] - + [% ELSE %] [% IF Koha.Preference( 'RequestOnOpac' ) == 1 %] [% UNLESS ( SEARCH_RESULT.norequests ) %] - [% IF Koha.Preference( 'opacuserlogin' ) == 1 %] + [% IF Koha.Preference( 'opacuserlogin' ) == 1 %] [% END %] [% END %] [% END # IF RequestOnOpac %] @@ -204,7 +206,7 @@ [% # Cell 2: Show result number if OpacHiddenItems is empty %] [% UNLESS suppress_result_number %] - [% SEARCH_RESULT.result_number %]. + [% SEARCH_RESULT.result_number | html %]. [% END %] @@ -212,51 +214,32 @@ [% # Cell 3: Show item type image %] [% IF ( SEARCH_RESULT.imageurl ) %] - [% SEARCH_RESULT.description %] + [% SEARCH_RESULT.description | html %] [% END %] [% IF ( SEARCH_RESULT.score_avg ) %] - + [% END %] [% END %] - [% IF ( AuthorisedValueImages ) %] - [% # Cell 4: Show Authorized value image %] - - [% FOREACH authorised_value_image IN SEARCH_RESULT.authorised_value_images %] - [% IF ( authorised_value_image.imageurl ) %] - [% authorised_value_image.label %] - [% END %] - [% END %] - - [% END %] - - [% # Cell 5: Search result details and controls %] + [% # Cell 4: Search result details and controls %] -
    - +
    + [% IF ( OPACLocalCoverImages ) %] - + [% END %] [% IF ( OPACAmazonCoverImages ) %] [% IF ( SEARCH_RESULT.normalized_isbn ) %] - [% IF ( using_https ) %] - - [% ELSE %] - - [% END %] + [% ELSE %] No cover image available [% END %] [% END %] [% IF ( SyndeticsEnabled && SyndeticsCoverImages ) %] - [% IF SEARCH_RESULT.normalized_isbn %] - [% IF ( using_https ) %] - - [% ELSE %] - - [% END %] + [% IF ( SEARCH_RESULT.normalized_isbn || SEARCH_RESULT.normalized_upc || SEARCH_RESULT.normalized_oclc ) %] + [% ELSE %] No cover image available [% END %] @@ -264,16 +247,16 @@ [% IF ( GoogleJackets ) %] [% IF ( SEARCH_RESULT.normalized_isbn ) %] - + [% ELSE %] No cover image available [% END %] [% END %] [% IF ( Koha.Preference('Coce') && Koha.Preference('CoceProviders') ) %] - [% coce_id = SEARCH_RESULT.normalized_ean || SEARCH_RESULT.normalized_isbn %] + [% coce_id = SEARCH_RESULT.normalized_ean || SEARCH_RESULT.normalized_isbn | html %] [% IF ( coce_id ) %] - + [% ELSE %] No cover image available [% END %] @@ -281,15 +264,16 @@ [% IF OpenLibraryCovers %] [% IF SEARCH_RESULT.normalized_isbn %] - + [% ELSE %] No cover image available [% END %] [% END %] [% IF ( BakerTaylorEnabled && !BakerTaylorBookstoreURL ) %] - [% IF ( SEARCH_RESULT.normalized_isbn ) %] - See Baker & Taylor + [% bt_id = ( SEARCH_RESULT.normalized_upc || SEARCH_RESULT.normalized_isbn ) | html %] + [% IF ( bt_id ) %] + See Baker & Taylor [% ELSE %] No cover image available [% END %] @@ -297,9 +281,10 @@ [% IF ( BakerTaylorEnabled && BakerTaylorBookstoreURL ) %] - [% IF ( SEARCH_RESULT.normalized_isbn ) %] - - See Baker & Taylor + [% bt_id = ( SEARCH_RESULT.normalized_upc || SEARCH_RESULT.normalized_isbn ) | html %] + [% IF ( bt_id ) %] + + See Baker & Taylor [% ELSE %] No cover image available @@ -309,21 +294,21 @@ [% IF ( IDreamBooksResults && SEARCH_RESULT.normalized_isbn ) %] [% END %]
    [% IF ( COinSinOPACResults && SEARCH_RESULT.coins ) %] - + [% END %] [% IF ( OPACXSLTResultsDisplay ) %] - [% SEARCH_RESULT.XSLTResultsRecord %] + [% SEARCH_RESULT.XSLTResultsRecord | $raw %] [% ELSE %] [% IF ( BiblioDefaultViewmarc ) %] @@ -336,48 +321,48 @@ [% END %] [% IF ( SEARCH_RESULT.title ) %] - [% SEARCH_RESULT.title |html %] + [% SEARCH_RESULT.title | html %] [% ELSE %] No title [% END %] [% FOREACH subtitl IN SEARCH_RESULT.subtitle %] - , [% subtitl.subfield|html %] + , [% subtitl.subfield | html %] [% END %] [% IF ( SEARCH_RESULT.author ) %] - by [% SEARCH_RESULT.author %] + by [% SEARCH_RESULT.author | html %] [% ELSE %]   [% END %] Publication: - [% IF ( SEARCH_RESULT.place ) %][% SEARCH_RESULT.place %] [% END %] - [% IF ( SEARCH_RESULT.publishercode ) %][% SEARCH_RESULT.publishercode|html %][% END %] + [% IF ( SEARCH_RESULT.place ) %][% SEARCH_RESULT.place | html %] [% END %] + [% IF ( SEARCH_RESULT.publishercode ) %][% SEARCH_RESULT.publishercode | html %][% END %] [% IF ( SEARCH_RESULT.publicationyear ) %] - [% SEARCH_RESULT.publicationyear %] + [% SEARCH_RESULT.publicationyear | html %] [% ELSE %] [% IF ( SEARCH_RESULT.copyrightdate ) %] - [% SEARCH_RESULT.copyrightdate %] + [% SEARCH_RESULT.copyrightdate | html %] [% END %] [% END %] - [% IF ( SEARCH_RESULT.pages ) %]. [% SEARCH_RESULT.pages %][% END %] - [% IF ( SEARCH_RESULT.notes ) %], [% SEARCH_RESULT.notes|html %][% END %] - [% IF ( SEARCH_RESULT.size ) %] [% SEARCH_RESULT.size %][% END %] - [% IF ( SEARCH_RESULT.timestamp ) %] (modified on [% SEARCH_RESULT.timestamp %])[% END %] + [% IF ( SEARCH_RESULT.pages ) %]. [% SEARCH_RESULT.pages | html %][% END %] + [% IF ( SEARCH_RESULT.notes ) %], [% SEARCH_RESULT.notes | html %][% END %] + [% IF ( SEARCH_RESULT.size ) %] [% SEARCH_RESULT.size | html %][% END %] + [% IF ( SEARCH_RESULT.timestamp ) %] (modified on [% SEARCH_RESULT.timestamp | html %])[% END %] [% IF ( SEARCH_RESULT.summary ) %] - [% SEARCH_RESULT.summary %] + [% SEARCH_RESULT.summary | html %] [% END %] [% IF ( SEARCH_RESULT.copyrightdate ) %] Date: - [% SEARCH_RESULT.copyrightdate %] + [% SEARCH_RESULT.copyrightdate | html %] [% END %] @@ -393,23 +378,23 @@ [% END %] [% IF ( singleBranchMode ) %] - [% available_items_loo.location %] + [% available_items_loo.location | html %] [% ELSE %] - [% available_items_loo.branchname %] + [% available_items_loo.branchname | html %] [% END %] [% IF ( OPACItemsResultsDisplay ) %] - [% UNLESS ( singleBranchMode ) %][% available_items_loo.location %][% END %] - [% IF ( available_items_loo.itemcallnumber ) %][[% available_items_loo.itemcallnumber %]][% END %] + [% UNLESS ( singleBranchMode ) %][% available_items_loo.location | html %][% END %] + [% IF ( available_items_loo.itemcallnumber ) %][[% available_items_loo.itemcallnumber | html %]][% END %] [% END %] - ([% available_items_loo.count %]), + ([% available_items_loo.count | html %]), [% END # / FOREACH available_items_loo %] [% ELSE %] [% IF ( SEARCH_RESULT.ALTERNATEHOLDINGS ) %] [% FOREACH ALTERNATEHOLDING IN SEARCH_RESULT.ALTERNATEHOLDINGS %] -  [% ALTERNATEHOLDING.holding %], +  [% ALTERNATEHOLDING.holding | html %], [% END %] [% ELSE %] No items available: @@ -417,13 +402,13 @@ [% END # / IF SEARCH_RESULT.available_items_loop.size %] - [% IF ( SEARCH_RESULT.onloancount ) %] Checked out ([% SEARCH_RESULT.onloancount %]), [% END %] - [% IF ( SEARCH_RESULT.withdrawncount ) %] Withdrawn ([% SEARCH_RESULT.withdrawncount %]), [% END %] - [% UNLESS ( SEARCH_RESULT.hidelostitems ) %][% IF ( SEARCH_RESULT.itemlostcount ) %] Lost ([% SEARCH_RESULT.itemlostcount %]),[% END %][% END %] - [% IF ( SEARCH_RESULT.damagedcount ) %] Damaged ([% SEARCH_RESULT.damagedcount %]),[% END %] - [% IF ( SEARCH_RESULT.orderedcount ) %] On order ([% SEARCH_RESULT.orderedcount %]),[% END %] - [% IF ( SEARCH_RESULT.onholdcount ) %] On hold ([% SEARCH_RESULT.onholdcount %]),[% END %] - [% IF ( SEARCH_RESULT.intransitcount ) %] In transit ([% SEARCH_RESULT.intransitcount %]),[% END %] + [% IF ( SEARCH_RESULT.onloancount ) %] Checked out ([% SEARCH_RESULT.onloancount | html %]), [% END %] + [% IF ( SEARCH_RESULT.withdrawncount ) %] Withdrawn ([% SEARCH_RESULT.withdrawncount | html %]), [% END %] + [% UNLESS ( SEARCH_RESULT.hidelostitems ) %][% IF ( SEARCH_RESULT.itemlostcount ) %] Lost ([% SEARCH_RESULT.itemlostcount | html %]),[% END %][% END %] + [% IF ( SEARCH_RESULT.damagedcount ) %] Damaged ([% SEARCH_RESULT.damagedcount | html %]),[% END %] + [% IF ( SEARCH_RESULT.orderedcount ) %] On order ([% SEARCH_RESULT.orderedcount | html %]),[% END %] + [% IF ( SEARCH_RESULT.onholdcount ) %] On hold ([% SEARCH_RESULT.onholdcount | html %]),[% END %] + [% IF ( SEARCH_RESULT.intransitcount ) %] In transit ([% SEARCH_RESULT.intransitcount | html %]),[% END %] [% END # / IF OPACXSLTResultsDisplay %] @@ -432,24 +417,24 @@
    [% FOREACH i IN [ 1 2 3 4 5 ] %] [% IF ( SEARCH_RESULT.score_int >= i ) %] - + [% ELSE %] - + [% END %] [% END %] -    [% SEARCH_RESULT.score_avg %] / 5 (on [% SEARCH_RESULT.num_scores %] rates) +    [% SEARCH_RESULT.score_avg | html %] / 5 (on [% SEARCH_RESULT.num_scores | html %] rates) [% IF ( SEARCH_RESULT.num_critics ) %] - + [% END %] [% IF ( SEARCH_RESULT.num_critics_pro ) %] - + [% END %] [% IF ( SEARCH_RESULT.num_videos ) %] - + [% END %] [% IF ( SEARCH_RESULT.num_quotations ) %] - + [% END %]
    [% END # / IF SEARCH_RESULT.score_avg %] @@ -464,36 +449,48 @@
    [% END %] + [% IF Koha.Preference('virtualshelves') AND SEARCH_RESULT.shelves.count %] +
    + Lists: +
      + [% FOREACH shelf IN SEARCH_RESULT.shelves %] +
    • [% shelf.shelfname | html %]
    • + [%~ UNLESS loop.last %], [% ELSE %].[% END ~%] + [% END %] +
    + +
    + [% END %] + [% IF ( SEARCH_RESULT.searchhighlightblob ) %] Match: - [% SEARCH_RESULT.searchhighlightblob %] + [% SEARCH_RESULT.searchhighlightblob | html %] [% END %] [% IF ( OpacStarRatings == 'all' ) %]
    + [% SET rating_avg = SEARCH_RESULT.ratings.get_avg_rating() %] + [% rating_avg_int = BLOCK %][% rating_avg | format("%.0f") %][% END %] [% FOREACH i IN [ 1 2 3 4 5 ] %] - [% IF ( SEARCH_RESULT.rating_avg == i ) %] - - [% ELSE %] - + [% IF rating_avg_int == i %] + + [% ELSE %] + [% END %] [% END %] - - - - [% IF SEARCH_RESULT.rating_total && SEARCH_RESULT.rating_total > 0 %] -   ([% SEARCH_RESULT.rating_total %] votes) + [% IF SEARCH_RESULT.ratings.count > 0 %] +   ([% SEARCH_RESULT.ratings.count | html %] votes) [% ELSE %]
    [% END %] @@ -504,21 +501,27 @@ [% IF Koha.Preference( 'RequestOnOpac' ) == 1 %] [% UNLESS ( SEARCH_RESULT.norequests ) %] [% IF ( Koha.Preference( 'opacuserlogin' ) == 1 ) %] - Place hold + Place hold [% END # / IF opacuserlogin && holdable %] [% END # UNLESS SEARCH_RESULT.norequests %] [% END # IF RequestOnOpac %] + [% IF ( Koha.Preference( 'opacuserlogin' ) == 1 ) %] + [% IF SEARCH_RESULT.artreqpossible %] + Request article + [% END %] + [% END %] + [% IF ( TagsInputEnabled ) %] [% IF ( loggedinusername ) %] - Add tag - + + [% INCLUDE "openlibrary-readapi.inc" bib = SEARCH_RESULT %] + [% END # / FOREACH SEARCH_RESULT %] @@ -554,16 +560,22 @@ [% END # / IF total %] - [% IF Koha.Preference( 'suggestion' ) == 1 %] - [% IF Koha.Preference( 'AnonSuggestions' ) == 1 %] -
    Not finding what you're looking for?
    Make a purchase suggestion
    - [% ELSE %] - [% IF ( loggedinusername ) %] -
    - Not finding what you're looking for?
    Make a purchase suggestion -
    - [% END %] - [% END %] + [% IF Koha.Preference( 'suggestion' ) == 1 && ( Koha.Preference( 'AnonSuggestions' ) == 1 || loggedinusername || Koha.Preference( 'ILLModule' ) == 1 ) %] +
    + Not finding what you're looking for? + +
    [% END %]
    @@ -574,17 +586,14 @@ [% INCLUDE 'opac-bottom.inc' %] [% BLOCK jsinclude %] [% IF ( LibraryThingForLibrariesID ) %] - [% IF ( using_https ) %] - - [% ELSE %] - - [% END %] + [% END %] -[% IF ( OpacStarRatings == 'all' || Koha.Preference('Babeltheque') ) %][% END %] -[% IF ( OverDriveEnabled ) %][% END %] - -[% IF ( OpacHighlightedWords ) %] -[% END %]