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

(-)a/catalogue/MARCdetail.pl (+5 lines)
Lines 121-126 if ( $query->cookie("searchToOrder") ) { Link Here
121
}
121
}
122
122
123
$template->param( ocoins => $biblio_object->get_coins );
123
$template->param( ocoins => $biblio_object->get_coins );
124
my $nonxml_errors = $biblio_object->metadata->metadata_errors->search( { error_type => 'nonxml_stripped' } );
125
if ( $nonxml_errors->count ) {
126
    my @messages = map { $_->message } $nonxml_errors->as_list;
127
    $template->param( nonxml_stripped => join( "\n", @messages ) );
128
}
124
129
125
#count of item linked
130
#count of item linked
126
my $itemcount = $biblio_object->items->count;
131
my $itemcount = $biblio_object->items->count;
(-)a/catalogue/detail.pl (+5 lines)
Lines 177-182 my $marcflavour = C4::Context->preference("marcflavour"); Link Here
177
$template->param( 'SpineLabelShowPrintOnBibDetails' => C4::Context->preference("SpineLabelShowPrintOnBibDetails") );
177
$template->param( 'SpineLabelShowPrintOnBibDetails' => C4::Context->preference("SpineLabelShowPrintOnBibDetails") );
178
178
179
$template->param( ocoins => !$invalid_marc_record ? $biblio->get_coins : undef );
179
$template->param( ocoins => !$invalid_marc_record ? $biblio->get_coins : undef );
180
my $nonxml_errors = $biblio->metadata->metadata_errors->search( { error_type => 'nonxml_stripped' } );
181
if ( $nonxml_errors->count ) {
182
    my @messages = map { $_->message } $nonxml_errors->as_list;
183
    $template->param( nonxml_stripped => join( "\n", @messages ) );
184
}
180
185
181
# some useful variables for enhanced content;
186
# some useful variables for enhanced content;
182
# in each case, we're grabbing the first value we find in
187
# in each case, we're grabbing the first value we find in
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/MARCdetail.tt (+10 lines)
Lines 68-73 Link Here
68
            </select>
68
            </select>
69
        </strong></p
69
        </strong></p
70
    >
70
    >
71
    [% IF nonxml_stripped %]
72
        <div class="alert alert-warning">
73
            <h1>Record was automatically modified</h1>
74
            <p
75
                >Non-XML characters were stripped from this record when it was last saved. Please <a href="/cgi-bin/koha/cataloguing/addbiblio.pl?biblionumber=[% biblionumber | uri %]">review and re-save the record</a> to confirm the data
76
                is correct.</p
77
            >
78
            <pre class="error">[% nonxml_stripped | html %]</pre>
79
        </div>
80
    [% END %]
71
    [% IF ( ocoins ) %]
81
    [% IF ( ocoins ) %]
72
        <!-- COinS / OpenURL -->
82
        <!-- COinS / OpenURL -->
73
        <span class="Z3988" title="[% ocoins | html %]"></span>
83
        <span class="Z3988" title="[% ocoins | html %]"></span>
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt (-1 / +10 lines)
Lines 102-107 Link Here
102
    <!-- /.row -->
102
    <!-- /.row -->
103
    <div class="row">
103
    <div class="row">
104
        <div id="catalogue_detail_biblio" class="col">
104
        <div id="catalogue_detail_biblio" class="col">
105
            [% IF nonxml_stripped %]
106
                <div class="alert alert-warning">
107
                    <h1>Record was automatically modified</h1>
108
                    <p
109
                        >Non-XML characters were stripped from this record when it was last saved. Please <a href="/cgi-bin/koha/cataloguing/addbiblio.pl?biblionumber=[% biblio.biblionumber | uri %]">review and re-save the record</a> to
110
                        confirm the data is correct.</p
111
                    >
112
                    <pre class="error">[% nonxml_stripped | html %]</pre>
113
                </div>
114
            [% END %]
105
            [% IF decoding_error || analytics_error %]
115
            [% IF decoding_error || analytics_error %]
106
                <div class="alert alert-warning">
116
                <div class="alert alert-warning">
107
                    <h1>Errors found</h1>
117
                    <h1>Errors found</h1>
108
- 

Return to bug 35104