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 723-729 input.deleteshelf:active { Link Here
723
723
724
#tagslist li { display : inline; }
724
#tagslist li { display : inline; }
725
725
726
a.tag_results_add {
726
a.tag_add {
727
    background-image: url(../../images/tag-small.png);
727
    background-image: url(../../images/tag-small.png);
728
    background-position : -1px center;
728
    background-position : -1px center;
729
    background-repeat : no-repeat;
729
    background-repeat : no-repeat;
Lines 742-748 a.tag_results_add { Link Here
742
742
743
.tag_results_input {
743
.tag_results_input {
744
    background-color: #EEE;
744
    background-color: #EEE;
745
    display: none;
746
    margin-left: 1em;
745
    margin-left: 1em;
747
    padding: 0.3em;
746
    padding: 0.3em;
748
}
747
}
Lines 1443-1451 padding-left : .4em; Link Here
1443
    padding-left:20px
1442
    padding-left:20px
1444
}
1443
}
1445
1444
1446
.searchresults .tagstatus {
1445
.tagstatus {
1447
        display: block;
1446
    color: #707070;
1448
        color: #707070;
1447
    padding: 0 4px 0 4px;
1448
    margin-left: 5px;
1449
    border: 1px solid #bcbcbc;
1450
    background-color: #ffffcc;
1451
    -webkit-border-radius: 4px;
1452
    -moz-border-radius: 4px;
1453
    border-radius: 4px;
1454
}
1455
1456
.results_summary.tagstatus {
1457
    display: inline;
1449
}
1458
}
1450
1459
1451
.results_summary .label {
1460
.results_summary .label {
Lines 1456-1463 padding-left : .4em; Link Here
1456
        font-weight: normal;
1465
        font-weight: normal;
1457
}
1466
}
1458
1467
1459
.actions a {
1468
.actions a.hold,
1460
   margin-left : 1em;
1469
.actions a.addtocart,
1470
.actions a.addtoshelf,
1471
.actions a.addtolist,
1472
.actions a.tag_add {
1473
     margin-left : 1em;
1461
     text-decoration : none;
1474
     text-decoration : none;
1462
}
1475
}
1463
1476
(-)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