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

(-)a/koha-tmpl/opac-tmpl/ccsr/en/css/opac.css (-7 / +20 lines)
Lines 725-731 input.deleteshelf:active { Link Here
725
725
726
#tagslist li { display : inline; }
726
#tagslist li { display : inline; }
727
727
728
a.tag_results_add {
728
a.tag_add {
729
    background-image: url(../../images/tag-small.png);
729
    background-image: url(../../images/tag-small.png);
730
    background-position : -1px center;
730
    background-position : -1px center;
731
    background-repeat : no-repeat;
731
    background-repeat : no-repeat;
Lines 744-750 a.tag_results_add { Link Here
744
744
745
.tag_results_input {
745
.tag_results_input {
746
    background-color: #EEE;
746
    background-color: #EEE;
747
    display: none;
748
    margin-left: 1em;
747
    margin-left: 1em;
749
    padding: 0.3em;
748
    padding: 0.3em;
750
}
749
}
Lines 1446-1454 padding-left : .4em; Link Here
1446
    padding-left:20px
1445
    padding-left:20px
1447
}
1446
}
1448
1447
1449
.searchresults .tagstatus {
1448
.tagstatus {
1450
        display: block;
1449
    color: #707070;
1451
        color: #707070;
1450
    padding: 0 4px 0 4px;
1451
    margin-left: 5px;
1452
    border: 1px solid #bcbcbc;
1453
    background-color: #ffffcc;
1454
    -webkit-border-radius: 4px;
1455
    -moz-border-radius: 4px;
1456
    border-radius: 4px;
1457
}
1458
1459
.results_summary.tagstatus {
1460
    display: inline;
1452
}
1461
}
1453
1462
1454
.results_summary .label {
1463
.results_summary .label {
Lines 1459-1466 padding-left : .4em; Link Here
1459
        font-weight: normal;
1468
        font-weight: normal;
1460
}
1469
}
1461
1470
1462
.actions a {
1471
.actions a.hold,
1463
   margin-left : 1em;
1472
.actions a.addtocart,
1473
.actions a.addtoshelf,
1474
.actions a.addtolist,
1475
.actions a.tag_add {
1476
     margin-left : 1em;
1464
     text-decoration : none;
1477
     text-decoration : none;
1465
}
1478
}
1466
1479
(-)a/koha-tmpl/opac-tmpl/ccsr/en/includes/doc-head-close.inc (-1 / +2 lines)
Lines 83-89 Link Here
83
    var MSG_TAGS_ADDED = _("Tags added: ");
83
    var MSG_TAGS_ADDED = _("Tags added: ");
84
    var MSG_TAGS_DELETED = _("Tags added: ");
84
    var MSG_TAGS_DELETED = _("Tags added: ");
85
    var MSG_TAGS_ERRORS = _("Errors: ");
85
    var MSG_TAGS_ERRORS = _("Errors: ");
86
    var MSG_MULTI_ADD_TAG_FAILED = _("Unable to add one or more tags.");[% END %][% END %]
86
    var MSG_MULTI_ADD_TAG_FAILED = _("Unable to add one or more tags.");
87
    var MSG_NO_TAG_SPECIFIED = _("No tag was specified.");[% END %][% END %]
87
    [% IF ( OPACAmazonCoverImages ) %]$(window).load(function() {
88
    [% IF ( OPACAmazonCoverImages ) %]$(window).load(function() {
88
        verify_images();
89
        verify_images();
89
    });[% END %]
90
    });[% END %]
(-)a/koha-tmpl/opac-tmpl/ccsr/en/js/tags.js (-10 / +11 lines)
Lines 26-37 if (typeof(readCookie) == "undefined") { Link Here
26
   }
26
   }
27
}
27
}
28
KOHA.Tags = {
28
KOHA.Tags = {
29
      add_tag_button: function(){
29
      add_tag_button: function(bibnum, tag){
30
            var mybibnum = $(this).attr("title");
30
          var mynewtag = "newtag" + bibnum;
31
          var mynewtag = "newtag" + mybibnum;
32
            var mytagid = "#" + mynewtag;
31
            var mytagid = "#" + mynewtag;
33
          var mydata = {CGISESSID: readCookie('CGISESSID')};	// Someday this should be OPACSESSID
32
          var mydata = {CGISESSID: readCookie('CGISESSID')};	// Someday this should be OPACSESSID
34
                mydata[mynewtag] = $(mytagid).val();	// need [bracket] for variable property id
33
                mydata[mynewtag] = tag;	// need [bracket] for variable property id
35
                var response;	// AJAX from server will assign value to response.
34
                var response;	// AJAX from server will assign value to response.
36
               $.post(
35
               $.post(
37
                        "/cgi-bin/koha/opac-tags.pl",
36
                        "/cgi-bin/koha/opac-tags.pl",
Lines 61-71 KOHA.Tags = { Link Here
61
      },
60
      },
62
     set_tag_status : function(tagid, newstatus) {
61
     set_tag_status : function(tagid, newstatus) {
63
          $(tagid).html(newstatus);
62
          $(tagid).html(newstatus);
64
              $(tagid).css({display:"inline"});
63
              $(tagid).show();
65
      },
64
      },
66
     append_tag_status : function(tagid, newstatus) {
65
     append_tag_status : function(tagid, newstatus) {
67
               $(tagid).append(newstatus);
66
               $(tagid).append(newstatus);
68
            $(tagid).css({display:"inline"});
67
            $(tagid).show();
68
      },
69
     clear_all_tag_status : function() {
70
          $(".tagstatus").empty().hide();
69
      },
71
      },
70
72
71
    tag_message: {
73
    tag_message: {
Lines 73-80 KOHA.Tags = { Link Here
73
    scrubbed_all_bad : function(arg) {return (MSG_TAG_ALL_BAD);},
75
    scrubbed_all_bad : function(arg) {return (MSG_TAG_ALL_BAD);},
74
  badparam : function(arg) {return (MSG_ILLEGAL_PARAMETER+" "+arg);},
76
  badparam : function(arg) {return (MSG_ILLEGAL_PARAMETER+" "+arg);},
75
    scrubbed : function(arg) {return (MSG_TAG_SCRUBBED+" "+arg);},
77
    scrubbed : function(arg) {return (MSG_TAG_SCRUBBED+" "+arg);},
76
    failed_add_tag : function(arg) {return (MSG_ADD_TAG_FAILED+ " "+arg+" "+MSG_ADD_TAG_FAILED_NOTE);},
78
    failed_add_tag : function(arg) {return (MSG_ADD_TAG_FAILED+ " '"+arg+"'. \n"+MSG_ADD_TAG_FAILED_NOTE);},
77
    failed_delete  : function(arg) {return (MSG_DELETE_TAG_FAILED+ " "+arg+" "+MSG_DELETE_TAG_FAILED_NOTE);},
79
    failed_delete  : function(arg) {return (MSG_DELETE_TAG_FAILED+ " '"+arg+"'. \n"+MSG_DELETE_TAG_FAILED_NOTE);},
78
   login : function(arg) {return (MSG_LOGIN_REQUIRED);}
80
   login : function(arg) {return (MSG_LOGIN_REQUIRED);}
79
   },
81
   },
80
82
Lines 92-98 KOHA.Tags = { Link Here
92
                  mydata,
94
                  mydata,
93
                        function(data){
95
                        function(data){
94
                                eval(data);
96
                                eval(data);
95
                $(".tagstatus").empty();
97
                KOHA.Tags.clear_all_tag_status();
96
                var bibErrors = false;
98
                var bibErrors = false;
97
99
98
                // Display the status for each tagged bib
100
                // Display the status for each tagged bib
99
- 

Return to bug 8660