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

(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/authorities/searchresultlist.tt (-26 / +36 lines)
Lines 2-9 Link Here
2
[% INCLUDE 'doc-head-open.inc' %]
2
[% INCLUDE 'doc-head-open.inc' %]
3
<title>Koha &rsaquo; Authorities &rsaquo; Authority search results</title>
3
<title>Koha &rsaquo; Authorities &rsaquo; Authority search results</title>
4
[% INCLUDE 'doc-head-close.inc' %]
4
[% INCLUDE 'doc-head-close.inc' %]
5
<script type="text/javascript" >
5
<script type="text/javascript">
6
//<![CDATA[
6
//<![CDATA[
7
7
function confirm_deletion(id) {
8
function confirm_deletion(id) {
8
    var is_confirmed = confirm(_("Are you sure you want to delete this authority?"));
9
    var is_confirmed = confirm(_("Are you sure you want to delete this authority?"));
9
    if (is_confirmed) {
10
    if (is_confirmed) {
Lines 21-26 function confirm_deletion(id) { Link Here
21
          + "&resultsperpage=[% resultsperpage %]";
22
          + "&resultsperpage=[% resultsperpage %]";
22
    }
23
    }
23
}
24
}
25
24
function Help() {
26
function Help() {
25
    newin=window.open("/cgi-bin/koha/help.pl","KohaHelp",'width=600,height=600,toolbar=false,scrollbars=yes');
27
    newin=window.open("/cgi-bin/koha/help.pl","KohaHelp",'width=600,height=600,toolbar=false,scrollbars=yes');
26
}
28
}
Lines 34-40 function searchauthority() { Link Here
34
    Y = document.forms[0].value.value;
36
    Y = document.forms[0].value.value;
35
    window.location="/cgi-bin/koha/authorities/authorities-home.pl?op=do_search&type=intranet&authtypecode="+X+"&value="+Y+"&marclist=&and_or=and&excluding=&operator=contains";
37
    window.location="/cgi-bin/koha/authorities/authorities-home.pl?op=do_search&type=intranet&authtypecode="+X+"&value="+Y+"&marclist=&and_or=and&excluding=&operator=contains";
36
}
38
}
37
38
//]]>
39
//]]>
39
</script>
40
</script>
40
[% INCLUDE 'authorities_js.inc' %]
41
[% INCLUDE 'authorities_js.inc' %]
Lines 64-98 function searchauthority() { Link Here
64
65
65
<div id="authorities_searchresultlist_results">
66
<div id="authorities_searchresultlist_results">
66
  <table>
67
  <table>
67
    <tr>
68
      <tr>
68
      <th colspan="2">Summary</th>
69
        <th colspan="2">Summary</th>
69
[% UNLESS ( isEDITORS ) %]
70
        [% UNLESS ( isEDITORS ) %]
70
      <th>Used in</th>
71
          <th>Used in</th>
71
[% END %]
72
        [% END %]
72
    [% IF ( CAN_user_editauthorities ) %]
73
        [% IF ( CAN_user_editauthorities ) %]
73
      <th>&nbsp;</th>
74
          <th>&nbsp;</th>
74
    [% END %]
75
        [% END %]
75
    </tr>
76
      </tr>
76
[% FOREACH resul IN result %]
77
    [% FOREACH resul IN result %]
77
    <tr data-authid="[% resul.authid %]">
78
      [% UNLESS ( loop.odd ) %]
79
        <tr data-authid="[% resul.authid %]" class="highlight">
80
      [% ELSE %]
81
        <tr data-authid="[% resul.authid %]">
82
      [% END %]
78
      <td>[% PROCESS authresult summary=resul.summary %]</td>
83
      <td>[% PROCESS authresult summary=resul.summary %]</td>
79
      <td><a href="detail.pl?authid=[% resul.authid %]">Details</a></td>
84
      <td><a href="detail.pl?authid=[% resul.authid %]">Details</a></td>
80
  [% UNLESS ( resul.isEDITORS ) %]
85
    [% UNLESS ( resul.isEDITORS ) %]
81
      <td>
86
      <td>
82
        <a href="../catalogue/search.pl?type=intranet&amp;op=do_search&amp;idx=an,phr&amp;q=[% resul.authid %]" class="button">[% resul.used %] records(s)</a>
87
        <a href="../catalogue/search.pl?type=intranet&amp;op=do_search&amp;idx=an,phr&amp;q=[% resul.authid %]" class="button">[% resul.used %] records(s)</a>
83
      </td>
88
      </td>
84
  [% END %]
89
    [% END %]
85
      [% IF ( CAN_user_editauthorities ) %]
90
    [% IF ( CAN_user_editauthorities ) %]
86
          <td>
91
      <td>
87
              <a href="/cgi-bin/koha/authorities/authorities.pl?authid=[% resul.authid %]">Edit</a>
92
      <div class="dropdown">
88
              | <a class="merge_auth" href="#merge">Merge</a>
93
        <a class="btn btn-mini dropdown-toggle" id="authactions[% resul.authid %]" role="button" data-toggle="dropdown" href="#">
89
              [% UNLESS ( resul.used ) %]
94
        Actions <b class="caret"></b></a>
90
                   | <a href="javascript:confirm_deletion([% resul.authid %])">Delete</a>
95
        <ul class="dropdown-menu pull-right" role="menu" aria-labelledby="authactions[% resul.authid %]">
91
              [% END %]
96
          <li><a href="/cgi-bin/koha/authorities/authorities.pl?authid=[% resul.authid %]"><i class="fa fa-pencil"></i> Edit</a></li>
92
          </td>
97
          <li><a class="merge_auth" href="#merge"><i class="fa fa-compress"></i> Merge</a></li>
93
      [% END %]
98
          [% UNLESS ( resul.used ) %]
99
            <li><a href="#" onclick='return confirm_deletion("[% resul.authid %]")'><i class="fa fa-times"></i> Delete</a></li>
100
          [% END %]
101
        </ul>
102
      </div>
103
      </td>
104
    [% END %]
94
    </tr>
105
    </tr>
95
[% END %]
106
    [% END %]
96
  </table>
107
  </table>
97
</div>
108
</div>
98
109
99
- 

Return to bug 15932