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

(-)a/C4/Items.pm (-1 / +10 lines)
Lines 1193-1199 sub GetItemsInfo { Link Here
1193
           itemtypes.notforloan as notforloan_per_itemtype,
1193
           itemtypes.notforloan as notforloan_per_itemtype,
1194
           holding.branchurl,
1194
           holding.branchurl,
1195
           holding.branchname,
1195
           holding.branchname,
1196
           holding.opac_info as branch_opac_info
1196
           holding.opac_info as branch_opac_info,
1197
           home.branchurl AS homebranchurl
1197
     FROM items
1198
     FROM items
1198
     LEFT JOIN branches AS holding ON items.holdingbranch = holding.branchcode
1199
     LEFT JOIN branches AS holding ON items.holdingbranch = holding.branchcode
1199
     LEFT JOIN branches AS home ON items.homebranch=home.branchcode
1200
     LEFT JOIN branches AS home ON items.homebranch=home.branchcode
Lines 1245-1250 sub GetItemsInfo { Link Here
1245
        if ( my $bdata = $bsth->fetchrow_hashref ) {
1246
        if ( my $bdata = $bsth->fetchrow_hashref ) {
1246
            $data->{'branchname'} = $bdata->{'branchname'};
1247
            $data->{'branchname'} = $bdata->{'branchname'};
1247
        }
1248
        }
1249
        $bsth = $dbh->prepare(
1250
            "SELECT * FROM branches WHERE branchcode = ?
1251
        "
1252
        );
1253
        $bsth->execute( $data->{'homebranch'} );
1254
        if ( my $bdata = $bsth->fetchrow_hashref ) {
1255
            $data->{'homebranchname'} = $bdata->{'branchname'};
1256
        }
1248
        $data->{'datedue'}        = $datedue;
1257
        $data->{'datedue'}        = $datedue;
1249
1258
1250
        # get notforloan complete status if applicable
1259
        # get notforloan complete status if applicable
(-)a/installer/data/mysql/sysprefs.sql (+2 lines)
Lines 363-365 INSERT INTO systempreferences (variable,value,options,explanation,type) VALUES ( Link Here
363
INSERT INTO systempreferences (variable,value,explanation,options,type) VALUES ('OpacStarRatings','all',NULL,'disable|all|details','Choice');
363
INSERT INTO systempreferences (variable,value,explanation,options,type) VALUES ('OpacStarRatings','all',NULL,'disable|all|details','Choice');
364
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');
364
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');
365
INSERT INTO systempreferences (variable,value,explanation,options,type) VALUES('SvcMaxReportRows','10','Maximum number of rows to return via the report web service.',NULL,'Integer');
365
INSERT INTO systempreferences (variable,value,explanation,options,type) VALUES('SvcMaxReportRows','10','Maximum number of rows to return via the report web service.',NULL,'Integer');
366
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');
367
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 (+8 lines)
Lines 5246-5251 if ( C4::Context->preference("Version") < TransformToNum($DBversion) ) { Link Here
5246
    SetVersion($DBversion);
5246
    SetVersion($DBversion);
5247
}
5247
}
5248
5248
5249
$DBversion = "3.09.00.XXX";
5250
if ( C4::Context->preference("Version") < TransformToNum($DBversion) ) {
5251
    $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')");
5252
    $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')");
5253
    print "Upgrade to $DBversion done (Added system preference OpacLocationBranchToDisplay)\n";
5254
    SetVersion($DBversion);
5255
}
5256
5249
=head1 FUNCTIONS
5257
=head1 FUNCTIONS
5250
5258
5251
=head2 TableExists($table)
5259
=head2 TableExists($table)
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/opac.pref (+16 lines)
Lines 92-97 OPAC: Link Here
92
                  no: "Don't show"
92
                  no: "Don't show"
93
            - the name of the patron that has an item checked out on item detail pages on the OPAC.
93
            - the name of the patron that has an item checked out on item detail pages on the OPAC.
94
        -
94
        -
95
            - Display the
96
            - pref: OpacLocationBranchToDisplay
97
              choices:
98
                  home: "home library"
99
                  holding: "holding library"
100
                  both: "home and holding libraries"
101
            - for items on the OPAC record details page.
102
        -
103
            - Display the shelving location under the
104
            - pref: OpacLocationBranchToDisplayShelving
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
        -
95
            - pref: OpacKohaUrl
111
            - pref: OpacKohaUrl
96
              default: 0
112
              default: 0
97
              choices:
113
              choices:
(-)a/koha-tmpl/opac-tmpl/prog/en/modules/opac-detail.tt (-91 / +123 lines)
Lines 45-63 Link Here
45
            widgets : ['zebra'],
45
            widgets : ['zebra'],
46
            sortList: [[0,0]]
46
            sortList: [[0,0]]
47
        });
