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 369-371 INSERT INTO systempreferences (variable,value,explanation,options,type) VALUES(' Link Here
369
INSERT INTO systempreferences (variable,value,explanation,options,type) VALUES('SuspendHoldsIntranet', '1', NULL , 'Allow holds to be suspended from the intranet.', 'YesNo');
369
INSERT INTO systempreferences (variable,value,explanation,options,type) VALUES('SuspendHoldsIntranet', '1', NULL , 'Allow holds to be suspended from the intranet.', 'YesNo');
370
INSERT INTO systempreferences (variable,value,explanation,options,type) VALUES('SuspendHoldsOpac', '1', NULL , 'Allow holds to be suspended from the OPAC.', 'YesNo');
370
INSERT INTO systempreferences (variable,value,explanation,options,type) VALUES('SuspendHoldsOpac', '1', NULL , 'Allow holds to be suspended from the OPAC.', 'YesNo');
371
INSERT INTO systempreferences (variable,value,explanation,options,type) VALUES('DefaultLanguageField008','','Fill in the default language for field 008 Range 35-37 (e.g. eng, nor, ger, see <a href="http://www.loc.gov/marc/languages/language_code.html">MARC Code List for Languages</a>)','','Free');
371
INSERT INTO systempreferences (variable,value,explanation,options,type) VALUES('DefaultLanguageField008','','Fill in the default language for field 008 Range 35-37 (e.g. eng, nor, ger, see <a href="http://www.loc.gov/marc/languages/language_code.html">MARC Code List for Languages</a>)','','Free');
372
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');
373
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 5247-5252 if ( C4::Context->preference("Version") < TransformToNum($DBversion) ) { Link Here
5247
    SetVersion($DBversion);
5247
    SetVersion($DBversion);
5248
}
5248
}
5249
5249
5250
<<<<<<< HEAD
5250
$DBversion = "3.09.00.005";
5251
$DBversion = "3.09.00.005";
5251
if ( C4::Context->preference("Version") < TransformToNum($DBversion) ) {
5252
if ( C4::Context->preference("Version") < TransformToNum($DBversion) ) {
5252
    unless (TableExists('quotes')) {
5253
    unless (TableExists('quotes')) {
Lines 5343-5348 if ( C4::Context->preference("Version") < TransformToNum($DBversion) ) { Link Here
5343
    SetVersion($DBversion);
5344
    SetVersion($DBversion);
5344
}
5345
}
5345
5346
5347
$DBversion = "3.09.00.XXX";
5348
if ( C4::Context->preference("Version") < TransformToNum($DBversion) ) {
5349
    $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')");
5350
    $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')");
5351
    print "Upgrade to $DBversion done (Added system preference OpacLocationBranchToDisplay)\n";
5352
    SetVersion($DBversion);
5353
}
5354
5346
=head1 FUNCTIONS
5355
=head1 FUNCTIONS
5347
5356
5348
=head2 TableExists($table)
5357
=head2 TableExists($table)
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/opac.pref (+16 lines)
Lines 94-99 OPAC: Link Here
94
                  no: "Don't show"
94
                  no: "Don't show"
95
            - the name of the patron that has an item checked out on item detail pages on the OPAC.
95
            - the name of the patron that has an item checked out on item detail pages on the OPAC.
96
        -
96
        -
97
            - Display the
98
            - pref: OpacLocationBranchToDisplay
99
              choices:
100
                  home: "home library"
101
                  holding: "holding library"
102
                  both: "home and holding libraries"
103
            - for items on the OPAC record details page.
104
        -
105
            - Display the shelving location under the
106
            - pref: OpacLocationBranchToDisplayShelving
107
              choices:
108
                  home: "home library"
109
                  holding: "holding library"
110
                  both: "home and holding libraries"
111
            - for items on the OPAC record details page.
112
        -
97
            - pref: OpacKohaUrl
113
            - pref: OpacKohaUrl
98
              default: 0
114
              default: 0
99
              choices:
115
              choices:
(-)a/koha-tmpl/opac-tmpl/prog/en/modules/opac-detail.tt (-102 / +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 724-767 YAHOO.util.Event.onContentReady("furtherm", function () { Link Here
724
            <th>Item hold queue priority</th>
731
            <th>Item hold queue priority</th>
725
        [% END %]
732
        [% END %]
726
        </tr></thead>
733
        </tr></thead>
727
	    <tbody>[% FOREACH ITEM_RESULT IN ITEM_RESULTS %]
734
            <tbody>[% FOREACH ITEM_RESULT IN ITEM_RESULTS %]
728
	    <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 %]
735
            <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 %]
729
		<td>
736
                [% UNLESS ( singleBranchMode ) %]
730
    [% UNLESS ( singleBranchMode ) %]
737
                        [% IF ( OpacLocationBranchToDisplay == 'holding' || OpacLocationBranchToDisplay == 'both' ) %]
731
        <span class="[% ITEM_RESULT.branch_opac_info ? 'branch-info-tooltip-trigger' : '' %]">
738
                                <td>
732
        [% IF ( ITEM_RESULT.branchurl ) %]
739
                                        <span class="[% ITEM_RESULT.branch_opac_info ? 'branch-info-tooltip-trigger' : '' %]">
733
        <a href="[% ITEM_RESULT.branchurl %]">[% ITEM_RESULT.branchname %]</a>
740
                                                [% IF ( ITEM_RESULT.branchurl ) %]
734
        [% ELSE %]
741
                                                        <a href="[% ITEM_RESULT.branchurl %]">[% ITEM_RESULT.branchname %]</a>
735
        [% ITEM_RESULT.branchname %]
742
                                                [% ELSE %]
736
        [% END %]
743
                                                        [% ITEM_RESULT.branchname %]
737
        </span>
744
                                                [% END %]
738
        <div class="branch-info-tooltip">[% ITEM_RESULT.branch_opac_info %]</div>
745
                                        </span>
739
    [% END %]
746
740
    <span class="shelvingloc">[% ITEM_RESULT.location_description %]</span>
747
                                        [% IF ( OpacLocationBranchToDisplayShelving == 'holding' || OpacLocationBranchToDisplayShelving == 'both' ) %]
741
    </td>
748
                                                <span class="shelvingloc">[% ITEM_RESULT.location_description %]</span>
742
		[% IF ( itemdata_ccode ) %]<td>[% ITEM_RESULT.ccode %]</td>[% END %]
749
                                        [% END %]
743
        <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>
750
744
		[% IF ( itemdata_enumchron ) %]<td>[% ITEM_RESULT.enumchron %]</td>[% END %]
751
                                        <div class="branch-info-tooltip">[% ITEM_RESULT.branch_opac_info %]</div>
745
		[% IF ( itemdata_uri ) %]<td><a href="[% ITEM_RESULT.uri %]">[% ITEM_RESULT.uri %]</a></td>[% END %]
752
                                </td>
746
		[% IF ( itemdata_copynumber ) %]<td>[% ITEM_RESULT.copynumber %]</td>[% END %]
753
                        [% END %]
747
		<td>[% INCLUDE 'item-status.inc' item = ITEM_RESULT %]</td>
754
748
		[% IF ( itemdata_itemnotes ) %]<td>[% ITEM_RESULT.itemnotes %]</td>[% END %]
755
                        [% IF ( OpacLocationBranchToDisplay == 'home' || OpacLocationBranchToDisplay == 'both' ) %]
749
		<td>[% ITEM_RESULT.datedue | $KohaDates %]</td>
756
                                <td>
750
        [% IF holds_count.defined || show_priority %]
757
                                        <span class="[% ITEM_RESULT.branch_opac_info ? 'branch-info-tooltip-trigger' : '' %]">
751
        <td>
758
                                                [% IF ( ITEM_RESULT.homebranchurl ) %]
752
            [% IF holds_count.defined %] [% ITEM_RESULT.holds_count %] [% END %]
759
                                                        <a href="[% ITEM_RESULT.homebranchurl %]">[% ITEM_RESULT.homebranchname %]</a>
753
            [% IF ITEM_RESULT.priority %]
760
                                                [% ELSE %]
754
                [% IF holds_count.defined %]
761
                                                         [% ITEM_RESULT.homebranchname %]
755
                (priority [% ITEM_RESULT.priority %])
762
                                                [% END %]
756
                [% ELSE %]
763
                                        </span>
757
                [% ITEM_RESULT.priority %]
764
765
                                        [% IF ( OpacLocationBranchToDisplayShelving == 'home' || OpacLocationBranchToDisplayShelving == 'both' ) %]
766
                                                <span class="shelvingloc">[% ITEM_RESULT.location_description %]</span>
767
                                        [% END %]
768
                                </td>
769
                        [% END %]
770
		[% ELSE %]
771
                        <span class="shelvingloc">[% ITEM_RESULT.location_description %]</span>
758
                [% END %]
772
                [% END %]
759
            [% END %]
773
760
                </td>
774
                [% IF ( itemdata_ccode ) %]<td>[% ITEM_RESULT.ccode %]</td>[% END %]
761
        [% END %]
775
                <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>
762
	    </tr>
776
                [% IF ( itemdata_enumchron ) %]<td>[% ITEM_RESULT.enumchron %]</td>[% END %]
763
	    [% END %]</tbody>
777
                [% IF ( itemdata_uri ) %]<td><a href="[% ITEM_RESULT.uri %]">[% ITEM_RESULT.uri %]</a></td>[% END %]
764
	</table>
778
                [% IF ( itemdata_copynumber ) %]<td>[% ITEM_RESULT.copynumber %]</td>[% END %]
779
                <td>[% INCLUDE 'item-status.inc' item = ITEM_RESULT %]</td>
780
                [% IF ( itemdata_itemnotes ) %]<td>[% ITEM_RESULT.itemnotes %]</td>[% END %]
781
                <td>[% ITEM_RESULT.datedue | $KohaDates %]</td>
782
            </tr>
783
            [% END %]</tbody>
784
        </table>
765
    [% END %]
785
    [% END %]
766
    [% IF holds_count.defined || priority %]
786
    [% IF holds_count.defined || priority %]
767
    <div id="bib_holds">
787
    <div id="bib_holds">
Lines 815-821 YAHOO.util.Event.onContentReady("furtherm", function () { Link Here
815
    [% IF ( OPACAmazonEnabled ) %][% IF ( OPACAmazonCoverImages ) %][% IF ( NEXT_SHELF_BROWS.browser_normalized_isbn ) %]
835
    [% IF ( OPACAmazonEnabled ) %][% IF ( OPACAmazonCoverImages ) %][% IF ( NEXT_SHELF_BROWS.browser_normalized_isbn ) %]
816
    <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 %]
836
    <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
837
818
	[% IF ( SyndeticsEnabled ) %][% IF ( SyndeticsCoverImages ) %][% IF ( content_identifier_exists ) %]
838
        [% IF ( SyndeticsEnabled ) %][% IF ( SyndeticsCoverImages ) %][% IF ( content_identifier_exists ) %]
819
    [% IF ( using_https ) %]
839
    [% IF ( using_https ) %]
820
    <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="" />
840
    <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
    [% 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 %]
841
    [% 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 916-928 YAHOO.util.Event.onContentReady("furtherm", function () { Link Here
916
[% FOREACH SYNDETICS_REVIEW IN SYNDETICS_REVIEWS %]
936
[% FOREACH SYNDETICS_REVIEW IN SYNDETICS_REVIEWS %]
917
    [% IF ( SYNDETICS_REVIEW.title ) %]
937
    [% IF ( SYNDETICS_REVIEW.title ) %]
918
    <h4>[% SYNDETICS_REVIEW.title %]</h4>
938
    <h4>[% SYNDETICS_REVIEW.title %]</h4>
919
	[% FOREACH review IN SYNDETICS_REVIEW.reviews %]
939
        [% FOREACH review IN SYNDETICS_REVIEW.reviews %]
920
940
921
	[% IF ( review.content ) %]
941
        [% IF ( review.content ) %]
922
		[% review.content %]
942
                [% review.content %]
923
	[% END %]
943
        [% END %]
924
944
925
	[% END %]
945
        [% END %]
926
    [% END %]
946
    [% END %]
927
[% END %]
947
[% END %]
928
</div>
948
</div>
Lines 1003-1027 YAHOO.util.Event.onContentReady("furtherm", function () { Link Here
1003
1023
1004
[% IF ( LibraryThingForLibrariesID ) %] 
1024
[% IF ( LibraryThingForLibrariesID ) %] 
1005
[% IF ( LibraryThingForLibrariesTabbedView ) %]
1025
[% IF ( LibraryThingForLibrariesTabbedView ) %]
1006
	<!-- Library Thing for Libraries Content --> 
1026
        <!-- Library Thing for Libraries Content -->
1007
		<div id="LFTLSimilarItems">
1027
                <div id="LFTLSimilarItems">
1008
			<div class="content_set">
1028
                        <div class="content_set">
1009
	<!-- Uncommenting this span makes the font smaller in the tab for LTFL -->
1029
        <!-- Uncommenting this span makes the font smaller in the tab for LTFL -->
1010
    <!-- but breaks Xhtml validation -->
1030
    <!-- but breaks Xhtml validation -->
1011
 	<!--	<span class="results_summary">-->
1031
         <!--        <span class="results_summary">-->
1012
				<div id="ltfl_related"></div>
1032
                                <div id="ltfl_related"></div>
1013
				<div id="ltfl_similars"></div>
1033
                                <div id="ltfl_similars"></div>
1014
	<!--			</span>-->
1034
        <!--                        </span>-->
1015
			</div>
1035
                        </div>
1016
		</div>
1036
                </div>
1017
		 <div id="LTFLTagBrowse">
1037
                 <div id="LTFLTagBrowse">
1018
                        <div class="content_set">
1038
                        <div class="content_set">
1019
                                <!-- <span class="results_summary"> -->
1039
                                <!-- <span class="results_summary"> -->
1020
                                <div id="ltfl_tagbrowse" class="ltfl"></div>
1040
                                <div id="ltfl_tagbrowse" class="ltfl"></div>
1021
                                <!-- </span> -->
1041
                                <!-- </span> -->
1022
                        </div>
1042
                        </div>
1023
                </div>
1043
                </div>
1024
	[% END %]
1044
        [% END %]
1025
[% END %]
1045
[% END %]
1026
<!-- /Library Thing for Libraries Content -->
1046
<!-- /Library Thing for Libraries Content -->
1027
1047
(-)a/opac/opac-detail.pl (-1 / +5 lines)
Lines 996-999 if (C4::Context->preference('OPACLocalCoverImages') == 1) { Link Here
996
    $template->{VARS}->{localimages} = \@images;
996
    $template->{VARS}->{localimages} = \@images;
997
}
997
}
998
998
999
$template->param(
1000
    'OpacLocationBranchToDisplay'         => C4::Context->preference('OpacLocationBranchToDisplay') ,
1001
    'OpacLocationBranchToDisplayShelving' => C4::Context->preference('OpacLocationBranchToDisplayShelving'),
1002
);
1003
999
output_html_with_http_headers $query, $cookie, $template->output;
1004
output_html_with_http_headers $query, $cookie, $template->output;
1000
- 

Return to bug 7720