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

(-)a/C4/Items.pm (-1 / +10 lines)
Lines 1221-1227 sub GetItemsInfo { Link Here
1221
           itemtypes.notforloan as notforloan_per_itemtype,
1221
           itemtypes.notforloan as notforloan_per_itemtype,
1222
           holding.branchurl,
1222
           holding.branchurl,
1223
           holding.branchname,
1223
           holding.branchname,
1224
           holding.opac_info as branch_opac_info
1224
           holding.opac_info as branch_opac_info,
1225
           home.branchurl AS homebranchurl
1225
     FROM items
1226
     FROM items
1226
     LEFT JOIN branches AS holding ON items.holdingbranch = holding.branchcode
1227
     LEFT JOIN branches AS holding ON items.holdingbranch = holding.branchcode
1227
     LEFT JOIN branches AS home ON items.homebranch=home.branchcode
1228
     LEFT JOIN branches AS home ON items.homebranch=home.branchcode
Lines 1273-1278 sub GetItemsInfo { Link Here
1273
        if ( my $bdata = $bsth->fetchrow_hashref ) {
1274
        if ( my $bdata = $bsth->fetchrow_hashref ) {
1274
            $data->{'branchname'} = $bdata->{'branchname'};
1275
            $data->{'branchname'} = $bdata->{'branchname'};
1275
        }
1276
        }
1277
        $bsth = $dbh->prepare(
1278
            "SELECT * FROM branches WHERE branchcode = ?
1279
        "
1280
        );
1281
        $bsth->execute( $data->{'homebranch'} );
1282
        if ( my $bdata = $bsth->fetchrow_hashref ) {
1283
            $data->{'homebranchname'} = $bdata->{'branchname'};
1284
        }
1276
        $data->{'datedue'}        = $datedue;
1285
        $data->{'datedue'}        = $datedue;
1277
1286
1278
        # get notforloan complete status if applicable
1287
        # get notforloan complete status if applicable
(-)a/installer/data/mysql/sysprefs.sql (+3 lines)
Lines 358-363 INSERT INTO systempreferences (variable,value,options,explanation,type) VALUES ( Link Here
358
INSERT INTO systempreferences (variable,value,explanation,options,type) VALUES ('OpacStarRatings','all',NULL,'disable|all|details','Choice');
358
INSERT INTO systempreferences (variable,value,explanation,options,type) VALUES ('OpacStarRatings','all',NULL,'disable|all|details','Choice');
359
INSERT INTO systempreferences (variable,value,explanation,options,type) VALUES('OpacBrowseResults','1','Disable/enable browsing and paging search results from the OPAC detail page.',NULL,'YesNo');
359
INSERT INTO systempreferences (variable,value,explanation,options,type) VALUES('OpacBrowseResults','1','Disable/enable browsing and paging search results from the OPAC detail page.',NULL,'YesNo');
360
INSERT INTO systempreferences (variable,value,explanation,options,type) VALUES('SvcMaxReportRows','10','Maximum number of rows to return via the report web service.',NULL,'Integer');
360
INSERT INTO systempreferences (variable,value,explanation,options,type) VALUES('SvcMaxReportRows','10','Maximum number of rows to return via the report web service.',NULL,'Integer');
361
<<<<<<< HEAD
361
INSERT INTO systempreferences (variable,value,options,explanation,type) VALUES ('decreaseLoanHighHolds', NULL, '', 'Decreases the loan period for items with number of holds above the threshold specified in decreaseLoanHighHoldsValue', 'YesNo');
362
INSERT INTO systempreferences (variable,value,options,explanation,type) VALUES ('decreaseLoanHighHolds', NULL, '', 'Decreases the loan period for items with number of holds above the threshold specified in decreaseLoanHighHoldsValue', 'YesNo');
362
INSERT INTO systempreferences (variable,value,options,explanation,type) VALUES ('decreaseLoanHighHoldsValue', NULL, '', 'Specifies a threshold for the minimum number of holds needed to trigger a reduction in loan duration (used with decreaseLoanHighHolds)', 'Integer');
363
INSERT INTO systempreferences (variable,value,options,explanation,type) VALUES ('decreaseLoanHighHoldsValue', NULL, '', 'Specifies a threshold for the minimum number of holds needed to trigger a reduction in loan duration (used with decreaseLoanHighHolds)', 'Integer');
363
INSERT INTO systempreferences (variable,value,options,explanation,type) VALUES ('decreaseLoanHighHoldsDuration', NULL, '', 'Specifies a number of days that a loan is reduced to when used in conjunction with decreaseLoanHighHolds', 'Integer');
364
INSERT INTO systempreferences (variable,value,options,explanation,type) VALUES ('decreaseLoanHighHoldsDuration', NULL, '', 'Specifies a number of days that a loan is reduced to when used in conjunction with decreaseLoanHighHolds', 'Integer');
Lines 382-384 INSERT INTO systempreferences (variable,value,explanation,options,type) VALUES(' Link Here
382
INSERT INTO systempreferences (variable,value,explanation,options,type) VALUES('OpacMainUserBlockMobile','','Show the following HTML in its own column on the main page of the OPAC (mobile version):',NULL,'free');
383
INSERT INTO systempreferences (variable,value,explanation,options,type) VALUES('OpacMainUserBlockMobile','','Show the following HTML in its own column on the main page of the OPAC (mobile version):',NULL,'free');
383
INSERT INTO systempreferences (variable,value,explanation,options,type) VALUES('OpacShowLibrariesPulldownMobile','1','Show the libraries pulldown on the mobile version of the OPAC.',NULL,'YesNo');
384
INSERT INTO systempreferences (variable,value,explanation,options,type) VALUES('OpacShowLibrariesPulldownMobile','1','Show the libraries pulldown on the mobile version of the OPAC.',NULL,'YesNo');
384
INSERT INTO systempreferences (variable,value,explanation,options,type) VALUES('OpacShowFiltersPulldownMobile','1','Show the search filters pulldown on the mobile version of the OPAC.',NULL,'YesNo');
385
INSERT INTO systempreferences (variable,value,explanation,options,type) VALUES('OpacShowFiltersPulldownMobile','1','Show the search filters pulldown on the mobile version of the OPAC.',NULL,'YesNo');
386
INSERT INTO systempreferences (variable,value,options,explanation,type) VALUES ('OpacLocationBranchToDisplay',  'holding',  'holding|home|both',  'In the OPAC, under location show which branch for Location in the record details.',  'Choice');
387
INSERT INTO systempreferences (variable,value,options,explanation,type) VALUES ('OpacLocationBranchToDisplayShelving',  'holding',  'holding|home|both',  'In the OPAC, display the shelving location under which which column.',  'Choice');
(-)a/installer/data/mysql/updatedatabase.pl (+7 lines)
Lines 5952-5957 if (C4::Context->preference("Version") < TransformToNum($DBversion)) { Link Here
5952
    SetVersion ($DBversion);
5952
    SetVersion ($DBversion);
5953
}
5953
}
5954
5954
5955
$DBversion = "3.09.00.XXX";
5956
if ( C4::Context->preference("Version") < TransformToNum($DBversion) ) {
5957
    $dbh->do("INSERT INTO systempreferences (variable,value,options,explanation,type) VALUES ('OpacLocationBranchToDisplay',  'holding',  'holding|home|both',  'In the OPAC, under location show which branch for Location in the record details.',  'Choice')");
5958
    $dbh->do("INSERT INTO systempreferences (variable,value,options,explanation,type) VALUES ('OpacLocationBranchToDisplayShelving',  'holding',  'holding|home|both',  'In the OPAC, display the shelving location under which which column',  'Choice')");
5959
    print "Upgrade to $DBversion done (Added system preference OpacLocationBranchToDisplay)\n";
5960
    SetVersion($DBversion);
5961
}
5955
5962
5956
=head1 FUNCTIONS
5963
=head1 FUNCTIONS
5957
5964
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/opac.pref (+16 lines)
Lines 100-105 OPAC: Link Here
100
                  no: "Don't show"
100
                  no: "Don't show"
101
            - the name of the patron that has an item checked out on item detail pages on the OPAC.
101
            - the name of the patron that has an item checked out on item detail pages on the OPAC.
102
        -
102
        -
103
            - Display the
104
            - pref: OpacLocationBranchToDisplay
105
              choices:
106
                  home: "home library"
107
                  holding: "holding library"
108
                  both: "home and holding libraries"
109
            - for items on the OPAC record details page.
110
        -
111
            - Display the shelving location under the
112
            - pref: OpacLocationBranchToDisplayShelving
113
              choices:
114
                  home: "home library"
115
                  holding: "holding library"
116
                  both: "home and holding libraries"
117
            - for items on the OPAC record details page.
118
        -
103
            - pref: OpacKohaUrl
119
            - pref: OpacKohaUrl
104
              default: 0
120
              default: 0
105
              choices:
121
              choices:
(-)a/koha-tmpl/opac-tmpl/prog/en/modules/opac-detail.tt (-88 / +107 lines)
Lines 70-86 Link Here
70
            $("#highlight_toggle_off").show().click(function() {highlightOff(); return false;});[% END %][% END %]
70
            $("#highlight_toggle_off").show().click(function() {highlightOff(); return false;});[% END %][% END %]
71
	[% IF ( GoogleJackets ) %]
71
	[% IF ( GoogleJackets ) %]
72
        KOHA.Google.GetCoverFromIsbn([% covernewwindow %]);
72
        KOHA.Google.GetCoverFromIsbn([% covernewwindow %]);
73
	[% END %]
73
        [% END %]
74
	[% IF OpenLibraryCovers %]
74
        [% IF OpenLibraryCovers %]
75
	KOHA.OpenLibrary.GetCoverFromIsbn();
75
        KOHA.OpenLibrary.GetCoverFromIsbn();
76
	[% END %]
76
        [% END %]
77
	[% IF OPACLocalCoverImages %]
77
        [% IF OPACLocalCoverImages %]
78
	KOHA.LocalCover.GetCoverFromBibnumber(true);
78
        KOHA.LocalCover.GetCoverFromBibnumber(true);
79
	[% END %]
79
        [% END %]
80
        [% IF ( NovelistSelectProfile ) %]
80
        [% IF ( NovelistSelectProfile ) %]
81
        novSelect.loadContentForISBN('[% normalized_isbn %]','[% NovelistSelectProfile %]', '[% NovelistSelectPassword %]', function(d){});
81
        novSelect.loadContentForISBN('[% normalized_isbn %]','[% NovelistSelectProfile %]', '[% NovelistSelectPassword %]', function(d){});
82
        [% END %]
82
        [% END %]
83
	[% IF ( opacuserlogin ) %][% IF ( loggedinusername ) %][% IF ( TagsEnabled ) %]
83
        [% IF ( opacuserlogin ) %][% IF ( loggedinusername ) %][% IF ( TagsEnabled ) %]
84
        $(".tagbutton").click(KOHA.Tags.add_tag_button);[% END %][% END %][% END %]
84
        $(".tagbutton").click(KOHA.Tags.add_tag_button);[% END %][% END %][% END %]
85
85
86
86
Lines 278-294 function renderPagination(index, total, ul, highlIndex) Link Here
278
278
279
YAHOO.util.Event.onContentReady("furtherm", function () {
279
YAHOO.util.Event.onContentReady("furtherm", function () {
280
    $("#furtherm").css("display","block").css("visibility","hidden");
280
    $("#furtherm").css("display","block").css("visibility","hidden");
281
	$("#furthersearches").parent().show();
281
        $("#furthersearches").parent().show();
282
	var furthersearchesMenu = new YAHOO.widget.Menu("furtherm");
282
        var furthersearchesMenu = new YAHOO.widget.Menu("furtherm");
283
		furthersearchesMenu.render();
283
                furthersearchesMenu.render();
284
		furthersearchesMenu.cfg.setProperty("context", ["furthersearches", "tr", "br"]);
284
                furthersearchesMenu.cfg.setProperty("context", ["furthersearches", "tr", "br"]);
285
		furthersearchesMenu.subscribe("beforeShow",positionfurthersearchesMenu);
285
                furthersearchesMenu.subscribe("beforeShow",positionfurthersearchesMenu);
286
		furthersearchesMenu.subscribe("show", furthersearchesMenu.focus);
286
                furthersearchesMenu.subscribe("show", furthersearchesMenu.focus);
287
        function positionfurthersearchesMenu() {
287
        function positionfurthersearchesMenu() {
288
                    furthersearchesMenu.align("tr", "br");
288
                    furthersearchesMenu.align("tr", "br");
289
		}
289
                }
290
		YAHOO.util.Event.addListener("furthersearches", "click", furthersearchesMenu.show, null, furthersearchesMenu);
290
                YAHOO.util.Event.addListener("furthersearches", "click", furthersearchesMenu.show, null, furthersearchesMenu);
291
		YAHOO.widget.Overlay.windowResizeEvent.subscribe(positionfurthersearchesMenu);
291
                YAHOO.widget.Overlay.windowResizeEvent.subscribe(positionfurthersearchesMenu);
292
 });
292
 });
293
//]]>
293
//]]>
294
</script>
294
</script>
Lines 481-505 YAHOO.util.Event.onContentReady("furtherm", function () { Link Here
481
481
482
<!-- This puts the LTFL reviews in, and if TabbedView is not set, puts the remaining content above the Tabs instead of in them -->
482
<!-- This puts the LTFL reviews in, and if TabbedView is not set, puts the remaining content above the Tabs instead of in them -->
483
[% IF ( LibraryThingForLibrariesID ) %]
483
[% IF ( LibraryThingForLibrariesID ) %]
484
	[% UNLESS ( LibraryThingForLibrariesTabbedView ) %]
484
        [% UNLESS ( LibraryThingForLibrariesTabbedView ) %]
485
		<div class="results_summary"><div id="ltfl_related" class="ltfl"></div></div> 
485
                <div class="results_summary"><div id="ltfl_related" class="ltfl"></div></div>
486
		<div class="results_summary"><div id="ltfl_similars" class="ltfl"></div></div> 
486
                <div class="results_summary"><div id="ltfl_similars" class="ltfl"></div></div>
487
		<div class="results_summary"><div id="ltfl_tagbrowse" class="ltfl"></div></div> 
487
                <div class="results_summary"><div id="ltfl_tagbrowse" class="ltfl"></div></div>
488
	[% END %]
488
        [% END %]
489
	<span class="results_summary">
489
        <span class="results_summary">
490
        <span class="label">Reviews from LibraryThing.com:</span>	
490
        <span class="label">Reviews from LibraryThing.com:</span>
491
        <span style="display: block;" class="ltfl_reviews"></span>
491
        <span style="display: block;" class="ltfl_reviews"></span>
492
    </span>
492
    </span>
493
[% END %] 
493
[% END %] 
494
494
495
<!--This grabs all of the lists a bib record appears in -->
495
<!--This grabs all of the lists a bib record appears in -->
496
[% IF ( GetShelves ) %]
496
[% IF ( GetShelves ) %]
497
	<span class="results_summary"><span class="label">List(s) this item appears in: </span>
497
        <span class="results_summary"><span class="label">List(s) this item appears in: </span>
498
	[% FOREACH GetShelve IN GetShelves %]
498
        [% FOREACH GetShelve IN GetShelves %]
499
		<a href="/cgi-bin/koha/opac-shelves.pl?viewshelf=[% GetShelve.shelfnumber %]">[% GetShelve.shelfname %]</a>
499
                <a href="/cgi-bin/koha/opac-shelves.pl?viewshelf=[% GetShelve.shelfnumber %]">[% GetShelve.shelfname %]</a>
500
		[% IF ( loop.last ) %][% ELSE %]|[% END %]
500
                [% IF ( loop.last ) %][% ELSE %]|[% END %]
501
	[% END %]
501
        [% END %]
502
	</span>
502
        </span>
503
[% END %]
503
[% END %]
504
504
505
[% IF ( TagsEnabled ) %]
505
[% IF ( TagsEnabled ) %]
Lines 736-747 YAHOO.util.Event.onContentReady("furtherm", function () { Link Here
736
<div id="holdings">
736
<div id="holdings">
737
[% IF ( count ) %]
737
[% IF ( count ) %]
738
    [% IF ( lotsofitems ) %]
738
    [% IF ( lotsofitems ) %]
739
	<p>This record has many physical items. <a href="/cgi-bin/koha/opac-detail.pl?biblionumber=[% biblionumber %]&amp;viewallitems=1#holdings">Click here to view them all.</a></p>
739
        <p>This record has many physical items. <a href="/cgi-bin/koha/opac-detail.pl?biblionumber=[% biblionumber %]&amp;viewallitems=1#holdings">Click here to view them all.</a></p>
740
    [% ELSE %]
740
    [% ELSE %]
741
    <table id="holdingst">
741
    <table id="holdingst">
742
        <thead><tr>
742
        <thead><tr>
743
            [% IF ( item_level_itypes ) %]<th id="item_itemtype">Item type</th>[% END %]
743
            [% IF ( item_level_itypes ) %]<th id="item_itemtype">Item type</th>[% END %]
744
            <th id="item_location">Location</th>
744
                [% IF ( OpacLocationBranchToDisplay == 'holding' || OpacLocationBranchToDisplay == 'both' || singleBranchMode ) %]
745
                        <th>Current Location</th>
746
                [% END %]
747
                [% UNLESS ( singleBranchMode ) %]
748
                        [% IF ( OpacLocationBranchToDisplay == 'home' || OpacLocationBranchToDisplay == 'both' ) %]
749
                                <th>Home Library</th>
750
                        [% END %]
751
                [% END %]
745
            [% IF ( itemdata_ccode ) %]<th id="item_ccode">Collection</th>[% END %]
752
            [% IF ( itemdata_ccode ) %]<th id="item_ccode">Collection</th>[% END %]
746
            <th id="item_callnumber">Call number</th>
753
            <th id="item_callnumber">Call number</th>
747
            [% IF ( itemdata_enumchron ) %]<th id="item_enumchron">Vol info</th>[% END %]
754
            [% IF ( itemdata_enumchron ) %]<th id="item_enumchron">Vol info</th>[% END %]
Lines 757-801 YAHOO.util.Event.onContentReady("furtherm", function () { Link Here
757
            <th>Item hold queue priority</th>
764
            <th>Item hold queue priority</th>
758
        [% END %]
765
        [% END %]
759
        </tr></thead>
766
        </tr></thead>
760
	    <tbody>[% FOREACH ITEM_RESULT IN ITEM_RESULTS %]
767
            <tbody>[% FOREACH ITEM_RESULT IN ITEM_RESULTS %]
761
      <tr>[% IF ( item_level_itypes ) %]<td class="itype">[% UNLESS ( noItemTypeImages ) %][% IF ( ITEM_RESULT.imageurl ) %]<img src="[% ITEM_RESULT.imageurl %]" title="[% ITEM_RESULT.description %]" alt="[% ITEM_RESULT.description %]" />[% END %][% END %] [% ITEM_RESULT.description %]</td>[% END %]
768
            <tr>[% IF ( item_level_itypes ) %]<td>[% UNLESS ( noItemTypeImages ) %][% IF ( ITEM_RESULT.imageurl ) %]<img src="[% ITEM_RESULT.imageurl %]" title="[% ITEM_RESULT.description %]" alt="[% ITEM_RESULT.description %]" />[% END %][% END %] [% ITEM_RESULT.description %]</td>[% END %]
762
             <td class="location">
769
                [% UNLESS ( singleBranchMode ) %]
763
    [% UNLESS ( singleBranchMode ) %]
770
                        [% IF ( OpacLocationBranchToDisplay == 'holding' || OpacLocationBranchToDisplay == 'both' ) %]
764
        <span class="[% ITEM_RESULT.branch_opac_info ? 'branch-info-tooltip-trigger' : '' %]">
771
                                <td>
765
        [% IF ( ITEM_RESULT.branchurl ) %]
772
                                        <span class="[% ITEM_RESULT.branch_opac_info ? 'branch-info-tooltip-trigger' : '' %]">
766
        <a href="[% ITEM_RESULT.branchurl %]">[% ITEM_RESULT.branchname %]</a>
773
                                                [% IF ( ITEM_RESULT.branchurl ) %]
767
        [% ELSE %]
774
                                                        <a href="[% ITEM_RESULT.branchurl %]">[% ITEM_RESULT.branchname %]</a>
768
        [% ITEM_RESULT.branchname %]
775
                                                [% ELSE %]
769
        [% END %]
776
                                                        [% ITEM_RESULT.branchname %]
770
        </span>
777
                                                [% END %]
771
        <div class="branch-info-tooltip">[% ITEM_RESULT.branch_opac_info %]</div>
778
                                        </span>
772
    [% END %]
779
773
    <span class="shelvingloc">[% ITEM_RESULT.location_description %]</span>
780
                                        [% IF ( OpacLocationBranchToDisplayShelving == 'holding' || OpacLocationBranchToDisplayShelving == 'both' ) %]
774
    </td>
781
                                                <span class="shelvingloc">[% ITEM_RESULT.location_description %]</span>
775
            [% IF ( itemdata_ccode ) %]<td class="collection">[% ITEM_RESULT.ccode %]</td>[% END %]
782
                                        [% END %]
776
        <td class="call_no">[% IF ( ITEM_RESULT.itemcallnumber ) %] [% ITEM_RESULT.itemcallnumber %][% IF ( OPACShelfBrowser ) %] (<a href="/cgi-bin/koha/opac-detail.pl?biblionumber=[% ITEM_RESULT.biblionumber %]&amp;shelfbrowse_itemnumber=[% ITEM_RESULT.itemnumber %]#shelfbrowser">Browse shelf</a>)[% END %][% END %]</td>
783
777
            [% IF ( itemdata_enumchron ) %]<td class="vol_info">[% ITEM_RESULT.enumchron %]</td>[% END %]
784
                                        <div class="branch-info-tooltip">[% ITEM_RESULT.branch_opac_info %]</div>
778
          [% IF ( itemdata_uri ) %]<td class="url"><a href="[% ITEM_RESULT.uri %]">[% ITEM_RESULT.uri %]</a></td>[% END %]
785
                                </td>
779
               [% IF ( itemdata_copynumber ) %]<td class="copynumber">[% ITEM_RESULT.copynumber %]</td>[% END %]
786
                        [% END %]
780
              <td class="status">[% INCLUDE 'item-status.inc' item = ITEM_RESULT %]</td>
787
781
             [% IF ( itemdata_itemnotes ) %]<td class="notes">[% ITEM_RESULT.itemnotes %]</td>[% END %]
788
                        [% IF ( OpacLocationBranchToDisplay == 'home' || OpacLocationBranchToDisplay == 'both' ) %]
782
        <td class="date_due">[% ITEM_RESULT.datedue | $KohaDates %]</td>
789
                                <td>
783
        [% IF ( OPACShowBarcode ) %]<td class="barcode">[% ITEM_RESULT.barcode %]</td>[% END %]
790
                                        <span class="[% ITEM_RESULT.branch_opac_info ? 'branch-info-tooltip-trigger' : '' %]">
784
        [% IF holds_count.defined || show_priority %]
791
                                                [% IF ( ITEM_RESULT.homebranchurl ) %]
785
        <td class="holds_count">
792
                                                        <a href="[% ITEM_RESULT.homebranchurl %]">[% ITEM_RESULT.homebranchname %]</a>
786
            [% IF holds_count.defined %] [% ITEM_RESULT.holds_count %] [% END %]
793
                                                [% ELSE %]
787
            [% IF ITEM_RESULT.priority %]
794
                                                         [% ITEM_RESULT.homebranchname %]
788
                [% IF holds_count.defined %]
795
                                                [% END %]
789
                (priority [% ITEM_RESULT.priority %])
796
                                        </span>
790
                [% ELSE %]
797
791
                [% ITEM_RESULT.priority %]
798
                                        [% IF ( OpacLocationBranchToDisplayShelving == 'home' || OpacLocationBranchToDisplayShelving == 'both' ) %]
799
                                                <span class="shelvingloc">[% ITEM_RESULT.location_description %]</span>
800
                                        [% END %]
801
                                </td>
802
                        [% END %]
803
		[% ELSE %]
804
                        <span class="shelvingloc">[% ITEM_RESULT.location_description %]</span>
792
                [% END %]
805
                [% END %]
793
            [% END %]
806
794
                </td>
807
                [% IF ( itemdata_ccode ) %]<td>[% ITEM_RESULT.ccode %]</td>[% END %]
795
        [% END %]
808
                <td>[% IF ( ITEM_RESULT.itemcallnumber ) %] [% ITEM_RESULT.itemcallnumber %][% IF ( OPACShelfBrowser ) %] (<a href="/cgi-bin/koha/opac-detail.pl?biblionumber=[% ITEM_RESULT.biblionumber %]&amp;shelfbrowse_itemnumber=[% ITEM_RESULT.itemnumber %]#shelfbrowser">Browse Shelf</a>)[% END %][% END %]</td>
796
	    </tr>
809
                [% IF ( itemdata_enumchron ) %]<td>[% ITEM_RESULT.enumchron %]</td>[% END %]
797
	    [% END %]</tbody>
810
                [% IF ( itemdata_uri ) %]<td><a href="[% ITEM_RESULT.uri %]">[% ITEM_RESULT.uri %]</a></td>[% END %]
798
	</table>
811
                [% IF ( itemdata_copynumber ) %]<td>[% ITEM_RESULT.copynumber %]</td>[% END %]
812
                <td>[% INCLUDE 'item-status.inc' item = ITEM_RESULT %]</td>
813
                [% IF ( itemdata_itemnotes ) %]<td>[% ITEM_RESULT.itemnotes %]</td>[% END %]
814
                <td>[% ITEM_RESULT.datedue | $KohaDates %]</td>
815
            </tr>
816
            [% END %]</tbody>
817
        </table>
799
    [% END %]
818
    [% END %]
800
    [% IF holds_count.defined || priority %]
819
    [% IF holds_count.defined || priority %]
801
    <div id="bib_holds">
820
    <div id="bib_holds">
Lines 849-855 YAHOO.util.Event.onContentReady("furtherm", function () { Link Here
849
    [% IF ( OPACAmazonCoverImages ) %][% IF ( NEXT_SHELF_BROWS.browser_normalized_isbn ) %]
868
    [% IF ( OPACAmazonCoverImages ) %][% IF ( NEXT_SHELF_BROWS.browser_normalized_isbn ) %]
850
    <img border="0" src="http://images.amazon.com/images/P/[% NEXT_SHELF_BROWS.browser_normalized_isbn %].01._AA75_PU_PU-5_.jpg" alt="" />[% ELSE %]<span class="no-image">No cover image available</span>[% END %][% END %]
869
    <img border="0" src="http://images.amazon.com/images/P/[% NEXT_SHELF_BROWS.browser_normalized_isbn %].01._AA75_PU_PU-5_.jpg" alt="" />[% ELSE %]<span class="no-image">No cover image available</span>[% END %][% END %]
851
870
852
	[% IF ( SyndeticsEnabled ) %][% IF ( SyndeticsCoverImages ) %][% IF ( content_identifier_exists ) %]
871
        [% IF ( SyndeticsEnabled ) %][% IF ( SyndeticsCoverImages ) %][% IF ( content_identifier_exists ) %]
853
    [% IF ( using_https ) %]
872
    [% IF ( using_https ) %]
854
    <img border="0" src="https://secure.syndetics.com/index.aspx?isbn=[% NEXT_SHELF_BROWS.browser_normalized_isbn %]/SC.GIF&amp;client=[% SyndeticsClientCode %][% IF ( NEXT_SHELF_BROWS.browser_normalized_upc ) %]&amp;upc=[% NEXT_SHELF_BROWS.browser_normalized_upc %][% END %][% IF ( NEXT_SHELF_BROWS.browser_normalized_oclc ) %]&amp;oclc=[% NEXT_SHELF_BROWS.browser_normalized_oclc %][% END %]&amp;type=xw10" alt="" />
873
    <img border="0" src="https://secure.syndetics.com/index.aspx?isbn=[% NEXT_SHELF_BROWS.browser_normalized_isbn %]/SC.GIF&amp;client=[% SyndeticsClientCode %][% IF ( NEXT_SHELF_BROWS.browser_normalized_upc ) %]&amp;upc=[% NEXT_SHELF_BROWS.browser_normalized_upc %][% END %][% IF ( NEXT_SHELF_BROWS.browser_normalized_oclc ) %]&amp;oclc=[% NEXT_SHELF_BROWS.browser_normalized_oclc %][% END %]&amp;type=xw10" alt="" />
855
    [% ELSE %]<img border="0" src="http://www.syndetics.com/index.aspx?isbn=[% NEXT_SHELF_BROWS.browser_normalized_isbn %]/SC.GIF&amp;client=[% SyndeticsClientCode %][% IF ( NEXT_SHELF_BROWS.browser_normalized_upc ) %]&amp;upc=[% NEXT_SHELF_BROWS.browser_normalized_upc %][% END %][% IF ( NEXT_SHELF_BROWS.browser_normalized_oclc ) %]&amp;oclc=[% NEXT_SHELF_BROWS.browser_normalized_oclc %][% END %]&amp;type=xw10" alt="" />[% END %]
874
    [% ELSE %]<img border="0" src="http://www.syndetics.com/index.aspx?isbn=[% NEXT_SHELF_BROWS.browser_normalized_isbn %]/SC.GIF&amp;client=[% SyndeticsClientCode %][% IF ( NEXT_SHELF_BROWS.browser_normalized_upc ) %]&amp;upc=[% NEXT_SHELF_BROWS.browser_normalized_upc %][% END %][% IF ( NEXT_SHELF_BROWS.browser_normalized_oclc ) %]&amp;oclc=[% NEXT_SHELF_BROWS.browser_normalized_oclc %][% END %]&amp;type=xw10" alt="" />[% END %]
Lines 941-953 YAHOO.util.Event.onContentReady("furtherm", function () { Link Here
941
[% FOREACH SYNDETICS_REVIEW IN SYNDETICS_REVIEWS %]
960
[% FOREACH SYNDETICS_REVIEW IN SYNDETICS_REVIEWS %]
942
    [% IF ( SYNDETICS_REVIEW.title ) %]
961
    [% IF ( SYNDETICS_REVIEW.title ) %]
943
    <h4>[% SYNDETICS_REVIEW.title %]</h4>
962
    <h4>[% SYNDETICS_REVIEW.title %]</h4>
944
	[% FOREACH review IN SYNDETICS_REVIEW.reviews %]
963
        [% FOREACH review IN SYNDETICS_REVIEW.reviews %]
945
964
946
	[% IF ( review.content ) %]
965
        [% IF ( review.content ) %]
947
		[% review.content %]
966
                [% review.content %]
948
	[% END %]
967
        [% END %]
949
968
950
	[% END %]
969
        [% END %]
951
    [% END %]
970
    [% END %]
952
[% END %]
971
[% END %]
953
</div>
972
</div>
Lines 1028-1052 YAHOO.util.Event.onContentReady("furtherm", function () { Link Here
1028
1047
1029
[% IF ( LibraryThingForLibrariesID ) %] 
1048
[% IF ( LibraryThingForLibrariesID ) %] 
1030
[% IF ( LibraryThingForLibrariesTabbedView ) %]
1049
[% IF ( LibraryThingForLibrariesTabbedView ) %]
1031
	<!-- Library Thing for Libraries Content --> 
1050
        <!-- Library Thing for Libraries Content -->
1032
		<div id="LFTLSimilarItems">
1051
                <div id="LFTLSimilarItems">
1033
			<div class="content_set">
1052
                        <div class="content_set">
1034
	<!-- Uncommenting this span makes the font smaller in the tab for LTFL -->
1053
        <!-- Uncommenting this span makes the font smaller in the tab for LTFL -->
1035
    <!-- but breaks Xhtml validation -->
1054
    <!-- but breaks Xhtml validation -->
1036
 	<!--	<span class="results_summary">-->
1055
         <!--        <span class="results_summary">-->
1037
				<div id="ltfl_related"></div>
1056
                                <div id="ltfl_related"></div>
1038
				<div id="ltfl_similars"></div>
1057
                                <div id="ltfl_similars"></div>
1039
	<!--			</span>-->
1058
        <!--                        </span>-->
1040
			</div>
1059
                        </div>
1041
		</div>
1060
                </div>
1042
		 <div id="LTFLTagBrowse">
1061
                 <div id="LTFLTagBrowse">
1043
                        <div class="content_set">
1062
                        <div class="content_set">
1044
                                <!-- <span class="results_summary"> -->
1063
                                <!-- <span class="results_summary"> -->
1045
                                <div id="ltfl_tagbrowse" class="ltfl"></div>
1064
                                <div id="ltfl_tagbrowse" class="ltfl"></div>
1046
                                <!-- </span> -->
1065
                                <!-- </span> -->
1047
                        </div>
1066
                        </div>
1048
                </div>
1067
                </div>
1049
	[% END %]
1068
        [% END %]
1050
[% END %]
1069
[% END %]
1051
<!-- /Library Thing for Libraries Content -->
1070
<!-- /Library Thing for Libraries Content -->
1052
1071
(-)a/opac/opac-detail.pl (-1 / +5 lines)
Lines 974-977 if (C4::Context->preference('OpacHighlightedWords')) { Link Here
974
    $template->{VARS}->{query_desc} = $query->param('query_desc');
974
    $template->{VARS}->{query_desc} = $query->param('query_desc');
975
}
975
}
976
976
977
$template->param(
978
    'OpacLocationBranchToDisplay'         => C4::Context->preference('OpacLocationBranchToDisplay') ,
979
    'OpacLocationBranchToDisplayShelving' => C4::Context->preference('OpacLocationBranchToDisplayShelving'),
980
);
981
977
output_html_with_http_headers $query, $cookie, $template->output;
982
output_html_with_http_headers $query, $cookie, $template->output;
978
- 

Return to bug 7720