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

(-)a/C4/Search.pm (-2 / +13 lines)
Lines 1246-1256 sub searchResults { Link Here
1246
        $times = $hits;	 # FIXME: if $hits is undefined, why do we want to equal it?
1246
        $times = $hits;	 # FIXME: if $hits is undefined, why do we want to equal it?
1247
    }
1247
    }
1248
1248
1249
    # We get the biblionumber position in MARC 
1250
    my ($bibliotag,$bibliosubf)=GetMarcFromKohaField('biblio.biblionumber','');
1251
    my $fw;
1252
    
1249
    # loop through all of the records we've retrieved
1253
    # loop through all of the records we've retrieved
1250
    for ( my $i = $offset ; $i <= $times - 1 ; $i++ ) {
1254
    for ( my $i = $offset ; $i <= $times - 1 ; $i++ ) {
1251
        my $marcrecord = MARC::File::USMARC::decode( $marcresults[$i] );
1255
        my $marcrecord = MARC::File::USMARC::decode( $marcresults[$i] );
1252
        my $oldbiblio = TransformMarcToKoha( $dbh, $marcrecord, '' );
1256
        
1253
        $oldbiblio->{subtitle} = C4::Biblio::get_koha_field_from_marc('bibliosubtitle', 'subtitle', $marcrecord, '');
1257
        if ($bibliotag<10){
1258
            $fw = GetFrameworkCode($marcrecord->field($bibliotag)->data);
1259
        }else{
1260
            $fw = GetFrameworkCode($marcrecord->subfield($bibliotag,$bibliosubf));
1261
        }
1262
        
1263
        my $oldbiblio = TransformMarcToKoha( $dbh, $marcrecord, $fw );
1264
        $oldbiblio->{subtitle} = GetRecordValue('subtitle', $marcrecord, $fw);
1254
        $oldbiblio->{result_number} = $i + 1;
1265
        $oldbiblio->{result_number} = $i + 1;
1255
1266
1256
        # add imageurl to itemtype if there is one
1267
        # add imageurl to itemtype if there is one
(-)a/catalogue/detail.pl (-1 / +1 lines)
Lines 65-71 my $marcauthorsarray = GetMarcAuthors( $record, $marcflavour ); Link Here
65
my $marcsubjctsarray = GetMarcSubjects( $record, $marcflavour );
65
my $marcsubjctsarray = GetMarcSubjects( $record, $marcflavour );
66
my $marcseriesarray  = GetMarcSeries($record,$marcflavour);
66
my $marcseriesarray  = GetMarcSeries($record,$marcflavour);
67
my $marcurlsarray    = GetMarcUrls    ($record,$marcflavour);
67
my $marcurlsarray    = GetMarcUrls    ($record,$marcflavour);
68
my $subtitle         = C4::Biblio::get_koha_field_from_marc('bibliosubtitle', 'subtitle', $record, '');
68
my $subtitle         = GetRecordValue('subtitle', $record, $fw);
69
69
70
# Get Branches, Itemtypes and Locations
70
# Get Branches, Itemtypes and Locations
71
my $branches = GetBranches();
71
my $branches = GetBranches();
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tmpl (-1 / +4 lines)
Lines 56-62 function verify_images() { Link Here
56
    <!-- TMPL_IF NAME="AmazonContent" --><div class="yui-gb"><!-- TMPL_ELSE --><div class="yui-g"><!-- /TMPL_IF -->
56
    <!-- TMPL_IF NAME="AmazonContent" --><div class="yui-gb"><!-- TMPL_ELSE --><div class="yui-g"><!-- /TMPL_IF -->
57
    <div id="catalogue_detail_biblio" class="yui-u first">
57
    <div id="catalogue_detail_biblio" class="yui-u first">
58
        
58
        
59
    <h3><!-- TMPL_VAR NAME="title" --> <!-- TMPL_VAR NAME="subtitle" --></h3> 
59
    <h3><!-- TMPL_VAR NAME="title" --></h3>
60
    <!-- TMPL_LOOP NAME="subtitle" -->
61
    	<h4><!-- TMPL_VAR NAME="subfield" --></h4>
62
    <!-- /TMPL_LOOP -->
60
            <!-- TMPL_UNLESS NAME="item-level_itypes" --><img src="<!-- TMPL_VAR NAME="imageurl" -->" alt="<!-- TMPL_VAR NAME="description" -->" title="<!-- TMPL_VAR NAME="description" -->"><!-- /TMPL_UNLESS -->
63
            <!-- TMPL_UNLESS NAME="item-level_itypes" --><img src="<!-- TMPL_VAR NAME="imageurl" -->" alt="<!-- TMPL_VAR NAME="description" -->" title="<!-- TMPL_VAR NAME="description" -->"><!-- /TMPL_UNLESS -->
61
            <!-- TMPL_IF name="unititle" --><p><!-- TMPL_VAR name="unititle" escape="html" --></p><!-- /TMPL_IF -->
64
            <!-- TMPL_IF name="unititle" --><p><!-- TMPL_VAR name="unititle" escape="html" --></p><!-- /TMPL_IF -->
62
            <!-- TMPL_IF NAME="author" --><p>By <a href="/cgi-bin/koha/catalogue/search.pl?q=au:<!-- TMPL_VAR NAME="author" ESCAPE="url" -->"><!-- TMPL_VAR NAME="author" --></a></p><!-- /TMPL_IF -->
65
            <!-- TMPL_IF NAME="author" --><p>By <a href="/cgi-bin/koha/catalogue/search.pl?q=au:<!-- TMPL_VAR NAME="author" ESCAPE="url" -->"><!-- TMPL_VAR NAME="author" --></a></p><!-- /TMPL_IF -->
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/results.tmpl (-5 / +15 lines)
Lines 222-237 $(window).load(function() { Link Here
222
                                    <!-- TMPL_IF name="BiblioDefaultViewmarc" -->
222
                                    <!-- TMPL_IF name="BiblioDefaultViewmarc" -->
223
                                        <a class="title" href="/cgi-bin/koha/catalogue/MARCdetail.pl?biblionumber=<!-- TMPL_VAR NAME="biblionumber" ESCAPE="URL" -->">
223
                                        <a class="title" href="/cgi-bin/koha/catalogue/MARCdetail.pl?biblionumber=<!-- TMPL_VAR NAME="biblionumber" ESCAPE="URL" -->">
224
                                            <b><!-- TMPL_IF NAME="title" --><!-- TMPL_VAR NAME="title" --><!-- TMPL_ELSE -->No title<!-- /TMPL_IF --></b>
224
                                            <b><!-- TMPL_IF NAME="title" --><!-- TMPL_VAR NAME="title" --><!-- TMPL_ELSE -->No title<!-- /TMPL_IF --></b>
225
                                        </a> <!-- TMPL_VAR NAME="subtitle" -->
225
                                        </a> 
226
<!-- TMPL_IF name="volume" -->,<!-- TMPL_VAR name="volume" --><!-- /TMPL_IF --> <!-- TMPL_IF name="volumeddesc" -->, <!-- TMPL_VAR name="volumeddesc" --><!-- /TMPL_IF -->
226
                                        <!-- TMPL_LOOP NAME="subtitle" -->
227
                                        	, <!-- TMPL_VAR NAME="subfield" -->
228
                                        <!-- /TMPL_LOOP -->
229
										<!-- TMPL_IF name="volume" -->,<!-- TMPL_VAR name="volume" --><!-- /TMPL_IF --> <!-- TMPL_IF name="volumeddesc" -->, <!-- TMPL_VAR name="volumeddesc" --><!-- /TMPL_IF -->
227
                                    <!-- TMPL_ELSIF NAME="BiblioDefaultViewisbd" -->
230
                                    <!-- TMPL_ELSIF NAME="BiblioDefaultViewisbd" -->
228
                                            <a class="title" href="/cgi-bin/koha/catalogue/ISBDdetail.pl?biblionumber=<!-- TMPL_VAR NAME="biblionumber" ESCAPE="URL" -->">
231
                                            <a class="title" href="/cgi-bin/koha/catalogue/ISBDdetail.pl?biblionumber=<!-- TMPL_VAR NAME="biblionumber" ESCAPE="URL" -->">
229
                                                <!-- TMPL_IF NAME="title" --><!-- TMPL_VAR NAME="title" --><!-- TMPL_ELSE -->No title<!-- /TMPL_IF -->
232
                                                <!-- TMPL_IF NAME="title" --><!-- TMPL_VAR NAME="title" --><!-- TMPL_ELSE -->No title<!-- /TMPL_IF -->
230
                                            </a> <!-- TMPL_VAR NAME="subtitle" --><!-- TMPL_IF name="volume" -->,<!-- TMPL_VAR name="volume" --><!-- /TMPL_IF --> <!-- TMPL_IF name="volumeddesc" -->, <!-- TMPL_VAR name="volumeddesc" --><!-- /TMPL_IF -->
233
                                            </a>
234
                                            <!-- TMPL_LOOP NAME="subtitle" -->
235
                                        		, <!-- TMPL_VAR NAME="subfield" -->
236
                                        	<!-- /TMPL_LOOP -->
237
											<!-- TMPL_IF name="volume" -->,<!-- TMPL_VAR name="volume" --><!-- /TMPL_IF --> <!-- TMPL_IF name="volumeddesc" -->, <!-- TMPL_VAR name="volumeddesc" --><!-- /TMPL_IF -->
231
                                    <!-- TMPL_ELSE -->
238
                                    <!-- TMPL_ELSE -->
232
                                            <a class="title" href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=<!-- TMPL_VAR NAME="biblionumber" ESCAPE="URL" -->">
239
                                            <a class="title" href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=<!-- TMPL_VAR NAME="biblionumber" ESCAPE="URL" -->">
233
                                                <!-- TMPL_IF NAME="title" --><!-- TMPL_VAR NAME="title" --><!-- TMPL_ELSE -->No title<!-- /TMPL_IF -->
240
                                                <!-- TMPL_IF NAME="title" --><!-- TMPL_VAR NAME="title" --><!-- TMPL_ELSE -->No title<!-- /TMPL_IF -->
234
                                            </a> <!-- TMPL_VAR NAME="subtitle" --><!-- TMPL_IF name="volume" -->,<!-- TMPL_VAR name="volume" --><!-- /TMPL_IF --> <!-- TMPL_IF name="volumeddesc" -->, <!-- TMPL_VAR name="volumeddesc" --><!-- /TMPL_IF -->
241
                                            </a>
242
                                            <!-- TMPL_LOOP NAME="subtitle" -->
243
                                        		, <!-- TMPL_VAR NAME="subfield" -->
244
                                        	<!-- /TMPL_LOOP -->
245
											<!-- TMPL_IF name="volume" -->,<!-- TMPL_VAR name="volume" --><!-- /TMPL_IF --> <!-- TMPL_IF name="volumeddesc" -->, <!-- TMPL_VAR name="volumeddesc" --><!-- /TMPL_IF -->
235
									<!-- /TMPL_IF -->
246
									<!-- /TMPL_IF -->
236
                                </p>
247
                                </p>
237
                                <!-- TMPL_IF name="summary" -->
248
                                <!-- TMPL_IF name="summary" -->
238
- 

Return to bug 3550