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

(-)a/koha-tmpl/opac-tmpl/prog/en/includes/masthead.inc (-1 / +1 lines)
Lines 109-115 Link Here
109
<div id="moresearches">
109
<div id="moresearches">
110
<a href="/cgi-bin/koha/opac-search.pl">Advanced Search</a>
110
<a href="/cgi-bin/koha/opac-search.pl">Advanced Search</a>
111
<!-- TMPL_IF NAME="OpacBrowser"     --><span class="pipe"> | </span><a href="/cgi-bin/koha/opac-browser.pl">Browse by Hierarchy</a><!-- /TMPL_IF -->
111
<!-- TMPL_IF NAME="OpacBrowser"     --><span class="pipe"> | </span><a href="/cgi-bin/koha/opac-browser.pl">Browse by Hierarchy</a><!-- /TMPL_IF -->
112
<!-- TMPL_IF NAME="OpacAuthorities" --><span class="pipe"> | </span><a href="/cgi-bin/koha/opac-authorities-home.pl">Browse by Subject</a><!-- /TMPL_IF -->
112
<!-- TMPL_IF NAME="OpacAuthorities" --><span class="pipe"> | </span><a href="/cgi-bin/koha/opac-authorities-home.pl">Browse by author or subject</a><!-- /TMPL_IF -->
113
<!-- TMPL_IF NAME="TagsEnabled"     --><span class="pipe"> | </span><a href="/cgi-bin/koha/opac-tags.pl">Tag Cloud</a><!-- /TMPL_IF -->
113
<!-- TMPL_IF NAME="TagsEnabled"     --><span class="pipe"> | </span><a href="/cgi-bin/koha/opac-tags.pl">Tag Cloud</a><!-- /TMPL_IF -->
114
<!-- TMPL_IF NAME="OpacCloud"       --><span class="pipe"> | </span><a href="/cgi-bin/koha/opac-tags_subject.pl">Subject Cloud</a><!-- /TMPL_IF -->
114
<!-- TMPL_IF NAME="OpacCloud"       --><span class="pipe"> | </span><a href="/cgi-bin/koha/opac-tags_subject.pl">Subject Cloud</a><!-- /TMPL_IF -->
115
<!-- TMPL_IF NAME="OpacTopissue"    --><span class="pipe"> | </span><a href="/cgi-bin/koha/opac-topissues.pl">Most Popular</a><!-- /TMPL_IF -->
115
<!-- TMPL_IF NAME="OpacTopissue"    --><span class="pipe"> | </span><a href="/cgi-bin/koha/opac-topissues.pl">Most Popular</a><!-- /TMPL_IF -->
(-)a/koha-tmpl/opac-tmpl/prog/en/modules/opac-authorities-home.tmpl (-30 / +5 lines)
Lines 1-4 Link Here
1
<!-- TMPL_INCLUDE NAME="doc-head-open.inc" --><!-- TMPL_IF NAME="LibraryNameTitle" --><!-- TMPL_VAR NAME="LibraryNameTitle" --><!-- TMPL_ELSE -->Koha Online<!-- /TMPL_IF --> Catalog &rsaquo; Authority Search
1
<!-- TMPL_INCLUDE NAME="doc-head-open.inc" --><!-- TMPL_IF NAME="LibraryNameTitle" --><!-- TMPL_VAR NAME="LibraryNameTitle" --><!-- TMPL_ELSE -->Koha Online<!-- /TMPL_IF --> Catalog &rsaquo; Browse by author or subject
2
<!-- TMPL_INCLUDE NAME="doc-head-close.inc" -->
2
<!-- TMPL_INCLUDE NAME="doc-head-close.inc" -->
3
</head>
3
</head>
4
<body id="opac-authorities">
4
<body id="opac-authorities">
Lines 13-19 Link Here
13
        <input type="hidden" name="op" value="do_search" />
13
        <input type="hidden" name="op" value="do_search" />
14
        <input type="hidden" name="type" value="opac" />
14
        <input type="hidden" name="type" value="opac" />
15
<fieldset class="rows">
15
<fieldset class="rows">
16
<legend>Authority search</legend>
16
            <legend>Browse by author or subject</legend>
17
<ol>
17
<ol>
18
 <li><label for="authtypecode">Search: : </label> <select name="authtypecode" id="authtypecode">
18
 <li><label for="authtypecode">Search: : </label> <select name="authtypecode" id="authtypecode">
19
                <!-- TMPL_LOOP NAME="authtypesloop" -->
19
                <!-- TMPL_LOOP NAME="authtypesloop" -->
