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

(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/authorities/detail.tt (-73 / +75 lines)
Lines 3-12 Link Here
3
[% SET footerjs = 1 %]
3
[% SET footerjs = 1 %]
4
[% PROCESS 'authorities.inc' %]
4
[% PROCESS 'authorities.inc' %]
5
[% INCLUDE 'doc-head-open.inc' %]
5
[% INCLUDE 'doc-head-open.inc' %]
6
<title>[% IF ( unknownauthid ) %]
6
<title>
7
      Unknown authority record
7
    [% IF ( unknownauthid ) %]
8
        Unknown authority record
8
    [% ELSE %]
9
    [% ELSE %]
9
      Details for authority #[% authid | html %] ([% authtypetext | html %])
10
        Details for authority #[% authid | html %] ([% authtypetext | html %])
10
    [% END %] &rsaquo; Authorities &rsaquo; Koha
11
    [% END %] &rsaquo; Authorities &rsaquo; Koha
11
</title>
12
</title>
12
[% INCLUDE 'doc-head-close.inc' %]
13
[% INCLUDE 'doc-head-close.inc' %]
Lines 45-127 Link Here
45
    <div class="row">
46
    <div class="row">
46
        <div class="col-md-8 col-md-offset-2">
47
        <div class="col-md-8 col-md-offset-2">
47
48
48
    [% INCLUDE 'authorities-toolbar.inc' %]
49
            [% INCLUDE 'authorities-toolbar.inc' %]
49
	
50
50
[% IF ( displayhierarchy ) %]
51
            [% IF ( displayhierarchy ) %]
51
<div id="hierarchies">
52
                <div id="hierarchies">
52
[% PROCESS showhierarchy trees = loophierarchies %]
53
                    [% PROCESS showhierarchy trees = loophierarchies %]
53
</div>
54
                </div>
54
[% END %]
55
            [% END %]
55
56
56
57
57
[% IF ( unknownauthid ) %]
58
            [% IF ( unknownauthid ) %]
58
    <h1>Authority does not exist</h1>
59
                <h1>Authority does not exist</h1>
59
    <div class="dialog message">The authority record you requested does not exist ([% errauthid | html %]).</div>
60
                <div class="dialog message">The authority record you requested does not exist ([% errauthid | html %]).</div>
60
[% ELSE %]
61
            [% ELSE %]
61
    <h1>Authority #[% authid | html %] ([% authtypetext | html %])</h1>
62
62
63
<div id="action">
63
                <h1>Authority #[% authid | html %] ([% authtypetext | html %])</h1>
64
    [% IF count %]
64
65
        Used in <a href="/cgi-bin/koha/catalogue/search.pl?type=intranet&amp;op=do_search&amp;q=an:[% authid | uri %]">[% count | html %] record(s)</a>
65
                <div id="action">
66
    [% ELSE %]
66
                    [% IF count %]
67
        This authority is not used in any records.
67
                        Used in <a href="/cgi-bin/koha/catalogue/search.pl?type=intranet&amp;op=do_search&amp;q=an:[% authid | uri %]">[% count | html %] record(s)</a>
68
    [% END %]
68
                    [% ELSE %]
69
</div>
69
                        This authority is not used in any records.
70
71
<div id="authoritiestabs" class="toptabs numbered">
72
    <ul class="nav nav-tabs" role="tablist">
73
        [% FOREACH BIG_LOO IN BIG_LOOP %]
74
            <li role="presentation">
75
                <a href="#tab[% BIG_LOO.number | uri %]XX" aria-controls="tab[% BIG_LOO.number | uri %]XX" role="tab" data-toggle="tab">[% BIG_LOO.number | html %]</a>
76
            </li>
77
        [% END %]
78
    </ul>
79
    <div class="tab-content">
80
[% FOREACH BIG_LOO IN BIG_LOOP %]
81
    <div id="tab[% BIG_LOO.number | html %]XX" role="tabpanel" class="tab-pane">
82
    [% FOREACH innerloo IN BIG_LOO.innerloop %]
83
        [% IF ( innerloo.tag_number ) %]
84
            <div class="tag">
85
                <div class="tag_title">
86
                    <span class="tag_num marc_field">[% innerloo.tag_number | html %]</span>
87
                    [% IF (innerloo.defined("ind1") ) %]
88
                        <span class="tag_ind1">[% innerloo.ind1 | html %]</span><span class="tag_ind2">[% innerloo.ind2 | html %]</span>
89
                    [% END %]
90
                    [% IF (innerloo.tag_desc) %]
91
                        <span class="dashwrapper"> -</span> <span class="tag_desc marc_field">[% innerloo.tag_desc | html %]</span>
92
                    [% END %]
70
                    [% END %]
93
                </div>
71
                </div>
94
        [% ELSE %]
72
95
            <div class="tag">
73
                <div id="authoritiestabs" class="toptabs numbered">
96
        [% END %]
74
                    <ul class="nav nav-tabs" role="tablist">
97
        [% FOREACH subfiel IN innerloo.subfield %]
75
                        [% FOREACH BIG_LOO IN BIG_LOOP %]
98
            <div class="auth_subfield">
76
                            <li role="presentation">
99
                <div class="subfield_info marc_field">
77
                                <a href="#tab[% BIG_LOO.number | uri %]XX" aria-controls="tab[% BIG_LOO.number | uri %]XX" role="tab" data-toggle="tab">[% BIG_LOO.number | html %]</a>
100
                    [% UNLESS ( subfiel.hide_marc ) %]
78
                            </li>
101
                        <span class="marc_subfield">[% subfiel.marc_subfield | html %]</span>
102
                    [% END %]
103
                    <span class="marc_subfield_desc">[% subfiel.long_desc | html %]</span>
104
                </div> <!-- /.subfield_info.marc_field -->
105
                <div class="subfield_content marc_field">
106
                    <span class="subfield_value">
107
                        [% IF ( subfiel.is_url ) %]
108
                            <a href="[% subfiel.marc_value | url %]">[% subfiel.marc_value | html %]</a>
109
                        [% ELSE %]
110
                            [% subfiel.marc_value | html %]
111
                        [% END %]
79
                        [% END %]
112
                    </span>
80
                    </ul>
113
                </div> <!-- /.subfield_content.marc_field -->
81
                    <div class="tab-content">
114
            </div> <!-- /.auth_subfield -->
82
                        [% FOREACH BIG_LOO IN BIG_LOOP %]
115
        [% END %]
83
                            <div id="tab[% BIG_LOO.number | html %]XX" role="tabpanel" class="tab-pane">
84
                                [% FOREACH innerloo IN BIG_LOO.innerloop %]
85
                                    [% IF ( innerloo.tag_number ) %]
86
                                        <div class="tag">
87
                                            <div class="tag_title">
88
                                                <span class="tag_num marc_field">[% innerloo.tag_number | html %]</span>
89
                                                [% IF (innerloo.defined("ind1") ) %]
90
                                                    <span class="tag_ind1">[% innerloo.ind1 | html %]</span><span class="tag_ind2">[% innerloo.ind2 | html %]</span>
91
                                                [% END %]
92
                                                [% IF (innerloo.tag_desc) %]
93
                                                    <span class="dashwrapper"> -</span> <span class="tag_desc marc_field">[% innerloo.tag_desc | html %]</span>
94
                                                [% END %]
95
                                            </div>
96
                                    [% ELSE %]
97
                                        <div class="tag">
98
                                    [% END %]
99
100
                                        [% FOREACH subfiel IN innerloo.subfield %]
101
                                            <div class="auth_subfield">
102
                                                <div class="subfield_info marc_field">
103
                                                    [% UNLESS ( subfiel.hide_marc ) %]
104
                                                        <span class="marc_subfield">[% subfiel.marc_subfield | html %]</span>
105
                                                    [% END %]
106
                                                    <span class="marc_subfield_desc">[% subfiel.long_desc | html %]</span>
107
                                                </div> <!-- /.subfield_info.marc_field -->
108
                                                <div class="subfield_content marc_field">
109
                                                    <span class="subfield_value">
110
                                                        [% IF ( subfiel.is_url ) %]
111
                                                            <a href="[% subfiel.marc_value | url %]">[% subfiel.marc_value | html %]</a>
112
                                                        [% ELSE %]
113
                                                            [% subfiel.marc_value | html %]
114
                                                        [% END %]
115
                                                    </span>
116
                                                </div> <!-- /.subfield_content.marc_field -->
117
                                            </div> <!-- /.auth_subfield -->
118
                                        [% END %]
119
                                    </div>
120
                                [% END %]
121
                            </div>
122
                        [% END %]
123
                    </div> <!-- /.tab-content -->
124
                </div>
125
            [% END %]
116
        </div>
126
        </div>
117
    [% END %]
118
    </div>
127
    </div>
119
[% END %]
120
</div> <!-- /.tab-content -->
121
</div>
122
</div>
123
</div>
124
[% END %]
125
128
126
[% MACRO jsinclude BLOCK %]
129
[% MACRO jsinclude BLOCK %]
127
    [% INCLUDE 'authorities_js.inc' %]
130
    [% INCLUDE 'authorities_js.inc' %]
128
- 

Return to bug 30936