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

(-)a/installer/data/mysql/atomicupdate/wr308955_reduce_clicks_to_views_z39.50_card_preview.sql (+1 lines)
Line 0 Link Here
1
INSERT IGNORE INTO  systempreferences (variable, value, options, explanation) VALUES ('Replacez3950CatalogingActionMenuWithLinks', 0, 'YesNo', 'Replace z39.50 cataloging action menu with three links: MARC preview, Card preview and Import, to reduce clicks for accessing preview functionality.');
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/cataloguing.pref (+7 lines)
Lines 248-253 Cataloging: Link Here
248
            - "<li>value of 001</li>"
248
            - "<li>value of 001</li>"
249
            - "<li>subfields a and b of fields 245</li>"
249
            - "<li>subfields a and b of fields 245</li>"
250
            - "<li>all subfields of fields 600</li>"
250
            - "<li>all subfields of fields 600</li>"
251
        -
252
            - pref: Replacez3950CatalogingActionMenuWithLinks
253
              choices:
254
                yes: "Do"
255
                no: "Don't"
256
            - "replace z39.50 cataloging action menu with three links: MARC preview, Card preview and Import, reducing clicks for accessing preview functionality."
257
251
    Importing:
258
    Importing:
252
        -
259
        -
253
            - When matching on ISBN with the record import tool,
260
            - When matching on ISBN with the record import tool,
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/z3950_search.tt (-10 / +18 lines)
Lines 7-12 Link Here
7
[% INCLUDE 'doc-head-close.inc' %]
7
[% INCLUDE 'doc-head-close.inc' %]
8
<style>
8
<style>
9
#dataPreview { width : 90%; top: 5%; } .modal-body { max-height: 380px; } .modal-header { padding: 0 14px; } @media (max-width: 767px) { #dataPreview { margin: 0; width : auto; } }
9
#dataPreview { width : 90%; top: 5%; } .modal-body { max-height: 380px; } .modal-header { padding: 0 14px; } @media (max-width: 767px) { #dataPreview { margin: 0; width : auto; } }
10
.linktools { display: block; white-space: nowrap; } .linktools a { font-size : 75%; display:block;text-decoration:none;} .linktools a {margin:0 2px;padding:2px;background-color:#FFF;text-align:center; } .linktools a:first-child { border-bottom: 1px solid #DDD; } .linktools a:nth-child(2){ border-bottom: 1px solid #DDD; } .linktools a:hover { background-color: #FFC; }
10
</style>
11
</style>
11
</head>
12
</head>
12
13
Lines 131-146 Link Here
131
            </td>
132
            </td>
132
            [% END %]
133
            [% END %]
133
            <td>
134
            <td>
134
                <div class="dropdown">
135
                [% IF Koha.Preference('Replacez3950CatalogingActionMenuWithLinks') == 1 %]
135
                    <a class="btn btn-default btn-xs dropdown-toggle" id="cataloguesearchactions[% breeding_loo.breedingid | html %]" role="button" data-toggle="dropdown" href="#">
136
                    <span class="linktools">
137
                        <a href="/cgi-bin/koha/catalogue/showmarc.pl?importid=[% breeding_loo.breedingid | uri %]" title="MARC" class="previewData">MARC preview</a>
138
                        <a href="/cgi-bin/koha/catalogue/showmarc.pl?viewas=card&amp;importid=[% breeding_loo.breedingid | uri %]" title="Card" class="previewData">Card preview</a>
139
                        <a href="#" class="import_record" data-breedingid="[% breeding_loo.breedingid | html %]" data-biblionumber="[% breeding_loo.biblionumber | html %]" data-frameworkcode="[% frameworkcode | uri %]">Import</a>
140
                    </span>
141
                [% ELSE %]
142
                    <div class="dropdown">
143
                        <a class="btn btn-default btn-xs dropdown-toggle" id="cataloguesearchactions[% breeding_loo.breedingid | html %]" role="button" data-toggle="dropdown" href="#">
136
                      Actions <b class="caret"></b>
144
                      Actions <b class="caret"></b>
137
                    </a>
145
                        </a>
138
                    <ul class="dropdown-menu pull-right" role="menu" aria-labelledby="cataloguesearchactions[% breeding_loo.breedingid | html %]">
146
                        <ul class="dropdown-menu pull-right" role="menu" aria-labelledby="cataloguesearchactions[% breeding_loo.breedingid | html %]">
139
                        <li><a href="/cgi-bin/koha/catalogue/showmarc.pl?importid=[% breeding_loo.breedingid | uri %]" title="MARC" class="previewData"><i class="fa fa-eye"></i> MARC preview</a></li>
147
                            <li><a href="/cgi-bin/koha/catalogue/showmarc.pl?importid=[% breeding_loo.breedingid | uri %]" title="MARC" class="previewData"><i class="fa fa-eye"></i> MARC preview</a></li>
140
                        <li><a href="/cgi-bin/koha/catalogue/showmarc.pl?viewas=card&amp;importid=[% breeding_loo.breedingid | uri %]" title="Card" class="previewData"><i class="fa fa-eye"></i> Card preview</a></li>
148
                            <li><a href="/cgi-bin/koha/catalogue/showmarc.pl?viewas=card&amp;importid=[% breeding_loo.breedingid | uri %]" title="Card" class="previewData"><i class="fa fa-eye"></i> Card preview</a></li>
141
                        <li><a href="#" class="import_record" data-breedingid="[% breeding_loo.breedingid | html %]" data-biblionumber="[% breeding_loo.biblionumber | html %]" data-frameworkcode="[% frameworkcode | uri %]"><i class="fa fa-download"></i> Import</a></li>
149
                            <li><a href="#" class="import_record" data-breedingid="[% breeding_loo.breedingid | html %]" data-biblionumber="[% breeding_loo.biblionumber | html %]" data-frameworkcode="[% frameworkcode | uri %]"><i class="fa fa-download"></i> Import</a></li>
142
                    </ul>
150
                        </ul>
143
                </div>
151
                    </div>
152
                [% END %]
144
            </td>
153
            </td>
145
        </tr>
154
        </tr>
146
        [% END %]
155
        [% END %]
147
- 

Return to bug 22579