View | Details | Raw Unified | Return to bug 22434
Collapse All | Expand All

(-)a/koha-tmpl/intranet-tmpl/prog/en/includes/biblio-search-link.inc (+6 lines)
Line 0 Link Here
1
[%~ SET query = '' ~%]
2
[%~ IF index ~%]
3
    [%~ query = query _ index _ ':' ~%]
4
[%~ END ~%]
5
[%~ query = query _ '"' _ term _ '"' ~%]
6
<a href="/cgi-bin/koha/catalogue/search.pl?q=[% query | uri %]">[% term | html %]</a>
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/results.tt (-4 / +10 lines)
Lines 436-442 Link Here
436
                                        [% IF ( SEARCH_RESULT.size ) %] ; [% SEARCH_RESULT.size | html %][% END %]</span> [% IF ( SEARCH_RESULT.isbn ) %]<span class="results_isbn">ISBN: [% SEARCH_RESULT.isbn | replace('\s\|', ', ') | html %]</span>[% END %]
436
                                        [% IF ( SEARCH_RESULT.size ) %] ; [% SEARCH_RESULT.size | html %][% END %]</span> [% IF ( SEARCH_RESULT.isbn ) %]<span class="results_isbn">ISBN: [% SEARCH_RESULT.isbn | replace('\s\|', ', ') | html %]</span>[% END %]
437
                                        <span class="results_itemtype">[% SEARCH_RESULT.description | html %]</span>
437
                                        <span class="results_itemtype">[% SEARCH_RESULT.description | html %]</span>
438
                                        [% IF ( SEARCH_RESULT.timestamp ) %] <i>(modified on [% SEARCH_RESULT.timestamp | html %])</i>[% END %]
438
                                        [% IF ( SEARCH_RESULT.timestamp ) %] <i>(modified on [% SEARCH_RESULT.timestamp | html %])</i>[% END %]
439
                                        [% IF ( SEARCH_RESULT.cn_class ) %][<a href="/cgi-bin/koha/catalogue/search.pl?idx=callnum&amp;q=%22[% SEARCH_RESULT.cn_class |uri %]%22">[% SEARCH_RESULT.cn_class | html %]</a>][% END %]
439
                                        [% IF ( SEARCH_RESULT.cn_class ) %]&#91;[% INCLUDE 'biblio-search-link.inc' index='callnum' term=SEARCH_RESULT.cn_class %]&#93;[% END %]
440
                                    </p>
440
                                    </p>
441
                                    [% IF ( SEARCH_RESULT.searchhighlightblob ) %]<p class="searchhighlightblob">[% SEARCH_RESULT.searchhighlightblob | html %]</p>[% END %]
441
                                    [% IF ( SEARCH_RESULT.searchhighlightblob ) %]<p class="searchhighlightblob">[% SEARCH_RESULT.searchhighlightblob | html %]</p>[% END %]
442
442
Lines 509-515 Link Here
509
                                        [% END %]
509
                                        [% END %]
510
                                        [% IF ( available_items_loo.branchname ) %][% available_items_loo.branchname | html %][% END %]
510
                                        [% IF ( available_items_loo.branchname ) %][% available_items_loo.branchname | html %][% END %]
511
                                        [% IF ( available_items_loo.location ) %][% available_items_loo.location | html %][% END %]
511
                                        [% IF ( available_items_loo.location ) %][% available_items_loo.location | html %][% END %]
512
                                        [% IF ( available_items_loo.itemcallnumber ) %][<a href="/cgi-bin/koha/catalogue/search.pl?idx=callnum&amp;q=%22[% available_items_loo.itemcallnumber |uri %]%22">[% available_items_loo.itemcallnumber | html %]</a>][% END %]
512
                                        [% IF ( available_items_loo.itemcallnumber ) %]
513
                                            &#91;[% INCLUDE 'biblio-search-link.inc' index='callnum' term=available_items_loo.itemcallnumber %]&#93;
514
                                        [% END %]
513
                                        ([% available_items_loo.count | html %])
515
                                        ([% available_items_loo.count | html %])
514
                                        [% IF item_level_itypes && available_items_loo.description %]
516
                                        [% IF item_level_itypes && available_items_loo.description %]
515
                                        <br/>[% available_items_loo.description | html %]
517
                                        <br/>[% available_items_loo.description | html %]
Lines 531-537 Link Here
531
                                        [% END %]
533
                                        [% END %]
532
                                        [% IF ( onloan_items_loo.branchname ) %][% onloan_items_loo.branchname | html %][% END %]
534
                                        [% IF ( onloan_items_loo.branchname ) %][% onloan_items_loo.branchname | html %][% END %]
533
                                        [% IF ( onloan_items_loo.location ) %][% onloan_items_loo.location | html %][% END %]
535
                                        [% IF ( onloan_items_loo.location ) %][% onloan_items_loo.location | html %][% END %]
534
                                        [% IF ( onloan_items_loo.itemcallnumber ) %][<a href="/cgi-bin/koha/catalogue/search.pl?idx=callnum&amp;q=%22[% onloan_items_loo.itemcallnumber |uri %]%22">[% onloan_items_loo.itemcallnumber | html %]</a>][% END %]
