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

(-)a/koha-tmpl/opac-tmpl/prog/en/css/opac.css (-4 / +28 lines)
Lines 722-727 input.deleteshelf:active { Link Here
722
722
723
#tagslist li { display : inline; }
723
#tagslist li { display : inline; }
724
724
725
a.tag_results_add {
726
	background-image: url(../../images/tag-small.png);
727
	background-position : -1px center;
728
	background-repeat : no-repeat;
729
	padding-left : 13px;
730
	text-decoration: none;
731
}
732
733
#login4tags {
734
	background-image: url(../../images/tag-small-disabled.png);
735
	background-position : -1px center;
736
	background-repeat : no-repeat;
737
	padding-left : 13px;
738
	text-decoration: none;
739
	margin-left: 1em;
740
}
741
742
.tag_results_input {
743
    background-color: #EEE;
744
    display: none;
745
    margin-left: 1em;
746
    padding: 0.3em;
747
}
748
725
#placehold input.submit:hover,
749
#placehold input.submit:hover,
726
#tagsel_span input.submit:hover {
750
#tagsel_span input.submit:hover {
727
	color: #990033;
751
	color: #990033;
Lines 1407-1412 padding-left : .4em; Link Here
1407
	font-size : 100%;
1431
	font-size : 100%;
1408
}
1432
}
1409
1433
1434
.results_summary.actions {
1435
    margin-top : .5em;
1436
}
1437
1410
.m880 {
1438
.m880 {
1411
    display:block; 
1439
    display:block; 
1412
    text-align:right; 
1440
    text-align:right; 
Lines 1420-1429 padding-left : .4em; Link Here
1420
	color: #707070;
1448
	color: #707070;
1421
}
1449
}
1422
1450
1423
#login4tags {
1424
	margin-top : .3em;
1425
}
1426
1427
.results_summary .label {
1451
.results_summary .label {
1428
	color: #202020;
1452
	color: #202020;
1429
}
1453
}
(-)a/koha-tmpl/opac-tmpl/prog/en/modules/opac-results.tt (-28 / +47 lines)
Lines 223-228 $(document).ready(function(){ Link Here
223
                tagAdded();
223
                tagAdded();
224
                return false;
224
                return false;
225
            });
225
            });
226
227
            $(".tag_results_add").click(function(){
228
                var thisid = $(this).attr("id");
229
                thisid = thisid.replace("tag_add","");
230
                $(this).hide();
231
                $("#tagform"+thisid).show();
232
                $("#newtag"+thisid).focus();
233
                return false;
234
            })
235
236
            $(".cancel_tag_add").click(function(){
237
                var thisid = $(this).attr("id");
238
                thisid = thisid.replace("cancel","");
239
                $(this).parent().hide();
240
                $("#tag_add"+thisid).show();
241
                return false;
242
            })
243
226
        [% ELSE %]
244
        [% ELSE %]
