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

(-)a/koha-tmpl/intranet-tmpl/prog/en/includes/authorities-search-results.inc (-2 / +5 lines)
Lines 53-60 Link Here
53
        [% END %]
53
        [% END %]
54
    [% END %]
54
    [% END %]
55
[% END %]
55
[% END %]
56
56
[% BLOCK authresult %]
57
[% BLOCK authresult %]
57
    [% IF ( summary.label ) %][% summary.label | html %]:[% END %]
58
    [% IF summary.summary %]
58
    [% IF summary.summary %]
59
      <div class="authority-summary">
59
      <div class="authority-summary">
60
        [% summary.summary | html %]
60
        [% summary.summary | html %]
Lines 63-69 Link Here
63
    [% UNLESS ( summary.summaryonly ) %]
63
    [% UNLESS ( summary.summaryonly ) %]
64
        <div class="authorizedheading">
64
        <div class="authorizedheading">
65
          [% FOREACH authorize IN summary.authorized %]
65
          [% FOREACH authorize IN summary.authorized %]
66
            <span class="authorizedheading">[% authorize.heading | html %]</span>
66
            <span class="authorizedheading">
67
                <a data-authid="[% authid | html %]" href="/cgi-bin/koha/authorities/detail.pl?authid=[% authid | uri %]">[% authorize.heading | html %]</a>
68
            </span>
67
            [% UNLESS loop.last %] | [% END %]
69
            [% UNLESS loop.last %] | [% END %]
68
          [% END %]
70
          [% END %]
69
        </div>
71
        </div>
Lines 126-131 Link Here
126
        [% END %]
128
        [% END %]
127
    [% END %]
129
    [% END %]
128
[% END %]
130
[% END %]
131
129
[% BLOCK language %]
132
[% BLOCK language %]
130
  [% SWITCH lang %]
133
  [% SWITCH lang %]
131
   [% CASE ['en', 'eng'] %]English
134
   [% CASE ['en', 'eng'] %]English
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/authorities/searchresultlist-auth.tt (-3 / +41 lines)
Lines 42-54 Link Here
42
            <table>
42
            <table>
43
                <tr>
43
                <tr>
44
                    <th>Summary</th>
44
                    <th>Summary</th>
45
                    <th>Heading type</th>
45
                    <th>Used</th>
46
                    <th>Used</th>
46
                    <th>Get it!</th>
47
                    <th>Get it!</th>
47
                    <th>Other action</th>
48
                    <th>Other action</th>
48
                </tr>
49
                </tr>
49
                [% FOREACH resul IN result %]
50
                [% FOREACH resul IN result %]
50
                    <tr>
51
                    <tr>
51
                        <td>[% PROCESS authresult summary=resul.summary %]</td>
52
                        <td>[% PROCESS authresult summary=resul.summary authid=resul.authid %]</td>
53
                        <td>[% resul.summary.label | html %]</td>
52
                        <td>[% resul.used | html %] times</td>
54
                        <td>[% resul.used | html %] times</td>
53
                        <td>
55
                        <td>
54
                            [% IF resul.summary && resul.summary.authorized && resul.summary.authorized.size > 1 %]
56
                            [% IF resul.summary && resul.summary.authorized && resul.summary.authorized.size > 1 %]
Lines 86-99 Link Here
86
        </div>[% END %]
88
        </div>[% END %]
87
    </div>
89
    </div>
88
90
91
<!-- Authority details modal -->
92
<div class="modal" id="authorityDetail" tabindex="-1" role="dialog" aria-labelledby="authorityDetailLabel">
93
    <div class="modal-dialog" role="document">
94
        <div class="modal-content">
95
            <div class="modal-header">
96
                <button type="button" class="closebtn" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
97
                <h4 class="modal-title" id="authorityDetailLabel"></h4>
98
            </div>
99
            <div class="modal-body">
100
                <img src="[% interface | html %]/[% theme | html %]/img/spinner-small.gif" alt="" />
101
            </div>
102
            <div class="modal-footer">
103
                <button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
104
            </div>
105
        </div>
106
    </div>
107
</div>
108
89
[% MACRO jsinclude BLOCK %]
109
[% MACRO jsinclude BLOCK %]
90
    <script type="text/javascript">
110
    <script>
91
        var index = "[% index | html %]";
111
        var index = "[% index | html %]";
92
        var authtypecode = "[% authtypecode | html %]";
112
        var authtypecode = "[% authtypecode | html %]";
93
    </script>
113
    </script>
94
    [% Asset.js("js/auth-finder-search.js") | $raw %]
114
    [% Asset.js("js/auth-finder-search.js") | $raw %]
95
    <script type="text/javascript">
115
    <script>
