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

(-)a/authorities/authorities.pl (-11 / +16 lines)
Lines 330-347 sub CreateKey { Link Here
330
330
331
=cut
331
=cut
332
332
333
sub GetMandatoryFieldZ3950($){
333
sub GetMandatoryFieldZ3950 {
334
    my $authtypecode = shift;
334
    my $authtypecode = shift;
335
335
    if ( C4::Context->preference('marcflavour') eq 'MARC21' ){
336
    #Tags guessed (see GuessAuthTypeCode from AuthoritiesMarc.pm)
336
        return {
337
337
            '100a' => 'authorpersonal',
338
    return {
338
            '110a' => 'authorcorp',
339
        '100'.'a' => 'authorpersonal',
339
            '111a' => 'authormeetingcon',
340
        '110'.'a' => 'authorcorp',
340
            '130a' => 'uniformtitle',
341
        '111'.'a' => 'authormeetingcon',
341
            '150a' => 'topic',
342
        '130'.'a' => 'uniformtitle',
342
        };
343
        '150'.'a' => 'topic',
343
    }else{
344
    };
344
        return {
345
            '200a' => 'authorpersonal',
346
            '210a' => 'authormeetingcon', #210 in UNIMARC is used for both corporation and meeting
347
            '230a' => 'uniformtitle',
348
        };
349
    }
345
}
350
}
346
351
347
sub build_tabs {
352
sub build_tabs {
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/z3950_auth_search.tt (-5 / +4 lines)
Lines 192-207 tr.selected { background-color : #FFFFCC; } tr.selected td { background-color : Link Here
192
        [% END %]
192
        [% END %]
193
193
194
        [% IF ( show_prevbutton ) %]
194
        [% IF ( show_prevbutton ) %]
195
            <input type="button" name="changepage_prev" value="Previous Page" onclick="$('#current_page').val([% current_page %]-1);$('#page_form').submit();" />
195
            <input type="button" name="changepage_prev" value="Previous page" onclick="$('#current_page').val([% current_page %]-1);$('#page_form').submit();" />
196
        [% END %]
196
        [% END %]
197
        Page [% current_page %] / [% total_pages %]
197
        Page [% current_page %] / [% total_pages %]
198
        [% IF ( show_nextbutton ) %]
198
        [% IF ( show_nextbutton ) %]
199
            <input type="button" name="changepage_next" value="Next Page" onclick="$('#current_page').val([% current_page %]+1);$('#page_form').submit();" />
199
            <input type="button" name="changepage_next" value="Next page" onclick="$('#current_page').val([% current_page %]+1);$('#page_form').submit();" />
200
        [% END %]
200
        [% END %]
201
        <br />Go to page : <input id="goto_page" name="goto_page" value="[% current_page %]" size="4" /><input type="submit" name="changepage_goto" onclick="return validate_goto_page();" value="Go" />
201
        <br />Go to page : <input id="goto_page" name="goto_page" value="[% current_page %]" size="4" /><input type="submit" name="changepage_goto" onclick="return validate_goto_page();" value="Go" />
202
    </form>
202
    </form>
203
203
204
<p><form method="get" action="/cgi-bin/koha/cataloguing/z3950_auth_search.pl"><input type="hidden" name="authid" value="[% authid %]" /><input type="submit" value="Try Another Search"/></form></p>
204
<p><form method="get" action="/cgi-bin/koha/cataloguing/z3950_auth_search.pl"><input type="hidden" name="authid" value="[% authid %]" /><input type="submit" value="Try another search"/></form></p>
205
    [% ELSE %]
205
    [% ELSE %]
206
        [% IF ( errconn ) %]
206
        [% IF ( errconn ) %]
207
            <div class="dialog alert">
207
            <div class="dialog alert">
Lines 214-220 tr.selected { background-color : #FFFFCC; } tr.selected td { background-color : Link Here
214
            </div>
214
            </div>
215
         [% END %]
215
         [% END %]
216
   <div class="dialog message">Nothing found.</div>
216
   <div class="dialog message">Nothing found.</div>
217
    <p><form method="get" action="/cgi-bin/koha/cataloguing/z3950_auth_search.pl"><input type="hidden" name="authid" value="[% authid %]" /><input type="submit" value="Try Another Search"/></form></p>
217
    <p><form method="get" action="/cgi-bin/koha/cataloguing/z3950_auth_search.pl"><input type="hidden" name="authid" value="[% authid %]" /><input type="submit" value="Try another search"/></form></p>
218
    [% END %]
218
    [% END %]
219
219
220
[% END %]
220
[% END %]
221
- 

Return to bug 11961