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

(-)a/catalogue/MARCdetail.pl (-7 / +5 lines)
Lines 149-155 for ( my $tabloop = 0 ; $tabloop <= 10 ; $tabloop++ ) { Link Here
149
        $subfield_data{marc_tag}      = '000';
149
        $subfield_data{marc_tag}      = '000';
150
        push( @subfields_data, \%subfield_data );
150
        push( @subfields_data, \%subfield_data );
151
        my %tag_data;
151
        my %tag_data;
152
        $tag_data{tag} = '000 -' . $tagslib->{'000'}->{lib};
152
        $tag_data{tag} = '000';
153
	$tag_data{tag_desc} = $tagslib->{'000'}->{lib};
153
        my @tmp = @subfields_data;
154
        my @tmp = @subfields_data;
154
        $tag_data{subfield} = \@tmp;
155
        $tag_data{subfield} = \@tmp;
155
        push( @loop_data, \%tag_data );
156
        push( @loop_data, \%tag_data );
Lines 236-247 for ( my $tabloop = 0 ; $tabloop <= 10 ; $tabloop++ ) { Link Here
236
                    $tag_data{tag} = $tagslib->{ $fields[$x_i]->tag() }->{lib};
237
                    $tag_data{tag} = $tagslib->{ $fields[$x_i]->tag() }->{lib};
237
                }
238
                }
238
                else {
239
                else {
239
                    $tag_data{tag} =
240
                    $tag_data{tag} = $fields[$x_i]->tag();
240
                        $fields[$x_i]->tag() 
241
		    $tag_data{tag_ind} = C4::Koha::display_marc_indicators($fields[$x_i]);
241
                      . ' '
242
		    $tag_data{tag_desc} = $tagslib->{ $fields[$x_i]->tag() }->{lib};
242
                      . C4::Koha::display_marc_indicators($fields[$x_i])
243
                      . ' - '
244
                      . $tagslib->{ $fields[$x_i]->tag() }->{lib};
245
                }
243
                }
246
            }
244
            }
247
            my @tmp = @subfields_data;