227
            $("#tagsel_tag").click(function(){
245
            $("#tagsel_tag").click(function(){
228
                window.location = "/cgi-bin/koha/opac-user.pl";
246
                window.location = "/cgi-bin/koha/opac-user.pl";
Lines 503-508 $(document).ready(function(){ Link Here
503
                    </span>
521
                    </span>
504
                [% END %]
522
                [% END %]
505
523
524
                [% IF ( LibraryThingForLibrariesID ) %]<div class="ltfl_reviews"></div>[% END %]
525
                [% IF ( opacuserlogin ) %][% IF ( TagsEnabled ) %]
526
                                [% IF ( TagsShowOnList ) %]
527
                                [% IF ( SEARCH_RESULT.TagLoop.size ) %]
528
                                        <div class="results_summary"><span class="label">Tags:</span>
529
                                        <ul style="display: inline; list-style: none;">[% FOREACH TagLoo IN SEARCH_RESULT.TagLoop %]<li style="display: inline; list-style: none;"><a href="/cgi-bin/koha/opac-search.pl?tag=[% TagLoo.term |url %]&amp;q=[% TagLoo.term |url %]">[% TagLoo.term %]</a> <span class="weight">([% TagLoo.weight_total %])</span></li>
530
                                            [% END %]
531
                                        </ul>
532
                                   [% END %]
533
                                    [% IF ( SEARCH_RESULT.TagLoop.size ) %]
534
                                    </div>[% END %]
535
                                [% END %]
536
                                [% END %][% END %]
537
                [% IF ( SEARCH_RESULT.searchhighlightblob ) %]<span class="results_summary"><span class="label">Match:</span> [% SEARCH_RESULT.searchhighlightblob %]</span>[% END %]
538
539
540
506
541
507
                [% IF ( OpacStarRatings == 'all' ) %]
542
                [% IF ( OpacStarRatings == 'all' ) %]
508
                <div class="results_summary">
543
                <div class="results_summary">
Lines 528-562 $(document).ready(function(){ Link Here
528
                </div>
563
                </div>
529
                [% END %]
564
                [% END %]
530
565
531
532
                [% IF ( LibraryThingForLibrariesID ) %]<div class="ltfl_reviews"></div>[% END %]
533
                [% IF ( opacuserlogin ) %][% IF ( TagsEnabled ) %]
534
                                [% IF ( TagsShowOnList ) %]
535
                                [% IF ( SEARCH_RESULT.TagLoop.size ) %]
536
                                        <div class="results_summary"><span class="label">Tags:</span>
537
                                        <ul style="display: inline; list-style: none;">[% FOREACH TagLoo IN SEARCH_RESULT.TagLoop %]<li style="display: inline; list-style: none;"><a href="/cgi-bin/koha/opac-search.pl?tag=[% TagLoo.term |url %]&amp;q=[% TagLoo.term |url %]">[% TagLoo.term %]</a> <span class="weight">([% TagLoo.weight_total %])</span></li>
538
                                            [% END %]
539
                                        </ul>
540
                                   [% END %]
541
                                [% IF ( TagsInputOnList ) %]
542
                                    [% IF ( loggedinusername ) %]
543
                    <span class="label">New tag:</span>
544
                                        <input name="newtag[% SEARCH_RESULT.biblionumber %]" id="newtag[% SEARCH_RESULT.biblionumber %]" maxlength="100" />
545
                                        <input name="tagbutton" class="tagbutton" title="[% SEARCH_RESULT.biblionumber %]" type="submit" value="Add" />
546
                                    <span id="newtag[% SEARCH_RESULT.biblionumber %]_status" class="tagstatus" style="display:none;">
547
                                        Tag status here.
548
                                    </span>
549
                                       [% ELSIF ( loop.first ) %]<span class="tagstatus" id="login4tags">Log in to add tags.</span>
550
                                    [% END %]
551
                                [% END %]
552
                                    [% IF ( SEARCH_RESULT.TagLoop.size ) %]
553
                                    </div>[% END %]
554
                                [% END %]
555
                                [% END %][% END %]
556
                [% IF ( SEARCH_RESULT.searchhighlightblob ) %]<span class="results_summary"><span class="label">Match:</span> [% SEARCH_RESULT.searchhighlightblob %]</span>[% END %]
557
558
<span class="results_summary actions"><span class="label">Actions:</span>
566
<span class="results_summary actions"><span class="label">Actions:</span>
559
                                [% IF ( RequestOnOpac ) %]
567
                [% IF ( RequestOnOpac ) %]
560
                    [% UNLESS ( SEARCH_RESULT.norequests ) %]
568
                    [% UNLESS ( SEARCH_RESULT.norequests ) %]
561
                        [% IF ( opacuserlogin ) %]
569
                        [% IF ( opacuserlogin ) %]
562
                            [% IF ( AllowOnShelfHolds ) %]
570
                            [% IF ( AllowOnShelfHolds ) %]
Lines 570-575 $(document).ready(function(){ Link Here
570
                    [% END %]
578
                    [% END %]
571
                [% END %]
579
                [% END %]
572
580
581
                [% IF ( TagsInputOnList ) %]
582
                    [% IF ( loggedinusername ) %]
583
                        <a class="tag_results_add" id="tag_add[% SEARCH_RESULT.biblionumber %]" href="#">Add tag</a>
584
                        <span id="tagform[% SEARCH_RESULT.biblionumber %]" class="tag_results_input"><label for="newtag[% SEARCH_RESULT.biblionumber %]">New tag(s):</label><input name="newtag[% SEARCH_RESULT.biblionumber %]" id="newtag[% SEARCH_RESULT.biblionumber %]" maxlength="100" />
585
                        <input name="tagbutton" class="tagbutton" title="[% SEARCH_RESULT.biblionumber %]" type="submit" value="Add" /> <a class="cancel_tag_add" id="cancel[% SEARCH_RESULT.biblionumber %]" href="#">Cancel</a>
586
                        <span id="newtag[% SEARCH_RESULT.biblionumber %]_status" class="tagstatus" style="display:none;">
587
                        Tag status here.
588
                        </span></span>
589
                    [% ELSIF ( loop.first ) %]<span id="login4tags">Log in to add tags.</span>
590
                    [% END %]
591
                [% END %]
573
592
574
                [% IF ( opacuserlogin ) %][% IF ( loggedinusername ) %][% IF ( virtualshelves ) %]<a class="addtoshelf" href="/cgi-bin/koha/opac-addbybiblionumber.pl?biblionumber=[% SEARCH_RESULT.biblionumber %]" onclick="Dopop('opac-addbybiblionumber.pl?biblionumber=[% SEARCH_RESULT.biblionumber %]'); return false;">Save to Lists</a>
593
                [% IF ( opacuserlogin ) %][% IF ( loggedinusername ) %][% IF ( virtualshelves ) %]<a class="addtoshelf" href="/cgi-bin/koha/opac-addbybiblionumber.pl?biblionumber=[% SEARCH_RESULT.biblionumber %]" onclick="Dopop('opac-addbybiblionumber.pl?biblionumber=[% SEARCH_RESULT.biblionumber %]'); return false;">Save to Lists</a>
575
                [% END %][% END %][% END %]
594
                [% END %][% END %][% END %]

Return to bug 7980