Lines 21-52 Link Here
21
                <!-- TMPL_ELSE --><option value="<!-- TMPL_VAR NAME="value" -->"> <!-- TMPL_VAR NAME="authtypetext" --></option>
21
                <!-- TMPL_ELSE --><option value="<!-- TMPL_VAR NAME="value" -->"> <!-- TMPL_VAR NAME="authtypetext" --></option>
22
                <!-- /TMPL_IF -->
22
                <!-- /TMPL_IF -->
23
                <!-- /TMPL_LOOP -->
23
                <!-- /TMPL_LOOP -->
24
                </select></li>           <li>
25
                <label for="operatora">Main entry ($a only): </label>
26
                <select name="operatora" id="operatora">
27
                    <option value="contains">contains</option>
28
                    <option value="start">starts with</option>
29
                    <option value="is">is exactly</option>
30
                </select>
24
                </select>
31
                <input type="text" name="valuea" id="mainentrya_value" value="<!-- TMPL_VAR NAME="value" -->" />
32
                <input type="hidden" name="marclista" value="mainmainentry" />
33
                <input type="hidden" name="and_ora" value="and" />
34
                <input type="hidden" name="excludinga" value="" />
35
            </li>
36
            <li>
37
                <label for="operatorb">Main entry: </label>
38
                <select name="operatorb" id="operatorb">
39
                    <option value="contains">contains</option>
40
                    <option value="start">starts with</option>
41
                    <option value="is">is exactly</option>
42
                </select>
43
                <input type="text" name="valueb" id="mainentry_value" value="<!-- TMPL_VAR NAME="value" -->" />
44
                <input type="hidden" name="marclistb" value="mainentry" />
45
                <input type="hidden" name="and_orb" value="and" />
46
                <input type="hidden" name="excludingb" value="" />
47
            </li>
48
            <li>
49
                <label for="anywhere">Anywhere: </label>
50
                <select name="operatorc" id="anywhere">
25
                <select name="operatorc" id="anywhere">
51
                    <option value="contains">contains</option>
26
                    <option value="contains">contains</option>
52
                    <option value="start">starts with</option>
27
                    <option value="start">starts with</option>
Lines 54-60 Link Here
54
                </select>
29
                </select>
55
                <input type="text" name="valuec" id="anywhere_value" value="<!-- TMPL_VAR NAME="value" -->" />
30
                <input type="text" name="valuec" id="anywhere_value" value="<!-- TMPL_VAR NAME="value" -->" />
56
                <input type="hidden" name="marclistc" value="" />
31
                <input type="hidden" name="marclistc" value="" />
57
                <input type="hidden" name="and_orc" value="and" />
32
                    <input type="hidden" name="and_ora" value="and" />
58
                <input type="hidden" name="excludingc" value="" />
33
                <input type="hidden" name="excludingc" value="" />
59
            </li>
34
            </li>
60
            <li><label for="orderby">Order by: </label><select name="orderby" id="orderby">
35
            <li><label for="orderby">Order by: </label><select name="orderby" id="orderby">