47
        });
48
	[% IF ( GoogleJackets ) %]
48
        [% IF ( GoogleJackets ) %]
49
        KOHA.Google.GetCoverFromIsbn([% covernewwindow %]);
49
        KOHA.Google.GetCoverFromIsbn([% covernewwindow %]);
50
	[% END %]
50
        [% END %]
51
	[% IF OpenLibraryCovers %]
51
        [% IF OpenLibraryCovers %]
52
	KOHA.OpenLibrary.GetCoverFromIsbn();
52
        KOHA.OpenLibrary.GetCoverFromIsbn();
53
	[% END %]
53
        [% END %]
54
	[% IF OPACLocalCoverImages %]
54
        [% IF OPACLocalCoverImages %]
55
	KOHA.LocalCover.GetCoverFromBibnumber(true);
55
        KOHA.LocalCover.GetCoverFromBibnumber(true);
56
	[% END %]
56
        [% END %]
57
        [% IF ( NovelistSelectProfile ) %]
57
        [% IF ( NovelistSelectProfile ) %]
58
        novSelect.loadContentForISBN('[% normalized_isbn %]','[% NovelistSelectProfile %]', '[% NovelistSelectPassword %]', function(d){});
58
        novSelect.loadContentForISBN('[% normalized_isbn %]','[% NovelistSelectProfile %]', '[% NovelistSelectPassword %]', function(d){});
59
        [% END %]
59
        [% END %]
60
	[% IF ( opacuserlogin ) %][% IF ( loggedinusername ) %][% IF ( TagsEnabled ) %]
60
        [% IF ( opacuserlogin ) %][% IF ( loggedinusername ) %][% IF ( TagsEnabled ) %]
61
        $(".tagbutton").click(KOHA.Tags.add_tag_button);[% END %][% END %][% END %]
61
        $(".tagbutton").click(KOHA.Tags.add_tag_button);[% END %][% END %][% END %]
62
62
63
63
Lines 255-271 function renderPagination(index, total, ul, highlIndex) Link Here
255
255
256
YAHOO.util.Event.onContentReady("furtherm", function () {
256
YAHOO.util.Event.onContentReady("furtherm", function () {
257
    $("#furtherm").css("display","block").css("visibility","hidden");
257
    $("#furtherm").css("display","block").css("visibility","hidden");
258
	$("#furthersearches").parent().show();
258
        $("#furthersearches").parent().show();
259
	var furthersearchesMenu = new YAHOO.widget.Menu("furtherm");
259
        var furthersearchesMenu = new YAHOO.widget.Menu("furtherm");
260
		furthersearchesMenu.render();
260
                furthersearchesMenu.render();
261
		furthersearchesMenu.cfg.setProperty("context", ["furthersearches", "tr", "br"]);
261
                furthersearchesMenu.cfg.setProperty("context", ["furthersearches", "tr", "br"]);
262
		furthersearchesMenu.subscribe("beforeShow",positionfurthersearchesMenu);
262
                furthersearchesMenu.subscribe("beforeShow",positionfurthersearchesMenu);
263
		furthersearchesMenu.subscribe("show", furthersearchesMenu.focus);
263
                furthersearchesMenu.subscribe("show", furthersearchesMenu.focus);
264
        function positionfurthersearchesMenu() {
264
        function positionfurthersearchesMenu() {
265
                    furthersearchesMenu.align("tr", "br");
265
                    furthersearchesMenu.align("tr", "br");
266
		}
266
                }
267
		YAHOO.util.Event.addListener("furthersearches", "click", furthersearchesMenu.show, null, furthersearchesMenu);
267
                YAHOO.util.Event.addListener("furthersearches", "click", furthersearchesMenu.show, null, furthersearchesMenu);
268
		YAHOO.widget.Overlay.windowResizeEvent.subscribe(positionfurthersearchesMenu);
268
                YAHOO.widget.Overlay.windowResizeEvent.subscribe(positionfurthersearchesMenu);
269
 });
269
 });