245
            my @tmp = @subfields_data;
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/MARCdetail.tt (-291 / +49 lines)
Lines 69-74 function Changefwk(FwkList) { Link Here
69
<span class="Z3988" title="[% ocoins %]"></span>
69
<span class="Z3988" title="[% ocoins %]"></span>
70
[% END %]
70
[% END %]
71
71
72
73
[% BLOCK show_tab_html %]
74
    <div id="[% tab_id %]">
75
        [% FOREACH tab0X IN tab_data %]
76
            [% IF ( tab0X.tag ) %]
77
                <div class="tag">
78
                <div class="tag_title">
79
                    <span class="tag_num">[% tab0X.tag %]</span>
80
		    [% IF ( tab0X.tag_ind ) %]
81
		      <span class="tag_ind1">[% tab0X.tag_ind.substr(0, 1) %]</span>
82
		      <span class="tag_ind2">[% tab0X.tag_ind.substr(1, 1) %]</span>
83
		    [% END %]
84
                    [% IF (tab0X.tag_desc) %]<span class="tag_desc">[% tab0X.tag_desc %]</span>[% END %]
85
                </div>
86
            [% ELSE %]
87
                <div class="tag">
88
            [% END %]
89
            [% FOREACH subfiel IN tab0X.subfield %]
90
                <p class="subfield_line">
91
                    <span class="subfield-label">&nbsp;
92
                    [% UNLESS ( subfiel.hide_marc ) %][% subfiel.marc_subfield %][% END %]
93
                    <span class="desc" title="[% subfiel.long_desc %]">[% subfiel.short_desc %]</span></span>
94
                    [% IF ( subfiel.is_url ) %]<a href="[% subfiel.marc_value %]">[% subfiel.marc_value |html %]</a>[% ELSE %][% subfiel.marc_value |html %][% END %]
95
                    [% IF ( subfiel.link ) %]
96
                        <a href="/cgi-bin/koha/catalogue/search.pl?op=do_search&amp;idx=[% subfiel.link %],phr&amp;type=intranet&amp;q=[% subfiel.marc_value |url %]">
97
                            <img border="0" src="[% interface %]/[% theme %]/img/filefind.png" height="15" title="Search on [% subfiel.marc_value |html %]" alt="Search on [% subfiel.marc_value |html %]" />
98
                        </a>
99
                    [% END %]
100
                    [% IF ( subfiel.authority ) %]
101
                        <a href="/cgi-bin/koha/authorities/detail.pl?authid=[% subfiel.authority %]" class="button">Auth</a>
102
                    [% END %]
103
                </p>
104
            [% END %]
105
            </div> <!-- class='tag' -->
106
        [% END %]
107
    </div>
108
[% END %]
109
110
72
<div id="bibliotabs" class="toptabs numbered">
111
<div id="bibliotabs" class="toptabs numbered">
73
	<ul>
112
	<ul>
74
            [% IF ( tab0XX ) %]
113
            [% IF ( tab0XX ) %]
Lines 105-409 function Changefwk(FwkList) { Link Here
105
                <li><a href="#tab10XX">Item(s)</a></li>
144
                <li><a href="#tab10XX">Item(s)</a></li>
106
            [% END %]
145
            [% END %]
107
        </ul>
146
        </ul>
108
    <div id="tab0XX">
147
    [% PROCESS show_tab_html tab_id="tab0XX" tab_data=tab0XX %]
109
        [% FOREACH tab0X IN tab0XX %]
110
            [% IF ( tab0X.tag ) %]
111
                <div class="tag">
112
                <div class="tag_title">
113
                    [% tab0X.tag %]
114
                </div>
115
            [% ELSE %]
116
                <div class="tag">
117
            [% END %]
118
            [% FOREACH subfiel IN tab0X.subfield %]
119
                <p class="subfield_line">
120
                    <span class="subfield-label">&nbsp;
121
                    [% UNLESS ( subfiel.hide_marc ) %][% subfiel.marc_subfield %][% END %]
122
                    <span title="[% subfiel.long_desc %]">[% subfiel.short_desc %]</span></span>
123
                    [% IF ( subfiel.is_url ) %]<a href="[% subfiel.marc_value %]">[% subfiel.marc_value |html %]</a>[% ELSE %][% subfiel.marc_value |html %][% END %]
124
                    [% IF ( subfiel.link ) %]
125
                        <a href="/cgi-bin/koha/catalogue/search.pl?op=do_search&amp;idx=[% subfiel.link %],phr&amp;type=intranet&amp;q=[% subfiel.marc_value |url %]">
126
                            <img border="0" src="[% interface %]/[% theme %]/img/filefind.png" height="15" title="Search on [% subfiel.marc_value |html %]" alt="Search on [% subfiel.marc_value |html %]" />
127
                        </a>
128
                    [% END %]
129
                    [% IF ( subfiel.authority ) %]
130
                        <a href="/cgi-bin/koha/authorities/detail.pl?authid=[% subfiel.authority %]" class="button">Auth</a>
131
                    [% END %]
132
                </p>
133
            [% END %]
134
            </div> <!-- class='tag' -->
135
        [% END %]
136
    </div>
137
148
138
    <div id="tab1XX">
149
    [% PROCESS show_tab_html tab_id="tab1XX" tab_data=tab1XX %]
139
        [% FOREACH tab1X IN tab1XX %]
140
                [% IF ( tab1X.tag ) %]
141
                    <div class="tag">
142
                    <div class="tag_title">
143
                        [% tab1X.tag %]
144
                    </div>
145
                [% ELSE %]
146
                    <div class="tag">
147
                [% END %]
148
            [% FOREACH subfiel IN tab1X.subfield %]
149
                <p>
150
                    <span class="subfield-label">&nbsp;
151
                    [% UNLESS ( subfiel.hide_marc ) %]<b>[% subfiel.marc_subfield %]</b>[% END %]
152
                    <span title="[% subfiel.long_desc %]">[% subfiel.short_desc %]</span></span>
153
                    [% IF ( subfiel.is_url ) %]<a href="[% subfiel.marc_value %]">[% subfiel.marc_value |html %]</a>[% ELSE %][% subfiel.marc_value |html %][% END %]
154
                    [% IF ( subfiel.link ) %]
155
                        <a href="/cgi-bin/koha/catalogue/search.pl?op=do_search&amp;idx=[% subfiel.link %],phr&amp;type=intranet&amp;q=[% subfiel.marc_value |url %]">
156
                            <img border="0" src="[% interface %]/[% theme %]/img/filefind.png" height="15" title="Search on [% subfiel.marc_value |html %]" alt="Search on [% subfiel.marc_value |html %]" />
157
                        </a>
158
                    [% END %]
159
                    [% IF ( subfiel.authority ) %]
160
                        <a href="/cgi-bin/koha/authorities/detail.pl?authid=[% subfiel.authority %]" class="button">Auth</a>
161
                    [% END %]
162
                </p>
163
            [% END %]
164
            </div>
165
        [% END %]
166
    </div>
167
150
168
    <div id="tab2XX">
151
    [% PROCESS show_tab_html tab_id="tab2XX" tab_data=tab2XX %]
169
        [% FOREACH tab2X IN tab2XX %]
170
                [% IF ( tab2X.tag ) %]
171
                    <div class="tag">
172
                    <div class="tag_title">
173
                        [% tab2X.tag %]
174
                    </div>
175
                [% ELSE %]
176
                    <div class="tag">
177
                [% END %]
178
            [% FOREACH subfiel IN tab2X.subfield %]
179
                <p>
180
                    <span class="subfield-label">&nbsp;
181
                    [% UNLESS ( subfiel.hide_marc ) %]<b>[% subfiel.marc_subfield %]</b>[% END %]
182
                    <span title="[% subfiel.long_desc %]">[% subfiel.short_desc %]</span></span>
183
                    [% IF ( subfiel.is_url ) %]<a href="[% subfiel.marc_value %]">[% subfiel.marc_value |html %]</a>[% ELSE %][% subfiel.marc_value |html %][% END %]
184
                    [% IF ( subfiel.link ) %]
185
                        <a href="/cgi-bin/koha/catalogue/search.pl?op=do_search&amp;idx=[% subfiel.link %],phr&amp;type=intranet&amp;q=[% subfiel.marc_value |url %]">
186
                            <img border="0" src="[% interface %]/[% theme %]/img/filefind.png" height="15" title="Search on [% subfiel.marc_value |html %]" alt="Search on [% subfiel.marc_value |html %]" />
187
                        </a>
188
                    [% END %]
189
                    [% IF ( subfiel.authority ) %]
190
                        <a href="/cgi-bin/koha/authorities/detail.pl?authid=[% subfiel.authority %]" class="button">Auth</a>
191
                    [% END %]
192
                </p>
193
            [% END %]
194
            </div>
195
        [% END %]
196
    </div>
197
152
198
    <div id="tab3XX">
153
    [% PROCESS show_tab_html tab_id="tab3XX" tab_data=tab3XX %]
199
        [% FOREACH tab3X IN tab3XX %]
200
                [% IF ( tab3X.tag ) %]
201
                    <div class="tag">
202
                    <div class="tag_title">
203
                        [% tab3X.tag %]
204
                    </div>
205
                [% ELSE %]
206
                    <div class="tag">
207
                [% END %]
208
            [% FOREACH subfiel IN tab3X.subfield %]
209
                <p>
210
                    <span class="subfield-label">&nbsp;
211
                    [% UNLESS ( subfiel.hide_marc ) %]<b>[% subfiel.marc_subfield %]</b>[% END %]
212
                    <span title="[% subfiel.long_desc %]">[% subfiel.short_desc %]</span></span>
213
                    [% IF ( subfiel.is_url ) %]<a href="[% subfiel.marc_value %]">[% subfiel.marc_value |html %]</a>[% ELSE %][% subfiel.marc_value |html %][% END %]
214
                    [% IF ( subfiel.link ) %]
215
                        <a href="/cgi-bin/koha/catalogue/search.pl?op=do_search&amp;idx=[% subfiel.link %],phr&amp;type=intranet&amp;q=[% subfiel.marc_value |url %]">
216
                            <img border="0" src="[% interface %]/[% theme %]/img/filefind.png" height="15" title="Search on [% subfiel.marc_value |html %]" alt="Search on [% subfiel.marc_value |html %]" />
217
                        </a>
218
                    [% END %]
219
                    [% IF ( subfiel.authority ) %]
220
                        <a href="/cgi-bin/koha/authorities/detail.pl?authid=[% subfiel.authority %]" class="button">Auth</a>
221
                    [% END %]
222
                </p>
223
            [% END %]
224
            </div>
225
        [% END %]
226
    </div>
227
154
228
    <div id="tab4XX">
155
    [% PROCESS show_tab_html tab_id="tab4XX" tab_data=tab4XX %]
229
        [% FOREACH tab4X IN tab4XX %]
230
                [% IF ( tab4X.tag ) %]
231
                    <div class="tag">
232
                    <div class="tag_title">
233
                        [% tab4X.tag %]
234
                    </div>
235
                [% ELSE %]
236
                    <div class="tag">
237
                [% END %]
238
            [% FOREACH subfiel IN tab4X.subfield %]
239
                <p>
240
                    <span class="subfield-label">&nbsp;
241
                    [% UNLESS ( subfiel.hide_marc ) %]<b>[% subfiel.marc_subfield %]</b>[% END %]
242
                    <span title="[% subfiel.long_desc %]">[% subfiel.short_desc %]</span></span>
243
                    [% IF ( subfiel.is_url ) %]<a href="[% subfiel.marc_value %]">[% subfiel.marc_value |html %]</a>[% ELSE %][% subfiel.marc_value |html %][% END %]
244
                    [% IF ( subfiel.link ) %]
245
                        <a href="/cgi-bin/koha/catalogue/search.pl?op=do_search&amp;idx=[% subfiel.link %],phr&amp;type=intranet&amp;q=[% subfiel.marc_value |url %]">
246
                            <img border="0" src="[% interface %]/[% theme %]/img/filefind.png" height="15" title="Search on [% subfiel.marc_value |html %]" alt="Search on [% subfiel.marc_value |html %]" />
247
                        </a>
248
                    [% END %]
249
                    [% IF ( subfiel.authority ) %]
250
                        <a href="/cgi-bin/koha/authorities/detail.pl?authid=[% subfiel.authority %]" class="button">Auth</a>
251
                    [% END %]
252
                </p>
253
            [% END %]
254
            </div>
255
        [% END %]
256
    </div>
257
156
258
    <div  id="tab5XX">
157
    [% PROCESS show_tab_html tab_id="tab5XX" tab_data=tab5XX %]
259
        [% FOREACH tab5X IN tab5XX %]
260
                [% IF ( tab5X.tag ) %]
261
                    <div class="tag">
262
                    <div class="tag_title">
263
                        [% tab5X.tag %]
264
                    </div>
265
                [% ELSE %]
266
                    <div class="tag">
267
                [% END %]
268
            [% FOREACH subfiel IN tab5X.subfield %]
269
                <p>
270
                    <span class="subfield-label">&nbsp;
271
                    [% UNLESS ( subfiel.hide_marc ) %]<b>[% subfiel.marc_subfield %]</b>[% END %]
272
                    <span title="[% subfiel.long_desc %]">[% subfiel.short_desc %]</span></span>
273
                    [% IF ( subfiel.is_url ) %]<a href="[% subfiel.marc_value %]">[% subfiel.marc_value |html %]</a>[% ELSE %][% subfiel.marc_value |html %][% END %]
274
                    [% IF ( subfiel.link ) %]
275
                        <a href="/cgi-bin/koha/catalogue/search.pl?op=do_search&amp;idx=[% subfiel.link %],phr&amp;type=intranet&amp;q=[% subfiel.marc_value |url %]">
276
                            <img border="0" src="[% interface %]/[% theme %]/img/filefind.png" height="15" title="Search on [% subfiel.marc_value |html %]" alt="Search on [% subfiel.marc_value |html %]" />
277
                        </a>
278
                    [% END %]
279
                    [% IF ( subfiel.authority ) %]
280
                        <a href="/cgi-bin/koha/authorities/detail.pl?authid=[% subfiel.authority %]" class="button">Auth</a>
281
                    [% END %]
282
                </p>
283
            [% END %]
284
            </div>
285
        [% END %]
286
    </div>
287
158
288
    <div id="tab6XX">
159
    [% PROCESS show_tab_html tab_id="tab6XX" tab_data=tab6XX %]
289
        [% FOREACH tab6X IN tab6XX %]
290
                [% IF ( tab6X.tag ) %]
291
                    <div class="tag">
292
                    <div class="tag_title">
293
                        [% tab6X.tag %]
294
                    </div>
295
                [% ELSE %]
296
                    <div class="tag">
297
                [% END %]
298
            [% FOREACH subfiel IN tab6X.subfield %]
299
                <p>
300
                    <span class="subfield-label">&nbsp;
301
                    [% UNLESS ( subfiel.hide_marc ) %]<b>[% subfiel.marc_subfield %]</b>[% END %]
302
                    <span title="[% subfiel.long_desc %]">[% subfiel.short_desc %]</span></span>
303
                    [% IF ( subfiel.is_url ) %]<a href="[% subfiel.marc_value %]">[% subfiel.marc_value |html %]</a>[% ELSE %][% subfiel.marc_value |html %][% END %]
304
                    [% IF ( subfiel.link ) %]
305
                        <a href="/cgi-bin/koha/catalogue/search.pl?op=do_search&amp;idx=[% subfiel.link %],phr&amp;type=intranet&amp;q=[% subfiel.marc_value |url %]">
306
                            <img border="0" src="[% interface %]/[% theme %]/img/filefind.png" height="15" title="Search on [% subfiel.marc_value |html %]" alt="Search on [% subfiel.marc_value |html %]" />
307
                        </a>
308
                    [% END %]
309
                    [% IF ( subfiel.authority ) %]
310
                        <a href="/cgi-bin/koha/authorities/detail.pl?authid=[% subfiel.authority %]" class="button">Auth</a>
311
                    [% END %]
312
                </p>
313
            [% END %]
314
            </div>
315
        [% END %]
316
    </div>
317
160
318
    <div  id="tab7XX">
161
    [% PROCESS show_tab_html tab_id="tab7XX" tab_data=tab7XX %]
319
        [% FOREACH tab7X IN tab7XX %]
320
                [% IF ( tab7X.tag ) %]
321
                    <div class="tag">
322
                    <div class="tag_title">
323
                        [% tab7X.tag %]
324
                    </div>
325
                [% ELSE %]
326
                    <div class="tag">
327
                [% END %]
328
            [% FOREACH subfiel IN tab7X.subfield %]
329
                <p>
330
                    <span class="subfield-label">&nbsp;
331
                    [% UNLESS ( subfiel.hide_marc ) %]<b>[% subfiel.marc_subfield %]</b>[% END %]
332
                    <span title="[% subfiel.long_desc %]">[% subfiel.short_desc %]</span></span>
333
                    [% IF ( subfiel.is_url ) %]<a href="[% subfiel.marc_value %]">[% subfiel.marc_value |html %]</a>[% ELSE %][% subfiel.marc_value |html %][% END %]
334
                    [% IF ( subfiel.link ) %]
335
                        <a href="/cgi-bin/koha/catalogue/search.pl?op=do_search&amp;idx=[% subfiel.link %],phr&amp;type=intranet&amp;q=[% subfiel.marc_value |url %]">
336
                            <img border="0" src="[% interface %]/[% theme %]/img/filefind.png" height="15" title="Search on [% subfiel.marc_value |html %]" alt="Search on [% subfiel.marc_value |html %]" />
337
                        </a>
338
                    [% END %]
339
                    [% IF ( subfiel.authority ) %]
340
                        <a href="/cgi-bin/koha/authorities/detail.pl?authid=[% subfiel.authority %]" class="button">Auth</a>
341
                    [% END %]
342
                </p>
343
            [% END %]
344
            </div>
345
        [% END %]
346
    </div>
347
162
348
    <div id="tab8XX">
163
    [% PROCESS show_tab_html tab_id="tab8XX" tab_data=tab8XX %]
349
        [% FOREACH tab8X IN tab8XX %]
350
                [% IF ( tab8X.tag ) %]
351
                    <div class="tag">
352
                    <div class="tag_title">
353
                        [% tab8X.tag %]
354
                    </div>
355
                [% ELSE %]
356
                    <div class="tag">
357
                [% END %]
358
            [% FOREACH subfiel IN tab8X.subfield %]
359
                <p>
360
                    <span class="subfield-label">&nbsp;
361
                    [% UNLESS ( subfiel.hide_marc ) %]<b>[% subfiel.marc_subfield %]</b>[% END %]
362
                    <span title="[% subfiel.long_desc %]">[% subfiel.short_desc %]</span></span>
363
                    [% IF ( subfiel.is_url ) %]<a href="[% subfiel.marc_value %]">[% subfiel.marc_value |html %]</a>[% ELSE %][% subfiel.marc_value |html %][% END %]
364
                    [% IF ( subfiel.link ) %]
365
                        <a href="/cgi-bin/koha/catalogue/search.pl?op=do_search&amp;idx=[% subfiel.link %],phr&amp;type=intranet&amp;q=[% subfiel.marc_value |url %]">
366
                            <img border="0" src="[% interface %]/[% theme %]/img/filefind.png" height="15" title="Search on [% subfiel.marc_value |html %]" alt="Search on [% subfiel.marc_value |html %]" />
367
                        </a>
368
                    [% END %]
369
                    [% IF ( subfiel.authority ) %]
370
                        <a href="/cgi-bin/koha/authorities/detail.pl?authid=[% subfiel.authority %]" class="button">Auth</a>
371
                    [% END %]
372
                </p>
373
            [% END %]
374
            </div>
375
        [% END %]
376
    </div>
377
164
378
    <div id="tab9XX">
165
    [% PROCESS show_tab_html tab_id="tab9XX" tab_data=tab9XX %]
379
        [% FOREACH tab9X IN tab9XX %]
380
                [% IF ( tab9X.tag ) %]
381
                    <div class="tag">
382
                    <div class="tag_title">
383
                        [% tab9X.tag %]
384
                    </div>
385
                [% ELSE %]
386
                    <div class="tag">
387
                [% END %]
388
            [% FOREACH subfiel IN tab9X.subfield %]
389
                <p>
390
                    <span class="subfield-label">&nbsp;
391
                    [% UNLESS ( subfiel.hide_marc ) %]<b>[% subfiel.marc_subfield %]</b>[% END %]
392
                    <span title="[% subfiel.long_desc %]">[% subfiel.short_desc %]</span></span>
393
                    [% IF ( subfiel.is_url ) %]<a href="[% subfiel.marc_value %]">[% subfiel.marc_value |html %]</a>[% ELSE %][% subfiel.marc_value |html %][% END %]
394
                    [% IF ( subfiel.link ) %]
395
                        <a href="/cgi-bin/koha/catalogue/search.pl?op=do_search&amp;idx=[% subfiel.link %],phr&amp;type=intranet&amp;q=[% subfiel.marc_value |url %]">
396
                            <img border="0" src="[% interface %]/[% theme %]/img/filefind.png" height="15" title="Search on [% subfiel.marc_value |html %]" alt="Search on [% subfiel.marc_value |html %]" />
397
                        </a>
398
                    [% END %]
399
                    [% IF ( subfiel.authority ) %]
400
                        <a href="/cgi-bin/koha/authorities/detail.pl?authid=[% subfiel.authority %]" class="button">Auth</a>
401
                    [% END %]
402
                </p>
403
            [% END %]
404
            </div>
405
        [% END %]
406
    </div>
407
166
408
     [% IF ( tab10XX ) %]
167
     [% IF ( tab10XX ) %]
409
    <div id="tab10XX">
168
    <div id="tab10XX">
410
- 

Return to bug 11885