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

(-)a/authorities/showmarc.pl (-4 / +4 lines)
Lines 29-37 use Encode; Link Here
29
29
30
# Koha modules used
30
# Koha modules used
31
use C4::Context;
31
use C4::Context;
32
use C4::Output;
32
use C4::Output qw( output_html_with_http_headers );
33
use C4::Auth;
33
use C4::Auth qw( get_template_and_user );
34
use C4::AuthoritiesMarc;
34
use C4::AuthoritiesMarc qw( GetAuthority GetAuthorityXML );
35
use C4::XSLT ();
35
use C4::XSLT ();
36
36
37
my $input= CGI->new;
37
my $input= CGI->new;
Lines 45-51 my ( $template, $loggedinuser, $cookie ) = get_template_and_user( Link Here
45
  }
45
  }
46
);
46
);
47
47
48
my $authid = $input->param('id');
48
my $authid = $input->param('authid');
49
my $view = $input->param('viewas')||'';
49
my $view = $input->param('viewas')||'';
50
50
51
my $record = GetAuthority($authid);
51
my $record = GetAuthority($authid);
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/authorities/searchresultlist.tt (-4 / +2 lines)
Lines 45-51 Link Here
45
  <table>
45
  <table>
46
      <tr>
46
      <tr>
47
        <th>Summary</th>
47
        <th>Summary</th>
48
        <th>MARC preview</th>
49
        <th>Heading type</th>
48
        <th>Heading type</th>
50
        [% UNLESS ( isEDITORS ) %]
49
        [% UNLESS ( isEDITORS ) %]
51
          <th>Used in</th>
50
          <th>Used in</th>
Lines 58-64 Link Here
58
    <tr data-authid="[% resul.authid | html %]">
57
    <tr data-authid="[% resul.authid | html %]">
59
      <td>[% PROCESS authresult summary=resul.summary authid=resul.authid %]</td>
58
      <td>[% PROCESS authresult summary=resul.summary authid=resul.authid %]</td>
60
      <td>[% resul.authtype | html %]</td>
59
      <td>[% resul.authtype | html %]</td>
61
      <td><a class="previewMARC btn btn-default btn-xs" href="showmarc.pl?id=[% resul.authid | uri %]&viewas=html"  title="MARC">Show</a></td>
62
    [% UNLESS ( resul.isEDITORS ) %]
60
    [% UNLESS ( resul.isEDITORS ) %]
63
      <td>
61
      <td>
64
      [% IF resul.used > 0 %]
62
      [% IF resul.used > 0 %]
Lines 75-80 Link Here
75
        Actions <b class="caret"></b></a>
73
        Actions <b class="caret"></b></a>
76
        <ul class="dropdown-menu pull-right" role="menu" aria-labelledby="authactions[% resul.authid | html %]">
74
        <ul class="dropdown-menu pull-right" role="menu" aria-labelledby="authactions[% resul.authid | html %]">
77
          <li><a href="/cgi-bin/koha/authorities/authorities.pl?authid=[% resul.authid | uri %]"><i class="fa fa-pencil"></i> Edit</a></li>
75
          <li><a href="/cgi-bin/koha/authorities/authorities.pl?authid=[% resul.authid | uri %]"><i class="fa fa-pencil"></i> Edit</a></li>
76
          <li><a class="previewMARC" href="showmarc.pl?authid=[% resul.authid | uri %]&viewas=html"><i class="fa fa-eye"></i> MARC preview</a></li>
78
          <li><a class="merge_auth" href="#merge"><i class="fa fa-compress"></i> Merge</a></li>
77
          <li><a class="merge_auth" href="#merge"><i class="fa fa-compress"></i> Merge</a></li>
79
          [% UNLESS ( resul.used ) %]
78
          [% UNLESS ( resul.used ) %]
80
            <li><a onclick='return confirm_deletion("[% resul.authid | html %]")'><i class="fa fa-trash"></i> Delete</a></li>
79
            <li><a onclick='return confirm_deletion("[% resul.authid | html %]")'><i class="fa fa-trash"></i> Delete</a></li>
Lines 129-132 Link Here
129
  $("#marcPreview").on("hidden.bs.modal", function(){
128
  $("#marcPreview").on("hidden.bs.modal", function(){
130
      $("#marcPreview .modal-body").html("<div id=\"loading\"><img src=\"[% interface | html %]/[% theme | html %]/img/spinner-small.gif\" alt=\"\" /> "+_("Loading")+"</div>");
129
      $("#marcPreview .modal-body").html("<div id=\"loading\"><img src=\"[% interface | html %]/[% theme | html %]/img/spinner-small.gif\" alt=\"\" /> "+_("Loading")+"</div>");
131
  });
130
  });
132
</script>
131
</script>
133
- 

Return to bug 28247