270
//]]>
270
//]]>
271
</script>
271
</script>
Lines 444-468 YAHOO.util.Event.onContentReady("furtherm", function () { Link Here
444
444
445
<!-- This puts the LTFL reviews in, and if TabbedView is not set, puts the remaining content above the Tabs instead of in them -->
445
<!-- This puts the LTFL reviews in, and if TabbedView is not set, puts the remaining content above the Tabs instead of in them -->
446
[% IF ( LibraryThingForLibrariesID ) %]
446
[% IF ( LibraryThingForLibrariesID ) %]
447
	[% UNLESS ( LibraryThingForLibrariesTabbedView ) %]
447
        [% UNLESS ( LibraryThingForLibrariesTabbedView ) %]
448
		<div class="results_summary"><div id="ltfl_related" class="ltfl"></div></div> 
448
                <div class="results_summary"><div id="ltfl_related" class="ltfl"></div></div>
449
		<div class="results_summary"><div id="ltfl_similars" class="ltfl"></div></div> 
449
                <div class="results_summary"><div id="ltfl_similars" class="ltfl"></div></div>
450
		<div class="results_summary"><div id="ltfl_tagbrowse" class="ltfl"></div></div> 
450
                <div class="results_summary"><div id="ltfl_tagbrowse" class="ltfl"></div></div>
451
	[% END %]
451
        [% END %]
452
	<span class="results_summary">
452
        <span class="results_summary">
453
        <span class="label">Reviews from LibraryThing.com:</span>	
453
        <span class="label">Reviews from LibraryThing.com:</span>
454
        <span style="display: block;" class="ltfl_reviews"></span>
454
        <span style="display: block;" class="ltfl_reviews"></span>
455
    </span>
455
    </span>
456
[% END %] 
456
[% END %] 
457
457
458
<!--This grabs all of the lists a bib record appears in -->
458
<!--This grabs all of the lists a bib record appears in -->
459
[% IF ( GetShelves ) %]
459
[% IF ( GetShelves ) %]
460
	<span class="results_summary"><span class="label">List(s) this item appears in: </span>
460
        <span class="results_summary"><span class="label">List(s) this item appears in: </span>
461
	[% FOREACH GetShelve IN GetShelves %]
461
        [% FOREACH GetShelve IN GetShelves %]
462
		<a href="/cgi-bin/koha/opac-shelves.pl?viewshelf=[% GetShelve.shelfnumber %]">[% GetShelve.shelfname %]</a>
462
                <a href="/cgi-bin/koha/opac-shelves.pl?viewshelf=[% GetShelve.shelfnumber %]">[% GetShelve.shelfname %]</a>
463
		[% IF ( loop.last ) %][% ELSE %]|[% END %]
463
                [% IF ( loop.last ) %][% ELSE %]|[% END %]
464
	[% END %]
464
        [% END %]
465
	</span>
465
        </span>
466
[% END %]
466
[% END %]
467
467
468
[% IF ( TagsEnabled ) %]
468
[% IF ( TagsEnabled ) %]
Lines 683-702 YAHOO.util.Event.onContentReady("furtherm", function () { Link Here
683
[% IF ( serialcollection ) %]
683
[% IF ( serialcollection ) %]
684
<div id="serialcollection">
684
<div id="serialcollection">
685
    <table id="serialcollectiont">
685
    <table id="serialcollectiont">
686
	<thead>
686
        <thead>
687
	    <tr>
687
            <tr>
688
		<th id="serial_library">Library</th>
688
                <th id="serial_library">Library</th>
689
		<th id="seral_collection">Serial collection</th>
689
                <th id="seral_collection">Serial collection</th>
690
	    </tr>
690
            </tr>
691
	</thead>
691
        </thead>
692
	<tbody>
692
        <tbody>
693
	[% FOREACH serialcollection IN serialcollections %]
693
        [% FOREACH serialcollection IN serialcollections %]
694
	    <tr>
694
            <tr>
695
		<td>[% serialcollection.branch %]</td>
695
                <td>[% serialcollection.branch %]</td>
696
		<td>[% serialcollection.text %]</td>
696
                <td>[% serialcollection.text %]</td>
697
	    </tr>
697
            </tr>
698
	[% END %]
698
        [% END %]
699
	</tbody>
699
        </tbody>
700
    </table>
700
    </table>
701
</div>
701
</div>
702
[% END %]
702
[% END %]
Lines 704-715 YAHOO.util.Event.onContentReady("furtherm", function () { Link Here
704
<div id="holdings">
704
<div id="holdings">
705
[% IF ( count ) %]
705
[% IF ( count ) %]
706
    [% IF ( lotsofitems ) %]
706
    [% IF ( lotsofitems ) %]
707
	<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>
707
        <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>
708
    [% ELSE %]
708
    [% ELSE %]
709
    <table id="holdingst">
709
    <table id="holdingst">
710
        <thead><tr>
710
        <thead><tr>
711
            [% IF ( item_level_itypes ) %]<th id="item_itemtype">Item type</th>[% END %]
711
            [% IF ( item_level_itypes ) %]<th id="item_itemtype">Item type</th>[% END %]
712
            <th id="item_location">Location</th>
712
                [% IF ( OpacLocationBranchToDisplay == 'holding' || OpacLocationBranchToDisplay == 'both' || singleBranchMode ) %]
713
                        <th>Current Location</th>
714
                [% END %]
715
                [% UNLESS ( singleBranchMode ) %]
716
                        [% IF ( OpacLocationBranchToDisplay == 'home' || OpacLocationBranchToDisplay == 'both' ) %]
717
                                <th>Home Library</th>
718
                        [% END %]
719
                [% END %]
713
            [% IF ( itemdata_ccode ) %]<th id="item_ccode">Collection</th>[% END %]
720
            [% IF ( itemdata_ccode ) %]<th id="item_ccode">Collection</th>[% END %]
714
            <th id="item_callnumber">Call number</th>
721
            <th id="item_callnumber">Call number</th>
715
            [% IF ( itemdata_enumchron ) %]<th id="item_enumchron">Vol info</th>[% END %]
722
            [% IF ( itemdata_enumchron ) %]<th id="item_enumchron">Vol info</th>[% END %]
Lines 719-750 YAHOO.util.Event.onContentReady("furtherm", function () { Link Here
719
            [% IF ( itemdata_itemnotes ) %]<th id="item_notes">Notes</th>[% END %]
726
            [% IF ( itemdata_itemnotes ) %]<th id="item_notes">Notes</th>[% END %]
720
            <th id="item_datedue">Date due</th>
727
            <th id="item_datedue">Date due</th>
721
        </tr></thead>
728
        </tr></thead>
722
	    <tbody>[% FOREACH ITEM_RESULT IN ITEM_RESULTS %]
729
            <tbody>[% FOREACH ITEM_RESULT IN ITEM_RESULTS %]
723
	    <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 %]
730
            <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 %]
724
		<td>
731
                [% UNLESS ( singleBranchMode ) %]
725
    [% UNLESS ( singleBranchMode ) %]
732
                        [% IF ( OpacLocationBranchToDisplay == 'holding' || OpacLocationBranchToDisplay == 'both' ) %]
726
        <span class="[% ITEM_RESULT.branch_opac_info ? 'branch-info-tooltip-trigger' : '' %]">
733
                                <td>
727
        [% IF ( ITEM_RESULT.branchurl ) %]
734
                                        <span class="[% ITEM_RESULT.branch_opac_info ? 'branch-info-tooltip-trigger' : '' %]">
728
        <a href="[% ITEM_RESULT.branchurl %]">[% ITEM_RESULT.branchname %]</a>
735
                                                [% IF ( ITEM_RESULT.branchurl ) %]
729
        [% ELSE %]
736
                                                        <a href="[% ITEM_RESULT.branchurl %]">[% ITEM_RESULT.branchname %]</a>
730
        [% ITEM_RESULT.branchname %]
737
                                                [% ELSE %]
731
        [% END %]
738
                                                        [% ITEM_RESULT.branchname %]
732
        </span>
739
                                                [% END %]
733
        <div class="branch-info-tooltip">[% ITEM_RESULT.branch_opac_info %]</div>
740
                                        </span>
734
    [% END %]
741
735
    <span class="shelvingloc">[% ITEM_RESULT.location_description %]</span>
742
                                        [% IF ( OpacLocationBranchToDisplayShelving == 'holding' || OpacLocationBranchToDisplayShelving == 'both' ) %]
736
    </td>
743
                                                <span class="shelvingloc">[% ITEM_RESULT.location_description %]</span>
737
		[% IF ( itemdata_ccode ) %]<td>[% ITEM_RESULT.ccode %]</td>[% END %]
744
                                        [% END %]
738
        <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>
745
739
		[% IF ( itemdata_enumchron ) %]<td>[% ITEM_RESULT.enumchron %]</td>[% END %]
746
                                        <div class="branch-info-tooltip">[% ITEM_RESULT.branch_opac_info %]</div>
740
		[% IF ( itemdata_uri ) %]<td><a href="[% ITEM_RESULT.uri %]">[% ITEM_RESULT.uri %]</a></td>[% END %]
747
                                </td>
741
		[% IF ( itemdata_copynumber ) %]<td>[% ITEM_RESULT.copynumber %]</td>[% END %]
748
                        [% END %]
742
		<td>[% INCLUDE 'item-status.inc' item = ITEM_RESULT %]</td>
749
743
		[% IF ( itemdata_itemnotes ) %]<td>[% ITEM_RESULT.itemnotes %]</td>[% END %]
750
                        [% IF ( OpacLocationBranchToDisplay == 'home' || OpacLocationBranchToDisplay == 'both' ) %]
744
		<td>[% ITEM_RESULT.datedue | $KohaDates %]</td>
751
                                <td>
745
	    </tr>
752
                                        <span class="[% ITEM_RESULT.branch_opac_info ? 'branch-info-tooltip-trigger' : '' %]">
746
	    [% END %]</tbody>
753
                                                [% IF ( ITEM_RESULT.homebranchurl ) %]
747
	</table>
754
                                                        <a href="[% ITEM_RESULT.homebranchurl %]">[% ITEM_RESULT.homebranchname %]</a>
755
                                                [% ELSE %]
756
                                                         [% ITEM_RESULT.homebranchname %]
757
                                                [% END %]
758
                                        </span>
759
760
                                        [% IF ( OpacLocationBranchToDisplayShelving == 'home' || OpacLocationBranchToDisplayShelving == 'both' ) %]
761
                                                <span class="shelvingloc">[% ITEM_RESULT.location_description %]</span>
762
                                        [% END %]
763
                                </td>
764
                        [% END %]
765
		[% ELSE %]
766
                        <span class="shelvingloc">[% ITEM_RESULT.location_description %]</span>
767
                [% END %]
768
769
                [% IF ( itemdata_ccode ) %]<td>[% ITEM_RESULT.ccode %]</td>[% END %]
770
                <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>
771
                [% IF ( itemdata_enumchron ) %]<td>[% ITEM_RESULT.enumchron %]</td>[% END %]
772
                [% IF ( itemdata_uri ) %]<td><a href="[% ITEM_RESULT.uri %]">[% ITEM_RESULT.uri %]</a></td>[% END %]
773
                [% IF ( itemdata_copynumber ) %]<td>[% ITEM_RESULT.copynumber %]</td>[% END %]
774
                <td>[% INCLUDE 'item-status.inc' item = ITEM_RESULT %]</td>
775
                [% IF ( itemdata_itemnotes ) %]<td>[% ITEM_RESULT.itemnotes %]</td>[% END %]
776
                <td>[% ITEM_RESULT.datedue | $KohaDates %]</td>
777
            </tr>
778
            [% END %]</tbody>
779
        </table>
748
    [% END %]
780
    [% END %]
749
[% ELSE %]
781
[% ELSE %]
750
    [% IF ( ALTERNATEHOLDINGS ) %]
782
    [% IF ( ALTERNATEHOLDINGS ) %]
Lines 784-790 YAHOO.util.Event.onContentReady("furtherm", function () { Link Here
784
    [% IF ( OPACAmazonEnabled ) %][% IF ( OPACAmazonCoverImages ) %][% IF ( NEXT_SHELF_BROWS.browser_normalized_isbn ) %]
816
    [% IF ( OPACAmazonEnabled ) %][% IF ( OPACAmazonCoverImages ) %][% IF ( NEXT_SHELF_BROWS.browser_normalized_isbn ) %]
785
    <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 %][% END %]
817
    <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 %][% END %]
786
818
787
	[% IF ( SyndeticsEnabled ) %][% IF ( SyndeticsCoverImages ) %][% IF ( content_identifier_exists ) %]
819
        [% IF ( SyndeticsEnabled ) %][% IF ( SyndeticsCoverImages ) %][% IF ( content_identifier_exists ) %]
788
    [% IF ( using_https ) %]
820
    [% IF ( using_https ) %]
789
    <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="" />
821
    <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="" />
790
    [% 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 %]
822
    [% 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 885-897 YAHOO.util.Event.onContentReady("furtherm", function () { Link Here
885
[% FOREACH SYNDETICS_REVIEW IN SYNDETICS_REVIEWS %]
917
[% FOREACH SYNDETICS_REVIEW IN SYNDETICS_REVIEWS %]
886
    [% IF ( SYNDETICS_REVIEW.title ) %]
918
    [% IF ( SYNDETICS_REVIEW.title ) %]
887
    <h4>[% SYNDETICS_REVIEW.title %]</h4>
919
    <h4>[% SYNDETICS_REVIEW.title %]</h4>
888
	[% FOREACH review IN SYNDETICS_REVIEW.reviews %]
920
        [% FOREACH review IN SYNDETICS_REVIEW.reviews %]
889
921
890
	[% IF ( review.content ) %]
922
        [% IF ( review.content ) %]
891
		[% review.content %]
923
                [% review.content %]
892
	[% END %]
924
        [% END %]
893
925
894
	[% END %]
926
        [% END %]
895
    [% END %]
927
    [% END %]
896
[% END %]
928
[% END %]
897
</div>
929
</div>
Lines 972-996 YAHOO.util.Event.onContentReady("furtherm", function () { Link Here
972
1004
973
[% IF ( LibraryThingForLibrariesID ) %] 
1005
[% IF ( LibraryThingForLibrariesID ) %] 
974
[% IF ( LibraryThingForLibrariesTabbedView ) %]
1006
[% IF ( LibraryThingForLibrariesTabbedView ) %]
975
	<!-- Library Thing for Libraries Content --> 
1007
        <!-- Library Thing for Libraries Content -->
976
		<div id="LFTLSimilarItems">
1008
                <div id="LFTLSimilarItems">
977
			<div class="content_set">
1009
                        <div class="content_set">
978
	<!-- Uncommenting this span makes the font smaller in the tab for LTFL -->
1010
        <!-- Uncommenting this span makes the font smaller in the tab for LTFL -->
979
    <!-- but breaks Xhtml validation -->
1011
    <!-- but breaks Xhtml validation -->
980
 	<!--	<span class="results_summary">-->
1012
         <!--        <span class="results_summary">-->
981
				<div id="ltfl_related"></div>
1013
                                <div id="ltfl_related"></div>
982
				<div id="ltfl_similars"></div>
1014
                                <div id="ltfl_similars"></div>
983
	<!--			</span>-->
1015
        <!--                        </span>-->
984
			</div>
1016
                        </div>
985
		</div>
1017
                </div>
986
		 <div id="LTFLTagBrowse">
1018
                 <div id="LTFLTagBrowse">
987
                        <div class="content_set">
1019
                        <div class="content_set">
988
                                <!-- <span class="results_summary"> -->
1020
                                <!-- <span class="results_summary"> -->
989
                                <div id="ltfl_tagbrowse" class="ltfl"></div>
1021
                                <div id="ltfl_tagbrowse" class="ltfl"></div>
990
                                <!-- </span> -->
1022
                                <!-- </span> -->
991
                        </div>
1023
                        </div>
992
                </div>
1024
                </div>
993
	[% END %]
1025
        [% END %]
994
[% END %]
1026
[% END %]
995
<!-- /Library Thing for Libraries Content -->
1027
<!-- /Library Thing for Libraries Content -->
996
1028
(-)a/opac/opac-detail.pl (-1 / +5 lines)
Lines 969-972 if (C4::Context->preference('OPACLocalCoverImages') == 1) { Link Here
969
    $template->{VARS}->{localimages} = \@images;
969
    $template->{VARS}->{localimages} = \@images;
970
}
970
}
971
971
972
$template->param(
973
    'OpacLocationBranchToDisplay'         => C4::Context->preference('OpacLocationBranchToDisplay') ,
974
    'OpacLocationBranchToDisplayShelving' => C4::Context->preference('OpacLocationBranchToDisplayShelving'),
975
);
976
972
output_html_with_http_headers $query, $cookie, $template->output;
977
output_html_with_http_headers $query, $cookie, $template->output;
973
- 

Return to bug 7720