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

(-)a/authorities/authorities.pl (-11 / +16 lines)
Lines 351-368 sub CreateKey { Link Here
351
    
351
    
352
=cut
352
=cut
353
353
354
sub GetMandatoryFieldZ3950($){
354
sub GetMandatoryFieldZ3950 {
355
    my $authtypecode = shift;
355
    my $authtypecode = shift;
356
356
    if ( C4::Context->preference('marcflavour') eq 'MARC21' ){
357
    #Tags guessed (see GuessAuthTypeCode from AuthoritiesMarc.pm)
357
        return {
358
358
            '100a' => 'authorpersonal',
359
    return {
359
            '110a' => 'authorcorp',
360
        '100'.'a' => 'authorpersonal',
360
            '111a' => 'authormeetingcon',
361
        '110'.'a' => 'authorcorp',
361
            '130a' => 'uniformtitle',
362
        '111'.'a' => 'authormeetingcon',
362
            '150a' => 'topic',
363
        '130'.'a' => 'uniformtitle',
363
        };
364
        '150'.'a' => 'topic',
364
    }else{
365
    };
365
        return {
366
            '200a' => 'authorpersonal',
367
            '210a' => 'authormeetingcon', #210 in UNIMARC is used for both corporation and meeting
368
            '230a' => 'uniformtitle',
369
        };
370
    }
366
}
371
}
367
372
368
sub build_tabs {
373
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