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

(-)a/koha-tmpl/intranet-tmpl/prog/en/includes/authorities-toolbar.inc (-3 / +12 lines)
Lines 9-20 Link Here
9
9
10
//]]>
10
//]]>
11
</script>
11
</script>
12
13
[% IF ( authid || CAN_user_editauthorities) %]
14
12
<div id="toolbar" class="btn-toolbar">
15
<div id="toolbar" class="btn-toolbar">
13
16
14
[% IF ( authid ) %]
17
[% IF ( authid ) %]
15
    <div class="btn-group"><a class="btn btn-small" id="editAuth" href="authorities.pl?authid=[% authid %]"><i class="icon-pencil"></i> Edit</a></div>
18
    [% IF ( CAN_user_editauthorities ) %]
16
    [% UNLESS ( count ) %]
19
        <div class="btn-group"><a class="btn btn-small" id="editAuth" href="authorities.pl?authid=[% authid %]"><i class="icon-pencil"></i> Edit</a></div>
17
        <div class="btn-group"><a href="#" class="btn btn-small" id="delAuth"><i class="icon-remove"></i> Delete</a></div>
20
        [% UNLESS ( count ) %]
21
            <div class="btn-group"><a href="#" class="btn btn-small" id="delAuth"><i class="icon-remove"></i> Delete</a></div>
22
        [% END %]
18
    [% END %]
23
    [% END %]
19
24
20
    <div class="btn-group">
25
    <div class="btn-group">
Lines 30-35 Link Here
30
    </div>
35
    </div>
31
[% END %]
36
[% END %]
32
37
38
[% IF ( CAN_user_editauthorities ) %]
33
    <div class="btn-group">
39
    <div class="btn-group">
34
        <a class="btn btn-small dropdown-toggle" data-toggle="dropdown" href="#"><i class="icon-plus"></i> New authority
40
        <a class="btn btn-small dropdown-toggle" data-toggle="dropdown" href="#"><i class="icon-plus"></i> New authority
35
        <span class="caret"></span>
41
        <span class="caret"></span>
Lines 40-43 Link Here
40
            [% END %]
46
            [% END %]
41
        </ul>
47
        </ul>
42
    </div>
48
    </div>
49
[% END %]
43
</div>
50
</div>
51
52
[% END %]
(-)a/koha-tmpl/intranet-tmpl/prog/en/includes/header.inc (-2 lines)
Lines 18-26 Link Here
18
                            [% IF ( CAN_user_acquisition ) %]
18
                            [% IF ( CAN_user_acquisition ) %]
19
                            <li><a href="/cgi-bin/koha/acqui/acqui-home.pl">Acquisitions</a></li>
19
                            <li><a href="/cgi-bin/koha/acqui/acqui-home.pl">Acquisitions</a></li>
20
                            [% END %]
20
                            [% END %]
21
                            [% IF ( CAN_user_editauthorities ) %]
22
                            <li><a href="/cgi-bin/koha/authorities/authorities-home.pl">Authorities</a></li>
21
                            <li><a href="/cgi-bin/koha/authorities/authorities-home.pl">Authorities</a></li>
23
                            [% END %]
24
                            [% IF ( CAN_user_serials ) %]
22
                            [% IF ( CAN_user_serials ) %]
25
                            <li><a href="/cgi-bin/koha/serials/serials-home.pl">Serials</a></li>
23
                            <li><a href="/cgi-bin/koha/serials/serials-home.pl">Serials</a></li>
26
                            [% END %]
24
                            [% END %]
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/authorities/searchresultlist.tt (-7 / +12 lines)
Lines 67-73 function searchauthority() { Link Here
67
[% UNLESS ( isEDITORS ) %]
67
[% UNLESS ( isEDITORS ) %]
68
      <th>Used in</th>
68
      <th>Used in</th>
69
[% END %]
69
[% END %]
70
      <th>Delete</th>
70
    [% IF ( CAN_user_editauthorities ) %]
71
      <th>&nbsp;</th>
72
    [% END %]
71
    </tr>
73
    </tr>
72
[% FOREACH resul IN result %]
74
[% FOREACH resul IN result %]
73
    [% UNLESS ( loop.odd ) %]
75
    [% UNLESS ( loop.odd ) %]
Lines 79-92 function searchauthority() { Link Here
79
      <td><a href="detail.pl?authid=[% resul.authid %]">Details</a></td>
81
      <td><a href="detail.pl?authid=[% resul.authid %]">Details</a></td>
80
  [% UNLESS ( resul.isEDITORS ) %]
82
  [% UNLESS ( resul.isEDITORS ) %]
81
      <td>
83
      <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 %] biblio(s)</a>
84
        <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>
85
      </td>
84
  [% END %]
86
  [% END %]
85
      <td>
87
      [% IF ( CAN_user_editauthorities ) %]
86
  [% UNLESS ( resul.used ) %]
88
          <td>
87
        <a href="javascript:confirm_deletion([% resul.authid %])">Delete</a>
89
              <a href="/cgi-bin/koha/authorities/authorities.pl?authid=[% authid %]">Edit</a>
88
  [% END %]
90
              [% UNLESS ( resul.used ) %]
89
      </td>
91
                   | <a href="javascript:confirm_deletion([% resul.authid %])">Delete</a>
92
              [% END %]
93
          </td>
94
      [% END %]
90
    </tr>
95
    </tr>
91
[% END %]
96
[% END %]
92
  </table>
97
  </table>
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/intranet-main.tt (-3 lines)
Lines 54-64 Link Here
54
                    </li>
54
                    </li>
55
                    [% END %]
55
                    [% END %]
56
56
57
                    [% IF ( CAN_user_editauthorities ) %]
58
                    <li>
57
                    <li>
59
                        <a class="icon_general icon_authorities" href="/cgi-bin/koha/authorities/authorities-home.pl">Authorities</a>
58
                        <a class="icon_general icon_authorities" href="/cgi-bin/koha/authorities/authorities-home.pl">Authorities</a>
60
                    </li>
59
                    </li>
61
                    [% END %]
62
                </ul>
60
                </ul>
63
            </div><!-- /area-list-left -->
61
            </div><!-- /area-list-left -->
64
        </div><!-- /yui-u first -->
62
        </div><!-- /yui-u first -->
65
- 

Return to bug 10888