Lines 71-78 Link Here
71
</div>
46
</div>
72
</div>
47
</div>
73
</div>
48
</div>
74
49
</div>
75
</div><!-- TMPL_IF NAME="OpacNav" -->
50
<!-- TMPL_IF NAME="OpacNav" -->
76
<div class="yui-b">
51
<div class="yui-b">
77
<div id="leftmenus" class="container">
52
<div id="leftmenus" class="container">
78
<!--TMPL_INCLUDE NAME="navigation.inc" -->
53
<!--TMPL_INCLUDE NAME="navigation.inc" -->
(-)a/koha-tmpl/opac-tmpl/prog/en/modules/opac-authoritiesdetail.tmpl (-9 / +7 lines)
Lines 1-4 Link Here
1
<!-- TMPL_INCLUDE NAME="doc-head-open.inc" --><!-- TMPL_IF NAME="LibraryNameTitle" --><!-- TMPL_VAR NAME="LibraryNameTitle" --><!-- TMPL_ELSE -->Koha Online<!-- /TMPL_IF --> Catalog &rsaquo;  Advanced Search
1
<!-- TMPL_INCLUDE NAME="doc-head-open.inc" --><!-- TMPL_IF NAME="LibraryNameTitle" --><!-- TMPL_VAR NAME="LibraryNameTitle" --><!-- TMPL_ELSE -->Koha Online<!-- /TMPL_IF --> Catalog &rsaquo;  Entry
2
<!-- TMPL_INCLUDE NAME="doc-head-close.inc" -->
2
<!-- TMPL_INCLUDE NAME="doc-head-close.inc" -->
3
<!-- TMPL_IF Name="displayhierarchy"-->
3
<!-- TMPL_IF Name="displayhierarchy"-->
4
<link rel="stylesheet" type="text/css" href="<!-- TMPL_VAR NAME="themelang" -->/css/hierarchy.css">
4
<link rel="stylesheet" type="text/css" href="<!-- TMPL_VAR NAME="themelang" -->/css/hierarchy.css">
Lines 60-77 function showChildren(mynumber) { Link Here
60
<!--/TMPL_LOOP-->
60
<!--/TMPL_LOOP-->
61
</div>
61
</div>
62
<!-- /TMPL_IF -->
62
<!-- /TMPL_IF -->
63
<h1>Authority #<!-- TMPL_VAR NAME="authid" --> (<!-- TMPL_VAR name="authtypetext" -->)</h1>
63
<h1>Entry <!-- TMPL_VAR name="authtypetext" --></h1>
64
	<p>Used in <a href="opac-search.pl?type=opac&amp;q=<!-- TMPL_VAR NAME="authid" -->&amp;idx=an"><!-- TMPL_VAR name="count" --> records</a></p>
64
	<p>Used in <a href="opac-search.pl?type=opac&amp;q=<!-- TMPL_VAR NAME="authid" -->&amp;idx=an"><!-- TMPL_VAR name="count" --> records</a></p>
65
<table><!-- TMPL_LOOP name="0XX" -->
65
        <!-- TMPL_LOOP name="0XX" -->
66
        <tr><td colspan="3" class="marctag"><b><!-- TMPL_VAR name="tag" --></b></td></tr>
66
        <p><b><!-- TMPL_VAR name="tag" --></b></p>
67
        <ul>
67
        <!-- TMPL_LOOP name="subfield" -->
68
        <!-- TMPL_LOOP name="subfield" -->
68
                <tr><td class="marcsubfieldletter" ><!-- TMPL_VAR name="marc_subfield" --></td>
69
                <p><b><!-- TMPL_VAR name="marc_lib" -->:</b> <!-- TMPL_VAR name="marc_value" --></p>
69
                    <td class="marcsubfieldname" ><!-- TMPL_VAR name="marc_lib" --></td>
70
                    <td class="subfieldvalue" ><!-- TMPL_VAR name="marc_value" --></td>
71
                </tr>
72
            <!-- /TMPL_LOOP -->
70
            <!-- /TMPL_LOOP -->
71
        </ul>
73
        <!-- /TMPL_LOOP -->
72
        <!-- /TMPL_LOOP -->
74
</table>
75
</div>	
73
</div>	
76
74
77
</div>
75
</div>
(-)a/opac/opac-authoritiesdetail.pl (-1 / +5 lines)
Lines 120-125 my @fields = $record->fields(); Link Here
120
foreach my $field (@fields) {
120
foreach my $field (@fields) {
121
    my @subfields_data;
121
    my @subfields_data;
122
122
123
    # skip UNIMARC fields <200, they are useless for a patron
124
    next if C4::Context->preference('MarcFlavour') eq 'UNIMARC' && $field->tag() <200;
125
123
    # if tag <10, there's no subfield, use the "@" trick
126
    # if tag <10, there's no subfield, use the "@" trick
124
    if ( $field->tag() < 10 ) {
127
    if ( $field->tag() < 10 ) {
125
        next if ( $tagslib->{ $field->tag() }->{'@'}->{hidden} );
128
        next if ( $tagslib->{ $field->tag() }->{'@'}->{hidden} );
Lines 137-142 foreach my $field (@fields) { Link Here
137
        for my $i ( 0 .. $#subf ) {
140
        for my $i ( 0 .. $#subf ) {
138
            $subf[$i][0] = "@" unless $subf[$i][0];
141
            $subf[$i][0] = "@" unless $subf[$i][0];
139
            next if ( $tagslib->{ $field->tag() }->{ $subf[$i][0] }->{hidden} );
142
            next if ( $tagslib->{ $field->tag() }->{ $subf[$i][0] }->{hidden} );
143
            # skip useless subfields (for patrons)
144
            next if $subf[$i][0] =~ /7|8|9/;
140
            my %subfield_data;
145
            my %subfield_data;
141
            $subfield_data{marc_lib} =
146
            $subfield_data{marc_lib} =
142
              $tagslib->{ $field->tag() }->{ $subf[$i][0] }->{lib};
147
              $tagslib->{ $field->tag() }->{ $subf[$i][0] }->{lib};
143
- 

Return to bug 5930