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

(-)a/C4/Biblio.pm (-8 / +11 lines)
Lines 68-74 BEGIN { Link Here
68
        TransformHtmlToMarc
68
        TransformHtmlToMarc
69
        TransformHtmlToXml
69
        TransformHtmlToXml
70
        prepare_host_field
70
        prepare_host_field
71
        SplitSubtitle
71
        SplitKohaField
72
    );
72
    );
73
73
74
    # Internal functions
74
    # Internal functions
Lines 3606-3625 sub RemoveAllNsb { Link Here
3606
    return $record;
3606
    return $record;
3607
}
3607
}
3608
3608
3609
=head2 SplitSubtitle
3609
=head2 SplitKohaField
3610
3610
3611
    $subtitles = SplitSubtitle($subtitle);
3611
    $subtitles = SplitKohaField($biblio->subtitle());
3612
3612
3613
Splits a subtitle field to an array of hashes like the one GetRecordValue returns
3613
Splits a Koha field with multiple values to an array. Multiple matches for a
3614
Koha field (according to the bibliographic framework) are concatenated with
3615
' | ', but in many cases it's not optimal for display and an array is
3616
preferred.
3614
3617
3615
=cut
3618
=cut
3616
3619
3617
sub SplitSubtitle {
3620
sub SplitKohaField {
3618
    my $subtitle = shift;
3621
    my $field = shift;
3619
3622
3620
    my @subtitles = map( { 'subfield' => $_ }, split(/ \| /, $subtitle // '' ) );
3623
    my @parts = split(/ \| /, $field // '' );
3621
3624
3622
    return \@subtitles;
3625
    return \@parts;
3623
}
3626
}
3624
3627
3625
1;
3628
1;
(-)a/C4/ShelfBrowser.pm (-1 / +1 lines)
Lines 223-229 sub GetShelfInfo { Link Here
223
        my $this_biblio = GetBibData($item->{biblionumber});
223
        my $this_biblio = GetBibData($item->{biblionumber});
224
        next unless defined $this_biblio;
224
        next unless defined $this_biblio;
225
        $item->{'title'} = $this_biblio->{'title'};
225
        $item->{'title'} = $this_biblio->{'title'};
226
        $item->{'subtitle'} = C4::Biblio::SplitSubtitle($this_biblio->{'subtitle'}),
226
        $item->{'subtitle'} = C4::Biblio::SplitKohaField($this_biblio->{'subtitle'}),
227
        $item->{'medium'} = $this_biblio->{'medium'};
227
        $item->{'medium'} = $this_biblio->{'medium'};
228
        $item->{'part_number'} = $this_biblio->{'part_number'};
228
        $item->{'part_number'} = $this_biblio->{'part_number'};
229
        $item->{'part_name'} = $this_biblio->{'part_name'};
229
        $item->{'part_name'} = $this_biblio->{'part_name'};
(-)a/acqui/neworderbiblio.pl (-1 / +1 lines)
Lines 130-136 foreach my $result ( @{$marcresults} ) { Link Here
130
    my $marcrecord = C4::Search::new_record_from_zebra( 'biblioserver', $result );
130
    my $marcrecord = C4::Search::new_record_from_zebra( 'biblioserver', $result );
131
    my $biblio = TransformMarcToKoha( $marcrecord, '' );
131
    my $biblio = TransformMarcToKoha( $marcrecord, '' );
132
132
133
    $biblio->{subtitles} = C4::Biblio::SplitSubtitle($biblio->{'subtitle'});
133
    $biblio->{subtitles} = C4::Biblio::SplitKohaField($biblio->{'subtitle'});
134
    $biblio->{booksellerid} = $booksellerid;
134
    $biblio->{booksellerid} = $booksellerid;
135
    push @results, $biblio;
135
    push @results, $biblio;
136
136
(-)a/circ/reserveratios.pl (-1 / +1 lines)
Lines 164-170 while ( my $data = $sth->fetchrow_hashref ) { Link Here
164
            priority           => $data->{priority},
164
            priority           => $data->{priority},
165
            name               => $data->{borrower},
165
            name               => $data->{borrower},
166
            title              => $data->{title},
166
            title              => $data->{title},
167
            subtitle           => C4::Biblio::SplitSubtitle($data->{'subtitle'});
167
            subtitle           => C4::Biblio::SplitKohaField($data->{'subtitle'}),
168
            author             => $data->{author},
168
            author             => $data->{author},
169
            itemnum            => $data->{itemnumber},
169
            itemnum            => $data->{itemnumber},
170
            biblionumber       => $data->{biblionumber},
170
            biblionumber       => $data->{biblionumber},
(-)a/circ/transferstoreceive.pl (-1 / +1 lines)
Lines 99-105 while ( my $library = $libraries->next ) { Link Here
99
            %getransf = (
99
            %getransf = (
100
                %getransf,
100
                %getransf,
101
                title          => $biblio->title,
101
                title          => $biblio->title,
102
                subtitle       => C4::Biblio::SplitSubtitle($biblio->{'subtitle'}),
102
                subtitle       => C4::Biblio::SplitKohaField($biblio->{'subtitle'}),
103
                medium         => $biblio->medium,
103
                medium         => $biblio->medium,
104
                part_number    => $biblio->part_number,
104
                part_number    => $biblio->part_number,
105
                part_name      => $biblio->part_name,
105
                part_name      => $biblio->part_name,
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/neworderbiblio.tt (-1 / +1 lines)
Lines 50-56 Link Here
50
        <tr>
50
        <tr>
51
            <td>
51
            <td>
52
                <p><span class="title"><a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% biblio.biblionumber | uri %]">[% biblio.title | html %]</a></span>
52
                <p><span class="title"><a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% biblio.biblionumber | uri %]">[% biblio.title | html %]</a></span>
53
                [% FOREACH subtitle IN biblio.subtitles %] <span class="subtitle">[% subtitle.subfield | html %]</span>[% END %]
53
                [% FOREACH subtitle IN biblio.subtitles %] <span class="subtitle">[% subtitle | html %]</span>[% END %]
54
                [% IF ( biblio.author ) %]  by <span class="author">[% biblio.author | html %]</span>,[% END %]</p>
54
                [% IF ( biblio.author ) %]  by <span class="author">[% biblio.author | html %]</span>,[% END %]</p>
55
                <p>[% IF ( biblio.isbn ) %] [% biblio.isbn | html %][% END %]
55
                <p>[% IF ( biblio.isbn ) %] [% biblio.isbn | html %][% END %]
56
                [% IF ( biblio.pages ) %] - [% biblio.pages | html %][% END %]
56
                [% IF ( biblio.pages ) %] - [% biblio.pages | html %][% END %]
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/authorities/merge.tt (-2 / +2 lines)
Lines 56-63 div#result { margin-top: 1em; } Link Here
56
    <fieldset class="rows">
56
    <fieldset class="rows">
57
    <legend>Merge reference</legend>
57
    <legend>Merge reference</legend>
58
    <ol>
58
    <ol>
59
    <li class="radio"><input type="radio" value="[% recordid1 | uri %]" checked="checked" id="mergereference1" name="mergereference" onclick="changeFramework('[% frameworkcode1 | html %]')" /><label for="mergereference1">[% title1 | html %] [% FOREACH subtitl1 IN subtitle1 %] [% subtitl1.subfield | html %][% END %] (<a href="/cgi-bin/koha/authorities/detail.pl?authid=[% recordid1 | uri %]" title="MARC" class="preview-merge-reference" target="_blank">[% recordid1 | html %][% IF frameworklabel1 %] &mdash; [% frameworklabel1 | html %][% END %]</a>)</label></li>
59
    <li class="radio"><input type="radio" value="[% recordid1 | uri %]" checked="checked" id="mergereference1" name="mergereference" onclick="changeFramework('[% frameworkcode1 | html %]')" /><label for="mergereference1">[% title1 | html %] [% FOREACH subtitl1 IN subtitle1 %] [% subtitl1 | html %][% END %] (<a href="/cgi-bin/koha/authorities/detail.pl?authid=[% recordid1 | uri %]" title="MARC" class="preview-merge-reference" target="_blank">[% recordid1 | html %][% IF frameworklabel1 %] &mdash; [% frameworklabel1 | html %][% END %]</a>)</label></li>
60
    <li class="radio"><input type="radio" value="[% recordid2 | uri %]" id="mergereference2" name="mergereference" onclick="changeFramework('[% frameworkcode2 | html %]')" /><label for="mergereference2">[% title2 | html %] [% FOREACH subtitl2 IN subtitle2 %] [% subtitl2.subfield | html %][% END %] (<a href="/cgi-bin/koha/authorities/detail.pl?authid=[% recordid2 | uri %]" title="MARC" class="preview-merge-reference" target="_blank">[% recordid2 | html %][% IF frameworklabel2 %] &mdash; [% frameworklabel2 | html %][% END %]</a>)</label></li>
60
    <li class="radio"><input type="radio" value="[% recordid2 | uri %]" id="mergereference2" name="mergereference" onclick="changeFramework('[% frameworkcode2 | html %]')" /><label for="mergereference2">[% title2 | html %] [% FOREACH subtitl2 IN subtitle2 %] [% subtitl2 | html %][% END %] (<a href="/cgi-bin/koha/authorities/detail.pl?authid=[% recordid2 | uri %]" title="MARC" class="preview-merge-reference" target="_blank">[% recordid2 | html %][% IF frameworklabel2 %] &mdash; [% frameworklabel2 | html %][% END %]</a>)</label></li>
61
61
62
    [% IF frameworkselect %]
62
    [% IF frameworkselect %]
63
          <li><label for="frameworkcode">Using framework:</label>
63
          <li><label for="frameworkcode">Using framework:</label>
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/basket/basket.tt (-2 / +2 lines)
Lines 71-77 Link Here
71
                                <h3>
71
                                <h3>
72
                                    <input type="checkbox" class="select_record noprint" value="[% BIBLIO_RESULT.biblionumber | html %]" name="bib[% BIBLIO_RESULT.biblionumber | html %]" id="bib[% BIBLIO_RESULT.biblionumber | html %]" />
72
                                    <input type="checkbox" class="select_record noprint" value="[% BIBLIO_RESULT.biblionumber | html %]" name="bib[% BIBLIO_RESULT.biblionumber | html %]" id="bib[% BIBLIO_RESULT.biblionumber | html %]" />
73
                                    [% BIBLIO_RESULT.title |html %]
73
                                    [% BIBLIO_RESULT.title |html %]
74
                                    [% FOREACH subtitl IN BIBLIO_RESULT.subtitle %] [% subtitl.subfield | html %][% END %]
74
                                    [% FOREACH subtitl IN BIBLIO_RESULT.subtitle %] [% subtitl | html %][% END %]
75
                                    [% IF ( BIBLIO_RESULT.author ) %] [% BIBLIO_RESULT.author | html %][% END %]
75
                                    [% IF ( BIBLIO_RESULT.author ) %] [% BIBLIO_RESULT.author | html %][% END %]
76
                                </h3>
76
                                </h3>
77
                                <!-- COinS / Openurl -->
77
                                <!-- COinS / Openurl -->
Lines 265-271 Link Here
265
                                            <a href="[% BIBLIO_RESULT.dest | url %]?biblionumber=[% BIBLIO_RESULT.biblionumber | uri %]" class="open_title">
265
                                            <a href="[% BIBLIO_RESULT.dest | url %]?biblionumber=[% BIBLIO_RESULT.biblionumber | uri %]" class="open_title">
266
                                                [% BIBLIO_RESULT.title |html %]
266
                                                [% BIBLIO_RESULT.title |html %]
267
                                                [% FOREACH subtitl IN BIBLIO_RESULT.subtitle %]
267
                                                [% FOREACH subtitl IN BIBLIO_RESULT.subtitle %]
268
                                                    [% subtitl.subfield | html %]
268
                                                    [% subtitl | html %]
269
                                                [% END %]
269
                                                [% END %]
270
                                            </a>
270
                                            </a>
271
                                            [% BIBLIO_RESULT.author | html %]
271
                                            [% BIBLIO_RESULT.author | html %]
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt (-3 / +3 lines)
Lines 34-40 Link Here
34
  [% IF ( unknownbiblionumber ) %]
34
  [% IF ( unknownbiblionumber ) %]
35
    Unknown record
35
    Unknown record
36
  [% ELSE %]
36
  [% ELSE %]
37
    Details for [% title | html %] [% FOREACH subtitl IN subtitle %] [% subtitl.subfield | html %][% END %]
37
    Details for [% title | html %] [% FOREACH subtitl IN subtitle %] [% subtitl | html %][% END %]
38
  [% END %]
38
  [% END %]
39
</title>
39
</title>
40
[% INCLUDE 'doc-head-close.inc' %]
40
[% INCLUDE 'doc-head-close.inc' %]
Lines 49-55 Link Here
49
  [% IF ( unknownbiblionumber ) %]
49
  [% IF ( unknownbiblionumber ) %]
50
    Unknown record
50
    Unknown record
51
  [% ELSE %]
51
  [% ELSE %]
52
    Details for <i>[% title | html %]  [% FOREACH subtitl IN subtitle %] [% subtitl.subfield | html %][% END %]</i>
52
    Details for <i>[% title | html %]  [% FOREACH subtitl IN subtitle %] [% subtitl | html %][% END %]</i>
53
  [% END %]
53
  [% END %]
54
</div>
54
</div>
55
55
Lines 152-158 Link Here
152
152
153
    <h3>[% title | html %]</h3>
153
    <h3>[% title | html %]</h3>
154
    [% FOREACH subtitl IN subtitle %]
154
    [% FOREACH subtitl IN subtitle %]
155
    	<h4>[% subtitl.subfield | html %]</h4>
155
        <h4>[% subtitl | html %]</h4>
156
    [% END %]
156
    [% END %]
157
            [% UNLESS ( item_level_itypes ) %]<img src="[% imageurl | html %]" alt="[% translated_description | html %]" title="[% translated_description | html %]">[% END %]
157
            [% UNLESS ( item_level_itypes ) %]<img src="[% imageurl | html %]" alt="[% translated_description | html %]" title="[% translated_description | html %]">[% END %]
158
            [% IF ( unititle ) %]<p>[% unititle | html %]</p>[% END %]
158
            [% IF ( unititle ) %]<p>[% unititle | html %]</p>[% END %]
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/imageviewer.tt (-2 / +2 lines)
Lines 2-8 Link Here
2
[% USE Asset %]
2
[% USE Asset %]
3
[% SET footerjs = 1 %]
3
[% SET footerjs = 1 %]
4
[% INCLUDE 'doc-head-open.inc' %]
4
[% INCLUDE 'doc-head-open.inc' %]
5
<title>Koha &rsaquo; Catalog &rsaquo; Details for [% biblio.title | html %] [% FOREACH subtitl IN subtitle %] [% subtitl.subfield | html %][% END %]</title>
5
<title>Koha &rsaquo; Catalog &rsaquo; Details for [% biblio.title | html %] [% FOREACH subtitl IN subtitle %] [% subtitl | html %][% END %]</title>
6
[% INCLUDE 'doc-head-close.inc' %]
6
[% INCLUDE 'doc-head-close.inc' %]
7
[% IF ( LocalCoverImages == 1 ) %]
7
[% IF ( LocalCoverImages == 1 ) %]
8
<style>
8
<style>
Lines 39-45 img.thumbnail { Link Here
39
[% INCLUDE 'header.inc' %]
39
[% INCLUDE 'header.inc' %]
40
[% INCLUDE 'cat-search.inc' %]
40
[% INCLUDE 'cat-search.inc' %]
41
41
42
<div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> &rsaquo; <a href="/cgi-bin/koha/catalogue/search.pl">Catalog</a>  &rsaquo; Images for <i>[% biblio.title | html %]  [% FOREACH subtitl IN subtitle %] [% subtitl.subfield | html %][% END %]</i></div>
42
<div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> &rsaquo; <a href="/cgi-bin/koha/catalogue/search.pl">Catalog</a>  &rsaquo; Images for <i>[% biblio.title | html %]  [% FOREACH subtitl IN subtitle %] [% subtitl | html %][% END %]</i></div>
43
43
44
<div id="doc3" class="yui-t1">
44
<div id="doc3" class="yui-t1">
45
45
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/moredetail.tt (-3 / +3 lines)
Lines 5-11 Link Here
5
[% USE Price %]
5
[% USE Price %]
6
[% SET footerjs = 1 %]
6
[% SET footerjs = 1 %]
7
[% INCLUDE 'doc-head-open.inc' %]
7
[% INCLUDE 'doc-head-open.inc' %]
8
<title>Koha &rsaquo; Catalog &rsaquo; Item details for [% title | html %] [% FOREACH subtitl IN subtitle %] [% subtitl.subfield | html %][% END %]</title>
8
<title>Koha &rsaquo; Catalog &rsaquo; Item details for [% title | html %] [% FOREACH subtitl IN subtitle %] [% subtitl | html %][% END %]</title>
9
[% INCLUDE 'doc-head-close.inc' %]
9
[% INCLUDE 'doc-head-close.inc' %]
10
<style>h3{padding-top: 1em; border-top: 2px solid #CCCCCC;}#exportLabelexportModal_{border-top: 0px;}</style>
10
<style>h3{padding-top: 1em; border-top: 2px solid #CCCCCC;}#exportLabelexportModal_{border-top: 0px;}</style>
11
</head>
11
</head>
Lines 14-20 Link Here
14
[% INCLUDE 'header.inc' %]
14
[% INCLUDE 'header.inc' %]
15
[% INCLUDE 'cat-search.inc' %]
15
[% INCLUDE 'cat-search.inc' %]
16
16
17
<div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> &rsaquo; <a href="/cgi-bin/koha/catalogue/search.pl">Catalog</a>  &rsaquo; Item details for <i>[% title | html %] [% FOREACH subtitl IN subtitle %] [% subtitl.subfield | html %][% END %]</i></div>
17
<div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> &rsaquo; <a href="/cgi-bin/koha/catalogue/search.pl">Catalog</a>  &rsaquo; Item details for <i>[% title | html %] [% FOREACH subtitl IN subtitle %] [% subtitl | html %][% END %]</i></div>
18
18
19
<div id="doc3" class="yui-t2">
19
<div id="doc3" class="yui-t2">
20
20
Lines 26-32 Link Here
26
<div id="catalogue_detail_biblio">
26
<div id="catalogue_detail_biblio">
27
27
28
    <h2>[% title | html %]</h2>
28
    <h2>[% title | html %]</h2>
29
    [% IF ( subtitle ) %]<h4>[% FOREACH subtitl IN subtitle %] [% subtitl.subfield | html %][% END %]</h4>[% END %]
29
    [% IF ( subtitle ) %]<h4>[% FOREACH subtitl IN subtitle %] [% subtitl | html %][% END %]</h4>[% END %]
30
    [% IF ( author ) %]<h4>by [% author | html %]</h4>[% END %]
30
    [% IF ( author ) %]<h4>by [% author | html %]</h4>[% END %]
31
    <ol class="bibliodetails">
31
    <ol class="bibliodetails">
32
        <li><span class="label">Biblionumber:</span> [% biblionumber | html %]&nbsp;</li>
32
        <li><span class="label">Biblionumber:</span> [% biblionumber | html %]&nbsp;</li>
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/results.tt (-1 / +1 lines)
Lines 410-416 Link Here
410
				[% INCLUDE 'biblio-default-view.inc' %]
410
				[% INCLUDE 'biblio-default-view.inc' %]
411
                                            <b>[% IF ( SEARCH_RESULT.title ) %][% SEARCH_RESULT.title | html %][% ELSE %]No title[% END %]</b>
411
                                            <b>[% IF ( SEARCH_RESULT.title ) %][% SEARCH_RESULT.title | html %][% ELSE %]No title[% END %]</b>
412
                                            </a>
412
                                            </a>
413
                                        [% FOREACH subtitl IN SEARCH_RESULT.subtitle %], [% subtitl.subfield | html %][% END %]
413
                                        [% FOREACH subtitl IN SEARCH_RESULT.subtitle %], [% subtitl | html %][% END %]
414
                                        [% IF ( SEARCH_RESULT.seriestitle ) %][% SEARCH_RESULT.seriestitle | html %][% END %]
414
                                        [% IF ( SEARCH_RESULT.seriestitle ) %][% SEARCH_RESULT.seriestitle | html %][% END %]
415
                                        [% IF ( SEARCH_RESULT.volume ) %][% SEARCH_RESULT.volume | html %][% END %] [% IF ( SEARCH_RESULT.volumeddesc ) %], [% SEARCH_RESULT.volumeddesc | html %][% END %]
415
                                        [% IF ( SEARCH_RESULT.volume ) %][% SEARCH_RESULT.volume | html %][% END %] [% IF ( SEARCH_RESULT.volumeddesc ) %], [% SEARCH_RESULT.volumeddesc | html %][% END %]
416
                                </p>
416
                                </p>
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/stockrotation.tt (-1 / +1 lines)
Lines 12-18 Link Here
12
[% INCLUDE 'header.inc' %]
12
[% INCLUDE 'header.inc' %]
13
[% INCLUDE 'cat-search.inc' %]
13
[% INCLUDE 'cat-search.inc' %]
14
14
15
<div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> &rsaquo; <a href="/cgi-bin/koha/catalogue/search.pl">Catalog</a>  &rsaquo; Stock rotation details for <i>[% biblio.title | html %][% FOREACH subtitle IN biblio.subtitles %][% subtitle.subfield | html %][% END %]</i></div>
15
<div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> &rsaquo; <a href="/cgi-bin/koha/catalogue/search.pl">Catalog</a>  &rsaquo; Stock rotation details for <i>[% biblio.title | html %][% FOREACH subtitle IN biblio.subtitles %][% subtitle | html %][% END %]</i></div>
16
16
17
<div class="main container-fluid">
17
<div class="main container-fluid">
18
    <div class="row">
18
    <div class="row">
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/addbooks.tt (-1 / +1 lines)
Lines 76-82 Link Here
76
            <td>
76
            <td>
77
                <p>
77
                <p>
78
                    <a href="/cgi-bin/koha/catalogue/MARCdetail.pl?biblionumber=[% resultsloo.biblionumber | uri %]">[% resultsloo.title | html %]</a>
78
                    <a href="/cgi-bin/koha/catalogue/MARCdetail.pl?biblionumber=[% resultsloo.biblionumber | uri %]">[% resultsloo.title | html %]</a>
79
                [% FOREACH subtitl IN resultsloo.subtitle %][% subtitl.subfield | html %][% END %]</p>
79
                [% FOREACH subtitl IN resultsloo.subtitle %][% subtitl | html %][% END %]</p>
80
                [% IF ( resultsloo.summary ) %]
80
                [% IF ( resultsloo.summary ) %]
81
                    <p>[% resultsloo.summary | html %]</p>
81
                    <p>[% resultsloo.summary | html %]</p>
82
                [% ELSE %]
82
                [% ELSE %]
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/merge.tt (-1 / +1 lines)
Lines 101-107 div#result { margin-top: 1em; } Link Here
101
                <label for="ref_biblionumber[% record.biblionumber | html %]">
101
                <label for="ref_biblionumber[% record.biblionumber | html %]">
102
                    [% record.data.title | html %]
102
                    [% record.data.title | html %]
103
                    [% FOREACH subtitle IN record.subtitles %]
103
                    [% FOREACH subtitle IN record.subtitles %]
104
                        [% subtitle.subfield | html %]
104
                        [% subtitle | html %]
105
                    [% END %]
105
                    [% END %]
106
                    ([% record.biblionumber | uri %]) <a href="/cgi-bin/koha/catalogue/showmarc.pl?id=[% record.biblionumber | uri %]" class="previewData">View MARC</a>
106
                    ([% record.biblionumber | uri %]) <a href="/cgi-bin/koha/catalogue/showmarc.pl?id=[% record.biblionumber | uri %]" class="previewData">View MARC</a>
107
                </label>
107
                </label>
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation_batch_checkouts.tt (-1 / +1 lines)
Lines 117-123 Link Here
117
            [% END %]
117
            [% END %]
118
            <td>[% checkout_info.barcode | html %]</td>
118
            <td>[% checkout_info.barcode | html %]</td>
119
            <td>
119
            <td>
120
              <a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% checkout_info.biblio.biblionumber | uri %]&amp;type=intra"><strong>[% checkout_info.biblio.title | html %][% FOREACH subtitle IN checkout_info.biblio.subtitles %] [% subtitle.subfield | html %][% END %]</strong></a>[% IF checkout_info.biblio.author %], by [% checkout_info.biblio.author | html %][% END %][% IF ( checkout_info.item.itemnotes ) %]- <span class="circ-hlt">[% checkout_info.item.itemnotes | html %]</span>[% END %] <a href="/cgi-bin/koha/catalogue/moredetail.pl?biblionumber=[% checkout_info.biblio.biblionumber | html %]&amp;itemnumber=[% checkout_info.item.itemnumber | html %]#item[% checkout_info.item.itemnumber | html %]">[% checkout_info.item.barcode | html %]</a>
120
              <a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% checkout_info.biblio.biblionumber | uri %]&amp;type=intra"><strong>[% checkout_info.biblio.title | html %][% FOREACH subtitle IN checkout_info.biblio.subtitles %] [% subtitle | html %][% END %]</strong></a>[% IF checkout_info.biblio.author %], by [% checkout_info.biblio.author | html %][% END %][% IF ( checkout_info.item.itemnotes ) %]- <span class="circ-hlt">[% checkout_info.item.itemnotes | html %]</span>[% END %] <a href="/cgi-bin/koha/catalogue/moredetail.pl?biblionumber=[% checkout_info.biblio.biblionumber | html %]&amp;itemnumber=[% checkout_info.item.itemnumber | html %]#item[% checkout_info.item.itemnumber | html %]">[% checkout_info.item.barcode | html %]</a>
121
            </td>
121
            </td>
122
            <td>
122
            <td>
123
              [% IF checkout_info.NEEDSCONFIRMATION %]
123
              [% IF checkout_info.NEEDSCONFIRMATION %]
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/reserveratios.tt (-1 / +1 lines)
Lines 57-63 Link Here
57
            <td><p>[% reserveloo.reservecount | html %]</p></td>
57
            <td><p>[% reserveloo.reservecount | html %]</p></td>
58
            <td><p>[% reserveloo.itemcount | html %]</p></td>
58
            <td><p>[% reserveloo.itemcount | html %]</p></td>
59
            <td><a href="#" class="ratiolimit">[% reserveloo.thisratio | html %]</a></td>
59
            <td><a href="#" class="ratiolimit">[% reserveloo.thisratio | html %]</a></td>
60
            <td> [% INCLUDE 'biblio-default-view.inc' biblionumber = reserveloo.biblionumber %][% reserveloo.title | html %] [% IF ( reserveloo.subtitle ) %][% FOREACH subtitl IN reserveloo.subtitle %][% subtitl.subfield | html %][% END %][% END %]</a>[% IF ( reserveloo.author ) %] by [% reserveloo.author | html %][% END %]
60
            <td> [% INCLUDE 'biblio-default-view.inc' biblionumber = reserveloo.biblionumber %][% reserveloo.title | html %] [% IF ( reserveloo.subtitle ) %][% FOREACH subtitl IN reserveloo.subtitle %][% subtitl | html %][% END %][% END %]</a>[% IF ( reserveloo.author ) %] by [% reserveloo.author | html %][% END %]
61
            </td>
61
            </td>
62
            <td>
62
            <td>
63
                  <ul>
63
                  <ul>
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/transferstoreceive.tt (-1 / +1 lines)
Lines 52-58 Link Here
52
                [% END %]
52
                [% END %]
53
                    <td><p><span title="[% reser.datetransfer | html %]">[% reser.datetransfer | $KohaDates %]</span></p> [% IF ( reser.messcompa ) %]<span class="error">Transfer is [% reser.diff | html %] days late</span>[% END %]</td>
53
                    <td><p><span title="[% reser.datetransfer | html %]">[% reser.datetransfer | $KohaDates %]</span></p> [% IF ( reser.messcompa ) %]<span class="error">Transfer is [% reser.diff | html %] days late</span>[% END %]</td>
54
                    <td>
54
                    <td>
55
                        [% INCLUDE 'biblio-default-view.inc' biblionumber = reser.biblionumber %][% reser.title | html %] [% IF ( reser.subtitle ) %] [% FOREACH subtitl IN reser.subtitle %][% subtitl.subfield | html %][% END %][% END %]</a> [% IF ( reser.author ) %]by [% reser.author | html %][% END %]
55
                        [% INCLUDE 'biblio-default-view.inc' biblionumber = reser.biblionumber %][% reser.title | html %] [% IF ( reser.subtitle ) %] [% FOREACH subtitl IN reser.subtitle %][% subtitl | html %][% END %][% END %]</a> [% IF ( reser.author ) %]by [% reser.author | html %][% END %]
56
                            [% IF ( reser.itemtype ) %] (<b>[% reser.itemtype | html %]</b>)[% END %]
56
                            [% IF ( reser.itemtype ) %] (<b>[% reser.itemtype | html %]</b>)[% END %]
57
                            <br />Barcode: [% reser.barcode | html %]
57
                            <br />Barcode: [% reser.barcode | html %]
58
                    </td>
58
                    </td>
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/reserve/request.tt (-1 / +1 lines)
Lines 54-60 Link Here
54
  [% END %]
54
  [% END %]
55
55
56
  [% UNLESS ( multi_hold ) %]
56
  [% UNLESS ( multi_hold ) %]
57
    <h1>Place a hold on [% INCLUDE 'biblio-default-view.inc' %][% title | html %]</a></h1>
57
    <h1>Place a hold on [% INCLUDE 'biblio-default-view.inc' %][% title | html %]</a> [% subtitle | html %] [% part_number | html %] [% part_name | html %]</h1>
58
  [% ELSE %]
58
  [% ELSE %]
59
    <h1>Confirm holds</h1>
59
    <h1>Confirm holds</h1>
60
  [% END %]
60
  [% END %]
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/tags/list.tt (-1 / +1 lines)
Lines 30-36 tr.selected { background-color : #FFFFCC; } tr.selected td { background-color : Link Here
30
30
31
        [% FOREACH title IN titles %]
31
        [% FOREACH title IN titles %]
32
            <tr>
32
            <tr>
33
            <td>[% INCLUDE 'biblio-default-view.inc' biblionumber = title.biblionumber %][% title.title | html %][% FOREACH subtitl IN title.subtitle %] [% subtitl.subfield | html %][% END %]</a>
33
            <td>[% INCLUDE 'biblio-default-view.inc' biblionumber = title.biblionumber %][% title.title | html %][% FOREACH subtitl IN title.subtitle %] [% subtitl | html %][% END %]</a>
34
            [% title.author | html %]
34
            [% title.author | html %]
35
            <p>[% IF ( title.publishercode ) %]- [% title.publishercode | html %]
35
            <p>[% IF ( title.publishercode ) %]- [% title.publishercode | html %]
36
            [% IF ( title.place ) %] [% title.place | html %][% END %][% END %]
36
            [% IF ( title.place ) %] [% title.place | html %][% END %][% END %]
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/batch_delete_records.tt (-1 / +1 lines)
Lines 152-158 Link Here
152
                <tr>
152
                <tr>
153
                  <td><input type="checkbox" name="record_id" id="record_id_[% biblio.biblionumber | html %]" value="[% biblio.biblionumber | html %]" data-items="[% biblio.itemnumbers.size | html %]" data-issues="[% biblio.issues_count | html %]" data-reserves="[% biblio.holds_count | html %]" /></td>
153
                  <td><input type="checkbox" name="record_id" id="record_id_[% biblio.biblionumber | html %]" value="[% biblio.biblionumber | html %]" data-items="[% biblio.itemnumbers.size | html %]" data-issues="[% biblio.issues_count | html %]" data-reserves="[% biblio.holds_count | html %]" /></td>
154
                  <td><label for="record_id_[% biblio.biblionumber | html %]">[% biblio.biblionumber | html %]</label></td>
154
                  <td><label for="record_id_[% biblio.biblionumber | html %]">[% biblio.biblionumber | html %]</label></td>
155
                  <td>[% INCLUDE 'biblio-default-view.inc' biblionumber=biblio.biblionumber %][% biblio.title | html %][% IF ( biblio.subtitle ) %][% FOREACH subtitle IN biblio.subtitle %] [% subtitle.subfield | html %][% END %][% END %]</a></td>
155
                  <td>[% INCLUDE 'biblio-default-view.inc' biblionumber=biblio.biblionumber %][% biblio.title | html %][% IF ( biblio.subtitle ) %][% FOREACH subtitle IN biblio.subtitle %] [% subtitle | html %][% END %][% END %]</a></td>
156
                  <td><a href="/cgi-bin/koha/catalogue/moredetail.pl?biblionumber=[% biblio.biblionumber | uri %]">[% biblio.itemnumbers.size | html %]</a></td>
156
                  <td><a href="/cgi-bin/koha/catalogue/moredetail.pl?biblionumber=[% biblio.biblionumber | uri %]">[% biblio.itemnumbers.size | html %]</a></td>
157
                  <td><a href="/cgi-bin/koha/reserve/request.pl?biblionumber=[% biblio.biblionumber | uri %]">[% biblio.holds_count | html %]</a></td>
157
                  <td><a href="/cgi-bin/koha/reserve/request.pl?biblionumber=[% biblio.biblionumber | uri %]">[% biblio.holds_count | html %]</a></td>
158
                  <td><a href="/cgi-bin/koha/catalogue/issuehistory.pl?biblionumber=[% biblio.biblionumber | uri %]">[% biblio.issues_count | html %]</a></td>
158
                  <td><a href="/cgi-bin/koha/catalogue/issuehistory.pl?biblionumber=[% biblio.biblionumber | uri %]">[% biblio.issues_count | html %]</a></td>
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/virtualshelves/sendshelf.tt (-1 / +1 lines)
Lines 33-39 Your list: [% shelfname | $raw %] Link Here
33
                [% BIBLIO_RESULT.title | $raw %]
33
                [% BIBLIO_RESULT.title | $raw %]
34
                [% IF ( BIBLIO_RESULT.subtitle.size ) %]
34
                [% IF ( BIBLIO_RESULT.subtitle.size ) %]
35
                  [% FOREACH subtitle IN BIBLIO_RESULT.subtitle %]
35
                  [% FOREACH subtitle IN BIBLIO_RESULT.subtitle %]
36
                    [% subtitle.subfield | $raw %]
36
                    [% subtitle | $raw %]
37
                  [% END %]
37
                  [% END %]
38
                [% END %]
38
                [% END %]
39
            </span>
39
            </span>
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/virtualshelves/shelves.tt (-1 / +1 lines)
Lines 212-218 Link Here
212
                    [% itemsloo.XSLTBloc | $raw %]
212
                    [% itemsloo.XSLTBloc | $raw %]
213
                [% ELSE %]
213
                [% ELSE %]
214
                    [% INCLUDE 'biblio-default-view.inc' biblionumber = itemsloo.biblionumber %]
214
                    [% INCLUDE 'biblio-default-view.inc' biblionumber = itemsloo.biblionumber %]
215
                    [% itemsloo.title | html %][% FOREACH subtitl IN itemsloo.subtitle %] [% subtitl.subfield | html %][% END %]</a>
215
                    [% itemsloo.title | html %][% FOREACH subtitl IN itemsloo.subtitle %] [% subtitl | html %][% END %]</a>
216
                [% END %]
216
                [% END %]
217
                    <p class="hold">
217
                    <p class="hold">
218
                        [% IF ( itemsloo.notforloan ) %]
218
                        [% IF ( itemsloo.notforloan ) %]
(-)a/koha-tmpl/intranet-tmpl/prog/js/checkouts.js (-2 / +6 lines)
Lines 240-248 $(document).ready(function() { Link Here
240
                              + oObj.title.escapeHtml();
240
                              + oObj.title.escapeHtml();
241
241
242
                        $.each(oObj.subtitle, function( index, value ) {
242
                        $.each(oObj.subtitle, function( index, value ) {
243
                                  title += " " + value.subfield.escapeHtml();
243
                                  title += " " + value.escapeHtml();
244
                        });
244
                        });
245
245
246
                        title += " " + oObj.part_number + " " + oObj.part_name;
247
246
                        if ( oObj.enumchron ) {
248
                        if ( oObj.enumchron ) {
247
                            title += " (" + oObj.enumchron.escapeHtml() + ")";
249
                            title += " (" + oObj.enumchron.escapeHtml() + ")";
248
                        }
250
                        }
Lines 595-603 $(document).ready(function() { Link Here
595
                                  + oObj.title.escapeHtml();
597
                                  + oObj.title.escapeHtml();
596
598
597
                            $.each(oObj.subtitle, function( index, value ) {
599
                            $.each(oObj.subtitle, function( index, value ) {
598
                                      title += " " + value.subfield.escapeHtml();
600
                                      title += " " + value.escapeHtml();
599
                            });
601
                            });
600
602
603
                            title += " " + oObj.part_number + " " + oObj.part_name;
604
601
                            if ( oObj.enumchron ) {
605
                            if ( oObj.enumchron ) {
602
                                title += " (" + oObj.enumchron.escapeHtml() + ")";
606
                                title += " (" + oObj.enumchron.escapeHtml() + ")";
603
                            }
607
                            }
(-)a/koha-tmpl/intranet-tmpl/prog/js/holds.js (-1 / +3 lines)
Lines 25-33 $(document).ready(function() { Link Here
25
                                  + oObj.title.escapeHtml();
25
                                  + oObj.title.escapeHtml();
26
26
27
                            $.each(oObj.subtitle, function( index, value ) {
27
                            $.each(oObj.subtitle, function( index, value ) {
28
                                      title += " " + value.subfield.escapeHtml();
28
                                      title += " " + value.escapeHtml();
29
                            });
29
                            });
30
30
31
                            title += " " + oObj.part_number + " " + oObj.part_name;
32
31
                            title += "</a>";
33
                            title += "</a>";
32
34
33
                            if ( oObj.author ) {
35
                            if ( oObj.author ) {
(-)a/koha-tmpl/opac-tmpl/bootstrap/en/includes/shelfbrowser.inc (-1 / +1 lines)
Lines 81-87 Link Here
81
                                [% item.title | html %]
81
                                [% item.title | html %]
82
                                [% FOREACH subtitl IN item.subtitle %]
82
                                [% FOREACH subtitl IN item.subtitle %]
83
                                    [% IF Koha.Preference('marcflavour')=='UNIMARC' %],[% END %]
83
                                    [% IF Koha.Preference('marcflavour')=='UNIMARC' %],[% END %]
84
                                    [% subtitl.subfield | html %]
84
                                    [% subtitl | html %]
85
                                [% END %]
85
                                [% END %]
86
                            </a>
86
                            </a>
87
                        </td>
87
                        </td>
(-)a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-basket.tt (-2 / +2 lines)
Lines 68-74 Link Here
68
                                    <h3>
68
                                    <h3>
69
                                                <input type="checkbox" class="cb" value="[% BIBLIO_RESULT.biblionumber | html %]" name="bib[% BIBLIO_RESULT.biblionumber | html %]" id="bib[% BIBLIO_RESULT.biblionumber | html %]">
69
                                                <input type="checkbox" class="cb" value="[% BIBLIO_RESULT.biblionumber | html %]" name="bib[% BIBLIO_RESULT.biblionumber | html %]" id="bib[% BIBLIO_RESULT.biblionumber | html %]">
70
                                                [% BIBLIO_RESULT.title | html %]
70
                                                [% BIBLIO_RESULT.title | html %]
71
                                                [% IF ( BIBLIO_RESULT.subtitle ) %] [% FOREACH subtitl IN BIBLIO_RESULT.subtitle %] [% subtitl.subfield | html %] [% END %][% END %]
71
                                                [% IF ( BIBLIO_RESULT.subtitle ) %] [% FOREACH subtitl IN BIBLIO_RESULT.subtitle %] [% subtitl | html %] [% END %][% END %]
72
                                                [% IF ( BIBLIO_RESULT.author ) %] [% BIBLIO_RESULT.author | html %][% END %]
72
                                                [% IF ( BIBLIO_RESULT.author ) %] [% BIBLIO_RESULT.author | html %][% END %]
73
                                    </h3>
73
                                    </h3>
74
                                    <!-- COinS / Openurl -->
74
                                    <!-- COinS / Openurl -->
Lines 256-262 Link Here
256
                                                <input type="checkbox" class="cb" value="[% BIBLIO_RESULT.biblionumber | html %]" name="bib[% BIBLIO_RESULT.biblionumber | html %]" id="bib[% BIBLIO_RESULT.biblionumber | html %]">
256
                                                <input type="checkbox" class="cb" value="[% BIBLIO_RESULT.biblionumber | html %]" name="bib[% BIBLIO_RESULT.biblionumber | html %]" id="bib[% BIBLIO_RESULT.biblionumber | html %]">
257
                                                </td>
257
                                                </td>
258
                                            <td>
258
                                            <td>
259
                                                <a href="#" onclick="openBiblio('[% BIBLIO_RESULT.dest | html %]',[% BIBLIO_RESULT.biblionumber | html %])">[% BIBLIO_RESULT.title | html %][% IF ( BIBLIO_RESULT.subtitle ) %] [% FOREACH subtitl IN BIBLIO_RESULT.subtitle %][% subtitl.subfield | html %][% END %][% END %]</a>
259
                                                <a href="#" onclick="openBiblio('[% BIBLIO_RESULT.dest | html %]',[% BIBLIO_RESULT.biblionumber | html %])">[% BIBLIO_RESULT.title | html %][% IF ( BIBLIO_RESULT.subtitle ) %] [% FOREACH subtitl IN BIBLIO_RESULT.subtitle %][% subtitl | html %][% END %][% END %]</a>
260
                                                <!-- COinS / Openurl -->
260
                                                <!-- COinS / Openurl -->
261
                                                <span class="Z3988" title="ctx_ver=Z39.88-2004&amp;rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Abook&amp;rft.au=[% BIBLIO_RESULT.author | html %]&amp;rft.btitle=[% BIBLIO_RESULT.title |url %]&amp;rft.date=[% BIBLIO_RESULT.publicationyear | html %]&amp;rft.tpages=[% BIBLIO_RESULT.item('size') | html %]&amp;rft.isbn=[% BIBLIO_RESULT.isbn |url %]&amp;rft.aucorp=&amp;rft.place=[% BIBLIO_RESULT.place | html %]&amp;rft.pub=[% BIBLIO_RESULT.publisher |url %]&amp;rft.edition=[% BIBLIO_RESULT.edition | html %]&amp;rft.series=[% BIBLIO_RESULT.series | html %]&amp;rft.genre="></span>
261
                                                <span class="Z3988" title="ctx_ver=Z39.88-2004&amp;rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Abook&amp;rft.au=[% BIBLIO_RESULT.author | html %]&amp;rft.btitle=[% BIBLIO_RESULT.title |url %]&amp;rft.date=[% BIBLIO_RESULT.publicationyear | html %]&amp;rft.tpages=[% BIBLIO_RESULT.item('size') | html %]&amp;rft.isbn=[% BIBLIO_RESULT.isbn |url %]&amp;rft.aucorp=&amp;rft.place=[% BIBLIO_RESULT.place | html %]&amp;rft.pub=[% BIBLIO_RESULT.publisher |url %]&amp;rft.edition=[% BIBLIO_RESULT.edition | html %]&amp;rft.series=[% BIBLIO_RESULT.series | html %]&amp;rft.genre="></span>
262
                                                [% IF ( TagsInputEnabled && loggedinusername ) %]
262
                                                [% IF ( TagsInputEnabled && loggedinusername ) %]
(-)a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-detail.tt (-3 / +3 lines)
Lines 30-36 Link Here
30
[% END %]
30
[% END %]
31
31
32
[% INCLUDE 'doc-head-open.inc' %]
32
[% INCLUDE 'doc-head-open.inc' %]
33
<title>[% IF ( LibraryNameTitle ) %][% LibraryNameTitle | html %][% ELSE %]Koha online[% END %] catalog &rsaquo; Details for: [% title | html %][% FOREACH subtitl IN subtitle %][% IF Koha.Preference('marcflavour')=='UNIMARC' %],[% END %] [% subtitl.subfield | html %][% END %]</title>
33
<title>[% IF ( LibraryNameTitle ) %][% LibraryNameTitle | html %][% ELSE %]Koha online[% END %] catalog &rsaquo; Details for: [% title | html %][% FOREACH subtitl IN subtitle %][% IF Koha.Preference('marcflavour')=='UNIMARC' %],[% END %] [% subtitl | html %][% END %]</title>
34
[% INCLUDE 'doc-head-close.inc' %]
34
[% INCLUDE 'doc-head-close.inc' %]
35
    [% Asset.css("lib/emoji-picker/css/emoji.css") | $raw %]
35
    [% Asset.css("lib/emoji-picker/css/emoji.css") | $raw %]
36
</head>
36
</head>
Lines 41-47 Link Here
41
<div class="main">
41
<div class="main">
42
    <ul class="breadcrumb">
42
    <ul class="breadcrumb">
43
        <li><a href="/cgi-bin/koha/opac-main.pl">Home</a> <span class="divider">&rsaquo;</span></li>
43
        <li><a href="/cgi-bin/koha/opac-main.pl">Home</a> <span class="divider">&rsaquo;</span></li>
44
        <li><a href="#"><span>Details for: </span>[% title | html %][% FOREACH subtitl IN subtitle %][% IF Koha.Preference('marcflavour')=='UNIMARC' %],[% END %] [% subtitl.subfield | html %][% END %]</a></li>
44
        <li><a href="#"><span>Details for: </span>[% title | html %][% FOREACH subtitl IN subtitle %][% IF Koha.Preference('marcflavour')=='UNIMARC' %],[% END %] [% subtitl | html %][% END %]</a></li>
45
    </ul>
45
    </ul>
46
46
47
    <div class="container-fluid">
47
    <div class="container-fluid">
Lines 112-118 Link Here
112
                    [% IF ( OPACXSLTDetailsDisplay ) %]
112
                    [% IF ( OPACXSLTDetailsDisplay ) %]
113
                        [% XSLTBloc | $raw %]
113
                        [% XSLTBloc | $raw %]
114
                    [% ELSE %]
114
                    [% ELSE %]
115
                        <h1 class="title">[% title | html %][% IF ( subtitle ) %] <span class="subtitle">[% FOREACH subtitl IN subtitle %][% subtitl.subfield | html %] [% END %]</span>[% END %]</h1>
115
                        <h1 class="title">[% title | html %][% IF ( subtitle ) %] <span class="subtitle">[% FOREACH subtitl IN subtitle %][% subtitl | html %] [% END %]</span>[% END %]</h1>
116
                        [% IF ( author ) %]<h5 class="author">by <a href="/cgi-bin/koha/opac-search.pl?q=au:[% author |url %]">[% author | html %]</a></h5>[% END %]
116
                        [% IF ( author ) %]<h5 class="author">by <a href="/cgi-bin/koha/opac-search.pl?q=au:[% author |url %]">[% author | html %]</a></h5>[% END %]
117
117
118
                        <span class="results_summary">[% UNLESS ( item_level_itypes ) %]
118
                        <span class="results_summary">[% UNLESS ( item_level_itypes ) %]
(-)a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-opensearch.tt (-1 / +1 lines)
Lines 37-43 Link Here
37
     <atom:link rel="search" type="application/opensearchdescription+xml" href="[% OPACBaseURL | url %]/cgi-bin/koha/opac-search.pl?[% SEARCH_RESULT.query_cgi | $raw %][% SEARCH_RESULT.limit_cgi | url %]&amp;sort_by=[% SEARCH_RESULT.sort_by |uri %]&amp;format=opensearchdescription"/>
37
     <atom:link rel="search" type="application/opensearchdescription+xml" href="[% OPACBaseURL | url %]/cgi-bin/koha/opac-search.pl?[% SEARCH_RESULT.query_cgi | $raw %][% SEARCH_RESULT.limit_cgi | url %]&amp;sort_by=[% SEARCH_RESULT.sort_by |uri %]&amp;format=opensearchdescription"/>
38
     <opensearch:Query role="request" searchTerms="[% SEARCH_RESULT.query_desc |uri %][% SEARCH_RESULT.limit_desc |uri %]" startPage="[% SEARCH_RESULT.page | html %]" />
38
     <opensearch:Query role="request" searchTerms="[% SEARCH_RESULT.query_desc |uri %][% SEARCH_RESULT.limit_desc |uri %]" startPage="[% SEARCH_RESULT.page | html %]" />
39
     <item>
39
     <item>
40
       <title>[% SEARCH_RESULT.title | html %] [% FOREACH subtitl IN SEARCH_RESULT.subtitle %], [% subtitl.subfield | html %][% END %]</title>
40
       <title>[% SEARCH_RESULT.title | html %] [% FOREACH subtitl IN SEARCH_RESULT.subtitle %], [% subtitl | html %][% END %]</title>
41
       <dc:identifier>ISBN [% SEARCH_RESULT.isbn | html %]</dc:identifier>
41
       <dc:identifier>ISBN [% SEARCH_RESULT.isbn | html %]</dc:identifier>
42
       <link>[% IF ( SEARCH_RESULT.BiblioDefaultViewmarc ) %][% OPACBaseURL | html %]/cgi-bin/koha/opac-MARCdetail.pl?biblionumber=[% SEARCH_RESULT.biblionumber | html %][% ELSE %][% IF ( SEARCH_RESULT.BiblioDefaultViewisbd ) %][% OPACBaseURL | html %]/cgi-bin/koha/opac-ISBDdetail.pl?biblionumber=[% SEARCH_RESULT.biblionumber | html %][% ELSE %][% OPACBaseURL | html %]/cgi-bin/koha/opac-detail.pl?biblionumber=[% SEARCH_RESULT.biblionumber | html %][% END %][% END %]</link>
42
       <link>[% IF ( SEARCH_RESULT.BiblioDefaultViewmarc ) %][% OPACBaseURL | html %]/cgi-bin/koha/opac-MARCdetail.pl?biblionumber=[% SEARCH_RESULT.biblionumber | html %][% ELSE %][% IF ( SEARCH_RESULT.BiblioDefaultViewisbd ) %][% OPACBaseURL | html %]/cgi-bin/koha/opac-ISBDdetail.pl?biblionumber=[% SEARCH_RESULT.biblionumber | html %][% ELSE %][% OPACBaseURL | html %]/cgi-bin/koha/opac-detail.pl?biblionumber=[% SEARCH_RESULT.biblionumber | html %][% END %][% END %]</link>
43
       <description><![CDATA[
43
       <description><![CDATA[
(-)a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-readingrecord.tt (-3 / +3 lines)
Lines 137-147 Link Here
137
                                                </td>
137
                                                </td>
138
                                                <td>
138
                                                <td>
139
                                                [% IF  issue.BiblioDefaultViewmarc %]
139
                                                [% IF  issue.BiblioDefaultViewmarc %]
140
                                                     <a class="title" href="/cgi-bin/koha/opac-MARCdetail.pl?biblionumber=[% issue.biblionumber |url %]">[% issue.title | html %] [% IF  issue.subtitle  %][% FOREACH subtitl IN issue.subtitle %][% subtitl.subfield | html %][% END %][% END %]</a>
140
                                                     <a class="title" href="/cgi-bin/koha/opac-MARCdetail.pl?biblionumber=[% issue.biblionumber |url %]">[% issue.title | html %] [% IF  issue.subtitle  %][% FOREACH subtitl IN issue.subtitle %][% subtitl | html %][% END %][% END %]</a>
141
                                                [% ELSIF issue.BiblioDefaultViewisbd %]
141
                                                [% ELSIF issue.BiblioDefaultViewisbd %]
142
                                                     <a class="title" href="/cgi-bin/koha/opac-ISBDdetail.pl?biblionumber=[% issue.biblionumber |url %]">[% issue.title | html %] [% IF issue.subtitle %][% FOREACH subtitl IN issue.subtitle %][% subtitl.subfield | html %][% END %][% END %]</a>
142
                                                     <a class="title" href="/cgi-bin/koha/opac-ISBDdetail.pl?biblionumber=[% issue.biblionumber |url %]">[% issue.title | html %] [% IF issue.subtitle %][% FOREACH subtitl IN issue.subtitle %][% subtitl | html %][% END %][% END %]</a>
143
                                                [% ELSE %]
143
                                                [% ELSE %]
144
                                                     <a class="title" href="/cgi-bin/koha/opac-detail.pl?biblionumber=[% issue.biblionumber |url %]">[% issue.title | html %] [% IF issue.subtitle %][% FOREACH subtitl IN issue.subtitle %][% subtitl.subfield | html %][% END %][% END %]</a>
144
                                                     <a class="title" href="/cgi-bin/koha/opac-detail.pl?biblionumber=[% issue.biblionumber |url %]">[% issue.title | html %] [% IF issue.subtitle %][% FOREACH subtitl IN issue.subtitle %][% subtitl | html %][% END %][% END %]</a>
145
                                                [% END %]
145
                                                [% END %]
146
                                                <span class="item-details">[% issue.author | html %]</span>
146
                                                <span class="item-details">[% issue.author | html %]</span>
147
                                                </td>
147
                                                </td>
(-)a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-reserve.tt (-1 / +1 lines)
Lines 172-178 Link Here
172
                                                [% bibitemloo.title | html %]
172
                                                [% bibitemloo.title | html %]
173
                                                [% IF ( bibitemloo.subtitle ) %]
173
                                                [% IF ( bibitemloo.subtitle ) %]
174
                                                    [% FOREACH subtitl IN bibitemloo.subtitle %]
174
                                                    [% FOREACH subtitl IN bibitemloo.subtitle %]
175
                                                        [% subtitl.subfield | html %]
175
                                                        [% subtitl | html %]
176
                                                    [% END %]
176
                                                    [% END %]
177
                                                [% END %]
177
                                                [% END %]
178
                                            </a>
178
                                            </a>
(-)a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-results-grouped.tt (-2 / +2 lines)
Lines 111-117 Link Here
111
                                                    </td>
111
                                                    </td>
112
                                                    <td>
112
                                                    <td>
113
                                                        [% FOREACH subtitl IN SEARCH_RESULT.subtitle %]
113
                                                        [% FOREACH subtitl IN SEARCH_RESULT.subtitle %]
114
                                                            [% subtitl.subfield | html %]
114
                                                            [% subtitl | html %]
115
                                                        [% END %]
115
                                                        [% END %]
116
                                                    </td>
116
                                                    </td>
117
                                                </tr>
117
                                                </tr>
Lines 185-191 Link Here
185
                                                                    <a class="title" href="/cgi-bin/koha/opac-detail.pl?biblionumber=[% GROUP_RESULT.biblionumber |url %]" title="View details for this title">[% GROUP_RESULT.title | html %]
185
                                                                    <a class="title" href="/cgi-bin/koha/opac-detail.pl?biblionumber=[% GROUP_RESULT.biblionumber |url %]" title="View details for this title">[% GROUP_RESULT.title | html %]
186
                                                                [% END %]
186
                                                                [% END %]
187
                                                                [% FOREACH subtitl IN GROUP_RESULT.subtitle %]
187
                                                                [% FOREACH subtitl IN GROUP_RESULT.subtitle %]
188
                                                                    [% subtitl.subfield | html %]
188
                                                                    [% subtitl | html %]
189
                                                                [% END %]
189
                                                                [% END %]
190
                                                                </a>
190
                                                                </a>
191
                                                            [% END # / IF GROUP_RESULT.BiblioDefaultViewmarc %]
191
                                                            [% END # / IF GROUP_RESULT.BiblioDefaultViewmarc %]
(-)a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-results.tt (-1 / +1 lines)
Lines 346-352 Link Here
346
                                                    [% END %]
346
                                                    [% END %]
347
347
348
                                                    [% FOREACH subtitl IN SEARCH_RESULT.subtitle %]
348
                                                    [% FOREACH subtitl IN SEARCH_RESULT.subtitle %]
349
                                                        , [% subtitl.subfield | html %]
349
                                                        , [% subtitl | html %]
350
                                                    [% END %]</a>
350
                                                    [% END %]</a>
351
351
352
                                                    [% IF ( SEARCH_RESULT.author ) %]
352
                                                    [% IF ( SEARCH_RESULT.author ) %]
(-)a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-sendshelf.tt (-1 / +1 lines)
Lines 34-40 Your list : [% shelfname | $raw %] Link Here
34
                [% BIBLIO_RESULT.title | $raw %]
34
                [% BIBLIO_RESULT.title | $raw %]
35
                [% IF ( BIBLIO_RESULT.subtitle.size ) %]
35
                [% IF ( BIBLIO_RESULT.subtitle.size ) %]
36
                  [% FOREACH subtitle IN BIBLIO_RESULT.subtitle %]
36
                  [% FOREACH subtitle IN BIBLIO_RESULT.subtitle %]
37
                    [% subtitle.subfield | $raw %]
37
                    [% subtitle | $raw %]
38
                  [% END %]
38
                  [% END %]
39
                [% END %]
39
                [% END %]
40
            </span>
40
            </span>
(-)a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-shelves.tt (-1 / +1 lines)
Lines 380-386 Link Here
380
                                                        [% END %]
380
                                                        [% END %]
381
381
382
                                                        [% FOREACH subtitl IN itemsloo.subtitle %]
382
                                                        [% FOREACH subtitl IN itemsloo.subtitle %]
383
                                                            [% subtitl.subfield | html %]
383
                                                            [% subtitl | html %]
384
                                                        [% END %]
384
                                                        [% END %]
385
                                                        </a>
385
                                                        </a>
386
386
(-)a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-showreviews-rss.tt (-1 / +1 lines)
Lines 10-16 Link Here
10
     [% SET AdlibrisURL = Koha.Preference('AdlibrisCoversURL') %]
10
     [% SET AdlibrisURL = Koha.Preference('AdlibrisCoversURL') %]
11
	 [% FOREACH review IN reviews %]
11
	 [% FOREACH review IN reviews %]
12
     <item>
12
     <item>
13
       <title>New comment on [% review.title | html %] [% FOREACH subtitl IN review.subtitle %], [% subtitl.subfield | html %][% END %]</title>
13
       <title>New comment on [% review.title | html %] [% FOREACH subtitl IN review.subtitle %], [% subtitl | html %][% END %]</title>
14
       <link>[% OPACBaseURL | html %]/cgi-bin/koha/opac-detail.pl?biblionumber=[% review.biblionumber | html %]#comments</link>
14
       <link>[% OPACBaseURL | html %]/cgi-bin/koha/opac-detail.pl?biblionumber=[% review.biblionumber | html %]#comments</link>
15
       <description><![CDATA[
15
       <description><![CDATA[
16
[% IF ( AdlibrisEnabled && review.normalized_isbn ) %]
16
[% IF ( AdlibrisEnabled && review.normalized_isbn ) %]
(-)a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-showreviews.tt (-1 / +1 lines)
Lines 47-53 Link Here
47
                                                [% END %]
47
                                                [% END %]
48
                                            [% END %]
48
                                            [% END %]
49
                                            [% IF ( review.title ) %][% review.title | html %][% ELSE %]No title[% END %]
49
                                            [% IF ( review.title ) %][% review.title | html %][% ELSE %]No title[% END %]
50
                                            [% FOREACH subtitl IN review.subtitle %] [% subtitl.subfield | html %][% END %]
50
                                            [% FOREACH subtitl IN review.subtitle %] [% subtitl | html %][% END %]
51
                                            </a>
51
                                            </a>
52
                                            [% IF ( review.author ) %]
52
                                            [% IF ( review.author ) %]
53
                                                by <a href="/cgi-bin/koha/opac-search.pl?q=au:[% review.author |url %]" title="Search for works by this author" class="author">[% review.author | html %]</a>
53
                                                by <a href="/cgi-bin/koha/opac-search.pl?q=au:[% review.author |url %]" title="Search for works by this author" class="author">[% review.author | html %]</a>
(-)a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-tags.tt (-1 / +1 lines)
Lines 152-158 Link Here
152
                                                        [% MY_TAG.title | html %]
152
                                                        [% MY_TAG.title | html %]
153
                                                        [% IF ( MY_TAG.subtitle ) %]
153
                                                        [% IF ( MY_TAG.subtitle ) %]
154
                                                            [% FOREACH subtitle IN MY_TAG.subtitle %]
154
                                                            [% FOREACH subtitle IN MY_TAG.subtitle %]
155
                                                                [% subtitle.subfield | html %]
155
                                                                [% subtitle | html %]
156
                                                            [% END %]
156
                                                            [% END %]
157
                                                        [% END %]
157
                                                        [% END %]
158
                                                    </a>
158
                                                    </a>
(-)a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-user.tt (-2 / +2 lines)
Lines 249-255 Link Here
249
                                                </td>[% END # / IF JacketImages %]
249
                                                </td>[% END # / IF JacketImages %]
250
250
251
                                                <td class="title">
251
                                                <td class="title">
252
                                                    <a class="title" href="/cgi-bin/koha/opac-detail.pl?biblionumber=[% ISSUE.biblionumber | html %]">[% ISSUE.title | html %] [% FOREACH subtitl IN ISSUE.subtitle %] [% subtitl.subfield | html %][% END %]</a>
252
                                                    <a class="title" href="/cgi-bin/koha/opac-detail.pl?biblionumber=[% ISSUE.biblionumber | html %]">[% ISSUE.title | html %] [% FOREACH subtitl IN ISSUE.subtitle %] [% subtitl | html %][% END %]</a>
253
                                                    [% IF ( ISSUE.enumchron ) %] [% ISSUE.enumchron | html %][% END %]
253
                                                    [% IF ( ISSUE.enumchron ) %] [% ISSUE.enumchron | html %][% END %]
254
                                                </td>
254
                                                </td>
255
255
Lines 529-535 Link Here
529
                                                [% END # /IF jacketcell %]
529
                                                [% END # /IF jacketcell %]
530
530
531
                                                <td>
531
                                                <td>
532
                                                    <a class="title" href="/cgi-bin/koha/opac-detail.pl?bib=[% OVERDUE.biblionumber | html %]">[% OVERDUE.title | html %] [% FOREACH subtitl IN OVERDUE.subtitle %] [% subtitl.subfield | html %][% END %]
532
                                                    <a class="title" href="/cgi-bin/koha/opac-detail.pl?bib=[% OVERDUE.biblionumber | html %]">[% OVERDUE.title | html %] [% FOREACH subtitl IN OVERDUE.subtitle %] [% subtitl | html %][% END %]
533
                                                    </a>
533
                                                    </a>
534
                                                    <span class="item-details">[% OVERDUE.author | html %]</span></td>
534
                                                    <span class="item-details">[% OVERDUE.author | html %]</span></td>
535
535
(-)a/opac/opac-reserve.pl (-1 / +1 lines)
Lines 410-416 foreach my $biblioNum (@biblionumbers) { Link Here
410
    my $frameworkcode = GetFrameworkCode( $biblioData->{biblionumber} );
410
    my $frameworkcode = GetFrameworkCode( $biblioData->{biblionumber} );
411
    $biblioLoopIter{biblionumber} = $biblioData->{biblionumber};
411
    $biblioLoopIter{biblionumber} = $biblioData->{biblionumber};
412
    $biblioLoopIter{title} = $biblioData->{title};
412
    $biblioLoopIter{title} = $biblioData->{title};
413
    $biblioLoopIter{subtitle} = C4::Biblio::SplitSubtitle($biblioData->{'subtitle'});
413
    $biblioLoopIter{subtitle} = C4::Biblio::SplitKohaField($biblioData->{'subtitle'});
414
    $biblioLoopIter{medium} = $biblioData->{medium};
414
    $biblioLoopIter{medium} = $biblioData->{medium};
415
    $biblioLoopIter{part_number} = $biblioData->{part_number};
415
    $biblioLoopIter{part_number} = $biblioData->{part_number};
416
    $biblioLoopIter{part_name} = $biblioData->{part_name};
416
    $biblioLoopIter{part_name} = $biblioData->{part_name};
(-)a/opac/opac-tags.pl (-1 / +1 lines)
Lines 257-263 if ($loggedinuser) { Link Here
257
        }
257
        }
258
        next if ( $should_hide && scalar @all_items == scalar @hidden_itemnumbers );
258
        next if ( $should_hide && scalar @all_items == scalar @hidden_itemnumbers );
259
        $tag->{title} = $biblio->title;
259
        $tag->{title} = $biblio->title;
260
        $tag->{subtitle} = C4::Biblio::SplitSubtitle($biblio->subtitle);
260
        $tag->{subtitle} = C4::Biblio::SplitKohaField($biblio->subtitle);
261
        $tag->{medium} = $biblio->medium;
261
        $tag->{medium} = $biblio->medium;
262
        $tag->{part_number} = $biblio->part_number;
262
        $tag->{part_number} = $biblio->part_number;
263
        $tag->{part_name} = $biblio->part_name;
263
        $tag->{part_name} = $biblio->part_name;
(-)a/opac/opac-user.pl (-1 / +1 lines)
Lines 212-218 if ( $pending_checkouts->count ) { # Useless test Link Here
212
        );
212
        );
213
        $issue->{rentalfines} = $rental_fines->total_outstanding;
213
        $issue->{rentalfines} = $rental_fines->total_outstanding;
214
214
215
        $issue->{'subtitle'} = C4::Biblio::SplitSubtitle($issue->{'subtitle'});
215
        $issue->{'subtitle'} = C4::Biblio::SplitKohaField($issue->{'subtitle'});
216
216
217
        # check if item is renewable
217
        # check if item is renewable
218
        my ($status,$renewerror) = CanBookBeRenewed( $borrowernumber, $issue->{'itemnumber'} );
218
        my ($status,$renewerror) = CanBookBeRenewed( $borrowernumber, $issue->{'itemnumber'} );
(-)a/reserve/request.pl (+3 lines)
Lines 623-628 foreach my $biblionumber (@biblionumbers) { Link Here
623
                     biblionumber      => $biblionumber,
623
                     biblionumber      => $biblionumber,
624
                     findborrower      => $findborrower,
624
                     findborrower      => $findborrower,
625
                     title             => $biblio->title,
625
                     title             => $biblio->title,
626
                     subtitle          => $biblio->subtitle,
627
                     part_number       => $biblio->part_number,
628
                     part_name         => $biblio->part_name,
626
                     author            => $biblio->author,
629
                     author            => $biblio->author,
627
                     holdsview => 1,
630
                     holdsview => 1,
628
                     C4::Search::enabled_staff_search_views,
631
                     C4::Search::enabled_staff_search_views,
(-)a/svc/checkouts (-2 / +2 lines)
Lines 23-29 use CGI; Link Here
23
use JSON qw(to_json);
23
use JSON qw(to_json);
24
24
25
use C4::Auth qw(check_cookie_auth haspermission get_session);
25
use C4::Auth qw(check_cookie_auth haspermission get_session);
26
use C4::Biblio qw(SplitSubtitle);
26
use C4::Biblio qw(SplitKohaField);
27
use C4::Circulation qw(GetIssuingCharges CanBookBeRenewed GetRenewCount GetSoonestRenewDate);
27
use C4::Circulation qw(GetIssuingCharges CanBookBeRenewed GetRenewCount GetSoonestRenewDate);
28
use C4::Overdues qw(GetFine);
28
use C4::Overdues qw(GetFine);
29
use C4::Context;
29
use C4::Context;
Lines 178-184 while ( my $c = $sth->fetchrow_hashref() ) { Link Here
178
    my $checkout = {
178
    my $checkout = {
179
        DT_RowId             => $c->{itemnumber} . '-' . $c->{borrowernumber},
179
        DT_RowId             => $c->{itemnumber} . '-' . $c->{borrowernumber},
180
        title                => $c->{title},
180
        title                => $c->{title},
181
        subtitle             => C4::Biblio::SplitSubtitle($c->{'subtitle'}),
181
        subtitle             => C4::Biblio::SplitKohaField($c->{'subtitle'}),
182
        medium               => $c->{medium} // '',
182
        medium               => $c->{medium} // '',
183
        part_number          => $c->{part_number} // '',
183
        part_number          => $c->{part_number} // '',
184
        part_name            => $c->{part_name} // '',
184
        part_name            => $c->{part_name} // '',
(-)a/svc/holds (-2 / +2 lines)
Lines 23-29 use CGI; Link Here
23
use JSON qw(to_json);
23
use JSON qw(to_json);
24
24
25
use C4::Auth qw(check_cookie_auth);
25
use C4::Auth qw(check_cookie_auth);
26
use C4::Biblio qw(SplitSubtitle);
26
use C4::Biblio qw(SplitKohaField);
27
use C4::Charset;
27
use C4::Charset;
28
use C4::Circulation qw(GetTransfers);
28
use C4::Circulation qw(GetTransfers);
29
use C4::Context;
29
use C4::Context;
Lines 90-96 while ( my $h = $holds_rs->next() ) { Link Here
90
        DT_RowId       => $h->reserve_id(),
90
        DT_RowId       => $h->reserve_id(),
91
        biblionumber   => $biblionumber,
91
        biblionumber   => $biblionumber,
92
        title          => $biblio->title(),
92
        title          => $biblio->title(),
93
        subtitle       => C4::Biblio::SplitSubtitles($biblio->subtitle()),
93
        subtitle       => C4::Biblio::SplitKohaField($biblio->subtitle()),
94
        medium         => $biblio->medium(),
94
        medium         => $biblio->medium(),
95
        part_number    => $biblio->part_number(),
95
        part_number    => $biblio->part_number(),
96
        part_name      => $biblio->part_name(),
96
        part_name      => $biblio->part_name(),
(-)a/t/Biblio2.t (-7 / +7 lines)
Lines 52-71 sub _koha_marc_update_bib_ids_control { Link Here
52
    is($r->field('004')->data(), 20, 'Biblioitemnumber to control field');
52
    is($r->field('004')->data(), 20, 'Biblioitemnumber to control field');
53
}
53
}
54
54
55
subtest 'SplitSubtitle' => sub {
55
subtest 'SplitKohaField' => sub {
56
    plan tests => 4;
56
    plan tests => 4;
57
57
58
    my $res = C4::Biblio::SplitSubtitle(undef);
58
    my $res = C4::Biblio::SplitKohaField(undef);
59
    is_deeply($res, [], 'undef returned as an array');
59
    is_deeply($res, [], 'undef returned as an array');
60
60
61
    $res = C4::Biblio::SplitSubtitle('');
61
    $res = C4::Biblio::SplitKohaField('');
62
    is_deeply($res, [], 'Empty string returned as an array');
62
    is_deeply($res, [], 'Empty string returned as an array');
63
63
64
    $res = C4::Biblio::SplitSubtitle('Single');
64
    $res = C4::Biblio::SplitKohaField('Single');
65
    is_deeply($res, [{'subfield' => 'Single'}], 'Single subtitle returns an array');
65
    is_deeply($res, ['Single'], 'Single subtitle returned as an array');
66
66
67
    $res = C4::Biblio::SplitSubtitle('First | Second');
67
    $res = C4::Biblio::SplitKohaField('First | Second');
68
    is_deeply($res, [{'subfield' => 'First'}, {'subfield' => 'Second'}], 'Two subtitles returns an array');
68
    is_deeply($res, ['First', 'Second'], 'Two subtitles returned as an array');
69
};
69
};
70
70
71
done_testing();
71
done_testing();
(-)a/tags/list.pl (-1 / +1 lines)
Lines 61-67 else { Link Here
61
        my $taglist = get_tag_rows( { term => $tag } );
61
        my $taglist = get_tag_rows( { term => $tag } );
62
        for ( @{$taglist} ) {
62
        for ( @{$taglist} ) {
63
            my $dat    = &GetBiblioData( $_->{biblionumber} );
63
            my $dat    = &GetBiblioData( $_->{biblionumber} );
64
            $dat->{'subtitle'} = C4::Biblio::SplitSubtitles($dat->{'subtitle'}),
64
            $dat->{'subtitle'} = C4::Biblio::SplitKohaFields($dat->{'subtitle'}),
65
            my @items = GetItemsInfo( $_->{biblionumber} );
65
            my @items = GetItemsInfo( $_->{biblionumber} );
66
            $dat->{biblionumber} = $_->{biblionumber};
66
            $dat->{biblionumber} = $_->{biblionumber};
67
            $dat->{tag_id}       = $_->{tag_id};
67
            $dat->{tag_id}       = $_->{tag_id};
(-)a/tools/batch_delete_records.pl (-2 / +1 lines)
Lines 94-100 if ( $op eq 'form' ) { Link Here
94
            my $holds_count = $biblio->holds->count;
94
            my $holds_count = $biblio->holds->count;
95
            $biblio = $biblio->unblessed;
95
            $biblio = $biblio->unblessed;
96
            my $record = &GetMarcBiblio({ biblionumber => $record_id });
96
            my $record = &GetMarcBiblio({ biblionumber => $record_id });
97
            $biblio->{subtitle} = C4::Biblio::SplitSubtitle( $biblio->{subtitle} );
97
            $biblio->{subtitle} = C4::Biblio::SplitKohaField( $biblio->{subtitle} );
98
            $biblio->{itemnumbers} = [Koha::Items->search({ biblionumber => $record_id })->get_column('itemnumber')];
98
            $biblio->{itemnumbers} = [Koha::Items->search({ biblionumber => $record_id })->get_column('itemnumber')];
99
            $biblio->{holds_count} = $holds_count;
99
            $biblio->{holds_count} = $holds_count;
100
            $biblio->{issues_count} = C4::Biblio::CountItemsIssued( $record_id );
100
            $biblio->{issues_count} = C4::Biblio::CountItemsIssued( $record_id );
101
- 

Return to bug 11529