116
        $(document).ready(function(){
117
            $(".authorizedheading a").on("click", function(e){
118
                e.preventDefault();
119
                var authid = $(this).data("authid");
120
121
                $.get("/cgi-bin/koha/authorities/detail.pl", { authid : authid }, function( data ){
122
                    var auth_detail = $(data).find("#authoritiestabs");
123
                    auth_detail.find("ul").remove();
124
                    $("#authorityDetail .modal-title").html(_("Authority") + " " + authid );
125
                    $("#authorityDetail .modal-body").html( auth_detail );
126
                });
96
127
128
                $("#authorityDetail").modal("show");
129
            });
130
            $("#authorityDetail").on("hidden.bs.modal", function(){
131
                $("#authorityDetail .modal-body, #authorityDetail .modal-title").html("");
132
                $("#authorityDetail .modal-body").html("<div id=\"loading\"><img src=\"[% interface | html %]/[% theme | html %]/img/spinner-small.gif\" alt=\"\" /></div>");
133
            });
134
        });
97
        function jumpfull(page){
135
        function jumpfull(page){
98
            window.open(page,'','width=100,height=100,resizable=yes,toolbar=false,scrollbars=yes,top');
136
            window.open(page,'','width=100,height=100,resizable=yes,toolbar=false,scrollbars=yes,top');
99
        }
137
        }
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/authorities/searchresultlist.tt (-3 / +4 lines)
Lines 30-36 Link Here
30
<div id="authorities_searchresultlist_results">
30
<div id="authorities_searchresultlist_results">
31
  <table>
31
  <table>
32
      <tr>
32
      <tr>
33
        <th colspan="2">Summary</th>
33
        <th>Summary</th>
34
        <th>Heading type</th>
34
        [% UNLESS ( isEDITORS ) %]
35
        [% UNLESS ( isEDITORS ) %]
35
          <th>Used in</th>
36
          <th>Used in</th>
36
        [% END %]
37
        [% END %]
Lines 40-47 Link Here
40
      </tr>
41
      </tr>
41
    [% FOREACH resul IN result %]
42
    [% FOREACH resul IN result %]
42
    <tr data-authid="[% resul.authid | html %]">
43
    <tr data-authid="[% resul.authid | html %]">
43
      <td>[% PROCESS authresult summary=resul.summary %]</td>
44
      <td>[% PROCESS authresult summary=resul.summary authid=resul.authid %]</td>
44
      <td><a href="detail.pl?authid=[% resul.authid | uri %]">Details</a></td>
45
      <td>[% resul.summary.label | html %]</td>
45
    [% UNLESS ( resul.isEDITORS ) %]
46
    [% UNLESS ( resul.isEDITORS ) %]
46
      <td>
47
      <td>
47
      [% IF resul.used > 0 %]
48
      [% IF resul.used > 0 %]
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/value_builder/unimarc_field_210c.tt (-2 / +39 lines)
Lines 58-69 Link Here
58
            <table>
58
            <table>
59
                <tr>
59
                <tr>
60
                    <th>Summary</th>
60
                    <th>Summary</th>
61
                    <th>Heading type</th>
61
                    <th>Used</th>
62
                    <th>Used</th>
62
                    <th>Get it!</th>
63
                    <th>Get it!</th>
63
                </tr>
64
                </tr>
64
                [% FOREACH resul IN result %]
65
                [% FOREACH resul IN result %]
65
                    <tr>
66
                    <tr>
66
                        <td>[% PROCESS authresult summary=resul.summary %]</td>
67
                        <td>[% PROCESS authresult summary=resul.summary authid=resul.authid %]</td>
68
                        <td>[% resul.summary.label | html %]</td>
67
                        <td>[% resul.used | html %] times</td>
69
                        <td>[% resul.used | html %] times</td>
68
                        <td>
70
                        <td>
69
                        [% IF ( resul.to_report ) %]
71
                        [% IF ( resul.to_report ) %]
Lines 82-94 Link Here
82
                        </div>
84
                        </div>
83
            [% END %]
85
            [% END %]
84
86
87
<!-- Authority details modal -->
88
<div class="modal" id="authorityDetail" tabindex="-1" role="dialog" aria-labelledby="authorityDetailLabel">
89
    <div class="modal-dialog" role="document">
90
        <div class="modal-content">
91
            <div class="modal-header">
92
                <button type="button" class="closebtn" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
93
                <h4 class="modal-title" id="authorityDetailLabel"></h4>
94
            </div>
95
            <div class="modal-body">
96
                <img src="[% interface | html %]/[% theme | html %]/img/spinner-small.gif" alt="" />
97
            </div>
98
            <div class="modal-footer">
99
                <button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
100
            </div>
101
        </div>
102
    </div>
103
</div>
104
85
[% MACRO jsinclude BLOCK %]
105
[% MACRO jsinclude BLOCK %]
86
    <script type="text/javascript">
106
    <script>
