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

(-)a/koha-tmpl/opac-tmpl/prog/en/modules/opac-search-history.tt (-10 / +14 lines)
Lines 19-25 $(document).ready(function() { Link Here
19
        ]
19
        ]
20
    }));
20
    }));
21
21
22
    $('#tabs').tabs();
22
    [% IF Koha.Preference( 'OpacAuthorities' ) == 1 %]$('#tabs').tabs();[% END %]
23
});
23
});
24
//]]>
24
//]]>
25
25
Lines 40-50 $(document).ready(function() { Link Here
40
  <div class="yui-b">
40
  <div class="yui-b">
41
    <div class="yui-g">
41
    <div class="yui-g">
42
      <h1>Search history</h1>
42
      <h1>Search history</h1>
43
      <div id="tabs" class="toptabs">
43
      [% IF Koha.Preference( 'OpacAuthorities' ) == 1 %]
44
        <ul>
44
        <div id="tabs" class="toptabs">
45
          <li><a href="#biblio_tab">Biblio</a></li>
45
          <ul>
46
          <li><a href="#authority_tab">Authority</a></li>
46
            <li><a href="#biblio_tab">Catalog</a></li>
47
        </ul>
47
            <li><a href="#authority_tab">Authority</a></li>
48
          </ul>
49
      [% END %]
48
        <div id="biblio_tab">
50
        <div id="biblio_tab">
49
          [% IF ( current_biblio_searches ) %]
51
          [% IF ( current_biblio_searches ) %]
50
            <h2>Current session</h2>
52
            <h2>Current session</h2>
Lines 52-58 $(document).ready(function() { Link Here
52
              <input type="hidden" name="action" value="delete" />
54
              <input type="hidden" name="action" value="delete" />
53
              <input type="hidden" name="previous" value="0" />
55
              <input type="hidden" name="previous" value="0" />
54
              <input type="hidden" name="type" value="biblio" />
56
              <input type="hidden" name="type" value="biblio" />
55
              <input type="submit" class="deleteshelf" value="Delete your current biblio history" onclick="return confirm(MSG_CONFIRM_DELETE_HISTORY);" />
57
              <input type="submit" class="deleteshelf" value="Delete your current catalog history" onclick="return confirm(MSG_CONFIRM_DELETE_HISTORY);" />
56
            </form>
58
            </form>
57
            <table class="historyt">
59
            <table class="historyt">
58
              <thead>
60
              <thead>
Lines 80-86 $(document).ready(function() { Link Here
80
              <input type="hidden" name="action" value="delete" />
82
              <input type="hidden" name="action" value="delete" />
81
              <input type="hidden" name="previous" value="1" />
83
              <input type="hidden" name="previous" value="1" />
82
              <input type="hidden" name="type" value="biblio" />
84
              <input type="hidden" name="type" value="biblio" />
83
              <input type="submit" class="deleteshelf" value="Delete your previous biblio search history" onclick="return confirm(MSG_CONFIRM_DELETE_HISTORY);" />
85
              <input type="submit" class="deleteshelf" value="Delete your previous catalog search history" onclick="return confirm(MSG_CONFIRM_DELETE_HISTORY);" />
84
            </form>
86
            </form>
85
            <table class="historyt">
87
            <table class="historyt">
86
              <thead>
88
              <thead>
Lines 103-112 $(document).ready(function() { Link Here
103
          [% END %]
105
          [% END %]
104
106
105
          [% IF !current_biblio_searches && !previous_biblio_searches %]
107
          [% IF !current_biblio_searches && !previous_biblio_searches %]
106
            <p>Your biblio search history is empty.</p>
108
            <p>Your catalog search history is empty.</p>
107
          [% END %]
109
          [% END %]
108
        </div>
110
        </div>
109
111
112
113
      [% IF Koha.Preference( 'OpacAuthorities' ) == 1 %]
110
        <div id="authority_tab">
114
        <div id="authority_tab">
111
          [% IF ( current_authority_searches ) %]
115
          [% IF ( current_authority_searches ) %]
112
            <h2>Current session</h2>
116
            <h2>Current session</h2>
Lines 169-174 $(document).ready(function() { Link Here
169
          [% END %]
173
          [% END %]
170
        </div>
174
        </div>
171
      </div>
175
      </div>
176
        [% END %]
172
    </div>
177
    </div>
173
  </div>
178
  </div>
174
</div>
179
</div>
175
- 

Return to bug 10807