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

(-)a/C4/Items.pm (-1 / +10 lines)
Lines 1192-1198 sub GetItemsInfo { Link Here
1192
           itemtypes.notforloan as notforloan_per_itemtype,
1192
           itemtypes.notforloan as notforloan_per_itemtype,
1193
           holding.branchurl,
1193
           holding.branchurl,
1194
           holding.branchname,
1194
           holding.branchname,
1195
           holding.opac_info as branch_opac_info
1195
           holding.opac_info as branch_opac_info,
1196
           home.branchurl AS homebranchurl
1196
     FROM items
1197
     FROM items
1197
     LEFT JOIN branches AS holding ON items.holdingbranch = holding.branchcode
1198
     LEFT JOIN branches AS holding ON items.holdingbranch = holding.branchcode
1198
     LEFT JOIN branches AS home ON items.homebranch=home.branchcode
1199
     LEFT JOIN branches AS home ON items.homebranch=home.branchcode
Lines 1244-1249 sub GetItemsInfo { Link Here
1244
        if ( my $bdata = $bsth->fetchrow_hashref ) {
1245
        if ( my $bdata = $bsth->fetchrow_hashref ) {
1245
            $data->{'branchname'} = $bdata->{'branchname'};
1246
            $data->{'branchname'} = $bdata->{'branchname'};
1246
        }
1247
        }
1248
        $bsth = $dbh->prepare(
1249
            "SELECT * FROM branches WHERE branchcode = ?
1250
        "
1251
        );
1252
        $bsth->execute( $data->{'homebranch'} );
1253
        if ( my $bdata = $bsth->fetchrow_hashref ) {
1254
            $data->{'homebranchname'} = $bdata->{'branchname'};
1255
        }
1247
        $data->{'datedue'}        = $datedue;
1256
        $data->{'datedue'}        = $datedue;
1248
1257
1249
        # get notforloan complete status if applicable
1258
        # get notforloan complete status if applicable
(-)a/installer/data/mysql/sysprefs.sql (+2 lines)
Lines 375-377 INSERT INTO systempreferences (variable,value,options,explanation,type) VALUES ( Link Here
375
INSERT INTO systempreferences (variable,value,explanation,type) VALUES('EnableBorrowerFiles','0','If enabled, allows librarians to upload and attach arbitrary files to a borrower record.','YesNo');
375
INSERT INTO systempreferences (variable,value,explanation,type) VALUES('EnableBorrowerFiles','0','If enabled, allows librarians to upload and attach arbitrary files to a borrower record.','YesNo');
376
INSERT INTO systempreferences (variable,value,explanation,options,type) VALUES('UpdateTotalIssuesOnCirc','0','Whether to update the totalissues field in the biblio on each circ.',NULL,'YesNo');
376
INSERT INTO systempreferences (variable,value,explanation,options,type) VALUES('UpdateTotalIssuesOnCirc','0','Whether to update the totalissues field in the biblio on each circ.',NULL,'YesNo');
377
INSERT INTO systempreferences (variable,value,explanation,options,type) VALUES('IntranetSlipPrinterJS','','Use this JavaScript for printing slips. Define at least function printThenClose(). For use e.g. with Firefox PlugIn jsPrintSetup, see http://jsprintsetup.mozdev.org/','','Free');
377
INSERT INTO systempreferences (variable,value,explanation,options,type) VALUES('IntranetSlipPrinterJS','','Use this JavaScript for printing slips. Define at least function printThenClose(). For use e.g. with Firefox PlugIn jsPrintSetup, see http://jsprintsetup.mozdev.org/','','Free');
378
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');
379
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 (+9 lines)
Lines 5556-5561 if ( C4::Context->preference("Version") < TransformToNum($DBversion) ) { Link Here
5556
    SetVersion($DBversion);
5556
    SetVersion($DBversion);
5557
}
5557
}
5558
5558
5559
$DBversion = "3.09.00.XXX";
5560
if ( C4::Context->preference("Version") < TransformToNum($DBversion) ) {
5561
    $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')");
5562
    $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')");
5563
5564
    print "Upgrade to $DBversion done (Added system preferences OpacLocationBranchToDisplay, OpacLocationBranchToDisplayShelving)\n";
5565
    SetVersion($DBversion);
5566
}
5567
5559
=head1 FUNCTIONS
5568
=head1 FUNCTIONS
5560
5569
5561
=head2 TableExists($table)
5570
=head2 TableExists($table)
(-)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 (-103 / +122 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 725-769 YAHOO.util.Event.onContentReady("furtherm", function () { Link Here
725
            <th>Item hold queue priority</th>
732
            <th>Item hold queue priority</th>
726
        [% END %]
733
        [% END %]
727
        </tr></thead>
734
        </tr></thead>
728
	    <tbody>[% FOREACH ITEM_RESULT IN ITEM_RESULTS %]
735
            <tbody>[% FOREACH ITEM_RESULT IN ITEM_RESULTS %]
729
	    <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 %]
736
            <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
		<td>
737
                [% UNLESS ( singleBranchMode ) %]
731
    [% UNLESS ( singleBranchMode ) %]
738
                        [% IF ( OpacLocationBranchToDisplay == 'holding' || OpacLocationBranchToDisplay == 'both' ) %]
732
        <span class="[% ITEM_RESULT.branch_opac_info ? 'branch-info-tooltip-trigger' : '' %]">
739
                                <td>
733
        [% IF ( ITEM_RESULT.branchurl ) %]
740
                                        <span class="[% ITEM_RESULT.branch_opac_info ? 'branch-info-tooltip-trigger' : '' %]">
734
        <a href="[% ITEM_RESULT.branchurl %]">[% ITEM_RESULT.branchname %]</a>
741
                                                [% IF ( ITEM_RESULT.branchurl ) %]
735
        [% ELSE %]
742
                                                        <a href="[% ITEM_RESULT.branchurl %]">[% ITEM_RESULT.branchname %]</a>
736
        [% ITEM_RESULT.branchname %]
743
                                                [% ELSE %]
737
        [% END %]
744
                                                        [% ITEM_RESULT.branchname %]
738
        </span>
745
                                                [% END %]
739
        <div class="branch-info-tooltip">[% ITEM_RESULT.branch_opac_info %]</div>
746
                                        </span>
740
    [% END %]
747
741
    <span class="shelvingloc">[% ITEM_RESULT.location_description %]</span>
748
                                        [% IF ( OpacLocationBranchToDisplayShelving == 'holding' || OpacLocationBranchToDisplayShelving == 'both' ) %]
742
    </td>
749
                                                <span class="shelvingloc">[% ITEM_RESULT.location_description %]</span>
743
		[% IF ( itemdata_ccode ) %]<td>[% ITEM_RESULT.ccode %]</td>[% END %]
750
                                        [% END %]
744
        <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>
751
745
		[% IF ( itemdata_enumchron ) %]<td>[% ITEM_RESULT.enumchron %]</td>[% END %]
752
                                        <div class="branch-info-tooltip">[% ITEM_RESULT.branch_opac_info %]</div>
746
		[% IF ( itemdata_uri ) %]<td><a href="[% ITEM_RESULT.uri %]">[% ITEM_RESULT.uri %]</a></td>[% END %]
753
                                </td>
747
		[% IF ( itemdata_copynumber ) %]<td>[% ITEM_RESULT.copynumber %]</td>[% END %]
754
                        [% END %]
748
		<td>[% INCLUDE 'item-status.inc' item = ITEM_RESULT %]</td>
755
749
		[% IF ( itemdata_itemnotes ) %]<td>[% ITEM_RESULT.itemnotes %]</td>[% END %]
756
                        [% IF ( OpacLocationBranchToDisplay == 'home' || OpacLocationBranchToDisplay == 'both' ) %]
750
        <td>[% ITEM_RESULT.datedue | $KohaDates %]</td>
757
                                <td>
751
        [% IF ( OPACShowBarcode ) %]<td>[% ITEM_RESULT.barcode %]</td>[% END %]
758
                                        <span class="[% ITEM_RESULT.branch_opac_info ? 'branch-info-tooltip-trigger' : '' %]">
752
        [% IF holds_count.defined || show_priority %]
759
                                                [% IF ( ITEM_RESULT.homebranchurl ) %]
753
        <td>
760
                                                        <a href="[% ITEM_RESULT.homebranchurl %]">[% ITEM_RESULT.homebranchname %]</a>
754
            [% IF holds_count.defined %] [% ITEM_RESULT.holds_count %] [% END %]
761
                                                [% ELSE %]
755
            [% IF ITEM_RESULT.priority %]
762
                                                         [% ITEM_RESULT.homebranchname %]
756
                [% IF holds_count.defined %]
763
                                                [% END %]
757
                (priority [% ITEM_RESULT.priority %])
764
                                        </span>
758
                [% ELSE %]
765
759
                [% ITEM_RESULT.priority %]
766
                                        [% IF ( OpacLocationBranchToDisplayShelving == 'home' || OpacLocationBranchToDisplayShelving == 'both' ) %]
767
                                                <span class="shelvingloc">[% ITEM_RESULT.location_description %]</span>
768
                                        [% END %]
769
                                </td>
770
                        [% END %]
771
		[% ELSE %]
772
                        <span class="shelvingloc">[% ITEM_RESULT.location_description %]</span>
760
                [% END %]
773
                [% END %]
761
            [% END %]
774
762
                </td>
775
                [% IF ( itemdata_ccode ) %]<td>[% ITEM_RESULT.ccode %]</td>[% END %]
763
        [% END %]
776
                <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>
764
	    </tr>
777
                [% IF ( itemdata_enumchron ) %]<td>[% ITEM_RESULT.enumchron %]</td>[% END %]
765
	    [% END %]</tbody>
778
                [% IF ( itemdata_uri ) %]<td><a href="[% ITEM_RESULT.uri %]">[% ITEM_RESULT.uri %]</a></td>[% END %]
766
	</table>
779
                [% IF ( itemdata_copynumber ) %]<td>[% ITEM_RESULT.copynumber %]</td>[% END %]
780
                <td>[% INCLUDE 'item-status.inc' item = ITEM_RESULT %]</td>
781
                [% IF ( itemdata_itemnotes ) %]<td>[% ITEM_RESULT.itemnotes %]</td>[% END %]
782
                <td>[% ITEM_RESULT.datedue | $KohaDates %]</td>
783
            </tr>
784
            [% END %]</tbody>
785
        </table>
767
    [% END %]
786
    [% END %]
768
    [% IF holds_count.defined || priority %]
787
    [% IF holds_count.defined || priority %]
769
    <div id="bib_holds">
788
    <div id="bib_holds">
Lines 817-823 YAHOO.util.Event.onContentReady("furtherm", function () { Link Here
817
    [% IF ( OPACAmazonEnabled ) %][% IF ( OPACAmazonCoverImages ) %][% IF ( NEXT_SHELF_BROWS.browser_normalized_isbn ) %]
836
    [% IF ( OPACAmazonEnabled ) %][% IF ( OPACAmazonCoverImages ) %][% IF ( NEXT_SHELF_BROWS.browser_normalized_isbn ) %]
818
    <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 %]
837
    <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 %]
819
838
820
	[% IF ( SyndeticsEnabled ) %][% IF ( SyndeticsCoverImages ) %][% IF ( content_identifier_exists ) %]
839
        [% IF ( SyndeticsEnabled ) %][% IF ( SyndeticsCoverImages ) %][% IF ( content_identifier_exists ) %]
821
    [% IF ( using_https ) %]
840
    [% IF ( using_https ) %]
822
    <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="" />
841
    <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="" />
823
    [% 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 %]
842
    [% 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 918-930 YAHOO.util.Event.onContentReady("furtherm", function () { Link Here
918
[% FOREACH SYNDETICS_REVIEW IN SYNDETICS_REVIEWS %]
937
[% FOREACH SYNDETICS_REVIEW IN SYNDETICS_REVIEWS %]
919
    [% IF ( SYNDETICS_REVIEW.title ) %]
938
    [% IF ( SYNDETICS_REVIEW.title ) %]
920
    <h4>[% SYNDETICS_REVIEW.title %]</h4>
939
    <h4>[% SYNDETICS_REVIEW.title %]</h4>
921
	[% FOREACH review IN SYNDETICS_REVIEW.reviews %]
940
        [% FOREACH review IN SYNDETICS_REVIEW.reviews %]
922
941
923
	[% IF ( review.content ) %]
942
        [% IF ( review.content ) %]
924
		[% review.content %]
943
                [% review.content %]
925
	[% END %]
944
        [% END %]
926
945
927
	[% END %]
946
        [% END %]
928
    [% END %]
947
    [% END %]
929
[% END %]
948
[% END %]
930
</div>
949
</div>
Lines 1005-1029 YAHOO.util.Event.onContentReady("furtherm", function () { Link Here
1005
1024
1006
[% IF ( LibraryThingForLibrariesID ) %] 
1025
[% IF ( LibraryThingForLibrariesID ) %] 
1007
[% IF ( LibraryThingForLibrariesTabbedView ) %]
1026
[% IF ( LibraryThingForLibrariesTabbedView ) %]
1008
	<!-- Library Thing for Libraries Content --> 
1027
        <!-- Library Thing for Libraries Content -->
1009
		<div id="LFTLSimilarItems">
1028
                <div id="LFTLSimilarItems">
1010
			<div class="content_set">
1029
                        <div class="content_set">
1011
	<!-- Uncommenting this span makes the font smaller in the tab for LTFL -->
1030
        <!-- Uncommenting this span makes the font smaller in the tab for LTFL -->
1012
    <!-- but breaks Xhtml validation -->
1031
    <!-- but breaks Xhtml validation -->
1013
 	<!--	<span class="results_summary">-->
1032
         <!--        <span class="results_summary">-->
1014
				<div id="ltfl_related"></div>
1033
                                <div id="ltfl_related"></div>
1015
				<div id="ltfl_similars"></div>
1034
                                <div id="ltfl_similars"></div>
1016
	<!--			</span>-->
1035
        <!--                        </span>-->
1017
			</div>
1036
                        </div>
1018
		</div>
1037
                </div>
1019
		 <div id="LTFLTagBrowse">
1038
                 <div id="LTFLTagBrowse">
1020
                        <div class="content_set">
1039
                        <div class="content_set">
1021
                                <!-- <span class="results_summary"> -->
1040
                                <!-- <span class="results_summary"> -->
1022
                                <div id="ltfl_tagbrowse" class="ltfl"></div>
1041
                                <div id="ltfl_tagbrowse" class="ltfl"></div>
1023
                                <!-- </span> -->
1042
                                <!-- </span> -->
1024
                        </div>
1043
                        </div>
1025
                </div>
1044
                </div>
1026
	[% END %]
1045
        [% END %]
1027
[% END %]
1046
[% END %]
1028
<!-- /Library Thing for Libraries Content -->
1047
<!-- /Library Thing for Libraries Content -->
1029
1048
(-)a/opac/opac-detail.pl (-1 / +5 lines)
Lines 1000-1003 if (C4::Context->preference('OPACLocalCoverImages') == 1) { Link Here
1000
    $template->{VARS}->{localimages} = \@images;
1000
    $template->{VARS}->{localimages} = \@images;
1001
}
1001
}
1002
1002
1003
$template->param(
1004
    'OpacLocationBranchToDisplay'         => C4::Context->preference('OpacLocationBranchToDisplay') ,
1005
    'OpacLocationBranchToDisplayShelving' => C4::Context->preference('OpacLocationBranchToDisplayShelving'),
1006
);
1007
1003
output_html_with_http_headers $query, $cookie, $template->output;
1008
output_html_with_http_headers $query, $cookie, $template->output;
1004
- 

Return to bug 7720