87
        $(document).ready(function(){
107
        $(document).ready(function(){
88
            $(".choosebt").on("click",function(){
108
            $(".choosebt").on("click",function(){
89
                var toreport = $(this).siblings(".toreport").text();
109
                var toreport = $(this).siblings(".toreport").text();
90
                report(toreport);
110
                report(toreport);
91
            });
111
            });
112
            $(".authorizedheading a").on("click", function(e){
113
                e.preventDefault();
114
                var authid = $(this).data("authid");
115
116
                $.get("/cgi-bin/koha/authorities/detail.pl", { authid : authid }, function( data ){
117
                    var auth_detail = $(data).find("#authoritiestabs");
118
                    auth_detail.find("ul").remove();
119
                    $("#authorityDetail .modal-title").html(_("Authority") + " " + authid );
120
                    $("#authorityDetail .modal-body").html( auth_detail );
121
                });
122
123
                $("#authorityDetail").modal("show");
124
            });
125
            $("#authorityDetail").on("hidden.bs.modal", function(){
126
                $("#authorityDetail .modal-body, #authorityDetail .modal-title").html("");
127
                $("#authorityDetail .modal-body").html("<div id=\"loading\"><img src=\"[% interface | html %]/[% theme | html %]/img/spinner-small.gif\" alt=\"\" /></div>");
128
            });
92
        });
129
        });
93
        function report(summary){
130
        function report(summary){
94
            var doc   = opener.document;
131
            var doc   = opener.document;
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/batch_delete_records.tt (-1 / +1 lines)
Lines 182-188 Link Here
182
                <tr>
182
                <tr>
183
                  <td><input type="checkbox" name="record_id" value="[% authority.authid | html %]" data-usage="[% authority.count_usage | html %]" /></td>
183
                  <td><input type="checkbox" name="record_id" value="[% authority.authid | html %]" data-usage="[% authority.count_usage | html %]" /></td>
184
                  <td><a href="/cgi-bin/koha/authorities/detail.pl?authid=[% authority.authid | uri %]">[% authority.authid | html %]</a></td>
184
                  <td><a href="/cgi-bin/koha/authorities/detail.pl?authid=[% authority.authid | uri %]">[% authority.authid | html %]</a></td>
185
                  <td>[% PROCESS authresult summary=authority.summary %]</td>
185
                  <td>[% PROCESS authresult summary=authority.summary authid=authority.authid %]</td>
186
                  <td><a href="/cgi-bin/koha/catalogue/search.pl?type=intranet&amp;op=do_search&amp;idx=an,phr&amp;q=[% authority.authid | uri %]">[% authority.count_usage | html %] record(s)</a></td>
186
                  <td><a href="/cgi-bin/koha/catalogue/search.pl?type=intranet&amp;op=do_search&amp;idx=an,phr&amp;q=[% authority.authid | uri %]">[% authority.count_usage | html %] record(s)</a></td>
187
                </tr>
187
                </tr>
188
              [% END %]
188
              [% END %]
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/batch_record_modification.tt (-2 / +1 lines)
Lines 221-227 Link Here
221
                <tr>
221
                <tr>
222
                  <td><input type="checkbox" name="record_id" value="[% authority.authid | html %]" data-usage="[% authority.count_usage | html %]" /></td>
222
                  <td><input type="checkbox" name="record_id" value="[% authority.authid | html %]" data-usage="[% authority.count_usage | html %]" /></td>
223
                  <td><a href="/cgi-bin/koha/authorities/detail.pl?authid=[% authority.authid | uri %]">[% authority.authid | html %]</a></td>
223
                  <td><a href="/cgi-bin/koha/authorities/detail.pl?authid=[% authority.authid | uri %]">[% authority.authid | html %]</a></td>
224
                  <td>[% PROCESS authresult summary=authority.summary %]</td>
224
                  <td>[% PROCESS authresult summary=authority.summary authid=authority.authid %]</td>
225
                  <td class="actions"><a href="/cgi-bin/koha/svc/records/preview?record_type=authority&record_id=[% authority.authid | uri %]&mmtid=[% mmtid | uri %]" data-record_type="authority" data-record_id="[% authority.authid | html %]" data-mmtid="[% mmtid | html %]" class="previewMARC btn btn-default btn-xs"><i class='fa fa-eye'></i> Show MARC</a>
225
                  <td class="actions"><a href="/cgi-bin/koha/svc/records/preview?record_type=authority&record_id=[% authority.authid | uri %]&mmtid=[% mmtid | uri %]" data-record_type="authority" data-record_id="[% authority.authid | html %]" data-mmtid="[% mmtid | html %]" class="previewMARC btn btn-default btn-xs"><i class='fa fa-eye'></i> Show MARC</a>
226
                </tr>
226
                </tr>
227
              [% END %]
227
              [% END %]
228
- 

Return to bug 12533