536
                                        [% IF ( onloan_items_loo.itemcallnumber ) %]
537
                                            &#91;[% INCLUDE 'biblio-search-link.inc' index='callnum' term=available_items_loo.itemcallnumber %]&#93;
538
                                        [% END %]
535
                                        ([% onloan_items_loo.count | html %][% IF ( onloan_items_loo.longoverdue ) %], [% onloan_items_loo.longoverdue | html %] long overdue[% END %]) date due: [% onloan_items_loo.due_date | $KohaDates %]
539
                                        ([% onloan_items_loo.count | html %][% IF ( onloan_items_loo.longoverdue ) %], [% onloan_items_loo.longoverdue | html %] long overdue[% END %]) date due: [% onloan_items_loo.due_date | $KohaDates %]
536
                                        [% IF item_level_itypes && onloan_items_loo.description %]
540
                                        [% IF item_level_itypes && onloan_items_loo.description %]
537
                                        <br/>[% onloan_items_loo.description | html %]
541
                                        <br/>[% onloan_items_loo.description | html %]
Lines 553-559 Link Here
553
                                        [% END %]
557
                                        [% END %]
554
                                        [% IF ( other_items_loo.branchname ) %][% other_items_loo.branchname | html %][% END %]
558
                                        [% IF ( other_items_loo.branchname ) %][% other_items_loo.branchname | html %][% END %]
555
                                        [% IF ( other_items_loo.location ) %][% other_items_loo.location | html %][% END %]
559
                                        [% IF ( other_items_loo.location ) %][% other_items_loo.location | html %][% END %]
556
                                        [% IF ( other_items_loo.itemcallnumber ) %][<a href="/cgi-bin/koha/catalogue/search.pl?idx=callnum&amp;q=%22[% other_items_loo.itemcallnumber |uri %]%22">[% other_items_loo.itemcallnumber | html %]</a>][% END %]
560
                                        [% IF ( other_items_loo.itemcallnumber ) %]
561
                                            &#91;[% INCLUDE 'biblio-search-link.inc' index='callnum' term=other_items_loo.itemcallnumber %]&#93;
562
                                        [% END %]
557
                                        [% IF ( other_items_loo.withdrawn ) %]([% AuthorisedValues.GetByCode( 'WITHDRAWN', other_items_loo.withdrawn ) | html %])[% END %]
563
                                        [% IF ( other_items_loo.withdrawn ) %]([% AuthorisedValues.GetByCode( 'WITHDRAWN', other_items_loo.withdrawn ) | html %])[% END %]
558
                                        [% IF ( other_items_loo.itemlost ) %]([% AuthorisedValues.GetByCode( 'LOST', other_items_loo.itemlost ) | html %])[% END %]
564
                                        [% IF ( other_items_loo.itemlost ) %]([% AuthorisedValues.GetByCode( 'LOST', other_items_loo.itemlost ) | html %])[% END %]
559
                                        [% IF ( other_items_loo.damaged ) %]([% AuthorisedValues.GetByCode( 'DAMAGED', other_items_loo.damaged ) | html %])[% END %]
565
                                        [% IF ( other_items_loo.damaged ) %]([% AuthorisedValues.GetByCode( 'DAMAGED', other_items_loo.damaged ) | html %])[% END %]
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/addbooks.tt (-6 / +1 lines)
Lines 105-116 Link Here
105
                            [% items_loo.count | html %] [% items_loo.branchname | html %]
105
                            [% items_loo.count | html %] [% items_loo.branchname | html %]
106
                            <i>
106
                            <i>
107
                        [% IF ( items_loo.location ) %][% items_loo.location | html %][% END %]
107
                        [% IF ( items_loo.location ) %][% items_loo.location | html %][% END %]
108
                        [% IF ( items_loo.itemcallnumber ) %][% items_loo.itemcallnumber | html %][% END %]
108
                            [% IF ( items_loo.itemcallnumber ) %]&#91;[% INCLUDE 'biblio-search-link.inc' index='callnum' term=items_loo.itemcallnumber %]&#93;[% END %]
109
                            [% IF ( items_loo.classification ) %]
110
                            <a href="/cgi-bin/koha/catalogue/search.pl?q=callnum:[% items_loo.classification |url %]">
111
                                [% items_loo.classification | html %]
112
                            </a>
113
                        [% END %]
114
                        </i>
109
                        </i>
115
                            <br />
110
                            <br />
116
                        [% END %]
111
                        [% END %]
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/virtualshelves/shelves.tt (-3 / +1 lines)
Lines 239-247 Link Here
239
                <ul>
239
                <ul>
240
                [% FOREACH result IN itemsloo.ITEM_RESULTS %]
240
                [% FOREACH result IN itemsloo.ITEM_RESULTS %]
241
                    <li>[% result.holdingbranch | html %] [% IF ( result.location_intranet ) %] ([% result.location_intranet | html %]) [% END %]
241
                    <li>[% result.holdingbranch | html %] [% IF ( result.location_intranet ) %] ([% result.location_intranet | html %]) [% END %]
242
                        [% IF ( result.itemcallnumber ) %]
242
                        [% IF ( result.itemcallnumber ) %]&#91;[% INCLUDE 'biblio-search-link.inc' index='callnum' term=result.itemcallnumber %]&#93;[% END %]
243
                            [<a href="/cgi-bin/koha/catalogue/search.pl?idx=callnum&amp;q=%22[% result.itemcallnumber |uri %]%22">[% result.itemcallnumber | html %]</a>]
244
                        [% END %]
245
                    </li>
243
                    </li>
246
                [% END %]
244
                [% END %]
247
                </ul>
245
                </ul>
(-)a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-results-grouped.tt (-2 / +2 lines)
Lines 213-219 Link Here
213
                                                                            [% IF ( available_items_loo.branchname ) %][% available_items_loo.branchname | html %][% END %]
213
                                                                            [% IF ( available_items_loo.branchname ) %][% available_items_loo.branchname | html %][% END %]
214
                                                                            [% IF ( OPACItemsResultsDisplay ) %]
214
                                                                            [% IF ( OPACItemsResultsDisplay ) %]
215
                                                                                [% IF ( available_items_loo.location ) %][% available_items_loo.location | html %][% END %]
215
                                                                                [% IF ( available_items_loo.location ) %][% available_items_loo.location | html %][% END %]
216
                                                                                [% IF ( available_items_loo.itemcallnumber ) %][<a href="/cgi-bin/koha/opac-search.pl?q=callnum:[% available_items_loo.itemcallnumber |url %]">[% available_items_loo.itemcallnumber | html %]</a>][% END %]
216
                                                                                [% IF ( available_items_loo.itemcallnumber ) %][<a href="/cgi-bin/koha/opac-search.pl?q=callnum:[% available_items_loo.itemcallnumber |uri %]">[% available_items_loo.itemcallnumber | html %]</a>][% END %]
217
                                                                            [% END %]
217
                                                                            [% END %]
218
                                                                            ([% available_items_loo.count | html %]),
218
                                                                            ([% available_items_loo.count | html %]),
219
                                                                        [% END # / FOREACH available_items_loo %]
219
                                                                        [% END # / FOREACH available_items_loo %]
Lines 245-251 Link Here
245
                                                                <img src="[% themelang | html %]/images/[% GROUP_RESULT.itemtype | html %].gif" alt="[% GROUP_RESULT.ccode | html %]" title="[% GROUP_RESULT.ccode | html %]" />
245
                                                                <img src="[% themelang | html %]/images/[% GROUP_RESULT.itemtype | html %].gif" alt="[% GROUP_RESULT.ccode | html %]" title="[% GROUP_RESULT.ccode | html %]" />
246
                                                                [% IF ( ( Koha.Preference( 'opacbookbag' ) = 1 ) || ( Koha.Preference( 'virtualshelves' ) == 1 ) ) %]</label>[% END %]
246
                                                                [% IF ( ( Koha.Preference( 'opacbookbag' ) = 1 ) || ( Koha.Preference( 'virtualshelves' ) == 1 ) ) %]</label>[% END %]
247
                                                                [% IF ( GROUP_RESULT.classification ) %]
247
                                                                [% IF ( GROUP_RESULT.classification ) %]
248
                                                                    <a href="/cgi-bin/koha/opac-search.pl?q=callnum:[% GROUP_RESULT.classification |url %]"> [% GROUP_RESULT.classification | html %] </a>
248
                                                                    <a href="/cgi-bin/koha/opac-search.pl?q=callnum:[% GROUP_RESULT.classification |uri %]"> [% GROUP_RESULT.classification | html %] </a>
249
                                                                [% END %]
249
                                                                [% END %]
250
                                                            </p>
250
                                                            </p>
251
                                                        </td>
251
                                                        </td>
(-)a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-results.tt (-2 / +1 lines)
Lines 404-410 Link Here
404
404
405
                                                                        [% IF ( OPACItemsResultsDisplay ) %]
405
                                                                        [% IF ( OPACItemsResultsDisplay ) %]
406
                                                                            [% UNLESS ( singleBranchMode ) %][% available_items_loo.location | html %][% END %]
406
                                                                            [% UNLESS ( singleBranchMode ) %][% available_items_loo.location | html %][% END %]
407
                                                                            [% IF ( available_items_loo.itemcallnumber ) %][<a href="/cgi-bin/koha/opac-search.pl?q=callnum:%22[% available_items_loo.itemcallnumber |url %]%22">[% available_items_loo.itemcallnumber | html %]</a>][% END %]
407
                                                                            [% IF ( available_items_loo.itemcallnumber ) %][<a href="/cgi-bin/koha/opac-search.pl?q=callnum:%22[% available_items_loo.itemcallnumber |uri %]%22">[% available_items_loo.itemcallnumber | html %]</a>][% END %]
408
                                                                        [% END %]
408
                                                                        [% END %]
409
                                                                        ([% available_items_loo.count | html %]),
409
                                                                        ([% available_items_loo.count | html %]),
410
                                                                        </span>
410
                                                                        </span>
411
- 

Return to bug 22434