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

(-)a/Koha/Report.pm (+54 lines)
Lines 20-25 use Modern::Perl; Link Here
20
use Carp;
20
use Carp;
21
21
22
use Koha::Database;
22
use Koha::Database;
23
use JSON;
24
use Koha::Reports;
23
25
24
use base qw(Koha::Object);
26
use base qw(Koha::Object);
25
27
Lines 33-38 Koha::Report - Koha Report Object class Link Here
33
35
34
=cut
36
=cut
35
37
38
=head3 get_search_info
39
40
Return search info
41
42
=cut
43
44
sub get_search_info {
45
    my $self=shift;
46
    my $sub_mana_info = { 'query' => shift };
47
    return $sub_mana_info;
48
}
49
50
=head3 get_sharable_info
51
52
Return properties that can be shared.
53
54
=cut
55
56
sub get_sharable_info {
57
    my $self=shift;
58
    my $shared_report_id=shift;
59
    my $report = Koha::Reports->find($shared_report_id);
60
    my $sub_mana_info = {
61
        'savedsql' => $report->savedsql,
62
        'report_name' => $report->report_name,
63
        'notes' => $report->notes,
64
        'report_group' => $report->report_group,
65
        'type' => $report->type,
66
    };
67
    return $sub_mana_info;
68
}
69
70
=head3 new_from_mana
71
72
Clear a Mana report to be imported in Koha?
73
74
=cut
75
76
sub new_from_mana{
77
    my $self = shift;
78
    my $data = shift;
79
    delete $data->{exportemail};
80
    delete $data->{kohaversion};
81
    delete $data->{creationdate};
82
    delete $data->{lastimport};
83
    $data->{mana_id} = $data->{id};
84
    delete $data->{id};
85
    delete $data->{nbofusers};
86
    delete $data->{language};
87
    Koha::Report->new($data)->store;
88
}
89
36
=head3 _type
90
=head3 _type
37
91
38
Returns name of corresponding DBIC resultset
92
Returns name of corresponding DBIC resultset
(-)a/Koha/Reports.pm (+6 lines)
Lines 55-58 sub object_class { Link Here
55
    return 'Koha::Report';
55
    return 'Koha::Report';
56
}
56
}
57
57
58
=head1 AUTHOR
59
60
Kyle M Hall <kyle@bywatersolutions.com>
61
62
=cut
63
58
1;
64
1;
(-)a/Koha/SharedContent.pm (-5 / +61 lines)
Lines 22-28 use JSON; Link Here
22
use HTTP::Request;
22
use HTTP::Request;
23
use LWP::UserAgent;
23
use LWP::UserAgent;
24
24
25
our $MANA_IP = "http://10.25.159.107:5000";
25
use Koha::Serials;
26
use Koha::Reports;
27
28
our $MANA_IP = C4::Context->config('mana_config');
26
29
27
sub manaRequest {
30
sub manaRequest {
28
    my $mana_request = shift;
31
    my $mana_request = shift;
Lines 40-51 sub manaRequest { Link Here
40
    return $result if ( $response->code =~ /^2..$/ );
43
    return $result if ( $response->code =~ /^2..$/ );
41
}
44
}
42
45
43
sub manaNewUserPatchRequest {
46
sub manaIncrementRequest {
44
    my $resource = shift;
47
    my $resource = shift;
45
    my $id       = shift;
48
    my $id       = shift;
46
49
    my $field    = shift;
47
    my $url = "$MANA_IP/$resource/$id.json/newUser";
50
    my $step     = shift;
48
    my $request = HTTP::Request->new( PATCH => $url );
51
    my $param;
52
    $param->{step} = $step || 1;
53
    $param->{id} = $id;
54
    $param->{resource} = $resource;
55
    $param = join '&',
56
       map { defined $param->{$_} ? $_ . "=" . $param->{$_} : () }
57
           keys %$param;
58
    my $url = "$MANA_IP/$resource/$id.json/increment/$field?$param";
59
    my $request = HTTP::Request->new( POST => $url );
49
60
50
    return manaRequest($request);
61
    return manaRequest($request);
51
}
62
}
Lines 64-69 sub manaPostRequest { Link Here
64
    return manaRequest($request);
75
    return manaRequest($request);
65
}
76
}
66
77
78
sub manaShareInfos{
79
    my ($query, $loggedinuser, $ressourceid, $ressourcetype) = @_;
80
    my $mana_language;
81
    if ( $query->param('mana_language') ) {
82
        $mana_language = $query->param('mana_language');
83
    }
84
    else {
85
        my $result = $mana_language = C4::Context->preference('language');
86
    }
87
88
    my $mana_email;
89
    if ( $loggedinuser ne 0 ) {
90
        my $borrower = Koha::Patrons->find($loggedinuser);
91
        $mana_email = $borrower->email
92
          if ( ( not defined($mana_email) ) or ( $mana_email eq '' ) );
93
        $mana_email = $borrower->emailpro
94
          if ( ( not defined($mana_email) ) or ( $mana_email eq '' ) );
95
        $mana_email =
96
          Koha::Libraries->find( C4::Context->userenv->{'branch'} )->branchemail
97
          if ( ( not defined($mana_email) ) or ( $mana_email eq '' ) );
98
    }
99
    $mana_email = C4::Context->preference('KohaAdminEmailAddress')
100
      if ( ( not defined($mana_email) ) or ( $mana_email eq '' ) );
101
    my %versions = C4::Context::get_versions();
102
103
    my $mana_info = {
104
        language    => $mana_language,
105
        kohaversion => $versions{'kohaVersion'},
106
        exportemail => $mana_email
107
    };
108
    my ($ressource, $ressource_mana_info);
109
    my $packages = "Koha::".ucfirst($ressourcetype)."s";
110
    my $package = "Koha::".ucfirst($ressourcetype);
111
    $ressource_mana_info = $package->get_sharable_info($ressourceid);
112
    $ressource_mana_info = { %$ressource_mana_info, %$mana_info };
113
    $ressource = $packages->find($ressourceid);
114
115
    my $result = Koha::SharedContent::manaPostRequest( $ressourcetype,
116
        $ressource_mana_info );
117
    if ( $result and ($result->{code} eq "200" or $result->{code} eq "201") ) {
118
        $ressource->set( { mana_id => $result->{id} } )->store;
119
    }
120
    return $result;
121
}
122
67
sub manaGetRequestWithId {
123
sub manaGetRequestWithId {
68
    my $resource = shift;
124
    my $resource = shift;
69
    my $id       = shift;
125
    my $id       = shift;
(-)a/Koha/Subscription.pm (+2 lines)
Lines 116-121 sub remove_subscriber { Link Here
116
=cut
116
=cut
117
117
118
sub get_search_info {
118
sub get_search_info {
119
    my $self=shift;
119
    my $searched_sub_id = shift;
120
    my $searched_sub_id = shift;
120
    my $biblio = Koha::Biblios->find( { 'biblionumber' => $searched_sub_id } );
121
    my $biblio = Koha::Biblios->find( { 'biblionumber' => $searched_sub_id } );
121
    my $biblioitem =
122
    my $biblioitem =
Lines 131-136 sub get_search_info { Link Here
131
}
132
}
132
133
133
sub get_sharable_info {
134
sub get_sharable_info {
135
    my $self = shift;
134
    my $shared_sub_id = shift;
136
    my $shared_sub_id = shift;
135
    my $subscription  = Koha::Subscriptions->find($shared_sub_id);
137
    my $subscription  = Koha::Subscriptions->find($shared_sub_id);
136
    my $biblio        = Koha::Biblios->find( $subscription->biblionumber );
138
    my $biblio        = Koha::Biblios->find( $subscription->biblionumber );
(-)a/etc/koha-conf.xml (+4 lines)
Lines 155-160 __PAZPAR2_TOGGLE_XML_POST__ Link Here
155
 <!-- Path to the config file for SMS::Send -->
155
 <!-- Path to the config file for SMS::Send -->
156
 <sms_send_config>__KOHA_CONF_DIR__/sms_send/</sms_send_config>
156
 <sms_send_config>__KOHA_CONF_DIR__/sms_send/</sms_send_config>
157
157
158
 <!-- URL of the mana KB server -->
159
 <!-- alternative value http://mana-test.koha-community.org to query the test server -->
160
 <mana_config>http://mana-kb.koha-community.org</mana_config>
161
158
 <!-- Configuration for Plack -->
162
 <!-- Configuration for Plack -->
159
 <plack_max_requests>50</plack_max_requests>
163
 <plack_max_requests>50</plack_max_requests>
160
 <plack_workers>2</plack_workers>
164
 <plack_workers>2</plack_workers>
(-)a/installer/data/mysql/atomicupdate/mana_01-add_mana_id_in_subscription.sql (+1 lines)
Line 1 Link Here
1
ALTER TABLE subscription ADD mana_id int(11);
1
ALTER TABLE subscription ADD mana_id int(11);
2
ALTER TABLE saved_sql ADD mana_id int(11);
(-)a/installer/data/mysql/atomicupdate/mana_02-add_Mana_syspref.sql (-1 / +1 lines)
Line 1 Link Here
1
INSERT IGNORE INTO systempreferences (variable,value,explanation,options,type) VALUES ('Mana', '1', 'request to Mana Webservice. Mana centralize commun information between other Koha to facilitate the creation of new subscriptions, vendors, report queries etc... You can search, share, import and comment the content of Mana.', NULL, 'YesNo');
1
INSERT IGNORE INTO systempreferences (variable,value,options,explanation,type) VALUES ('Mana','2', 0|1|2,'request to Mana Webservice. Mana centralize commun information between other Koha to facilitate the creation of new subscriptions, vendors, report queries etc... You can search, share, import and comment the content of Mana.','Choice');
(-)a/installer/data/mysql/atomicupdate/mana_03-add_mana_autoshare.sql (+2 lines)
Line 0 Link Here
1
INSERT INTO systempreferences ( `variable`, `value`, `options`, `explanation`, `type` ) VALUES
2
('AutoShareWithMana','subscription','','defines datas automatically shared with mana','multiple');
(-)a/installer/data/mysql/sysprefs.sql (+1 lines)
Lines 61-66 INSERT INTO systempreferences ( `variable`, `value`, `options`, `explanation`, ` Link Here
61
('AutoCreateAuthorities','0',NULL,'Automatically create authorities that do not exist when cataloging records.','YesNo'),
61
('AutoCreateAuthorities','0',NULL,'Automatically create authorities that do not exist when cataloging records.','YesNo'),
62
('AutoEmailOpacUser','0',NULL,'Sends notification emails containing new account details to patrons - when account is created.','YesNo'),
62
('AutoEmailOpacUser','0',NULL,'Sends notification emails containing new account details to patrons - when account is created.','YesNo'),
63
('AutoEmailPrimaryAddress','OFF','email|emailpro|B_email|cardnumber|OFF','Defines the default email address where \'Account Details\' emails are sent.','Choice'),
63
('AutoEmailPrimaryAddress','OFF','email|emailpro|B_email|cardnumber|OFF','Defines the default email address where \'Account Details\' emails are sent.','Choice'),
64
('AutoShareWithMana','subscription','','defines datas automatically shared with mana','multiple'),
64
('AutoLocation','0',NULL,'If ON, IP authentication is enabled, blocking access to the staff client from unauthorized IP addresses','YesNo'),
65
('AutoLocation','0',NULL,'If ON, IP authentication is enabled, blocking access to the staff client from unauthorized IP addresses','YesNo'),
65
('AutomaticItemReturn','1',NULL,'If ON, Koha will automatically set up a transfer of this item to its homebranch','YesNo'),
66
('AutomaticItemReturn','1',NULL,'If ON, Koha will automatically set up a transfer of this item to its homebranch','YesNo'),
66
('autoMemberNum','0','','If ON, patron number is auto-calculated','YesNo'),
67
('autoMemberNum','0','','If ON, patron number is auto-calculated','YesNo'),
(-)a/koha-tmpl/intranet-tmpl/prog/css/src/staff-global.scss (+6 lines)
Lines 733-738 ol { Link Here
733
    background-color: #FFD000 !important;
733
    background-color: #FFD000 !important;
734
}
734
}
735
735
736
.warned-row,
737
.warned-row td { background-color: #FF9000 !important }
738
739
.high-warned-row,
740
.high-warned-row td { background-color: #FF0000 !important }
741
736
tbody {
742
tbody {
737
    tr {
743
    tr {
738
        &:nth-child(odd) {
744
        &:nth-child(odd) {
(-)a/koha-tmpl/intranet-tmpl/prog/css/staff-global.css (-1 / +1 lines)
Line 1 Link Here
1
@charset "UTF-8";@import url("../../lib/yui/reset-fonts-grids.css") screen;::-moz-selection{background:#538200;color:#fff}::selection{background:#538200;color:#fff}a.btn,a:link,a:visited{color:#004d99;text-decoration:none}a.btn:link,a.btn:visited{color:#333}a:active,a:hover{color:#538200;text-decoration:none}a:hover .term{color:#ff9090}a .btn-link:link,a .btn-link:visited{color:#004d99}a .btn-link:hover{color:#538200}a.cancel{padding-left:1em}a.cartRemove{color:#c33;font-size:90%;margin:0;padding:0}a.close:hover{color:#538200}a.csv{background-image:url(../img/famfamfam/silk/page_white_excel.png)}a.dropdown-toggle{white-space:nowrap}a.incart{color:#666}a.debit,a.overdue{color:#c00}a.popup{background:transparent url(../img/pop-up-link.png) 100% no-repeat;padding-right:15px}a.disabled{color:#999}a.document{background-position:0 middle;background-repeat:no-repeat;display:inline-block;min-height:20px;padding-left:20px}a.highlight_toggle{display:none}a .localimage img{border:1px solid #00c;margin:0 .5em;padding:.3em}a.pdf{background-image:url(../img/famfamfam/silk/page_white_acrobat.png)}a.submit{background:linear-gradient(180deg,#fff 0,#f7f7f7 35%,#e0e0e0);border:1px outset #999;border-left-color:#666;border-top-color:#666;color:#333;padding:.25em;display:inline-block}a.submit:active{border:1px inset #999}a.submit:disabled{background:#eee none;border:1px solid silver;color:#999}a.term{text-decoration:underline}a.xml{background-image:url(../img/famfamfam/silk/page_white_code.png)}aside h5{font-size:100%;margin:.5em 0}aside fieldset.brief{margin:0;padding:.4em .7em}aside fieldset.brief fieldset{margin:0;padding:.5em 0}aside fieldset.brief fieldset legend{font-size:85%}aside fieldset.brief li.checkbox label,aside fieldset.brief li.dateinsert label,aside fieldset.brief li.dateinsert span.label{display:inline}aside fieldset.brief li.radio{padding:.7em 0}aside fieldset.brief li.radio input{padding:.3em 0}aside fieldset.brief li.radio label,aside fieldset.brief li.radio span.label{display:inline}aside fieldset.brief ol{font-size:85%;margin:0;padding:0}aside fieldset.brief input[type=text],aside fieldset.brief select{width:100%}button{background:linear-gradient(180deg,#fff 0,#f7f7f7 35%,#e0e0e0);border:1px outset #999;border-left-color:#666;border-top-color:#666;color:#333;padding:.25em}button:active{border:1px inset #999}button:disabled{background:#eee none;border:1px solid silver;color:#999}button.closebtn{background:transparent;border:0;cursor:pointer;padding:0}main .yui-b fieldset.brief input[type=text],main .yui-b fieldset.brief select{width:auto}table{border-collapse:collapse;border-right:1px solid #bcbcbc;border-top:1px solid #bcbcbc}table .btn-group{white-space:nowrap}table .btn-group .btn{display:inline-block;float:none}table.indexes td{vertical-align:middle}table>caption span.actions{font-size:66%;font-weight:400;margin:0 .5em 0 0}table.invis,table.invis td,table.invis tr{border:0}td,th{border-bottom:1px solid #bcbcbc;border-left:1px solid #bcbcbc;padding:.2em .3em}td{background-color:#fff;vertical-align:top}td.actions{white-space:nowrap}td.borderless{border:0 none;border-collapse:separate}td.data{font-family:Courier New,Courier,monospace}td.data,td.total{text-align:right}td input.approve{background-color:#ffc}th{background-color:#e8e8e8;font-weight:700;text-align:center}th.data{font-family:Courier New,Courier,monospace;text-align:right}table+table{margin-top:1em}body{font-family:Arial,Verdana,Helvetica,sans-serif;padding:0 0 4em;text-align:left}br.clear{clear:both;line-height:1px}form{display:inline}form.confirm{display:block;text-align:center}h1{font-size:161.6%;font-weight:700}h1#logo{border:0 none;float:left;margin:.75em .3em .75em .7em;padding:0;width:180px}h2{font-size:146.5%}h2,h3{font-weight:700}h3{font-size:131%}h4{font-size:116%}h4,h5{font-weight:700}h5{font-size:100%}h6{font-size:93%;font-weight:700}h1,h2,h3,h4,h5,h6{margin:.3em 0}hr{clear:both}p{margin:.5em 0}strong{font-weight:700}em strong,strong em{font-style:italic;font-weight:700}cite,em{font-style:italic}input,textarea{line-height:normal;padding:2px 4px}input:focus,textarea:focus{border-color:#538200;border-radius:4px;border-style:solid}input[type=checkbox],input[type=radio]{margin:0;vertical-align:middle}input[type=button]:active,input[type=submit]:active{border:1px inset #999}input[type=button],input[type=reset],input[type=submit]{background:linear-gradient(180deg,#fff 0,#f7f7f7 35%,#e0e0e0);border:1px outset #999;border-left-color:#666;border-top-color:#666;color:#333;padding:.25em}input[type=button]:active,input[type=reset]:active,input[type=submit]:active{border:1px inset #999}input[type=button]:disabled,input[type=reset]:disabled,input[type=submit]:disabled{background:#eee none;border:1px solid silver;color:#999}input.alert{background-color:#ff9;border-color:#900}input.submit{background:linear-gradient(180deg,#fff 0,#f7f7f7 35%,#e0e0e0);border:1px outset #999;border-left-color:#666;border-top-color:#666;color:#333;padding:.25em}input.submit:active{border:1px inset #999}input.submit:disabled{background:#eee none;border:1px solid silver;color:#999}input.warning{background:#fff url(../img/famfamfam/silk/error.png) no-repeat 4px;padding:.25em .25em .25em 25px}.label,label{color:#000;display:inline;font-size:inherit;font-weight:400;max-width:inherit;padding:0;vertical-align:middle}.label input[type=checkbox],.label input[type=radio],label input[type=checkbox],label input[type=radio]{margin-top:0}.label.circ_barcode,label.circ_barcode{font-size:105%;font-weight:700}.label.permissioncode,label.permissioncode{font-style:italic}.label.permissioncode:before,label.permissioncode:before{content:"("}.label.permissioncode:after,label.permissioncode:after{content:")"}.label.required,label.required{color:#c00}.subfield-label{font-style:italic}.subfield-label span.subfield-code{font-weight:700}.members-update-table{padding-top:10px}#navmenulist li{border-bottom:1px solid #eee;list-style-image:url(../img/arrow-bullet.gif);padding:.2em 0}#navmenulist li a{text-decoration:none}#navmenulist li a.current{font-weight:700}#doc,#doc1,#doc2,#doc3{padding-top:1em}.main{margin-top:1em}#login_controls{padding:.4em .5em;position:absolute;right:.5em}ul{padding-left:1.1em}ul li{list-style-type:disc}ul li input.submit{font-size:87%;padding:2px}ul li li{list-style-type:circle}ul .toolbar{padding-left:0}ul .toolbar button{font-family:Arial,Verdana,Helvetica,sans-serif;padding-bottom:2px}ul .toolbar li{display:inline;list-style:none}ul.budget_hierarchy{margin-left:0;padding-left:0}ul.budget_hierarchy li{display:inline}ul.budget_hierarchy li:after{content:" -> "}ul.budget_hierarchy li:first-child:after,ul.budget_hierarchy li:last-child:after{content:""}ul.fa-ul li{list-style-type:none}ul.ui-tabs-nav li{list-style:none}ol{padding-left:1.5em}ol li{list-style:decimal}ol.bibliodetails{float:left;margin:0 0 1em 1em}ol.bibliodetails li{border-bottom:1px solid #e8e8e8;list-style-type:none;padding:.1em}ol.bibliodetails span.label{border-right:1px solid #e8e8e8;float:left;font-weight:700;margin-right:1em;width:12em}.gradient{background-image:linear-gradient(180deg,#e6f0f2 1%,#fff 99%);display:inline-block;width:100%}.cart-controls{border-top:1px solid #e8e8e8;padding:7px 0}.clearfix{display:inline-block}.clearfix:after{clear:both;content:".";display:block;height:0;visibility:hidden}#editions table,#editions td{border:0}.highlighted-row,.highlighted-row td{background-color:#ffd000!important}tbody tr:nth-child(odd) td{background-color:#f3f3f3;border:1px solid #bcbcbc;border-right:1px solid #bcbcbc}.overdue td.od{color:#c00;font-weight:700}tr.clickable{cursor:pointer}tr.expired td{color:#999}tr.highlight td{background-color:#f6f6f6;border-color:#bcbcbc}tr.highlight th[scope=row]{background-color:#ddd;border-color:#bcbcbc}tr.highlight table.invis td{border:0}tr.odd.onissue td{background-color:#ffffe1}tr.ok:nth-child(2n) td,tr.ok:nth-child(odd) td,tr.ok td,tr.onissue td{background-color:#ffc}tr.reserved td{background-color:#eeffd4}tr.transfered td{background-color:#e8f0f6}tr.warn:nth-child(odd) td,tr.warn td{background-color:#ff9090}.table_borrowers tr:hover td{background-color:#ff9}tfoot td{background-color:#f3f3f3;font-weight:700}caption{color:#000;font-size:133.9%;font-weight:700;margin:.3em 0}.problem{background-color:#ffc;color:#900;font-weight:700;line-height:1.7em}fieldset{background-color:#f4f8f9;border:2px solid #b9d8d9;border-radius:5px;margin:1em 1em 1em 0;padding:1em}fieldset+fieldset.action{padding-top:20px}fieldset .lastchecked{border-bottom-left-radius:0;border-bottom-right-radius:0;border-bottom-width:0;margin-bottom:0}fieldset.action{background-color:transparent;border:0;clear:both;float:none;margin:.9em 0 0;padding:.4em;width:auto}fieldset.brief{border:2px solid #b9d8d9}fieldset.brief div .hint{margin-bottom:.4em}fieldset.brief label{display:block;font-weight:700;padding:.3em 0}fieldset.brief label.inline{display:inline;float:none;margin-left:1em;width:auto}fieldset.brief li[aria-disabled=true]{color:#999}fieldset.brief li.inline{display:inline;float:none;margin-left:1em;width:auto}fieldset.brief li,fieldset.brief ol{list-style-type:none}fieldset.brief span .label{display:block;font-weight:700;padding:.3em 0;text-align:left}fieldset.rows{border:2px solid #b9d8d9;border-width:1px;clear:left;float:left;font-size:90%;margin:.9em 0 0;padding:0;width:100%}fieldset.rows fieldset{background-color:transparent;border-width:1px;margin:1em;padding:.3em}fieldset.rows fieldset.action{padding:1em}fieldset.rows.inputnote{clear:left;float:left;margin:1em 0 0 11em}fieldset.rows.left label{text-align:left;width:8em}fieldset.rows.left li{padding-bottom:.4em}fieldset.rows.left span label{text-align:left;width:8em}fieldset.rows.ui-accordion-content{border-top-left-radius:0;border-top-right-radius:0;margin:0;padding:0;width:auto}fieldset.rows.ui-accordion-content table{margin:0}fieldset.rows.unselected{background-color:#fff;border:0;border-width:0}fieldset.rows caption{font-size:120%}fieldset.rows div .hint{margin-bottom:.4em;margin-left:7.5em}fieldset.rows label{float:left;font-weight:700;margin-right:1em;text-align:right;width:9em}fieldset.rows label .error{float:none;margin-left:1em;width:auto}fieldset.rows label.inline{display:inline;float:none;margin-left:1em}fieldset.rows label .yesno{float:none;width:auto}fieldset.rows legend{font-size:110%;font-weight:700;margin-left:1em}fieldset.rows li{clear:left;float:left;list-style-type:none;padding-bottom:1em;width:100%}fieldset.rows li[aria-disabled=true]{color:#999}fieldset.rows li.radio{padding-left:9em;width:auto}fieldset.rows li.radio input+label{margin-left:0;padding-left:0}fieldset.rows li.radio label{float:none;margin:0 0 0 1em;width:auto}fieldset.rows li input+label{margin-left:0;padding-left:0}fieldset.rows ol{list-style-type:none;padding:1em 1em 0}fieldset.rows ol.radio label{float:none;margin-left:20px;margin-right:30px;padding-left:0;vertical-align:middle;width:auto}fieldset.rows ol.radio label.radio{float:left;margin-right:1em;margin-top:0;width:9em}fieldset.rows ol.radio input[type=checkbox],fieldset.rows ol.radio input[type=radio]{margin-left:-20px}fieldset.rows p{margin:1em 0 1em 1em}fieldset.rows span.label{float:left;font-weight:700;margin-right:1em;text-align:right;width:6em}fieldset.rows table{clear:both;font-size:105%;margin:1em 0 1em 1em}fieldset.rows table.mceListBox{margin:0}fieldset.rows td label{float:none;font-weight:400;width:auto}fieldset.rows .inputnote{clear:left;float:left;margin:1em 0 0 11em}fieldset.rows+h3{clear:both;padding-top:.5em}#multi_receiving fieldset.rows label{width:50%}.yui-u div .hint{margin-bottom:.4em}.yui-u fieldset.rows div.hint{margin-left:7.5em}.yui-u fieldset.rows label,.yui-u fieldset.rows span.label{width:10em}.yui-u .rows li p label.widelabel,legend{width:auto}legend{background-color:#fff;border:2px solid #b9d8d9;border-radius:3px;font-size:123.1%;font-weight:700;padding:.2em .5em}details>summary{cursor:pointer}details>summary:before{content:"\f0da";display:inline-block;font-family:FontAwesome;width:1em}details>summary.checkouts-by-itemtype li{display:inline-block}details[open]>summary:before{content:"\f0d7"}#floating-save{background-color:rgba(185,216,217,.6);bottom:3%;position:fixed;right:1%;width:150px}#breadcrumbs{background-color:#e6f0f2;clear:both;font-size:90%;margin:0;padding:.2em .5em .4em 10px}#header+#breadcrumbs{margin-top:1em}#header>.container-fluid{padding:0}div.action{background-color:transparent;border:0;clear:both;float:none;margin:.9em 0 0;padding:.4em;width:auto}div .circmessage{margin-bottom:.3em;padding:0 .4em .4em}div .circmessage:first-child{margin-top:1em}div.error{background-color:#ff9;border:2px dashed #900;margin:1em;padding:.5em}div.first fieldset{margin-right:0}div.help{margin:.9em 0 0}div.justify{text-align:justify}div.message{background:linear-gradient(180deg,#fff 0,#f4f6fa 2%,#eaeef5 23%,#e8edf6 94%,#cddbf2);border:1px solid #bcbcbc;text-align:center;width:55%}div.message h5,div.message ul{padding-left:25%;text-align:left}div.message ul+h4{margin-top:.7em}div.note{background:linear-gradient(180deg,#f4f6fa 0,#e8edf6);border:1px solid #bcbcbc;margin:.5em 0;padding:.5em}div.note i.fa-exclamation{color:#c00;font-style:italic;padding:0 .3em}div.rules{display:block}div.results,div[class$=_table_controls]{padding:.7em 0}div.rule{background-color:#f4f8f9;border:2px solid #b9d8d9;border-radius:5px;margin:.3em;padding:.3em}div.lastchecked{border:2px solid #bcdb89;border-bottom-left-radius:5px;border-bottom-right-radius:5px;padding:.2em 1em}div.listgroup{clear:left}div.listgroup h4{font-style:italic}div.listgroup h4 a,div.listgroup input{font-size:80%}div.sysprefs h3{margin:.2em 0 .2em .4em}div.sysprefs dl{margin-left:1.5em}div.sysprefs.hint{float:right;margin:.7em;padding:.5em;width:25%}div.rows{clear:left;float:left;margin:0;padding:0;width:100%}div.rows+div.rows{margin-top:.6em}div.rows li{border-bottom:1px solid #eee;clear:left;float:left;list-style-type:none;padding-bottom:.2em;padding-top:.1em;width:100%}div.rows ol{list-style-type:none;padding:.5em 1em 0 0}div.rows ol li li{border-bottom:0}div.rows span.label{float:left;font-weight:700;margin-right:1em;padding-top:0;text-align:left;width:9em}div.pages{margin:.5em 0}div.pages a{font-weight:700;padding:1px 5px;text-decoration:none}div.pages a:link,div.pages a:visited{background-color:#eee;color:#36c}div.pages a:active,div.pages a:hover{background-color:#ffc}div.pages .current,div.pages .currentPage{background-color:#e6fcb7;color:#666;font-weight:700;padding:1px 5px}div.pages .inactive{background-color:#f3f3f3;color:#bcbcbc;font-weight:700;padding:1px 5px}div .browse{margin:.5em 0}#header_search{background-position:.5em .5em;background-repeat:no-repeat;float:left;margin:.3em 0 .5em}#header_search input{font-size:1.3em}#header_search input.submit{font-size:1em}#header_search div.residentsearch{border:0;border-bottom:1px solid #85ca11;padding:0 0 .2em}#header_search ul.ui-tabs-nav{margin-left:1em;padding-top:0}#header_search ul.ui-tabs-nav li.ui-state-default{background:transparent none;border:0;top:0}#header_search ul.ui-tabs-nav li.ui-state-default a{padding:.3em .6em}#header_search ul.ui-tabs-nav li.ui-tabs-active{background-color:#fffff1;border:1px solid #85ca11;border-top-width:0;top:-2px}#header_search ul.ui-tabs-nav li.ui-tabs-active a{text-decoration:none}#header_search .ui-corner-top{border-radius:0 0 4px 4px}#header_search>div,#header_search>div>li,#header_search>ul,#header_search>ul>li{display:none}#header_search>div:first-of-type,#header_search>div>li:first-of-type,#header_search>ul:first-of-type,#header_search>ul>li:first-of-type{display:block}.head-searchbox{width:30em}#checkouts,#reserves{border:1px solid #b9d8d9;padding:1em}.tip{color:gray;font-size:93%}.single-line{white-space:nowrap}.ex{font-family:Courier New,Courier,monospace}.ex,dt{font-weight:700}dd{font-size:90%;font-weight:400;padding:.2em;text-indent:2.5em}#toolbar,.btn-toolbar{background-color:#edf4f6;border:1px solid #e6f0f2;border-radius:5px 5px 0 0;margin:0;padding:5px}#disabled2 a,#disabled a,#disabled a:hover{color:#999}.patroninfo{margin-top:-.5em}.patroninfo h5{border-right:1px solid #b9d8d9;margin-bottom:0;padding-bottom:.5em;padding-left:-.5em;padding-top:.3em}.patroninfo h5:empty{border-right:0}.patroninfo ul{border:0;border-bottom:0;border-right:1px solid #b9d8d9;border-top:0;margin:0;padding:0}.patroninfo ul li{list-style-type:none;margin:0}.patroninfo+#menu{margin-right:0}#patronbasics div{background:transparent url(../img/patron-blank.min.svg) 10px 5px no-repeat;height:125px;padding:0;width:105px}#patronbasics div,#patronimage{border:1px solid #ccc;margin:.3em 0 .3em .3em}#patronimage{max-width:140px;padding:.2em}.patronviews{border-right:1px solid #000;border-top:1px solid #000;margin-bottom:.5em;padding:.5em 0}.column-tool{font-size:80%}.hint{color:#666;font-size:95%}.yui-b fieldset.brief{padding:.4em .7em}.yui-b fieldset.brief fieldset{margin:0 .3em;padding:.5em}.yui-b fieldset.brief fieldset legend{font-size:85%}#tools_holidays .yui-b fieldset.brief li.checkbox input{margin-left:0}.yui-b fieldset.brief li.checkbox label{display:inline}#tools_holidays .yui-b fieldset.brief li.checkbox label{margin-left:20px}.yui-b fieldset.brief li.dateinsert label,.yui-b fieldset.brief li.dateinsert span.label{display:inline}.yui-b fieldset.brief li.radio{padding:.7em 0}.yui-b fieldset.brief li.radio input{padding:.3em 0}#tools_holidays .yui-b fieldset.brief li.radio input{margin-left:0}.yui-b fieldset.brief li.radio label{display:inline}#tools_holidays .yui-b fieldset.brief li.radio label{margin-left:20px}.yui-b fieldset.brief li.radio label span.label{display:inline}.yui-b fieldset.brief ol{font-size:85%;margin:0;padding:0}.yui-b fieldset.brief input[type=text],.yui-b fieldset.brief select{width:100%}.yui-b fieldset.rows div.hint{margin-left:10.5em}#yui-main .yui-b fieldset.brief input[type=text],#yui-main .yui-b fieldset.brief select,.yui-b fieldset.rows td label,.yui-b fieldset.rows td span.label{width:auto}.btn-toolbar fieldset.action{margin-top:0}.btn-toolbar .dropdown-menu{font-size:13px}.rows .label{white-space:normal}.checkedout{color:#999;font-style:italic}.subfield_not_filled{background-color:#ff9}.content_hidden{display:none;visibility:hidden}.content_visible{display:block;visibility:visible}#z3950searcht table{border:0;padding:20px}#z3950_search_targets{height:338px;overflow-y:auto}#z3950_search_targets_acq{height:308px;overflow-y:auto}.z3950checks{padding-left:1em}.error{color:#c00}.status_ok{background-color:#90ee90}.status_warn{background-color:red}i.error{color:#c00}i.success{color:green}i.warn{color:orange}.checkout-setting{font-size:85%;padding-top:.3em}.checkout-setting input{vertical-align:middle}.checkout-setting label{font-size:inherit;font-weight:400}.checkout-settings{background-color:#f4f8f9;border-radius:0;border-top:2px solid #b9d8d9;display:none;margin-left:-1em;margin-right:-1em;margin-top:1em;padding:1em 1em 0}#show-checkout-settings{margin-top:.5em}.blocker,.inaccurate-item-statuses{color:#900}.circmessage li{list-style:url(../img/arrow-bullet.gif);margin-bottom:.2em}#circ_needsconfirmation{margin:auto}.dialog{border:1px solid #bcbcbc;border-radius:2px;margin:1em auto;padding:.5em;text-align:center;width:65%}.dialog a.approve{display:inline-block}.dialog a.approve,.dialog button{background:#fff none;border:1px outset #999;border-left-color:#666;border-top-color:#666;margin:.4em;padding:.4em;white-space:pre-line}.dialog a.approve:active,.dialog button:active{border:1px inset #999}.dialog a.approve:hover,.dialog button:hover{background-color:#ffc}.dialog h2,.dialog h3,.dialog h4{margin:auto;text-align:center}.dialog input{background-color:#fff;border:1px solid #bcbcbc;margin:.4em;padding:.4em .4em .4em 25px}.dialog input:hover{background-color:#ffc}.dialog input[type=submit]{background:#fff none}.dialog li{list-style-position:inside}.dialog table{margin:.5em auto}.dialog table td{text-align:left}.dialog table th{text-align:right}.alert{background:linear-gradient(180deg,#fef8d3 0,#ffec91 9%,#ffed87 89%,#f9dc00);border:1px solid #e0c726;color:inherit;text-align:center;text-shadow:none}.alert strong{color:#900}.alert .closebtn{line-height:20px;position:relative;right:-21px;top:-2px}.approve i.fa,.success i.fa{color:green}.deny i.fa{color:#c00}.new i.fa{color:#425faf}.accesskey{text-decoration:underline}.missing,.term{background-color:#ffc}.term{color:#900}.shelvingloc{display:block;font-style:italic}#menu{border-right:1px solid #b9d8d9;margin-right:.5em;padding-bottom:2em;padding-top:1em}#menu li a{background:linear-gradient(180deg,#e8f0f6 0,#e8f0f6 96%,#c1c1c1);border:1px solid #b9d8d9;border-bottom-left-radius:5px;border-top-left-radius:5px;display:block;font-size:111%;margin:.5em 0;margin-right:-1px;padding:.4em .3em;text-decoration:none}#menu li a:hover{background:linear-gradient(180deg,#fafafa 0,#fff 96%,#e6e6e6 97%,#ccc 99%,#c1c1c1)}#menu li.active a,#menu li a:hover{border-bottom:1px solid #85ca11;border-left:1px solid #85ca11;border-top:1px solid #85ca11}#menu li.active a{background-color:#fff;background-image:none;border-right:0;color:#000;font-weight:700}#menu li.active a:hover{background-color:#fff;color:#538200}#menu ul li{list-style-type:none}#logo{background:transparent url(../img/koha-logo-medium.png) no-repeat scroll 0;margin:.75em .3em .75em .7em}#logo a{border:0;cursor:pointer;display:block;height:0!important;margin:0;overflow:hidden;padding:44px 0 0;text-decoration:none;width:180px}#closewindow{margin-top:2em;text-align:center}#closewindow a{font-weight:700}.barcode{font-size:200%;vertical-align:middle}li.email{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.patronbriefinfo li.email{font-size:87%;padding:0 10px 0 0;width:90%}.empty{color:#ccc}.address{font-size:110%}.address li{list-style-type:none}.title{font-size:105%;font-weight:700}.hold{float:right;font-size:90%;margin:0}.thumbnail{display:block;margin:auto}.thumbnail>li{list-style-type:none}#searchresults ul li{clear:left;font-size:90%;list-style:url(../img/item-bullet.gif);padding:.2em 0}#searchresults ul li img{float:left;margin:3px 5px 3px -5px}#searchresults ul span.status{clear:left;color:#900;display:block}#searchresults ul span.unavailable{clear:left;display:block}#searchresults ul table td{vertical-align:top}#searchresults.unavailability strong{display:block}#searchheader{background-color:#e6f0f2;border:1px solid #b9d8d9;border-radius:5px 5px 0 0;font-size:80%;margin:0 0 .5em -1px;padding:.4em 0 .4em 1em}#searchheader.floating{border-radius:0;margin-top:0}#searchheader .btn-group>.btn:first-child{margin-left:.7em}#searchheader form{float:right;padding:5px 5px 3px 0}#searchheader form.fz3950{float:right;font-size:125%;padding:0 0 0 5em}#searchheader form.fz3950bigrpad{float:right;font-size:125%;padding:5px 25em 0 0}#search-facets{border:1px solid #b9d8d9;border-radius:5px 5px 0 0}#search-facets h4{background-color:#e6f0f2;border-bottom:1px solid #b9d8d9;border-radius:5px 5px 0 0;font-size:90%;margin:0;padding:.4em .2em;text-align:center}#search-facets ul{margin:0;padding:.3em}#search-facets ul li{font-weight:700;list-style-type:none}#search-facets li li{font-size:85%;font-weight:400;margin-bottom:2px;padding:.1em .2em}#search-facets li.showmore{font-weight:700;text-indent:1em}.facet-count{display:inline-block}#bookcoverimg{text-align:center}.searchhighlightblob{font-size:75%;font-style:italic}#displayexample{background-color:#ccc;margin-bottom:10px;padding:5px}#irregularity_summary{vertical-align:top}#toplevelmenu{padding:0}#CheckAll,#CheckNone,#CheckPending{font-weight:400;margin:0 .5em 0 0}.dmg,.lost,.wdn{color:#900;display:block}.datedue{color:#999;display:block;font-style:italic}.credit,.waitinghere{color:#690}#mainuserblock{border:1px solid #e8e8e8;margin-top:.5em;padding:.5em}.labeledmarc-table{border:0}.labeledmarc-label{border:0;color:#000;font-size:11pt;font-style:italic;padding:5}.labeledmarc-value{border:0;color:#000;font-size:10pt;padding:5}#marcPreview table{border:0;font-family:Courier New,Courier,monospace;font-size:95%;margin:.7em 0 0}#marcPreview tbody tr:nth-child(odd) td{background-color:#fff}#marcPreview td,#marcPreview th{border:0;padding:2px;vertical-align:top}#marcPreview th{background-color:#fff;text-align:left;white-space:nowrap}#marcPreview.modal-dialog,.modal-dialog.modal-wide{width:80%}@media (max-width:767px){#marcPreview{margin:0;width:auto}}#cartDetails{background-color:#fff;border:1px solid #739acf;box-shadow:1px 1px 3px 0 #666;color:#000;display:none;margin:0;padding:10px;text-align:center;width:180px;z-index:2}#cartmenulink{background:transparent url(../img/cart-small.gif) 0 no-repeat;padding-left:15px}#basketcount span{display:inline;font-size:90%;font-weight:400;padding:0}#moremenu{display:none}.results_summary{color:#707070;display:block;font-size:85%;padding:0 0 .5em}.results_summary a{font-weight:400}.results_summary .label{color:#202020}.child_fund_amount{font-style:italic}.number_box{font-size:105%;line-height:200%}.number_box a,.number_box span{background-color:#e4ecf5;border:1px solid #a4bedd;border-radius:4px;font-weight:700;padding:.1em .4em;text-decoration:none}.number_box a:hover,.number_box span:hover{background-color:#ebeff7}.container{border:1px solid #eee;margin:1em 0;padding:1em}.import_export{position:relative}.import_export .export_ok{background:#e3e3e3 none;border:0;cursor:pointer;margin-left:20px;padding:10px}.import_export .import_export_options{background:#fff;border:1px solid #cdcdcd;left:60px;padding:10px;position:absolute;top:0;width:300px;z-index:1}.import_export_options{background:#e3e3e3 none;border:0;cursor:pointer;margin-left:20px;padding:10px}.import_export_options fieldset.rows li label{width:16em}.import_export_options .importing{background:none;padding:inherit}.form_import fieldset.rows li label{width:auto}.form_import .input_import{border:1px solid #bcbcbc}.importing{position:relative}.importing .importing_msg{padding-bottom:10px;padding-left:10px}.field_hint{color:gray;font-style:italic;padding-left:1em}.m880{display:block;float:right;padding-left:20px;text-align:right;width:50%}.advsearch{margin:0}.advsearch table{border-collapse:separate;border-spacing:5px;border-width:0}.advsearch td{border:1px solid #eee;padding:.3em .4em}#circ_circulation_issue{position:relative}#clearscreen{position:absolute;right:0;top:0}#clearscreen a{background-color:#eee;border-radius:0 0 0 5px;color:#ccc;display:block;font-size:160%;font-weight:700;padding:0 .7em .2em;text-decoration:none;text-shadow:0 -1px 0 #666}#clearscreen a:hover{color:#c00}.pager{background-color:#e8e8e8;border:1px solid #bcbcbc;border-radius:5px;display:inline-block;font-size:85%;margin:.4em 0;padding:.3em .5em}.pager img{vertical-align:middle}.pager img.last{padding-right:5px}.pager input.pagedisplay{background-color:transparent;border:0;font-weight:700;text-align:center}.pager p{margin:0}.no-image{background-color:#fff;border:1px solid #aaa;border-radius:3px;color:#979797;display:block;font-size:86%;font-weight:700;text-align:center;width:75px}#acqui_order_supplierlist>div.supplier{border:1px solid #eee;margin:.5em;padding:1em}#acqui_order_supplierlist>div>div>.baskets{margin-top:.5em}#acqui_order_supplierlist>div>span.action{margin-left:5em}#acqui_order_supplierlist>div>span.suppliername{display:inline;font-size:1.7em;margin-bottom:.5em}.supplier-contact-details{float:left}#ADD-contact{margin:0 0 8px 8px}#contact-template{display:none}.ui-widget-content{background:#fff none;border:1px solid #b9d8d9;color:#222}.ui-widget-header{background:#e6f0f2 none;border:1px solid #b9d8d9;color:#222;font-weight:700}.ui-state-default,.ui-widget-content .ui-state-default,.ui-widget-header .ui-state-default{background:#f4f8f9 none;border:1px solid #b9d8d9;color:#555;font-weight:400}.ui-state-focus,.ui-state-hover,.ui-widget-content .ui-state-focus,.ui-widget-content .ui-state-hover,.ui-widget-header .ui-state-focus,.ui-widget-header .ui-state-hover{background:#e6f0f2 none;border:1px solid #b9d8d9;color:#212121;font-weight:400}.ui-state-active,.ui-widget-content .ui-state-active,.ui-widget-header .ui-state-active{background:#fff none;border:1px solid #aaa;color:#212121;font-weight:400}.ui-state-highlight,.ui-widget-content .ui-state-highlight,.ui-widget-header .ui-state-highlight{background:#fff4c6;border:1px solid #fed22f;color:#363636}.ui-state-error,.ui-widget-content .ui-state-error,.ui-widget-header .ui-state-error{border:1px solid #cd0a0a;background:#fef1ec;color:#cd0a0a}.ui-autocomplete{box-shadow:2px 2px 2px rgba(0,0,0,.3);cursor:default;position:absolute}.ui-autocomplete.ui-widget-content .ui-state-hover{background:#e6f0f2 none;border:1px solid #b9d8d9;color:#212121;font-weight:400}.ui-autocomplete-loading{background:#fff url(../img/spinner-small.gif) 100% no-repeat}.ui-menu li{list-style:none}.ui-tabs-nav .ui-tabs-active a,.ui-tabs-nav a:active,.ui-tabs-nav a:focus,.ui-tabs-nav a:hover,.ui-tabs-nav span.a{background:none repeat scroll 0 0 transparent;outline:0 none}.ui-tabs-nav.ui-widget-header{background:none;border:0}.ui-tabs .ui-tabs-nav li{background:#e6f0f2 none;border:1px solid #b9d8d9;margin-right:.4em;top:1px}.ui-tabs .ui-tabs-nav li.ui-tabs-active{background-color:#fff;border:1px solid #b9d8d9;border-bottom-width:0}.ui-tabs .ui-tabs-nav li.ui-tabs-active a{color:#000;font-weight:700}.ui-tabs .ui-tabs-nav li.ui-tabs-active.ui-state-hover{background:#fff none}.ui-tabs .ui-tabs-nav li.ui-state-default.ui-state-hover{background:#edf4f5 none}.ui-tabs .ui-tabs-panel{border:1px solid #b9d8d9}.ui-tabs.ui-widget-content{background:transparent none;border:0}.ui-tabs .ui-state-default a,.ui-tabs .ui-state-default a:link,.ui-tabs .ui-state-default a:visited{color:#004d99}.ui-tabs .ui-state-hover a,.ui-tabs .ui-state-hover a:link,.ui-tabs .ui-state-hover a:visited{color:#538200}.ui-widget,.ui-widget button,.ui-widget input,.ui-widget select,.ui-widget textarea{font-family:inherit;font-size:inherit}.statictabs ul{background:none repeat scroll 0 0 transparent;border:0 none;border-bottom-left-radius:4px;border-bottom-right-radius:4px;border-top-left-radius:4px;border-top-right-radius:4px;color:#222;font-size:100%;font-weight:700;line-height:1.3;list-style:none outside none;margin:0;outline:0 none;padding:.2em .2em 0;text-decoration:none}.statictabs ul:after{clear:both}.statictabs ul:after,.statictabs ul:before{content:"";display:table}.statictabs ul li{background:none repeat scroll 0 0 #e6f0f2;border:1px solid #b9d8d9;border-bottom:0 none;border-top-left-radius:4px;border-top-right-radius:4px;color:#555;float:left;font-weight:400;list-style:none outside none;margin-bottom:0;margin-right:.4em;padding:0;position:relative;top:1px;white-space:nowrap}.statictabs ul li.active{background-color:#fff;color:#212121;font-weight:400;padding-bottom:1px}.statictabs ul li.active a{background:none repeat scroll 0 0 transparent;color:#000;cursor:text;font-weight:700;outline:0 none;top:1px}.statictabs ul li a{color:#004d99;cursor:pointer;float:left;padding:.5em 1em;text-decoration:none}.statictabs ul li a:hover{background-color:#edf4f5;border-top-left-radius:4px;border-top-right-radius:4px;color:#538200}.statictabs .tabs-container{background:none repeat scroll 0 0 transparent;border:1px solid #b9d8d9;border-bottom-left-radius:4px;border-bottom-right-radius:4px;color:#222;display:block;padding:1em 1.4em}.authref{font-style:normal;text-indent:4em}.seealso,.seefrom{font-style:italic;text-indent:2em}#authfinderops{float:right}.authorizedheading{font-weight:700}.authres_notes,.authres_otherscript,.authres_seealso{padding-top:3px}.authres_notes{font-style:italic}.contents{width:75%}.contents .r,.contents .t{display:inline}.contents .t{font-weight:700}.contents .t:first-child:before{content:"→ "}.contents .t:before{content:"\A→ ";white-space:pre}.contentblock{margin-left:2em;position:relative}#hierarchies a{color:#069;font-weight:400;text-decoration:underline}#hierarchies a:hover{color:#903}#didyoumeanintranet,#didyoumeanopac{float:left;width:260px}.pluginlist{padding-bottom:10px}.plugin{margin:0 1em 1em 0}.pluginname{background-color:#e6f0f2;cursor:move;margin:.3em;padding-bottom:4px;padding-left:.2em}.pluginname .ui-icon{float:right}.plugindesc{padding:.4em}.ui-sortable-placeholder{border:1px dotted #000;height:80px;visibility:visible}.ui-sortable-placeholder *{visibility:hidden}.ui-datepicker{box-shadow:1px 1px 3px 0 #666}.ui-datepicker table{border:0;border-collapse:collapse;font-size:.9em;margin:0 0 .4em;width:100%}.ui-datepicker th{background:transparent none;border:0;font-weight:700;padding:.7em .3em;text-align:center}.ui-datepicker-trigger{margin:0 3px;vertical-align:middle}.ui-timepicker-div dl{text-align:left}.ui-timepicker-div dl dd{margin:0 10px 10px 65px}.ui-timepicker-div dl dt{height:25px;margin-bottom:-25px}.ui-timepicker-div dl td{font-size:90%}.ui-timepicker-div .ui-widget-header{margin-bottom:8px}.ui-tpicker-grid-label{background:none;border:0;margin:0;padding:0}.ui_tpicker_microsec,.ui_tpicker_millisec,.ui_tpicker_second{display:none}.ui-accordion-header,.ui-widget-content .ui-accordion-header{font-size:110%;font-weight:700}video{width:480px}.btn,button{border-color:#adadad #adadad #949494;font-family:Arial,Verdana,Helvetica,sans-serif}.btn.btn-link,button.btn-link{border:0}.btn-group-xs>.btn,.btn-xs{font-size:10.5px;padding:3px 5px}#toolbar .dropdown-menu{border-top-width:1px;font-size:13px}#toolbar.floating{border-radius:0;margin-top:0}.dropdown-menu{border-color:rgba(0,0,0,.2);border-top:0;font-size:12px}.dropdown-menu li{list-style:none outside none}.dropdown-menu li>a{padding:4px 20px}.dropdown-menu li>a:focus,.dropdown-menu li>a:hover{background-image:linear-gradient(180deg,#08c,#0077b3);background-repeat:repeat-x;color:#fff;text-decoration:none}.navbar{color:#333;min-height:20px}.navbar .nav>li{list-style:none outside none;padding:0 .6em}.navbar .nav>li>a{color:#004d99;font-weight:700;padding:.4em .2em}.navbar .nav>li>a:focus,.navbar .nav>li>a:hover{color:#538200}.navbar .nav li .dropdown.active>.dropdown-toggle:focus,.navbar .nav li .dropdown.open.active>.dropdown-toggle:focus,.navbar .nav li .dropdown.open>.dropdown-toggle:focus{background:#e6f0f2 none;box-shadow:none}#header.navbar{margin-bottom:0}#header.navbar-default{background:#e6f0f2;border:0;box-shadow:none}#changelanguage .dropdown-menu>li>a,#changelanguage .dropdown-menu>li>span{padding:5px 15px}#changelanguage .navbar-text{margin:0}#changelanguage .navbar-text span{display:block;line-height:20px}.loggedout{color:#004d99;font-weight:700;padding:.4em .2em}.navbar-static-top .navbar-inner{background:#e6f0f2 none;border:0;box-shadow:none;min-height:0;padding-left:0}.navbar-fixed-bottom .navbar-inner{min-height:0;padding:.4em 0}.navbar-fixed-bottom .nav>li{border-right:1px solid #ccc}.navbar-fixed-bottom .nav>li>a{font-weight:400}.navbar-fixed-bottom .nav>li:last-child{border-right:0}.navbar-fixed-bottom .nav>li.navbar-text{line-height:normal;padding:.4em .7em}.tooltip.bottom .tooltip-arrow{border-bottom-color:#eee}.tooltip.bottom .tooltip-inner{background-color:#fff;border:1px solid rgba(0,0,0,.2);box-shadow:0 5px 10px rgba(0,0,0,.2);color:#000;font-size:120%;padding:1em}.separator{color:#666;padding:0 .2em}.close{-webkit-filter:none;filter:none;float:none;font-weight:400;line-height:1.5;position:inherit;right:auto;text-shadow:none;top:auto}.close,.close:hover{font-size:inherit;opacity:inherit}.close:hover{color:inherit;-webkit-filter:inherit;filter:inherit}.checkbox label,.radio label{margin-left:20px;padding-left:0}.checkbox input[type=checkbox],.radio input[type=radio]{margin-left:0;position:relative}.modal-header .closebtn{margin-top:4px}.closebtn{color:#000;filter:alpha(opacity=20);float:right;font-size:21px;font-weight:700;line-height:1;opacity:.2;text-shadow:0 1px 0 #fff}.closebtn:focus,.closebtn:hover{color:#000;cursor:pointer;filter:alpha(opacity=50);opacity:.5;text-decoration:none}.modal-body{background-color:#fff;overflow-y:auto}.modal-content{background-color:#edf4f6}.btn-group label,.btn-group select{font-size:13px}.tooltip-inner{white-space:pre-wrap}pre{border:0;border-radius:0;display:block;line-height:inherit;margin:0;word-break:break-all;word-wrap:break-word}code,pre{background-color:transparent;color:inherit;font-size:inherit;padding:0}code{border-radius:0}.pagination>li>a,.pagination>li>span{font-weight:700}.waiting{cursor:wait}#jobfailed,#jobpanel,#jobstatus{display:none}#jobstatus{margin:.4em}#jobprogress{background:url(../img/progress.png) -300px 0 no-repeat;border:1px solid #666;display:inline-block;height:10px;width:200px}.progress_panel{border:2px solid #eee;border-radius:5px;clear:both;font-size:120%;margin:1em 0;padding:1em}progress{width:50%}#selections{white-space:normal;width:100%}#selections input{margin:0 2px;vertical-align:middle}#selections span{background-color:#ebf3ff;border-radius:5px;font-size:75%;line-height:240%;margin:3px;padding:3px;white-space:nowrap}#selections span.selected{background-color:#cce0fc}#changepasswordf input[type=password],#changepasswordf input[type=text]{font-family:Courier New,Courier,monospace;font-size:140%;padding:.3em}.floating{box-shadow:0 3px 2px 0 rgba(0,0,0,.5)}.inline{display:inline}.nowrap,.tag_editor{white-space:nowrap}.tag_editor{background:transparent url(../img/edit-tag.png) 0 0 no-repeat;display:block;float:left;height:16px;margin:4px;overflow:hidden;text-indent:100%;width:16px}.browse-controls{margin-left:1.1em;margin-right:.5em;padding-bottom:1em;padding-top:1em}#browse-return-to-results{border-top-left-radius:3px;border-top-right-radius:3px;display:block;text-align:center}.browse-button{color:#004d99;display:inline-block;padding:.4em .6em}.browse-button:hover{background:#fafafa}span.browse-button{background:#fafafa;color:#222}span.circ-hlt{color:#c00;font-weight:700}span.expired{color:#900;font-style:italic}span.name{font-style:italic;font-weight:700}span.permissiondesc{font-weight:400}span.required{color:#c00;font-style:italic;margin-left:.5em}.result-biblio-itemtype{float:right;padding:.5em;margin:.5em;font-size:85%;text-align:center}.result-biblio-itemtype img{display:block;margin:auto;margin-bottom:2px}.browse-label,.browse-prev-next{border:1px solid #b9d8d9}.browse-label{background-color:#e8f0f6;border-top-left-radius:5px;border-top-right-radius:5px}.browse-prev-next{border-bottom-left-radius:5px;border-bottom-right-radius:5px;border-top-width:0}#browse-previous{border-bottom-left-radius:5px;border-right:1px solid #b9d8d9;padding-right:1em}#browse-next{border-bottom-right-radius:5px;border-top-width:0;float:right;padding-right:1em}.loading-overlay{background-color:#fff;cursor:wait;height:100%;left:0;opacity:.7;position:fixed;top:0;width:100%;z-index:3}.loading-overlay div{background:transparent url(../img/loading.gif) 0 0 no-repeat;font-size:175%;font-weight:700;height:2em;left:50%;margin:-1em 0 0 -2.5em;padding-left:50px;position:absolute;top:50%;width:15em}#merge_invoices{display:none;margin:1em auto}#merge{margin:.5em 0 0}#merge_table tr.active td{background-color:#ffc}.renewals{display:block;font-size:.8em;padding:.5em}#transport-types{padding-top:.5px}#i18nMenu .navbar-text .currentlanguage{color:#000;font-weight:700}#i18nMenu a.currentlanguage:link,#i18nMenu a.currentlanguage:visited{font-weight:700}#i18nMenu a .sublanguage-selected{color:#000;font-weight:700}#circ_circulation_issue .onsite_checkout-select,.onsite_checkout-select label{font-size:inherit;font-weight:400}.onsite_checkout{color:#c00}.onsite-checkout-only{background-color:rgba(255,242,206,.5);border:1px solid #fff2ce;border-radius:4px}.branchgriditem{background-color:#fff;border:1px solid #b9d8d9;border-radius:3px;display:table-cell;float:left;margin:3px;padding:.3em}.branchgridrow{display:table-row}.branchselector{display:table}.hq-author{font-weight:700}#cn_browser_table_wrapper>#cn_browser_table{margin:auto;width:90%}#new_rule{background-color:#f4f8f9;border:2px solid #b9d8d9;border-radius:5px;display:none;margin:.3em;padding:.3em}.blocks{margin-bottom:.3em}.remove_rule{font-size:80%;padding-left:.7em}.underline{text-decoration:underline}.overline{text-decoration:overline}.order-control{padding-right:5px}#borrower_message{margin-top:10px}.form-group{margin-bottom:10px}.form-group label{font-weight:700}.modal-textarea{width:98%}#pat_member #patron_list_dialog,#pat_member #searchresults,#patron_search #filters{display:none}#fixedlengthbuilderaction{border:3px solid #e6f0f2;left:80%;padding:5px;position:relative;top:-80px;width:12%}.navbar-default .navbar-nav>.open>a:focus,.navbar-default .navbar-nav>.open>a:hover{background:#e6f0f2 none;box-shadow:none}.navbar-default.navbar-fixed-bottom .navbar-nav>.open>a:focus,.navbar-default.navbar-fixed-bottom .navbar-nav>.open>a:hover{background:transparent none;box-shadow:none}#interlibraryloans #dataPreviewLabel{margin:.3em 0}#interlibraryloans h1{margin:1em 0}#interlibraryloans h2{margin-bottom:20px}#interlibraryloans h3{margin-top:20px}#interlibraryloans .bg-info{overflow:auto;position:relative}#interlibraryloans .format h4{margin-bottom:20px}#interlibraryloans .format h5{margin-top:20px}#interlibraryloans .format input{margin:10px 0}#interlibraryloans .format li{list-style:none}#interlibraryloans #add-new-fields{margin:1em}#interlibraryloans #column-toggle,#interlibraryloans #reset-toggle{font-weight:700;line-height:1.5em;margin:15px 0}#interlibraryloans #freeform-fields .custom-name{margin-right:1em;text-align:right;width:9em}#interlibraryloans #freeform-fields .delete-new-field{margin-left:1em}#interlibraryloans #search-summary{position:absolute;top:50%;-webkit-transform:translateY(-50%);transform:translateY(-50%)}#ill-view-panel{margin-top:15px}#ill-view-panel h3{margin-bottom:10px}#ill-view-panel h4{margin-bottom:20px}#ill-view-panel .notesopac{display:inline-block}#ill-view-panel .rows div{height:1em;margin-bottom:1em}#requestattributes{font-family:monospace;line-height:1.3em}#ill-requests{width:100%!important}#helper span,#logged-in-info-full{display:none}.loggedin-menu-label{color:#777;font-size:12px;line-height:1.42857143;padding:4px 12px;white-space:nowrap}.loggedin-menu-label span{color:#000;font-weight:700}.loggedin-menu-label.divider{padding:0}ul.buttons-list{padding:0;margin-bottom:30px}ul.buttons-list li{list-style-type:none}ul.buttons-list li a.circ-button{background-color:#f4f8f9;background-position:5px 3px;background-repeat:no-repeat;border:2px solid #b9d8d9;border-radius:6px;box-sizing:content-box;color:#000;display:block;font-size:110%;font-weight:700;max-width:260px;margin:.5em 0;padding:8px;text-decoration:none}ul.buttons-list li a.circ-button:hover{border-color:#538200;color:#538200}@media (min-width:200px){.navbar-nav>li{float:left}.navbar-right{float:right!important;margin-right:-15px}.navbar-nav{float:left;margin:0}.navbar-nav .open .dropdown-menu{background-color:#fff;border:1px solid rgba(0,0,0,.15);box-shadow:0 6px 12px rgba(0,0,0,.175);float:left;position:absolute;width:auto}.navbar-nav .open .dropdown-menu.dropdown-menu-left{left:auto;right:0}.navbar-nav .open .dropdown-menu.dropdown-menu-right{right:auto}.navbar-default .navbar-nav .open .dropdown-menu>li>a:focus,.navbar-default .navbar-nav .open .dropdown-menu>li>a:hover{background-color:#0081c2;background-image:linear-gradient(180deg,#08c,#0077b3);background-repeat:repeat-x;color:#fff;text-decoration:none}}@media (min-width:800px){#helper i{display:none}#helper span,#logged-in-info-full{display:inline}#logged-in-info-brief,.loggedin-menu-label{display:none}}
1
@charset "UTF-8";@import url("../../lib/yui/reset-fonts-grids.css") screen;::-moz-selection{background:#538200;color:#fff}::selection{background:#538200;color:#fff}a.btn,a:link,a:visited{color:#004d99;text-decoration:none}a.btn:link,a.btn:visited{color:#333}a:active,a:hover{color:#538200;text-decoration:none}a:hover .term{color:#ff9090}a .btn-link:link,a .btn-link:visited{color:#004d99}a .btn-link:hover{color:#538200}a.cancel{padding-left:1em}a.cartRemove{color:#c33;font-size:90%;margin:0;padding:0}a.close:hover{color:#538200}a.csv{background-image:url(../img/famfamfam/silk/page_white_excel.png)}a.dropdown-toggle{white-space:nowrap}a.incart{color:#666}a.debit,a.overdue{color:#c00}a.popup{background:transparent url(../img/pop-up-link.png) 100% no-repeat;padding-right:15px}a.disabled{color:#999}a.document{background-position:0 middle;background-repeat:no-repeat;display:inline-block;min-height:20px;padding-left:20px}a.highlight_toggle{display:none}a .localimage img{border:1px solid #00c;margin:0 .5em;padding:.3em}a.pdf{background-image:url(../img/famfamfam/silk/page_white_acrobat.png)}a.submit{background:linear-gradient(180deg,#fff 0,#f7f7f7 35%,#e0e0e0);border:1px outset #999;border-left-color:#666;border-top-color:#666;color:#333;padding:.25em;display:inline-block}a.submit:active{border:1px inset #999}a.submit:disabled{background:#eee none;border:1px solid silver;color:#999}a.term{text-decoration:underline}a.xml{background-image:url(../img/famfamfam/silk/page_white_code.png)}aside h5{font-size:100%;margin:.5em 0}aside fieldset.brief{margin:0;padding:.4em .7em}aside fieldset.brief fieldset{margin:0;padding:.5em 0}aside fieldset.brief fieldset legend{font-size:85%}aside fieldset.brief li.checkbox label,aside fieldset.brief li.dateinsert label,aside fieldset.brief li.dateinsert span.label{display:inline}aside fieldset.brief li.radio{padding:.7em 0}aside fieldset.brief li.radio input{padding:.3em 0}aside fieldset.brief li.radio label,aside fieldset.brief li.radio span.label{display:inline}aside fieldset.brief ol{font-size:85%;margin:0;padding:0}aside fieldset.brief input[type=text],aside fieldset.brief select{width:100%}button{background:linear-gradient(180deg,#fff 0,#f7f7f7 35%,#e0e0e0);border:1px outset #999;border-left-color:#666;border-top-color:#666;color:#333;padding:.25em}button:active{border:1px inset #999}button:disabled{background:#eee none;border:1px solid silver;color:#999}button.closebtn{background:transparent;border:0;cursor:pointer;padding:0}main .yui-b fieldset.brief input[type=text],main .yui-b fieldset.brief select{width:auto}table{border-collapse:collapse;border-right:1px solid #bcbcbc;border-top:1px solid #bcbcbc}table .btn-group{white-space:nowrap}table .btn-group .btn{display:inline-block;float:none}table.indexes td{vertical-align:middle}table>caption span.actions{font-size:66%;font-weight:400;margin:0 .5em 0 0}table.invis,table.invis td,table.invis tr{border:0}td,th{border-bottom:1px solid #bcbcbc;border-left:1px solid #bcbcbc;padding:.2em .3em}td{background-color:#fff;vertical-align:top}td.actions{white-space:nowrap}td.borderless{border:0 none;border-collapse:separate}td.data{font-family:Courier New,Courier,monospace}td.data,td.total{text-align:right}td input.approve{background-color:#ffc}th{background-color:#e8e8e8;font-weight:700;text-align:center}th.data{font-family:Courier New,Courier,monospace;text-align:right}table+table{margin-top:1em}body{font-family:Arial,Verdana,Helvetica,sans-serif;padding:0 0 4em;text-align:left}br.clear{clear:both;line-height:1px}form{display:inline}form.confirm{display:block;text-align:center}h1{font-size:161.6%;font-weight:700}h1#logo{border:0 none;float:left;margin:.75em .3em .75em .7em;padding:0;width:180px}h2{font-size:146.5%}h2,h3{font-weight:700}h3{font-size:131%}h4{font-size:116%}h4,h5{font-weight:700}h5{font-size:100%}h6{font-size:93%;font-weight:700}h1,h2,h3,h4,h5,h6{margin:.3em 0}hr{clear:both}p{margin:.5em 0}strong{font-weight:700}em strong,strong em{font-style:italic;font-weight:700}cite,em{font-style:italic}input,textarea{line-height:normal;padding:2px 4px}input:focus,textarea:focus{border-color:#538200;border-radius:4px;border-style:solid}input[type=checkbox],input[type=radio]{margin:0;vertical-align:middle}input[type=button]:active,input[type=submit]:active{border:1px inset #999}input[type=button],input[type=reset],input[type=submit]{background:linear-gradient(180deg,#fff 0,#f7f7f7 35%,#e0e0e0);border:1px outset #999;border-left-color:#666;border-top-color:#666;color:#333;padding:.25em}input[type=button]:active,input[type=reset]:active,input[type=submit]:active{border:1px inset #999}input[type=button]:disabled,input[type=reset]:disabled,input[type=submit]:disabled{background:#eee none;border:1px solid silver;color:#999}input.alert{background-color:#ff9;border-color:#900}input.submit{background:linear-gradient(180deg,#fff 0,#f7f7f7 35%,#e0e0e0);border:1px outset #999;border-left-color:#666;border-top-color:#666;color:#333;padding:.25em}input.submit:active{border:1px inset #999}input.submit:disabled{background:#eee none;border:1px solid silver;color:#999}input.warning{background:#fff url(../img/famfamfam/silk/error.png) no-repeat 4px;padding:.25em .25em .25em 25px}.label,label{color:#000;display:inline;font-size:inherit;font-weight:400;max-width:inherit;padding:0;vertical-align:middle}.label input[type=checkbox],.label input[type=radio],label input[type=checkbox],label input[type=radio]{margin-top:0}.label.circ_barcode,label.circ_barcode{font-size:105%;font-weight:700}.label.permissioncode,label.permissioncode{font-style:italic}.label.permissioncode:before,label.permissioncode:before{content:"("}.label.permissioncode:after,label.permissioncode:after{content:")"}.label.required,label.required{color:#c00}.subfield-label{font-style:italic}.subfield-label span.subfield-code{font-weight:700}.members-update-table{padding-top:10px}#navmenulist li{border-bottom:1px solid #eee;list-style-image:url(../img/arrow-bullet.gif);padding:.2em 0}#navmenulist li a{text-decoration:none}#navmenulist li a.current{font-weight:700}#doc,#doc1,#doc2,#doc3{padding-top:1em}.main{margin-top:1em}#login_controls{padding:.4em .5em;position:absolute;right:.5em}ul{padding-left:1.1em}ul li{list-style-type:disc}ul li input.submit{font-size:87%;padding:2px}ul li li{list-style-type:circle}ul .toolbar{padding-left:0}ul .toolbar button{font-family:Arial,Verdana,Helvetica,sans-serif;padding-bottom:2px}ul .toolbar li{display:inline;list-style:none}ul.budget_hierarchy{margin-left:0;padding-left:0}ul.budget_hierarchy li{display:inline}ul.budget_hierarchy li:after{content:" -> "}ul.budget_hierarchy li:first-child:after,ul.budget_hierarchy li:last-child:after{content:""}ul.fa-ul li{list-style-type:none}ul.ui-tabs-nav li{list-style:none}ol{padding-left:1.5em}ol li{list-style:decimal}ol.bibliodetails{float:left;margin:0 0 1em 1em}ol.bibliodetails li{border-bottom:1px solid #e8e8e8;list-style-type:none;padding:.1em}ol.bibliodetails span.label{border-right:1px solid #e8e8e8;float:left;font-weight:700;margin-right:1em;width:12em}.gradient{background-image:linear-gradient(180deg,#e6f0f2 1%,#fff 99%);display:inline-block;width:100%}.cart-controls{border-top:1px solid #e8e8e8;padding:7px 0}.clearfix{display:inline-block}.clearfix:after{clear:both;content:".";display:block;height:0;visibility:hidden}#editions table,#editions td{border:0}.highlighted-row,.highlighted-row td{background-color:#ffd000!important}.warned-row,.warned-row td{background-color:#ff9000!important}.high-warned-row,.high-warned-row td{background-color:red!important}tbody tr:nth-child(odd) td{background-color:#f3f3f3;border:1px solid #bcbcbc;border-right:1px solid #bcbcbc}.overdue td.od{color:#c00;font-weight:700}tr.clickable{cursor:pointer}tr.expired td{color:#999}tr.highlight td{background-color:#f6f6f6;border-color:#bcbcbc}tr.highlight th[scope=row]{background-color:#ddd;border-color:#bcbcbc}tr.highlight table.invis td{border:0}tr.odd.onissue td{background-color:#ffffe1}tr.ok:nth-child(2n) td,tr.ok:nth-child(odd) td,tr.ok td,tr.onissue td{background-color:#ffc}tr.reserved td{background-color:#eeffd4}tr.transfered td{background-color:#e8f0f6}tr.warn:nth-child(odd) td,tr.warn td{background-color:#ff9090}.table_borrowers tr:hover td{background-color:#ff9}tfoot td{background-color:#f3f3f3;font-weight:700}caption{color:#000;font-size:133.9%;font-weight:700;margin:.3em 0}.problem{background-color:#ffc;color:#900;font-weight:700;line-height:1.7em}fieldset{background-color:#f4f8f9;border:2px solid #b9d8d9;border-radius:5px;margin:1em 1em 1em 0;padding:1em}fieldset+fieldset.action{padding-top:20px}fieldset .lastchecked{border-bottom-left-radius:0;border-bottom-right-radius:0;border-bottom-width:0;margin-bottom:0}fieldset.action{background-color:transparent;border:0;clear:both;float:none;margin:.9em 0 0;padding:.4em;width:auto}fieldset.brief{border:2px solid #b9d8d9}fieldset.brief div .hint{margin-bottom:.4em}fieldset.brief label{display:block;font-weight:700;padding:.3em 0}fieldset.brief label.inline{display:inline;float:none;margin-left:1em;width:auto}fieldset.brief li[aria-disabled=true]{color:#999}fieldset.brief li.inline{display:inline;float:none;margin-left:1em;width:auto}fieldset.brief li,fieldset.brief ol{list-style-type:none}fieldset.brief span .label{display:block;font-weight:700;padding:.3em 0;text-align:left}fieldset.rows{border:2px solid #b9d8d9;border-width:1px;clear:left;float:left;font-size:90%;margin:.9em 0 0;padding:0;width:100%}fieldset.rows fieldset{background-color:transparent;border-width:1px;margin:1em;padding:.3em}fieldset.rows fieldset.action{padding:1em}fieldset.rows.inputnote{clear:left;float:left;margin:1em 0 0 11em}fieldset.rows.left label{text-align:left;width:8em}fieldset.rows.left li{padding-bottom:.4em}fieldset.rows.left span label{text-align:left;width:8em}fieldset.rows.ui-accordion-content{border-top-left-radius:0;border-top-right-radius:0;margin:0;padding:0;width:auto}fieldset.rows.ui-accordion-content table{margin:0}fieldset.rows.unselected{background-color:#fff;border:0;border-width:0}fieldset.rows caption{font-size:120%}fieldset.rows div .hint{margin-bottom:.4em;margin-left:7.5em}fieldset.rows label{float:left;font-weight:700;margin-right:1em;text-align:right;width:9em}fieldset.rows label .error{float:none;margin-left:1em;width:auto}fieldset.rows label.inline{display:inline;float:none;margin-left:1em}fieldset.rows label .yesno{float:none;width:auto}fieldset.rows legend{font-size:110%;font-weight:700;margin-left:1em}fieldset.rows li{clear:left;float:left;list-style-type:none;padding-bottom:1em;width:100%}fieldset.rows li[aria-disabled=true]{color:#999}fieldset.rows li.radio{padding-left:9em;width:auto}fieldset.rows li.radio input+label{margin-left:0;padding-left:0}fieldset.rows li.radio label{float:none;margin:0 0 0 1em;width:auto}fieldset.rows li input+label{margin-left:0;padding-left:0}fieldset.rows ol{list-style-type:none;padding:1em 1em 0}fieldset.rows ol.radio label{float:none;margin-left:20px;margin-right:30px;padding-left:0;vertical-align:middle;width:auto}fieldset.rows ol.radio label.radio{float:left;margin-right:1em;margin-top:0;width:9em}fieldset.rows ol.radio input[type=checkbox],fieldset.rows ol.radio input[type=radio]{margin-left:-20px}fieldset.rows p{margin:1em 0 1em 1em}fieldset.rows span.label{float:left;font-weight:700;margin-right:1em;text-align:right;width:6em}fieldset.rows table{clear:both;font-size:105%;margin:1em 0 1em 1em}fieldset.rows table.mceListBox{margin:0}fieldset.rows td label{float:none;font-weight:400;width:auto}fieldset.rows .inputnote{clear:left;float:left;margin:1em 0 0 11em}fieldset.rows+h3{clear:both;padding-top:.5em}#multi_receiving fieldset.rows label{width:50%}.yui-u div .hint{margin-bottom:.4em}.yui-u fieldset.rows div.hint{margin-left:7.5em}.yui-u fieldset.rows label,.yui-u fieldset.rows span.label{width:10em}.yui-u .rows li p label.widelabel,legend{width:auto}legend{background-color:#fff;border:2px solid #b9d8d9;border-radius:3px;font-size:123.1%;font-weight:700;padding:.2em .5em}details>summary{cursor:pointer}details>summary:before{content:"\f0da";display:inline-block;font-family:FontAwesome;width:1em}details>summary.checkouts-by-itemtype li{display:inline-block}details[open]>summary:before{content:"\f0d7"}#floating-save{background-color:rgba(185,216,217,.6);bottom:3%;position:fixed;right:1%;width:150px}#breadcrumbs{background-color:#e6f0f2;clear:both;font-size:90%;margin:0;padding:.2em .5em .4em 10px}#header+#breadcrumbs{margin-top:1em}#header>.container-fluid{padding:0}div.action{background-color:transparent;border:0;clear:both;float:none;margin:.9em 0 0;padding:.4em;width:auto}div .circmessage{margin-bottom:.3em;padding:0 .4em .4em}div .circmessage:first-child{margin-top:1em}div.error{background-color:#ff9;border:2px dashed #900;margin:1em;padding:.5em}div.first fieldset{margin-right:0}div.help{margin:.9em 0 0}div.justify{text-align:justify}div.message{background:linear-gradient(180deg,#fff 0,#f4f6fa 2%,#eaeef5 23%,#e8edf6 94%,#cddbf2);border:1px solid #bcbcbc;text-align:center;width:55%}div.message h5,div.message ul{padding-left:25%;text-align:left}div.message ul+h4{margin-top:.7em}div.note{background:linear-gradient(180deg,#f4f6fa 0,#e8edf6);border:1px solid #bcbcbc;margin:.5em 0;padding:.5em}div.note i.fa-exclamation{color:#c00;font-style:italic;padding:0 .3em}div.rules{display:block}div.results,div[class$=_table_controls]{padding:.7em 0}div.rule{background-color:#f4f8f9;border:2px solid #b9d8d9;border-radius:5px;margin:.3em;padding:.3em}div.lastchecked{border:2px solid #bcdb89;border-bottom-left-radius:5px;border-bottom-right-radius:5px;padding:.2em 1em}div.listgroup{clear:left}div.listgroup h4{font-style:italic}div.listgroup h4 a,div.listgroup input{font-size:80%}div.sysprefs h3{margin:.2em 0 .2em .4em}div.sysprefs dl{margin-left:1.5em}div.sysprefs.hint{float:right;margin:.7em;padding:.5em;width:25%}div.rows{clear:left;float:left;margin:0;padding:0;width:100%}div.rows+div.rows{margin-top:.6em}div.rows li{border-bottom:1px solid #eee;clear:left;float:left;list-style-type:none;padding-bottom:.2em;padding-top:.1em;width:100%}div.rows ol{list-style-type:none;padding:.5em 1em 0 0}div.rows ol li li{border-bottom:0}div.rows span.label{float:left;font-weight:700;margin-right:1em;padding-top:0;text-align:left;width:9em}div.pages{margin:.5em 0}div.pages a{font-weight:700;padding:1px 5px;text-decoration:none}div.pages a:link,div.pages a:visited{background-color:#eee;color:#36c}div.pages a:active,div.pages a:hover{background-color:#ffc}div.pages .current,div.pages .currentPage{background-color:#e6fcb7;color:#666;font-weight:700;padding:1px 5px}div.pages .inactive{background-color:#f3f3f3;color:#bcbcbc;font-weight:700;padding:1px 5px}div .browse{margin:.5em 0}#header_search{background-position:.5em .5em;background-repeat:no-repeat;float:left;margin:.3em 0 .5em}#header_search input{font-size:1.3em}#header_search input.submit{font-size:1em}#header_search div.residentsearch{border:0;border-bottom:1px solid #85ca11;padding:0 0 .2em}#header_search ul.ui-tabs-nav{margin-left:1em;padding-top:0}#header_search ul.ui-tabs-nav li.ui-state-default{background:transparent none;border:0;top:0}#header_search ul.ui-tabs-nav li.ui-state-default a{padding:.3em .6em}#header_search ul.ui-tabs-nav li.ui-tabs-active{background-color:#fffff1;border:1px solid #85ca11;border-top-width:0;top:-2px}#header_search ul.ui-tabs-nav li.ui-tabs-active a{text-decoration:none}#header_search .ui-corner-top{border-radius:0 0 4px 4px}#header_search>div,#header_search>div>li,#header_search>ul,#header_search>ul>li{display:none}#header_search>div:first-of-type,#header_search>div>li:first-of-type,#header_search>ul:first-of-type,#header_search>ul>li:first-of-type{display:block}.head-searchbox{width:30em}#checkouts,#reserves{border:1px solid #b9d8d9;padding:1em}.tip{color:gray;font-size:93%}.single-line{white-space:nowrap}.ex{font-family:Courier New,Courier,monospace}.ex,dt{font-weight:700}dd{font-size:90%;font-weight:400;padding:.2em;text-indent:2.5em}#toolbar,.btn-toolbar{background-color:#edf4f6;border:1px solid #e6f0f2;border-radius:5px 5px 0 0;margin:0;padding:5px}#disabled2 a,#disabled a,#disabled a:hover{color:#999}.patroninfo{margin-top:-.5em}.patroninfo h5{border-right:1px solid #b9d8d9;margin-bottom:0;padding-bottom:.5em;padding-left:-.5em;padding-top:.3em}.patroninfo h5:empty{border-right:0}.patroninfo ul{border:0;border-bottom:0;border-right:1px solid #b9d8d9;border-top:0;margin:0;padding:0}.patroninfo ul li{list-style-type:none;margin:0}.patroninfo+#menu{margin-right:0}#patronbasics div{background:transparent url(../img/patron-blank.min.svg) 10px 5px no-repeat;height:125px;padding:0;width:105px}#patronbasics div,#patronimage{border:1px solid #ccc;margin:.3em 0 .3em .3em}#patronimage{max-width:140px;padding:.2em}.patronviews{border-right:1px solid #000;border-top:1px solid #000;margin-bottom:.5em;padding:.5em 0}.column-tool{font-size:80%}.hint{color:#666;font-size:95%}.yui-b fieldset.brief{padding:.4em .7em}.yui-b fieldset.brief fieldset{margin:0 .3em;padding:.5em}.yui-b fieldset.brief fieldset legend{font-size:85%}#tools_holidays .yui-b fieldset.brief li.checkbox input{margin-left:0}.yui-b fieldset.brief li.checkbox label{display:inline}#tools_holidays .yui-b fieldset.brief li.checkbox label{margin-left:20px}.yui-b fieldset.brief li.dateinsert label,.yui-b fieldset.brief li.dateinsert span.label{display:inline}.yui-b fieldset.brief li.radio{padding:.7em 0}.yui-b fieldset.brief li.radio input{padding:.3em 0}#tools_holidays .yui-b fieldset.brief li.radio input{margin-left:0}.yui-b fieldset.brief li.radio label{display:inline}#tools_holidays .yui-b fieldset.brief li.radio label{margin-left:20px}.yui-b fieldset.brief li.radio label span.label{display:inline}.yui-b fieldset.brief ol{font-size:85%;margin:0;padding:0}.yui-b fieldset.brief input[type=text],.yui-b fieldset.brief select{width:100%}.yui-b fieldset.rows div.hint{margin-left:10.5em}#yui-main .yui-b fieldset.brief input[type=text],#yui-main .yui-b fieldset.brief select,.yui-b fieldset.rows td label,.yui-b fieldset.rows td span.label{width:auto}.btn-toolbar fieldset.action{margin-top:0}.btn-toolbar .dropdown-menu{font-size:13px}.rows .label{white-space:normal}.checkedout{color:#999;font-style:italic}.subfield_not_filled{background-color:#ff9}.content_hidden{display:none;visibility:hidden}.content_visible{display:block;visibility:visible}#z3950searcht table{border:0;padding:20px}#z3950_search_targets{height:338px;overflow-y:auto}#z3950_search_targets_acq{height:308px;overflow-y:auto}.z3950checks{padding-left:1em}.error{color:#c00}.status_ok{background-color:#90ee90}.status_warn{background-color:red}i.error{color:#c00}i.success{color:green}i.warn{color:orange}.checkout-setting{font-size:85%;padding-top:.3em}.checkout-setting input{vertical-align:middle}.checkout-setting label{font-size:inherit;font-weight:400}.checkout-settings{background-color:#f4f8f9;border-radius:0;border-top:2px solid #b9d8d9;display:none;margin-left:-1em;margin-right:-1em;margin-top:1em;padding:1em 1em 0}#show-checkout-settings{margin-top:.5em}.blocker,.inaccurate-item-statuses{color:#900}.circmessage li{list-style:url(../img/arrow-bullet.gif);margin-bottom:.2em}#circ_needsconfirmation{margin:auto}.dialog{border:1px solid #bcbcbc;border-radius:2px;margin:1em auto;padding:.5em;text-align:center;width:65%}.dialog a.approve{display:inline-block}.dialog a.approve,.dialog button{background:#fff none;border:1px outset #999;border-left-color:#666;border-top-color:#666;margin:.4em;padding:.4em;white-space:pre-line}.dialog a.approve:active,.dialog button:active{border:1px inset #999}.dialog a.approve:hover,.dialog button:hover{background-color:#ffc}.dialog h2,.dialog h3,.dialog h4{margin:auto;text-align:center}.dialog input{background-color:#fff;border:1px solid #bcbcbc;margin:.4em;padding:.4em .4em .4em 25px}.dialog input:hover{background-color:#ffc}.dialog input[type=submit]{background:#fff none}.dialog li{list-style-position:inside}.dialog table{margin:.5em auto}.dialog table td{text-align:left}.dialog table th{text-align:right}.alert{background:linear-gradient(180deg,#fef8d3 0,#ffec91 9%,#ffed87 89%,#f9dc00);border:1px solid #e0c726;color:inherit;text-align:center;text-shadow:none}.alert strong{color:#900}.alert .closebtn{line-height:20px;position:relative;right:-21px;top:-2px}.approve i.fa,.success i.fa{color:green}.deny i.fa{color:#c00}.new i.fa{color:#425faf}.accesskey{text-decoration:underline}.missing,.term{background-color:#ffc}.term{color:#900}.shelvingloc{display:block;font-style:italic}#menu{border-right:1px solid #b9d8d9;margin-right:.5em;padding-bottom:2em;padding-top:1em}#menu li a{background:linear-gradient(180deg,#e8f0f6 0,#e8f0f6 96%,#c1c1c1);border:1px solid #b9d8d9;border-bottom-left-radius:5px;border-top-left-radius:5px;display:block;font-size:111%;margin:.5em 0;margin-right:-1px;padding:.4em .3em;text-decoration:none}#menu li a:hover{background:linear-gradient(180deg,#fafafa 0,#fff 96%,#e6e6e6 97%,#ccc 99%,#c1c1c1)}#menu li.active a,#menu li a:hover{border-bottom:1px solid #85ca11;border-left:1px solid #85ca11;border-top:1px solid #85ca11}#menu li.active a{background-color:#fff;background-image:none;border-right:0;color:#000;font-weight:700}#menu li.active a:hover{background-color:#fff;color:#538200}#menu ul li{list-style-type:none}#logo{background:transparent url(../img/koha-logo-medium.png) no-repeat scroll 0;margin:.75em .3em .75em .7em}#logo a{border:0;cursor:pointer;display:block;height:0!important;margin:0;overflow:hidden;padding:44px 0 0;text-decoration:none;width:180px}#closewindow{margin-top:2em;text-align:center}#closewindow a{font-weight:700}.barcode{font-size:200%;vertical-align:middle}li.email{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.patronbriefinfo li.email{font-size:87%;padding:0 10px 0 0;width:90%}.empty{color:#ccc}.address{font-size:110%}.address li{list-style-type:none}.title{font-size:105%;font-weight:700}.hold{float:right;font-size:90%;margin:0}.thumbnail{display:block;margin:auto}.thumbnail>li{list-style-type:none}#searchresults ul li{clear:left;font-size:90%;list-style:url(../img/item-bullet.gif);padding:.2em 0}#searchresults ul li img{float:left;margin:3px 5px 3px -5px}#searchresults ul span.status{clear:left;color:#900;display:block}#searchresults ul span.unavailable{clear:left;display:block}#searchresults ul table td{vertical-align:top}#searchresults.unavailability strong{display:block}#searchheader{background-color:#e6f0f2;border:1px solid #b9d8d9;border-radius:5px 5px 0 0;font-size:80%;margin:0 0 .5em -1px;padding:.4em 0 .4em 1em}#searchheader.floating{border-radius:0;margin-top:0}#searchheader .btn-group>.btn:first-child{margin-left:.7em}#searchheader form{float:right;padding:5px 5px 3px 0}#searchheader form.fz3950{float:right;font-size:125%;padding:0 0 0 5em}#searchheader form.fz3950bigrpad{float:right;font-size:125%;padding:5px 25em 0 0}#search-facets{border:1px solid #b9d8d9;border-radius:5px 5px 0 0}#search-facets h4{background-color:#e6f0f2;border-bottom:1px solid #b9d8d9;border-radius:5px 5px 0 0;font-size:90%;margin:0;padding:.4em .2em;text-align:center}#search-facets ul{margin:0;padding:.3em}#search-facets ul li{font-weight:700;list-style-type:none}#search-facets li li{font-size:85%;font-weight:400;margin-bottom:2px;padding:.1em .2em}#search-facets li.showmore{font-weight:700;text-indent:1em}.facet-count{display:inline-block}#bookcoverimg{text-align:center}.searchhighlightblob{font-size:75%;font-style:italic}#displayexample{background-color:#ccc;margin-bottom:10px;padding:5px}#irregularity_summary{vertical-align:top}#toplevelmenu{padding:0}#CheckAll,#CheckNone,#CheckPending{font-weight:400;margin:0 .5em 0 0}.dmg,.lost,.wdn{color:#900;display:block}.datedue{color:#999;display:block;font-style:italic}.credit,.waitinghere{color:#690}#mainuserblock{border:1px solid #e8e8e8;margin-top:.5em;padding:.5em}.labeledmarc-table{border:0}.labeledmarc-label{border:0;color:#000;font-size:11pt;font-style:italic;padding:5}.labeledmarc-value{border:0;color:#000;font-size:10pt;padding:5}#marcPreview table{border:0;font-family:Courier New,Courier,monospace;font-size:95%;margin:.7em 0 0}#marcPreview tbody tr:nth-child(odd) td{background-color:#fff}#marcPreview td,#marcPreview th{border:0;padding:2px;vertical-align:top}#marcPreview th{background-color:#fff;text-align:left;white-space:nowrap}#marcPreview.modal-dialog,.modal-dialog.modal-wide{width:80%}@media (max-width:767px){#marcPreview{margin:0;width:auto}}#cartDetails{background-color:#fff;border:1px solid #739acf;box-shadow:1px 1px 3px 0 #666;color:#000;display:none;margin:0;padding:10px;text-align:center;width:180px;z-index:2}#cartmenulink{background:transparent url(../img/cart-small.gif) 0 no-repeat;padding-left:15px}#basketcount span{display:inline;font-size:90%;font-weight:400;padding:0}#moremenu{display:none}.results_summary{color:#707070;display:block;font-size:85%;padding:0 0 .5em}.results_summary a{font-weight:400}.results_summary .label{color:#202020}.child_fund_amount{font-style:italic}.number_box{font-size:105%;line-height:200%}.number_box a,.number_box span{background-color:#e4ecf5;border:1px solid #a4bedd;border-radius:4px;font-weight:700;padding:.1em .4em;text-decoration:none}.number_box a:hover,.number_box span:hover{background-color:#ebeff7}.container{border:1px solid #eee;margin:1em 0;padding:1em}.import_export{position:relative}.import_export .export_ok{background:#e3e3e3 none;border:0;cursor:pointer;margin-left:20px;padding:10px}.import_export .import_export_options{background:#fff;border:1px solid #cdcdcd;left:60px;padding:10px;position:absolute;top:0;width:300px;z-index:1}.import_export_options{background:#e3e3e3 none;border:0;cursor:pointer;margin-left:20px;padding:10px}.import_export_options fieldset.rows li label{width:16em}.import_export_options .importing{background:none;padding:inherit}.form_import fieldset.rows li label{width:auto}.form_import .input_import{border:1px solid #bcbcbc}.importing{position:relative}.importing .importing_msg{padding-bottom:10px;padding-left:10px}.field_hint{color:gray;font-style:italic;padding-left:1em}.m880{display:block;float:right;padding-left:20px;text-align:right;width:50%}.advsearch{margin:0}.advsearch table{border-collapse:separate;border-spacing:5px;border-width:0}.advsearch td{border:1px solid #eee;padding:.3em .4em}#circ_circulation_issue{position:relative}#clearscreen{position:absolute;right:0;top:0}#clearscreen a{background-color:#eee;border-radius:0 0 0 5px;color:#ccc;display:block;font-size:160%;font-weight:700;padding:0 .7em .2em;text-decoration:none;text-shadow:0 -1px 0 #666}#clearscreen a:hover{color:#c00}.pager{background-color:#e8e8e8;border:1px solid #bcbcbc;border-radius:5px;display:inline-block;font-size:85%;margin:.4em 0;padding:.3em .5em}.pager img{vertical-align:middle}.pager img.last{padding-right:5px}.pager input.pagedisplay{background-color:transparent;border:0;font-weight:700;text-align:center}.pager p{margin:0}.no-image{background-color:#fff;border:1px solid #aaa;border-radius:3px;color:#979797;display:block;font-size:86%;font-weight:700;text-align:center;width:75px}#acqui_order_supplierlist>div.supplier{border:1px solid #eee;margin:.5em;padding:1em}#acqui_order_supplierlist>div>div>.baskets{margin-top:.5em}#acqui_order_supplierlist>div>span.action{margin-left:5em}#acqui_order_supplierlist>div>span.suppliername{display:inline;font-size:1.7em;margin-bottom:.5em}.supplier-contact-details{float:left}#ADD-contact{margin:0 0 8px 8px}#contact-template{display:none}.ui-widget-content{background:#fff none;border:1px solid #b9d8d9;color:#222}.ui-widget-header{background:#e6f0f2 none;border:1px solid #b9d8d9;color:#222;font-weight:700}.ui-state-default,.ui-widget-content .ui-state-default,.ui-widget-header .ui-state-default{background:#f4f8f9 none;border:1px solid #b9d8d9;color:#555;font-weight:400}.ui-state-focus,.ui-state-hover,.ui-widget-content .ui-state-focus,.ui-widget-content .ui-state-hover,.ui-widget-header .ui-state-focus,.ui-widget-header .ui-state-hover{background:#e6f0f2 none;border:1px solid #b9d8d9;color:#212121;font-weight:400}.ui-state-active,.ui-widget-content .ui-state-active,.ui-widget-header .ui-state-active{background:#fff none;border:1px solid #aaa;color:#212121;font-weight:400}.ui-state-highlight,.ui-widget-content .ui-state-highlight,.ui-widget-header .ui-state-highlight{background:#fff4c6;border:1px solid #fed22f;color:#363636}.ui-state-error,.ui-widget-content .ui-state-error,.ui-widget-header .ui-state-error{border:1px solid #cd0a0a;background:#fef1ec;color:#cd0a0a}.ui-autocomplete{box-shadow:2px 2px 2px rgba(0,0,0,.3);cursor:default;position:absolute}.ui-autocomplete.ui-widget-content .ui-state-hover{background:#e6f0f2 none;border:1px solid #b9d8d9;color:#212121;font-weight:400}.ui-autocomplete-loading{background:#fff url(../img/spinner-small.gif) 100% no-repeat}.ui-menu li{list-style:none}.ui-tabs-nav .ui-tabs-active a,.ui-tabs-nav a:active,.ui-tabs-nav a:focus,.ui-tabs-nav a:hover,.ui-tabs-nav span.a{background:none repeat scroll 0 0 transparent;outline:0 none}.ui-tabs-nav.ui-widget-header{background:none;border:0}.ui-tabs .ui-tabs-nav li{background:#e6f0f2 none;border:1px solid #b9d8d9;margin-right:.4em;top:1px}.ui-tabs .ui-tabs-nav li.ui-tabs-active{background-color:#fff;border:1px solid #b9d8d9;border-bottom-width:0}.ui-tabs .ui-tabs-nav li.ui-tabs-active a{color:#000;font-weight:700}.ui-tabs .ui-tabs-nav li.ui-tabs-active.ui-state-hover{background:#fff none}.ui-tabs .ui-tabs-nav li.ui-state-default.ui-state-hover{background:#edf4f5 none}.ui-tabs .ui-tabs-panel{border:1px solid #b9d8d9}.ui-tabs.ui-widget-content{background:transparent none;border:0}.ui-tabs .ui-state-default a,.ui-tabs .ui-state-default a:link,.ui-tabs .ui-state-default a:visited{color:#004d99}.ui-tabs .ui-state-hover a,.ui-tabs .ui-state-hover a:link,.ui-tabs .ui-state-hover a:visited{color:#538200}.ui-widget,.ui-widget button,.ui-widget input,.ui-widget select,.ui-widget textarea{font-family:inherit;font-size:inherit}.statictabs ul{background:none repeat scroll 0 0 transparent;border:0 none;border-bottom-left-radius:4px;border-bottom-right-radius:4px;border-top-left-radius:4px;border-top-right-radius:4px;color:#222;font-size:100%;font-weight:700;line-height:1.3;list-style:none outside none;margin:0;outline:0 none;padding:.2em .2em 0;text-decoration:none}.statictabs ul:after{clear:both}.statictabs ul:after,.statictabs ul:before{content:"";display:table}.statictabs ul li{background:none repeat scroll 0 0 #e6f0f2;border:1px solid #b9d8d9;border-bottom:0 none;border-top-left-radius:4px;border-top-right-radius:4px;color:#555;float:left;font-weight:400;list-style:none outside none;margin-bottom:0;margin-right:.4em;padding:0;position:relative;top:1px;white-space:nowrap}.statictabs ul li.active{background-color:#fff;color:#212121;font-weight:400;padding-bottom:1px}.statictabs ul li.active a{background:none repeat scroll 0 0 transparent;color:#000;cursor:text;font-weight:700;outline:0 none;top:1px}.statictabs ul li a{color:#004d99;cursor:pointer;float:left;padding:.5em 1em;text-decoration:none}.statictabs ul li a:hover{background-color:#edf4f5;border-top-left-radius:4px;border-top-right-radius:4px;color:#538200}.statictabs .tabs-container{background:none repeat scroll 0 0 transparent;border:1px solid #b9d8d9;border-bottom-left-radius:4px;border-bottom-right-radius:4px;color:#222;display:block;padding:1em 1.4em}.authref{font-style:normal;text-indent:4em}.seealso,.seefrom{font-style:italic;text-indent:2em}#authfinderops{float:right}.authorizedheading{font-weight:700}.authres_notes,.authres_otherscript,.authres_seealso{padding-top:3px}.authres_notes{font-style:italic}.contents{width:75%}.contents .r,.contents .t{display:inline}.contents .t{font-weight:700}.contents .t:first-child:before{content:"→ "}.contents .t:before{content:"\A→ ";white-space:pre}.contentblock{margin-left:2em;position:relative}#hierarchies a{color:#069;font-weight:400;text-decoration:underline}#hierarchies a:hover{color:#903}#didyoumeanintranet,#didyoumeanopac{float:left;width:260px}.pluginlist{padding-bottom:10px}.plugin{margin:0 1em 1em 0}.pluginname{background-color:#e6f0f2;cursor:move;margin:.3em;padding-bottom:4px;padding-left:.2em}.pluginname .ui-icon{float:right}.plugindesc{padding:.4em}.ui-sortable-placeholder{border:1px dotted #000;height:80px;visibility:visible}.ui-sortable-placeholder *{visibility:hidden}.ui-datepicker{box-shadow:1px 1px 3px 0 #666}.ui-datepicker table{border:0;border-collapse:collapse;font-size:.9em;margin:0 0 .4em;width:100%}.ui-datepicker th{background:transparent none;border:0;font-weight:700;padding:.7em .3em;text-align:center}.ui-datepicker-trigger{margin:0 3px;vertical-align:middle}.ui-timepicker-div dl{text-align:left}.ui-timepicker-div dl dd{margin:0 10px 10px 65px}.ui-timepicker-div dl dt{height:25px;margin-bottom:-25px}.ui-timepicker-div dl td{font-size:90%}.ui-timepicker-div .ui-widget-header{margin-bottom:8px}.ui-tpicker-grid-label{background:none;border:0;margin:0;padding:0}.ui_tpicker_microsec,.ui_tpicker_millisec,.ui_tpicker_second{display:none}.ui-accordion-header,.ui-widget-content .ui-accordion-header{font-size:110%;font-weight:700}video{width:480px}.btn,button{border-color:#adadad #adadad #949494;font-family:Arial,Verdana,Helvetica,sans-serif}.btn.btn-link,button.btn-link{border:0}.btn-group-xs>.btn,.btn-xs{font-size:10.5px;padding:3px 5px}#toolbar .dropdown-menu{border-top-width:1px;font-size:13px}#toolbar.floating{border-radius:0;margin-top:0}.dropdown-menu{border-color:rgba(0,0,0,.2);border-top:0;font-size:12px}.dropdown-menu li{list-style:none outside none}.dropdown-menu li>a{padding:4px 20px}.dropdown-menu li>a:focus,.dropdown-menu li>a:hover{background-image:linear-gradient(180deg,#08c,#0077b3);background-repeat:repeat-x;color:#fff;text-decoration:none}.navbar{color:#333;min-height:20px}.navbar .nav>li{list-style:none outside none;padding:0 .6em}.navbar .nav>li>a{color:#004d99;font-weight:700;padding:.4em .2em}.navbar .nav>li>a:focus,.navbar .nav>li>a:hover{color:#538200}.navbar .nav li .dropdown.active>.dropdown-toggle:focus,.navbar .nav li .dropdown.open.active>.dropdown-toggle:focus,.navbar .nav li .dropdown.open>.dropdown-toggle:focus{background:#e6f0f2 none;box-shadow:none}#header.navbar{margin-bottom:0}#header.navbar-default{background:#e6f0f2;border:0;box-shadow:none}#changelanguage .dropdown-menu>li>a,#changelanguage .dropdown-menu>li>span{padding:5px 15px}#changelanguage .navbar-text{margin:0}#changelanguage .navbar-text span{display:block;line-height:20px}.loggedout{color:#004d99;font-weight:700;padding:.4em .2em}.navbar-static-top .navbar-inner{background:#e6f0f2 none;border:0;box-shadow:none;min-height:0;padding-left:0}.navbar-fixed-bottom .navbar-inner{min-height:0;padding:.4em 0}.navbar-fixed-bottom .nav>li{border-right:1px solid #ccc}.navbar-fixed-bottom .nav>li>a{font-weight:400}.navbar-fixed-bottom .nav>li:last-child{border-right:0}.navbar-fixed-bottom .nav>li.navbar-text{line-height:normal;padding:.4em .7em}.tooltip.bottom .tooltip-arrow{border-bottom-color:#eee}.tooltip.bottom .tooltip-inner{background-color:#fff;border:1px solid rgba(0,0,0,.2);box-shadow:0 5px 10px rgba(0,0,0,.2);color:#000;font-size:120%;padding:1em}.separator{color:#666;padding:0 .2em}.close{filter:none;float:none;font-weight:400;line-height:1.5;position:inherit;right:auto;text-shadow:none;top:auto}.close,.close:hover{font-size:inherit;opacity:inherit}.close:hover{color:inherit;filter:inherit}.checkbox label,.radio label{margin-left:20px;padding-left:0}.checkbox input[type=checkbox],.radio input[type=radio]{margin-left:0;position:relative}.modal-header .closebtn{margin-top:4px}.closebtn{color:#000;filter:alpha(opacity=20);float:right;font-size:21px;font-weight:700;line-height:1;opacity:.2;text-shadow:0 1px 0 #fff}.closebtn:focus,.closebtn:hover{color:#000;cursor:pointer;filter:alpha(opacity=50);opacity:.5;text-decoration:none}.modal-body{background-color:#fff;overflow-y:auto}.modal-content{background-color:#edf4f6}.btn-group label,.btn-group select{font-size:13px}.tooltip-inner{white-space:pre-wrap}pre{border:0;border-radius:0;display:block;line-height:inherit;margin:0;word-break:break-all;word-wrap:break-word}code,pre{background-color:transparent;color:inherit;font-size:inherit;padding:0}code{border-radius:0}.pagination>li>a,.pagination>li>span{font-weight:700}.waiting{cursor:wait}#jobfailed,#jobpanel,#jobstatus{display:none}#jobstatus{margin:.4em}#jobprogress{background:url(../img/progress.png) -300px 0 no-repeat;border:1px solid #666;display:inline-block;height:10px;width:200px}.progress_panel{border:2px solid #eee;border-radius:5px;clear:both;font-size:120%;margin:1em 0;padding:1em}progress{width:50%}#selections{white-space:normal;width:100%}#selections input{margin:0 2px;vertical-align:middle}#selections span{background-color:#ebf3ff;border-radius:5px;font-size:75%;line-height:240%;margin:3px;padding:3px;white-space:nowrap}#selections span.selected{background-color:#cce0fc}#changepasswordf input[type=password],#changepasswordf input[type=text]{font-family:Courier New,Courier,monospace;font-size:140%;padding:.3em}.floating{box-shadow:0 3px 2px 0 rgba(0,0,0,.5)}.inline{display:inline}.nowrap,.tag_editor{white-space:nowrap}.tag_editor{background:transparent url(../img/edit-tag.png) 0 0 no-repeat;display:block;float:left;height:16px;margin:4px;overflow:hidden;text-indent:100%;width:16px}.browse-controls{margin-left:1.1em;margin-right:.5em;padding-bottom:1em;padding-top:1em}#browse-return-to-results{border-top-left-radius:3px;border-top-right-radius:3px;display:block;text-align:center}.browse-button{color:#004d99;display:inline-block;padding:.4em .6em}.browse-button:hover{background:#fafafa}span.browse-button{background:#fafafa;color:#222}span.circ-hlt{color:#c00;font-weight:700}span.expired{color:#900;font-style:italic}span.name{font-style:italic;font-weight:700}span.permissiondesc{font-weight:400}span.required{color:#c00;font-style:italic;margin-left:.5em}.result-biblio-itemtype{float:right;padding:.5em;margin:.5em;font-size:85%;text-align:center}.result-biblio-itemtype img{display:block;margin:auto;margin-bottom:2px}.browse-label,.browse-prev-next{border:1px solid #b9d8d9}.browse-label{background-color:#e8f0f6;border-top-left-radius:5px;border-top-right-radius:5px}.browse-prev-next{border-bottom-left-radius:5px;border-bottom-right-radius:5px;border-top-width:0}#browse-previous{border-bottom-left-radius:5px;border-right:1px solid #b9d8d9;padding-right:1em}#browse-next{border-bottom-right-radius:5px;border-top-width:0;float:right;padding-right:1em}.loading-overlay{background-color:#fff;cursor:wait;height:100%;left:0;opacity:.7;position:fixed;top:0;width:100%;z-index:3}.loading-overlay div{background:transparent url(../img/loading.gif) 0 0 no-repeat;font-size:175%;font-weight:700;height:2em;left:50%;margin:-1em 0 0 -2.5em;padding-left:50px;position:absolute;top:50%;width:15em}#merge_invoices{display:none;margin:1em auto}#merge{margin:.5em 0 0}#merge_table tr.active td{background-color:#ffc}.renewals{display:block;font-size:.8em;padding:.5em}#transport-types{padding-top:.5px}#i18nMenu .navbar-text .currentlanguage{color:#000;font-weight:700}#i18nMenu a.currentlanguage:link,#i18nMenu a.currentlanguage:visited{font-weight:700}#i18nMenu a .sublanguage-selected{color:#000;font-weight:700}#circ_circulation_issue .onsite_checkout-select,.onsite_checkout-select label{font-size:inherit;font-weight:400}.onsite_checkout{color:#c00}.onsite-checkout-only{background-color:rgba(255,242,206,.5);border:1px solid #fff2ce;border-radius:4px}.branchgriditem{background-color:#fff;border:1px solid #b9d8d9;border-radius:3px;display:table-cell;float:left;margin:3px;padding:.3em}.branchgridrow{display:table-row}.branchselector{display:table}.hq-author{font-weight:700}#cn_browser_table_wrapper>#cn_browser_table{margin:auto;width:90%}#new_rule{background-color:#f4f8f9;border:2px solid #b9d8d9;border-radius:5px;display:none;margin:.3em;padding:.3em}.blocks{margin-bottom:.3em}.remove_rule{font-size:80%;padding-left:.7em}.underline{text-decoration:underline}.overline{text-decoration:overline}.order-control{padding-right:5px}#borrower_message{margin-top:10px}.form-group{margin-bottom:10px}.form-group label{font-weight:700}.modal-textarea{width:98%}#pat_member #patron_list_dialog,#pat_member #searchresults,#patron_search #filters{display:none}#fixedlengthbuilderaction{border:3px solid #e6f0f2;left:80%;padding:5px;position:relative;top:-80px;width:12%}.navbar-default .navbar-nav>.open>a:focus,.navbar-default .navbar-nav>.open>a:hover{background:#e6f0f2 none;box-shadow:none}.navbar-default.navbar-fixed-bottom .navbar-nav>.open>a:focus,.navbar-default.navbar-fixed-bottom .navbar-nav>.open>a:hover{background:transparent none;box-shadow:none}#interlibraryloans #dataPreviewLabel{margin:.3em 0}#interlibraryloans h1{margin:1em 0}#interlibraryloans h2{margin-bottom:20px}#interlibraryloans h3{margin-top:20px}#interlibraryloans .bg-info{overflow:auto;position:relative}#interlibraryloans .format h4{margin-bottom:20px}#interlibraryloans .format h5{margin-top:20px}#interlibraryloans .format input{margin:10px 0}#interlibraryloans .format li{list-style:none}#interlibraryloans #add-new-fields{margin:1em}#interlibraryloans #column-toggle,#interlibraryloans #reset-toggle{font-weight:700;line-height:1.5em;margin:15px 0}#interlibraryloans #freeform-fields .custom-name{margin-right:1em;text-align:right;width:9em}#interlibraryloans #freeform-fields .delete-new-field{margin-left:1em}#interlibraryloans #search-summary{position:absolute;top:50%;transform:translateY(-50%)}#ill-view-panel{margin-top:15px}#ill-view-panel h3{margin-bottom:10px}#ill-view-panel h4{margin-bottom:20px}#ill-view-panel .notesopac{display:inline-block}#ill-view-panel .rows div{height:1em;margin-bottom:1em}#requestattributes{font-family:monospace;line-height:1.3em}#ill-requests{width:100%!important}#helper span,#logged-in-info-full{display:none}.loggedin-menu-label{color:#777;font-size:12px;line-height:1.42857143;padding:4px 12px;white-space:nowrap}.loggedin-menu-label span{color:#000;font-weight:700}.loggedin-menu-label.divider{padding:0}ul.buttons-list{padding:0;margin-bottom:30px}ul.buttons-list li{list-style-type:none}ul.buttons-list li a.circ-button{background-color:#f4f8f9;background-position:5px 3px;background-repeat:no-repeat;border:2px solid #b9d8d9;border-radius:6px;box-sizing:content-box;color:#000;display:block;font-size:110%;font-weight:700;max-width:260px;margin:.5em 0;padding:8px;text-decoration:none}ul.buttons-list li a.circ-button:hover{border-color:#538200;color:#538200}@media (min-width:200px){.navbar-nav>li{float:left}.navbar-right{float:right!important;margin-right:-15px}.navbar-nav{float:left;margin:0}.navbar-nav .open .dropdown-menu{background-color:#fff;border:1px solid rgba(0,0,0,.15);box-shadow:0 6px 12px rgba(0,0,0,.175);float:left;position:absolute;width:auto}.navbar-nav .open .dropdown-menu.dropdown-menu-left{left:auto;right:0}.navbar-nav .open .dropdown-menu.dropdown-menu-right{right:auto}.navbar-default .navbar-nav .open .dropdown-menu>li>a:focus,.navbar-default .navbar-nav .open .dropdown-menu>li>a:hover{background-color:#0081c2;background-image:linear-gradient(180deg,#08c,#0077b3);background-repeat:repeat-x;color:#fff;text-decoration:none}}@media (min-width:800px){#helper i{display:none}#helper span,#logged-in-info-full{display:inline}#logged-in-info-brief,.loggedin-menu-label{display:none}}
(-)a/koha-tmpl/intranet-tmpl/prog/en/includes/mana-subscription-search-result.inc (-46 lines)
Lines 1-46 Link Here
1
[% USE KohaDates %]
2
<table id="mana_results_datatable">
3
    <thead>
4
        <tr>
5
            <th>ISSN</th>
6
            <th class="anti-the">Title</th>
7
            <th>Frequency</th>
8
            <th>Numbering pattern</th>
9
            <th class="NoSort">Number of users</th>
10
            <th class="title-string">Last Import</th>
11
            [% UNLESS search_only %]
12
              <th class="NoSort">Actions</th>
13
            [% END %]
14
        </tr>
15
    </thead>
16
    <tfoot>
17
        <tr>
18
            <td><input type="text" class="dt-filter" data-column_num="0" placeholder="Search ISSN" /></td>
19
            <td><input type="text" class="dt-filter" data-column_num="1" placeholder="Search title" /></td>
20
            <td><input type="text" class="dt-filter" data-column_num="2" placeholder="Search frequency" /></td>
21
            <td><input type="text" class="dt-filter" data-column_num="3" placeholder="Search numbering pattern" /></td>
22
            <td></td>
23
            <td><input type="text" class="dt-filter" data-column_num="5" placeholder="Search last import" /></td>
24
            [% UNLESS search_only %]
25
              <td></td>
26
            [% END %]
27
        </tr>
28
    </tfoot>
29
    <tbody>
30
        [% FOREACH subscription IN subscriptions %]
31
            [% UNLESS subscription.cannotdisplay %]
32
                <tr id="row[% subscription.subscriptionid %]">
33
                    <td>[% IF ( subscription.issn ) %][% subscription.issn %][% END %]</td>
34
                    <td>[% subscription.title %]</a></td>
35
                    <td>[% IF ( subscription.sfdescription ) %][% subscription.sfdescription %][% END %]</td>
36
                    <td>[% IF ( subscription.numberingmethod ) %][% subscription.numberingmethod %][% END %]</td>
37
                    <td>[% IF ( subscription.nbofusers ) %][% subscription.nbofusers %][% END %]</td>
38
                    <td><span title="[% subscription.lastimport %]">[% subscription.lastimport | $KohaDates %]</span></td>
39
                    [% UNLESS search_only %]
40
                      <td><a style="cursor:pointer" onclick="mana_use([% subscription.id %])"> <i class="fa fa-inbox"></i> Use</a></td>
41
                    [% END %]
42
                </tr>
43
            [% END %]
44
        [% END %]
45
    </tbody>
46
</table>
(-)a/koha-tmpl/intranet-tmpl/prog/en/includes/mana/mana-report-search-result.inc (+83 lines)
Line 0 Link Here
1
[% USE KohaDates %]
2
[% USE Koha %]
3
[% USE AuthorisedValues %]
4
[% USE Branches %]
5
6
<table id="mana_results_datatable" width=100%>
7
    <thead>
8
        <tr>
9
            <th>Report Name</th>
10
            <th class="anti-the" width=35%>Notes</th>
11
            <th>Type</th>
12
            <th title="number of libraries using this pattern"># of users</th>
13
            <th class="title-string" title="last time a library used this pattern">Last import</th>
14
            <th> Comments </th>
15
            [% UNLESS search_only %]
16
              <th class="NoSort">Actions</th>
17
            [% END %]
18
        </tr>
19
    </thead>
20
    <tbody>
21
        [% FOREACH report IN reports %]
22
            [% UNLESS report.cannotdisplay %]
23
                <tr id="row[% report.id %]"
24
                     [% IF report.nbofcomment > highWarned  %]
25
                        class = "high-warned-row"
26
                     [% ELSIF report.nbofcomment > warned  %]
27
                        class = "warned-row"
28
                     [% ELSIF report.nbofcomment > lowWarned  %]
29
                        class = "highlighted-row"
30
                     [% END %]
31
                >
32
                    <input hidden class="rowid" value="[% report.id %]">
33
                    <td>[% IF ( report.report_name ) %][% report.report_name %][% END %]</td>
34
                    <td title="[% report.savedsql %]"><div>
35
                        [% IF report.notes.length > 200 %]
36
                            [% report.notes.substr(0,200) %]<a class="showbutton">Show More</a></div><div hidden>
37
                        [% END %]
38
                            [% report.notes %]
39
                        [% IF report.notes.length > 200 %]
40
                            <a class="hidebutton">Show Less</a></div> </td>
41
                        [% END %]
42
                    <td> [% report.type %] </td>
43
                    <td>[% IF ( report.nbofusers ) %][% report.nbofusers %][% END %]</td>
44
                    <td><span title="[% report.lastimport %]">[% report.lastimport | $KohaDates %]</span></td>
45
		    <td>[% FOREACH comment IN report.comments %][% comment.message %] ([% comment.nb %]) <br>[% END %]</td>
46
47
                    [% UNLESS search_only %]
48
                      <td>
49
                          <button onclick="mana_use([% report.id %])"> <i class="fa fa-inbox"></i> Use</button>
50
                          <input hidden type="text" id="selectedcomment">
51
                          <select>
52
                              <option selected disabled>Report mistake</option>
53
                              [% FOREACH comment IN report.comments %]
54
                                  <option class="actionreport1" value="[% comment.id %]" onclick="mana_increment('[% comment.id %]', 'resource_comment', 'nb')"> [% comment.message %] ([% comment.nb %])
55
                              [% END %]
56
                                  <option data-toggle="modal" onclick="($('#selected_id').val($('.rowid').val()))" data-target="#comment_box"> other
57
                          </select>
58
                          <button hidden class="actionreport2" hidden> Cancel</button>
59
                      </td>
60
                    [% END %]
61
                </tr>
62
            [% END %]
63
        [% END %]
64
    </tbody>
65
</table>
66
67
<div id="comment_box" class="modal" tabindex="-1" role="dialog" aria-labelledby="mana_search_result_label" style="display: none;">
68
    <div class="modal-dialog modal-lg" style="width: 30%">
69
        <div class="modal-content" style="">
70
            <div class="modal-header">
71
                <button type="button" id="commentCloseButton" class="closebtn"  aria-hidden="true">×</button>
72
                <h3 id="mana_submit_comment"> Please enter a new commment (max 35 caracters)</h3>
73
            </div>
74
            <div class="modal-body">
75
                <form>
76
                    <input hidden id="selected_id" value="">
77
                    <input type="text" id="manamsg">
78
                </form>
79
                <button id="CommentButton"> Comment </button>
80
            </div>
81
        </div>
82
    </div>
83
</div>
(-)a/koha-tmpl/intranet-tmpl/prog/en/includes/mana/mana-subscription-search-result.inc (+82 lines)
Line 0 Link Here
1
[% USE KohaDates %]
2
[% USE Koha %]
3
[% USE AuthorisedValues %]
4
[% USE Branches %]
5
6
7
8
<table id="mana_results_datatable" width=100%>
9
    <thead>
10
        <tr>
11
            <th>ISSN</th>
12
            <th class="anti-the" width=50%>Title</th>
13
            <th> Published by </th>
14
            <th>Frequency</th>
15
            <th>Numbering pattern</th>
16
            <th title="number of libraries using this pattern"># of users</th>
17
            <th class="title-string" title="last time a library used this pattern">Last import</th>
18
            <th> Comments </th>
19
            [% UNLESS search_only %]
20
              <th class="NoSort">Actions</th>
21
            [% END %]
22
        </tr>
23
    </thead>
24
    <tbody>
25
        [% FOREACH subscription IN subscriptions %]
26
            [% UNLESS subscription.cannotdisplay %]
27
                <tr id="row[% subscription.subscriptionid %]"
28
                     [% IF subscription.nbofcomment > highWarned  %]
29
                        class = "high-warned-row" title="this resource has been reported more than [% highWarned %] times, take care!"
30
                     [% ELSIF subscription.nbofcomment > warned  %]
31
                        class = "warned-row" title="this resource has been reported more than [% warned %] times, take care!"
32
                     [% ELSIF subscription.nbofcomment > lowWarned  %]
33
                        class = "highlighted-row" title="this resource has been reported more than [% lowWarned %] times, take care!"
34
                     [% END %]
35
                >
36
                <input hidden class="rowid" value="[% subscription.id %]">
37
                    <td>[% IF ( subscription.issn ) %][% subscription.issn %][% END %]</td>
38
                    <td>[% subscription.title %]</a></td>
39
                    <td>[% IF ( subscription.publishercode ) %][% subscription.publishercode %][% END %]</td>
40
                    <td>[% IF ( subscription.sfdescription ) %][% subscription.sfdescription %][% END %]</td>
41
                    <td>[% IF ( subscription.numberingmethod ) %][% subscription.numberingmethod %][% END %]</td>
42
                    <td>[% IF ( subscription.nbofusers ) %][% subscription.nbofusers %][% END %]</td>
43
                    <td><span title="[% subscription.lastimport %]">[% subscription.lastimport | $KohaDates %]</span></td>
44
		    <td>[% FOREACH comment IN subscription.comments %][% comment.message %] ([% comment.nb %]) <br>[% END %]</td>
45
46
                    [% UNLESS search_only %]
47
                      <td>
48
                          <button onclick="mana_use([% subscription.id %])"> <i class="fa fa-inbox"></i> Use</button>
49
                          <input hidden type="text" id="selectedcomment">
50
                          <select>
51
                              <option selected disabled>Report mistake</option>
52
                              [% FOREACH comment IN subscription.comments %]
53
                                  <option class="actionreport1" value="[% comment.id %]" onclick="mana_increment('[% comment.id %]', 'resource_comment', 'nb')"> [% comment.message %] ([% comment.nb %])
54
                              [% END %]
55
                                  <option data-toggle="modal" onclick="($('#selected_id').val($('.rowid').val()))" data-target="#comment_box"> other
56
                          </select>
57
                          <button hidden class="actionreport2" hidden> Cancel</button>
58
                      </td>
59
                    [% END %]
60
                </tr>
61
            [% END %]
62
        [% END %]
63
    </tbody>
64
</table>
65
66
<div id="comment_box" class="modal" tabindex="-1" role="dialog" aria-labelledby="mana_search_result_label" style="display: none;">
67
    <div class="modal-dialog modal-lg" style="width: 30%">
68
        <div class="modal-content" style="">
69
            <div class="modal-header">
70
                <button type="button" id="commentCloseButton" class="closebtn" aria-hidden="true">×</button>
71
                <h3 id="mana_submit_comment"> Please enter a new commment (max 35 caracters)</h3>
72
            </div>
73
            <div class="modal-body">
74
                <form>
75
                    <input hidden id="selected_id" value="">
76
                    <input type="text" id="manamsg"> Comment:
77
                </form>
78
                <button id="CommentButton"> Comment </button>
79
            </div>
80
        </div>
81
    </div>
82
</div>
(-)a/koha-tmpl/intranet-tmpl/prog/en/includes/serials-toolbar.inc (-9 / +7 lines)
Lines 7-17 Link Here
7
            [% ELSE %]
7
            [% ELSE %]
8
                <div class="btn-group"><a id="newsubscription" class="btn btn-default btn-sm" href="/cgi-bin/koha/serials/subscription-add.pl"><i class="fa fa-plus"></i> New subscription</a></div>
8
                <div class="btn-group"><a id="newsubscription" class="btn btn-default btn-sm" href="/cgi-bin/koha/serials/subscription-add.pl"><i class="fa fa-plus"></i> New subscription</a></div>
9
            [% END %]
9
            [% END %]
10
            [% IF Koha.Preference('Mana') %]
10
            [% IF Koha.Preference('Mana') and Koha.Preference('AutoShareWithMana').grep('subscription').size == 0 %]
11
                [% IF one_language_enabled==0 or mana_id %]
11
                [% IF one_language_enabled==0 or mana_id %]
12
                    <div class="btn-group"><a data-toggle="modal" data-toggle="tooltip" title="Your email address will be associated to your sharing." data-target="#mana_share_modal" class="btn btn-small"><i class="fa fa-share-alt"></i> Share</a></div>
12
                    <div class="btn-group"><a data-toggle="modal" data-toggle="tooltip" title="Share the subscription with other librairies. Your email address will be associated to your sharing." data-target="#mana_share_modal" class="btn btn-default btn-sm"><i class="fa fa-share-alt"></i> Share</a></div>
13
                [% ELSE %]
13
                [% ELSE %]
14
                    <div class="btn-group" data-toggle="tooltip" title="Your email address will be associated to your sharing."><a class="btn btn-small" onclick="share()"><i class="fa fa-share-alt"></i> Share</a></div>
14
                    <div class="btn-group" data-toggle="tooltip" title="Share the subscription with other libraries. Your email address will be associated to your sharing."><a class="btn btn-default btn-sm" onclick="share()"><i class="fa fa-share-alt"></i> Share</a></div>
15
                [% END %]
15
                [% END %]
16
            [% END %]
16
            [% END %]
17
        [% END %]
17
        [% END %]
Lines 80-97 Link Here
80
            <div class="modal-body">
80
            <div class="modal-body">
81
                [% IF (mana_id) %]
81
                [% IF (mana_id) %]
82
                    <div class="alert">
82
                    <div class="alert">
83
                        <p>Your subscription is already linked with a Mana subscription model. Share it if you have made modifications, otherwide it will do nothing.</p>
83
                        <p>Your subscription is already linked with a Mana subscription model. Share it if you have made modifications, otherwise it will do nothing.</p>
84
                    </div>
84
                    </div>
85
                [% END %]
85
                [% END %]
86
                [% IF ( languages_loop ) %]
86
                [% IF ( languages_loop ) %]
87
                    [% UNLESS ( one_language_enabled ) %]
87
                    [% UNLESS ( one_language_enabled ) %]
88
                        <div class="rows">
88
                        <div class="rows">
89
                            <p>The frequency and the numberpattern of [% bibliotitle %] are :</p>
89
                                <li><span class="label">Frequency: </span>
90
                            <ol>
91
                                <li><span class="label">Frequency : </span>
92
                                        [% frequency.description %]
90
                                        [% frequency.description %]
93
                                </li>
91
                                </li>
94
                                <li><span class="label">Number pattern : </span>
92
                                <li><span class="label">Number pattern: </span>
95
                                    [% numberpattern.label %]
93
                                    [% numberpattern.label %]
96
                                </li>
94
                                </li>
97
                            </ol>
95
                            </ol>
Lines 99-105 Link Here
99
                        <div class="rows">
97
                        <div class="rows">
100
                            <form method="get" id="mana_share_form" action="/cgi-bin/koha/serials/subscription-detail.pl" class="validated" >
98
                            <form method="get" id="mana_share_form" action="/cgi-bin/koha/serials/subscription-detail.pl" class="validated" >
101
                                <fieldset>
99
                                <fieldset>
102
                                    <label for="mana_language">Language of your sharing :</label>
100
                                    <label for="mana_language">Language:</label>
103
                                    <select id="mana_language" name="mana_language">
101
                                    <select id="mana_language" name="mana_language">
104
                                        [% FOREACH languages_loo IN languages_loop %]
102
                                        [% FOREACH languages_loo IN languages_loop %]
105
                                            [% IF ( languages_loo.group_enabled ) %]
103
                                            [% IF ( languages_loo.group_enabled ) %]
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/admin-home.tt (-2 / +6 lines)
Lines 13-23 Link Here
13
<div class="main container-fluid">
13
<div class="main container-fluid">
14
    <div class="row">
14
    <div class="row">
15
        <div class="col-md-10 col-md-offset-1 col-lg-8 col-lg-offset-2">
15
        <div class="col-md-10 col-md-offset-1 col-lg-8 col-lg-offset-2">
16
16
            [% IF ( Koha.Preference('Mana') == 2) %]
17
                <fieldset>
18
                    <p><center> You haven't decided if you want to activate Mana Knowlede Base, please let us know by clicking<center></p>
19
                    <a href=/cgi-bin/koha/admin/preferences.pl?tab=&op=search&searchfield=request+to+mana+webservice><center>Here</center></a>
20
                </fieldset>
21
           [% END %]
17
        <h1>Koha administration</h1>
22
        <h1>Koha administration</h1>
18
        <div class="row">
23
        <div class="row">
19
            <div class="col-md-6 sysprefs">
24
            <div class="col-md-6 sysprefs">
20
21
                <form action="/cgi-bin/koha/admin/preferences.pl" method="post">
25
                <form action="/cgi-bin/koha/admin/preferences.pl" method="post">
22
                <fieldset>
26
                <fieldset>
23
                    <h4><a href="/cgi-bin/koha/admin/preferences.pl">Global system preferences</a></h4>
27
                    <h4><a href="/cgi-bin/koha/admin/preferences.pl">Global system preferences</a></h4>
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/web_services.pref (-3 / +9 lines)
Lines 63-71 Web services: Link Here
63
        -
63
        -
64
            - pref: Mana
64
            - pref: Mana
65
              choices:
65
              choices:
66
                  yes: Enable
66
                  0: Disable
67
                  no: Disable
67
                  1: Enable
68
            - request to Mana Webservice. Mana centralize commun information between other Koha to facilitate the creation of new subscriptions, vendors, report queries etc... You can search, share, import and comment the content of Mana.
68
                  2: No, let me think about it
69
            - request to Mana Webservice. Mana centralize commun information between other Koha to facilitate the creation of new subscriptions, vendors, report queries etc... You can search, share, import and comment the content of Mana. The informations shared with Mana KB are shared under the CC-0 license. More infos about CC-0 license on https://creativecommons.org/choose/zero/
70
        -
71
            - 'Fields automatically shared with mana'
72
            - pref: AutoShareWithMana
73
              multiple:
74
                subscription: Subscriptions
69
    Reporting:
75
    Reporting:
70
        -
76
        -
71
            - Only return
77
            - Only return
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/mana/mana-report-search-result.tt (+1 lines)
Line 0 Link Here
1
[% INCLUDE 'mana/mana-report-search-result.inc' %]
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/mana/mana-subscription-search-result.tt (+1 lines)
Line 0 Link Here
1
[% INCLUDE 'mana/mana-subscription-search-result.inc' %]
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/reports/guided_reports_start.tt (-6 / +281 lines)
Lines 125-130 canned reports and writing custom SQL reports.</p> Link Here
125
    </div>
125
    </div>
126
[% END %]
126
[% END %]
127
127
128
<div id="mana_search_result" class="modal fade" tabindex="-1" role="dialog" aria-labelledby="mana_search_result_label" style="width: 100%; left:0%; margin-left: auto; display: none;">
129
    <div class="modal-dialog modal-lg">
130
        <div class="modal-content">
131
            <div class="modal-header">
132
                <button type="button" class="closebtn" data-dismiss="modal" aria-hidden="true">×</button>
133
                <h3 id="mana_search_result_label"> Mana Search</h3>
134
            </div>
135
            <div>
136
                <form id="search_form" style="margin-left: 5%">
137
                    Please enter a few key words:
138
                    <input type=text id=mana_search_field>
139
                    <input type=button class="mana_search_button" value="Search">
140
                </form>
141
                <div class="modal-body">
142
                </div>
143
            </div>
144
        </div>
145
    </div>
146
</div>
147
128
[% IF ( saved1 ) %]
148
[% IF ( saved1 ) %]
129
[% IF ( savedreports ) %]<h1>Saved reports</h1>
149
[% IF ( savedreports ) %]<h1>Saved reports</h1>
130
150
Lines 159-164 canned reports and writing custom SQL reports.</p> Link Here
159
                <option value="">All</option>
179
                <option value="">All</option>
160
            </select>
180
            </select>
161
        </div>
181
        </div>
182
<div style="display:inline-block">
183
    [% IF (manamsg == 'success') %]
184
     <div id="mana_search" class="dialog message">
185
        <p> Shared successfully! Thanks for your help.</p>
186
    </div>
187
    [% ELSIF (manamsg == 'fail') %]
188
     <div id="mana_search" class="dialog message">
189
        <p> An error occured while sharing, please try again later.</p>
190
    </div>
191
    [% END %]
192
193
   [% IF (Koha.Preference('Mana') == 1) %]
194
    <div id="mana_search" class="dialog message">
195
        <p> You want more reports? Check the Mana Knowledge Base <p> <a style="cursor:pointer" data-toggle="modal" data-target="#mana_search_result">Quick Search</a></p>
196
    </div>
197
    [% END %]
198
199
</script>
200
<h1> [% savedreport.sql %]</h1>
162
<form action="/cgi-bin/koha/reports/guided_reports.pl" id="reports_form" method="post">
201
<form action="/cgi-bin/koha/reports/guided_reports.pl" id="reports_form" method="post">
163
<input type="hidden" name="phase" value="Delete Multiple" />
202
<input type="hidden" name="phase" value="Delete Multiple" />
164
        <table id="table_reports">
203
        <table id="table_reports">
Lines 194-216 canned reports and writing custom SQL reports.</p> Link Here
194
            <tbody>
233
            <tbody>
195
                [% FOREACH savedreport IN savedreports %]
234
                [% FOREACH savedreport IN savedreports %]
196
                    [% UNLESS ( loop.odd ) %]<tr class="odd">[% ELSE %]<tr>[% END %]
235
                    [% UNLESS ( loop.odd ) %]<tr class="odd">[% ELSE %]<tr>[% END %]
197
                        <td>
236
                        <td class="report_checkbox">
198
                            [% IF ( CAN_user_reports_delete_reports ) %] <!-- not break CSS -->
237
                            [% IF ( CAN_user_reports_delete_reports ) %] <!-- not break CSS -->
199
                                <input type="checkbox" name="ids" value="[% savedreport.id | html %]" />
238
                                <input type="checkbox" name="ids" value="[% savedreport.id | html %]" />
200
                            [% END %]
239
                            [% END %]
240
                        <input hidden class="report_sql" value="[% savedreport.savedsql %]">
201
                        </td>
241
                        </td>
202
                        <td><label for="ids">[% savedreport.id | html %]</label></td>
242
                        <td class="report_id"><label for="ids">[% savedreport.id | html %]</label></td>
203
                        <td>
243
                        <td class="report_name">
204
                            [% IF ( savedreport.report_name ) %]
244
                            [% IF ( savedreport.report_name ) %]
205
                                [% savedreport.report_name | html %]
245
                                [% savedreport.report_name | html %]
206
                            [% ELSE %]
246
                            [% ELSE %]
207
                                [ no name ]
247
                                [ no name ]
208
                            [% END %]
248
                            [% END %]
209
                        </td>
249
                        </td>
210
                        <td>[% savedreport.type | html %]</td>
250
                        <td class="report_type">[% savedreport.type | html %]</td>
211
                        <td>[% savedreport.groupname | html %]</td>
251
                        <td class="report_group">[% savedreport.groupname | html %]</td>
212
                        <td>[% savedreport.subgroupname | html %]</td>
252
                        <td>[% savedreport.subgroupname | html %]</td>
213
                        <td>[% savedreport.notes | html %]</td>
253
                        <td class="report_notes">[% savedreport.notes | html %]</td>
214
                        <td>[% savedreport.borrowersurname | html %][% IF ( savedreport.borrowerfirstname ) %], [% savedreport.borrowerfirstname | html %][% END %] ([% savedreport.borrowernumber | html %])</td>
254
                        <td>[% savedreport.borrowersurname | html %][% IF ( savedreport.borrowerfirstname ) %], [% savedreport.borrowerfirstname | html %][% END %] ([% savedreport.borrowernumber | html %])</td>
215
                        <td><span title="[% savedreport.date_created | html %]">[% savedreport.date_created | $KohaDates %]</span></td>
255
                        <td><span title="[% savedreport.date_created | html %]">[% savedreport.date_created | $KohaDates %]</span></td>
216
                        <td><span title="[% savedreport.last_modified | html %]">[% savedreport.last_modified | $KohaDates with_hours => 1 | html %]</span></td>
256
                        <td><span title="[% savedreport.last_modified | html %]">[% savedreport.last_modified | $KohaDates with_hours => 1 | html %]</span></td>
Lines 257-262 canned reports and writing custom SQL reports.</p> Link Here
257
                                            <li><a href="/cgi-bin/koha/reports/guided_reports.pl?reports=[% savedreport.id | html %]&amp;phase=Edit%20SQL"><i class="fa fa-pencil"></i> Edit</a></li>
297
                                            <li><a href="/cgi-bin/koha/reports/guided_reports.pl?reports=[% savedreport.id | html %]&amp;phase=Edit%20SQL"><i class="fa fa-pencil"></i> Edit</a></li>
258
                                            <li><a title="Duplicate this saved report" href="/cgi-bin/koha/reports/guided_reports.pl?phase=Create report from SQL&amp;sql=[% savedreport.savedsql |uri %]&amp;reportname=[% savedreport.report_name |uri %]&amp;notes=[% savedreport.notes |uri %]"><i class="fa fa-copy"></i> Duplicate</a></li>
298
                                            <li><a title="Duplicate this saved report" href="/cgi-bin/koha/reports/guided_reports.pl?phase=Create report from SQL&amp;sql=[% savedreport.savedsql |uri %]&amp;reportname=[% savedreport.report_name |uri %]&amp;notes=[% savedreport.notes |uri %]"><i class="fa fa-copy"></i> Duplicate</a></li>
259
                                        [% END %]
299
                                        [% END %]
300
                                        [% IF (Koha.Preference('Mana') == 1) %]
301
                                            <li><a class="ShareButton" data-toggle="modal" href="#mana_share_report" title="Share your report with Mana Knowledge Base"><i class="fa fa-share-alt"></i> Share</a></li>
302
                                        [% END %]
260
                                        <li><a href="/cgi-bin/koha/tools/scheduler.pl?id=[% savedreport.id | html %]"><i class="fa fa-clock-o"></i> Schedule</a></li>
303
                                        <li><a href="/cgi-bin/koha/tools/scheduler.pl?id=[% savedreport.id | html %]"><i class="fa fa-clock-o"></i> Schedule</a></li>
261
                                        [% IF ( CAN_user_reports_delete_reports ) %]
304
                                        [% IF ( CAN_user_reports_delete_reports ) %]
262
                                            <li><a class="confirmdelete" title="Delete this saved report" href="/cgi-bin/koha/reports/guided_reports.pl?reports=[% savedreport.id | html %]&amp;phase=Delete%20Saved"><i class="fa fa-trash"></i> Delete</a></li>
305
                                            <li><a class="confirmdelete" title="Delete this saved report" href="/cgi-bin/koha/reports/guided_reports.pl?reports=[% savedreport.id | html %]&amp;phase=Delete%20Saved"><i class="fa fa-trash"></i> Delete</a></li>
Lines 269-274 canned reports and writing custom SQL reports.</p> Link Here
269
                [% END %]
312
                [% END %]
270
            </tbody>
313
            </tbody>
271
        </table>
314
        </table>
315
</div>
272
        [% IF ( CAN_user_reports_delete_reports ) %]
316
        [% IF ( CAN_user_reports_delete_reports ) %]
273
        <fieldset class="action">
317
        <fieldset class="action">
274
            <input type="submit" value="Delete selected" />
318
            <input type="submit" value="Delete selected" />
Lines 309-314 canned reports and writing custom SQL reports.</p> Link Here
309
[% END %]
353
[% END %]
310
[% END %]
354
[% END %]
311
355
356
<div id="mana_share_report" class="modal fade" tabindex="-1" role="dialog" arialabelledby="mana_share_modal_label" style="display: none;">
357
    <div class="modal-dialog">
358
        <div class="modal-content">
359
            <div class="modal-header">
360
                <h3 id="mana_share_modal_label">Share with Mana</h3>
361
            </div>
362
            <div class="modal-body">
363
                [% IF (mana_id) %]
364
                    <div class="alert">
365
                        <p>Your subscription is already linked with a Mana subscription model. Share it if you have made modifications, otherwise it will do nothing.</p>
366
                    </div>
367
                [% END %]
368
                [% IF ( languages_loop ) %]
369
                    [% UNLESS ( one_language_enabled ) %]
370
                        <label id="noteerror" type="hidden">Please enter a report name and descriptive note before sharing (minimum 20 characters)</label>
371
                        <div id="shared_infos" class="rows">
372
                                <li> <span class="label">Id: </span><div id="shared_id"></div>
373
                                </li>
374
                                <li> <span class="label">Name: </span><div id="shared_name"></div>
375
                                </li>
376
                                <li> <span class="label">SQL: </span><div id="shared_sql"></div>
377
                                </li>
378
                                <li> <span class="label">Group: </span><div id="shared_group"></div>
379
                                </li>
380
                                <li> <span class="label">Type: </span><div id="shared_type"></div>
381
                                </li>
382
                                <li> <span class="label">Notes: </span><div id="shared_notes"></div>
383
                                </li>
384
385
                        </div>
386
                        <div class="rows">
387
                            <form method="post" id="mana_share_form" action="/cgi-bin/koha/reports/guided_reports.pl?phase=Share" class="validated" >
388
                                <input type="hidden" name="phase" value="Share">
389
390
                                <fieldset>
391
                                    <label for="mana_language">Language:</label>
392
                                    <select id="mana_language" name="mana_language">
393
                                        [% FOREACH languages_loo IN languages_loop %]
394
                                            [% IF ( languages_loo.group_enabled ) %]
395
                                                [% IF ( languages_loo.plural ) %]
396
                                                    [% FOREACH sublanguages_loo IN languages_loo.sublanguages_loop %]
397
                                                        [% IF ( sublanguages_loo.enabled ) %]
398
                                                            [% IF ( sublanguages_loo.sublanguage_current ) %]
399
                                                                <option value="[% languages_loo.rfc4646_subtag %]" selected>
400
                                                                    [% sublanguages_loo.native_description %]
401
                                                                    [% sublanguages_loo.script_description %]
402
                                                                    [% sublanguages_loo.region_description %]
403
404
                                                                    [% sublanguages_loo.variant_description %]
405
                                                                    ([% sublanguages_loo.rfc4646_subtag %])
406
                                                                </option>
407
                                                            [% ELSE %]
408
                                                                <option value="[% languages_loo.rfc4646_subtag %]">
409
                                                                    [% sublanguages_loo.native_description %]
410
                                                                    [% sublanguages_loo.script_description %]
411
                                                                    [% sublanguages_loo.region_description %]
412
                                                                    [% sublanguages_loo.variant_description %]
413
                                                                    ([% sublanguages_loo.rfc4646_subtag %])
414
                                                                </option>
415
                                                            [% END %]
416
                                                        [% END %]
417
                                                    [% END %]
418
                                                [% ELSE %]
419
                                                    [% IF ( languages_loo.group_enabled ) %]
420
                                                        [% IF ( languages_loo.current ) %]
421
                                                            <option value="[% languages_loo.rfc4646_subtag %]" selected>
422
                                                                [% IF ( languages_loo.native_description ) %]
423
                                                                    [% languages_loo.native_description %]
424
                                                                [% ELSE %]
425
                                                                    [% languages_loo.rfc4646_subtag %]
426
                                                                [% END %]
427
                                                            </option>
428
                                                        [% ELSE %]
429
                                                            <option value="[% languages_loo.rfc4646_subtag %]">
430
                                                                [% IF ( languages_loo.native_description ) %]
431
                                                                    [% languages_loo.native_description %]
432
                                                                [% ELSE %]
433
                                                                    [% languages_loo.rfc4646_subtag %]
434
                                                                [% END %]
435
                                                            </option>
436
                                                        [% END %]
437
                                                    [% END %]
438
                                                [% END %]
439
                                            [% END %]
440
                                        [% END %]
441
                                    </select>
442
                                    <input type="hidden" id="reportid" name="reportid" value="[% savedreport.id %]"/>
443
                                </fieldset>
444
                            </form>
445
                        </div>
446
                    [% END %]
447
                [% END %]
448
            </div>
449
            <div class="modal-footer">
450
                <button class="btn" data-dismiss="modal" aria-hidden="true">Close</button>
451
                [% IF one_language_enabled==0 %]
452
                    <button id="ManaShareButton" type="submit" form="mana_share_form" class="btn btn-primary">Share</button>
453
                [% ELSE %]
454
                    <div id="ManaShareButton" class="btn-group"><a class="btn btn-primary"'onclick="share()">Share</a></div>
455
                [% END %]
456
            </div>
457
        </div>
458
    </div>
459
</div>
460
312
461
313
[% IF ( build1 ) %]
462
[% IF ( build1 ) %]
314
[% IF ( cache_error) %]
463
[% IF ( cache_error) %]
Lines 968-973 $(document).ready(function() { Link Here
968
            }
1117
            }
969
        }
1118
        }
970
1119
1120
        function share() {
1121
            window.location="/cgi-bin/koha/reports/guided_reports.pl?phase=Save";
1122
        }
1123
971
        $(document).ready(function(){
1124
        $(document).ready(function(){
972
1125
973
            $('[data-toggle="tooltip"]').tooltip();
1126
            $('[data-toggle="tooltip"]').tooltip();
Lines 986-991 $(document).ready(function() { Link Here
986
                window.history.back();
1139
                window.history.back();
987
            });
1140
            });
988
1141
1142
            $(".mana_search_button").on("click",function(){
1143
                mana_search($(this).prev().val());
1144
            });
1145
1146
            $(".ShareButton").on("click", function(){
1147
                if($(this).closest("tr").find(".report_notes").text().length < 20 || $(this).closest("tr").find(".report_name").text().length < 20){
1148
                    $("#shared_infos").hide();
1149
                    $("#ManaShareButton").hide();
1150
                    $("#noterror").show();
1151
                }
1152
                else{
1153
                    $("#shared_id").html($(this).closest("tr").find(".report_id").text());
1154
                    $("#shared_name").html($(this).closest("tr").find(".report_name").text());
1155
                    $("#shared_sql").html($(this).closest("tr").find(".report_sql").val());
1156
                    $("#shared_type").html($(this).closest("tr").find(".report_type").text());
1157
                    $("#shared_group").html($(this).closest("tr").find(".report_group").text());
1158
                    $("#shared_notes").html($(this).closest("tr").find(".report_notes").text());
1159
                }
1160
            });
1161
1162
            $('#search_form').submit(function () {
1163
                return false;
1164
            });
1165
989
            $("#addColumn").on("click",function(){
1166
            $("#addColumn").on("click",function(){
990
                addColumn();
1167
                addColumn();
991
            });
1168
            });
Lines 1171-1176 $(document).ready(function() { Link Here
1171
                return confirmDelete(MSG_CONFIRM_DELETE);
1348
                return confirmDelete(MSG_CONFIRM_DELETE);
1172
            });
1349
            });
1173
        });
1350
        });
1351
        function mana_increment(mana_id, resourcename, fieldvalue, stepvalue = 1){
1352
            $.ajax( {
1353
                type: "POST",
1354
                url: "/cgi-bin/koha/svc/mana/addvaluetofield",
1355
                data: {id: mana_id, field: fieldvalue, resource: resourcename, step: stepvalue},
1356
                datatype: "json",
1357
            }).done( function() {
1358
            }).fail( function(){ });
1359
        }
1360
1361
        function mana_use( mana_id ){
1362
            $.ajax( {
1363
                type:"POST",
1364
                url: "/cgi-bin/koha/svc/mana/use",
1365
                data: {id:mana_id, resource: 'report', saveinbase: 1},
1366
                dataType: "json",
1367
            })
1368
            .done( function (result){
1369
                window.location = ("/cgi-bin/koha/reports/guided_reports.pl?reports=").concat(result.id).concat("&amp;phase=Show%20SQL");
1370
            })
1371
            .fail( function ( foo, msg, longmsg){
1372
            });
1373
        }
1374
1375
        function mana_search( textquery ){
1376
            $.ajax({
1377
                type: "POST",
1378
                url: "/cgi-bin/koha/svc/mana/search",
1379
                data: {biblionumber: $("#biblionumber").val(), resource: 'report', id: textquery, usecomments: 1},
1380
                dataType: "html",
1381
            })
1382
            .done( function( result ) {
1383
                $("#mana_search_result .modal-body").html(result);
1384
                $("#mana_search_result_label").text("Results from Mana Knowledge Base");
1385
                $("#mana_results_datatable").dataTable($.extend(true, {}, dataTablesDefaults,{
1386
                    "sPaginationType":"four_button",
1387
                    "autoWidth": false,
1388
                    "columnDefs": [
1389
                        { "width": "35%", "targets": 1 }
1390
                    ],
1391
                    "aoColumnDefs": [
1392
                        { 'bSortable': false, "bSearchable": false, 'aTargets': [ 'NoSort' ] },
1393
                        { "sType": "title-string", "aTargets" : [ "title-string" ] },
1394
                        { 'sType': "anti-the", 'aTargets' : [ 'anti-the'] }
1395
                    ]
1396
                }));
1397
                if($("td.dataTables_empty").length == 0){
1398
                     $("#mana_search").show();
1399
                }
1400
1401
                $( "select[class='actionreport1']" ).show();
1402
                $( "button[class='actionreport2']" ).hide();
1403
                $("#CommentButton").on("click", function(){
1404
                    var resource_type = "report";
1405
                    var target_id = $("#selected_id").val();
1406
                    var manamsg = $("#manamsg").val();
1407
                    mana_comment(target_id, manamsg, resource_type);
1408
                    $("#comment_box").modal("hide");
1409
                });
1410
1411
                $(".showbutton").on("click", function(){
1412
                    $(this).parent().hide();
1413
                    $(this).parent().next().show();
1414
                });
1415
1416
                $("a[class='hidebutton']").on("click", function(){
1417
                    $(this).parent().hide();
1418
                    $(this).parent().prev().show();
1419
                });
1420
1421
                $("#commentCloseButton").on("click", function(){
1422
                    $("#comment_box").modal("hide");
1423
                });
1424
1425
                $(".actionreport1").on("click", function(){
1426
                    $("#selectedcomment").val($(this).val());
1427
                    $(this).parent("select").hide();
1428
                    $(this).parent("select").next().show();
1429
                });
1430
1431
                $(".actionreport2").on("click", function(){
1432
                    $(this).hide();
1433
                    $(this).prev().show();
1434
                    mana_increment($("#selectedcomment").val(), 'resource_comment', 'nb', -1);
1435
                });
1436
            }).fail( function( result ){
1437
            });
1438
        }
1439
1440
        function mana_comment( target_id, manamsg, resource_type ){
1441
            $.ajax( {
1442
                type: "POST",
1443
                url: "/cgi-bin/koha/svc/mana/share",
1444
                data: {message: manamsg, resource: resource_type , resource_id: target_id},
1445
                datatype: "json",
1446
            })
1447
        }
1448
1174
        function addColumn() {
1449
        function addColumn() {
1175
            $("#availableColumns option:selected").clone().appendTo("#selectedColumns").attr("selected", "selected");
1450
            $("#availableColumns option:selected").clone().appendTo("#selectedColumns").attr("selected", "selected");
1176
        }
1451
        }
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/serials/mana-subscription-search-result.tt (-1 lines)
Line 1 Link Here
1
[% INCLUDE 'mana-subscription-search-result.inc' %]
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/serials/subscription-add.tt (-8 / +12 lines)
Lines 10-16 Link Here
10
<style type="text/css">
10
<style type="text/css">
11
fieldset.rows li.radio { width: 100%; } /* override staff-global.css */
11
fieldset.rows li.radio { width: 100%; } /* override staff-global.css */
12
.yui-u li p label.widelabel {
12
.yui-u li p label.widelabel {
13
    width: 300px;  /* not enough for IE7 apparently */
13
width: 300px;  /* not enough for IE7 apparently */
14
}
14
}
15
</style>
15
</style>
16
</head>
16
</head>
Lines 207-214 fieldset.rows li.radio { width: 100%; } /* override staff-global.css */ Link Here
207
207
208
                <div id="page_2">
208
                <div id="page_2">
209
                    <div class="col-md-6">
209
                    <div class="col-md-6">
210
                [% IF ( Koha.Preference('Mana') == 2) %]
211
                    <fieldset>
212
                        <p><center>You haven't activated the Mana Knowledge Base, click
213
                        <a href=/cgi-bin/koha/admin/preferences.pl?tab=&op=search&searchfield=request+to+mana+webservice>here</a>
214
                         to configure.</center></p>
215
                    </fieldset>
216
                [% END %]
217
210
                        <div id="mana_search" class="dialog message">
218
                        <div id="mana_search" class="dialog message">
211
                            <p>Frequency and Numbering pattern have been already proposed for this subscription on Mana. To show results, click <a style="cursor:pointer" data-toggle="modal" data-target="#mana_search_result">Here</a></p>
219
                            <p>Subscription found on Mana Knowledge Base:</p><p> <a style="cursor:pointer" data-toggle="modal" data-target="#mana_search_result">Quick fill</a></p>
212
                        </div>
220
                        </div>
213
                        <div id="subscription_form_planning">
221
                        <div id="subscription_form_planning">
214
                            <fieldset class="rows">
222
                            <fieldset class="rows">
Lines 493-510 fieldset.rows li.radio { width: 100%; } /* override staff-global.css */ Link Here
493
                </div>
501
                </div>
494
            </form>
502
            </form>
495
        </div>
503
        </div>
496
        <div id="mana_search_result" class="modal fade" tabindex="-1" role="dialog" aria-labelledby="mana_search_result_label" style="width: 90%; left:5%; margin-left: auto; display: none;">
504
        <div id="mana_search_result" class="modal fade" tabindex="-1" role="dialog" aria-labelledby="mana_search_result_label" style="width: 100%; left:0%; margin-left: auto; display: none;">
497
            <div class="modal-dialog modal-lg">
505
            <div class="modal-dialog modal-lg">
498
                <div class="modal-content">
506
                <div class="modal-content">
499
                    <div class="modal-header">
507
                    <div class="modal-header">
508
                        <button type="button" class="closebtn" data-dismiss="modal" aria-hidden="true">×</button>
500
                        <h3 id="mana_search_result_label"></h3>
509
                        <h3 id="mana_search_result_label"></h3>
501
                    </div>
510
                    </div>
502
                    <div class="modal-body">
511
                    <div class="modal-body">
503
                    </div>
504
                    <div class="modal-footer">
505
                        <button class="btn" data-dismiss="modal" aria-hidden="true">Close</button>
506
                    </div>
507
                </div>
508
            </div>
512
            </div>
509
        </div>
513
        </div>
510
514
(-)a/koha-tmpl/intranet-tmpl/prog/js/subscription-add.js (-5 / +59 lines)
Lines 396-409 function mana_search() { Link Here
396
    $.ajax({
396
    $.ajax({
397
        type: "POST",
397
        type: "POST",
398
        url: "/cgi-bin/koha/svc/mana/search",
398
        url: "/cgi-bin/koha/svc/mana/search",
399
        data: {biblionumber : $("#biblionumber").val()},
399
        data: {id: $("#biblionumber").val(), resource: 'subscription', usecomments: 1},
400
        dataType: "html",
400
        dataType: "html",
401
    })
401
    })
402
    .done( function( result ) {
402
    .done( function( result ) {
403
    $("#mana_search_result .modal-body").html(result);
403
        $("#mana_search_result .modal-body").html(result);
404
        $("#mana_search_result_label").text("Results from Mana");
404
        $("#mana_search_result_label").text("Results from Mana Knowledge Base");
405
        $("#mana_results_datatable").dataTable($.extend(true, {}, dataTablesDefaults, {
405
        $("#mana_results_datatable").dataTable($.extend(true, {}, dataTablesDefaults, {
406
            "sPaginationType": "four_button",
406
            "sPaginationType": "four_button",
407
            "order":[[4, "desc"], [5, "desc"]],
408
            "autoWidth": false,
409
            "columnDefs": [
410
                { "width": "35%", "targets": 1 }
411
            ],
407
            "aoColumnDefs": [
412
            "aoColumnDefs": [
408
                { 'bSortable': false, "bSearchable": false, 'aTargets': [ 'NoSort' ] },
413
                { 'bSortable': false, "bSearchable": false, 'aTargets': [ 'NoSort' ] },
409
                { "sType": "title-string", "aTargets" : [ "title-string" ] },
414
                { "sType": "title-string", "aTargets" : [ "title-string" ] },
Lines 413-429 function mana_search() { Link Here
413
        if($("td.dataTables_empty").length == 0){
418
        if($("td.dataTables_empty").length == 0){
414
            $("#mana_search").show();
419
            $("#mana_search").show();
415
        }
420
        }
421
        $( "select[class='actionreport1']" ).show();
422
        $( "button[class='actionreport2']" ).hide();
423
424
        $("#CommentButton").on("click", function(){
425
            var resource_type = "subscription";
426
            var target_id = $("#selected_id").val();
427
            var manamsg = $("#manamsg").val();
428
            mana_comment(target_id, manamsg, resource_type);
429
            $("#comment_box").modal("hide");
430
        });
431
432
        $("#commentCloseButton").on("click", function(){
433
            $("#comment_box").modal("hide");
434
        });
435
436
        $(".actionreport1").on("click", function(){
437
            $("#selectedcomment").val($(this).val());
438
            $(this).parent("select").hide();
439
            $(this).parent("select").next().show();
440
        });
441
442
        $(".actionreport2").on("click", function(){
443
            $(this).hide();
444
            $(this).prev().show();
445
            mana_increment($("#selectedcomment").val(), 'resource_comment', 'nb', -1);
446
        });
447
416
    }).fail(function(result){
448
    }).fail(function(result){
417
    });
449
    });
418
}
450
}
419
451
452
function mana_comment( target_id, manamsg, resource_type ){
453
    $.ajax( {
454
        type: "POST",
455
        url: "/cgi-bin/koha/svc/mana/share",
456
        data: {message: manamsg, resource: resource_type , resource_id: target_id},
457
        datatype: "json",
458
    })
459
}
460
461
function mana_increment(mana_id, resource, fieldvalue, stepvalue = 1){
462
    $.ajax( {
463
        type: "POST",
464
        url: "/cgi-bin/koha/svc/mana/addvaluetofield",
465
        data: {id: mana_id, resource: resource, field: fieldvalue, step: stepvalue},
466
        datatype: "json",
467
    })
468
}
469
420
function mana_use(mana_id){
470
function mana_use(mana_id){
421
    $("tr").removeClass("selected");
471
    $("tr").removeClass("selected");
422
    $("#row"+mana_id).addClass("selected");
472
    $("#row"+mana_id).addClass("selected");
423
    $.ajax( {
473
    $.ajax( {
424
        type: "POST",
474
        type: "POST",
425
        url: "/cgi-bin/koha/svc/mana/use",
475
        url: "/cgi-bin/koha/svc/mana/use",
426
        data: {id : mana_id},
476
        data: {id: mana_id, resource: 'subscription'},
427
        dataType: "json",
477
        dataType: "json",
428
    })
478
    })
429
    .done(function(result){
479
    .done(function(result){
Lines 497-502 function removeDisabledAttr() { Link Here
497
}
547
}
498
548
499
$(document).ready(function() {
549
$(document).ready(function() {
550
    mana_search();
551
    $("#myid").on("click", function(){
552
        debugger;
553
    })
500
    $("#displayexample").hide();
554
    $("#displayexample").hide();
501
    $("#mana_search_result").modal("hide");
555
    $("#mana_search_result").modal("hide");
502
    $("#aqbooksellerid").on('keypress', function(e) {
556
    $("#aqbooksellerid").on('keypress', function(e) {
Lines 606-612 $(document).ready(function() { Link Here
606
    });
660
    });
607
    $("#subscription_add_next").on("click",function(){
661
    $("#subscription_add_next").on("click",function(){
608
        if ( Check_page1() ){
662
        if ( Check_page1() ){
609
            [% IF Koha.Preference('Mana') %]
663
            [% IF Koha.Preference('Mana') == 1 %]
610
                mana_search();
664
                mana_search();
611
            [% END %]
665
            [% END %]
612
            show_page_2();
666
            show_page_2();
(-)a/reports/guided_reports.pl (-1 / +12 lines)
Lines 38-43 use Koha::AuthorisedValues; Link Here
38
use Koha::BiblioFrameworks;
38
use Koha::BiblioFrameworks;
39
use Koha::Libraries;
39
use Koha::Libraries;
40
use Koha::Patron::Categories;
40
use Koha::Patron::Categories;
41
use Koha::SharedContent;
41
42
42
=head1 NAME
43
=head1 NAME
43
44
Lines 145-150 elsif ( $phase eq 'Build new' ) { Link Here
145
        }
146
        }
146
    }
147
    }
147
    $template->param(
148
    $template->param(
149
        'manamsg' => $input->param('manamsg') || '',
148
        'saved1'                => 1,
150
        'saved1'                => 1,
149
        'savedreports'          => $reports,
151
        'savedreports'          => $reports,
150
        'usecache'              => $usecache,
152
        'usecache'              => $usecache,
Lines 547-553 elsif ( $phase eq 'Build report' ) { Link Here
547
549
548
elsif ( $phase eq 'Save' ) {
550
elsif ( $phase eq 'Save' ) {
549
    # Save the report that has just been built
551
    # Save the report that has just been built
550
    my $area           = $input->param('area');
552
    my $area = $input->param('area');
551
    my $sql  = $input->param('sql');
553
    my $sql  = $input->param('sql');
552
    my $type = $input->param('type');
554
    my $type = $input->param('type');
553
    $template->param(
555
    $template->param(
Lines 651-656 elsif ( $phase eq 'Save Report' ) { Link Here
651
                    cache_expiry   => $cache_expiry,
653
                    cache_expiry   => $cache_expiry,
652
                    public         => $public,
654
                    public         => $public,
653
                } );
655
                } );
656
654
                logaction( "REPORTS", "ADD", $id, "$name | $sql" ) if C4::Context->preference("ReportsLog");
657
                logaction( "REPORTS", "ADD", $id, "$name | $sql" ) if C4::Context->preference("ReportsLog");
655
            $template->param(
658
            $template->param(
656
                'save_successful' => 1,
659
                'save_successful' => 1,
Lines 668-673 elsif ( $phase eq 'Save Report' ) { Link Here
668
    }
671
    }
669
}
672
}
670
673
674
elsif ($phase eq 'Share'){
675
    my $result = Koha::SharedContent::manaShareInfos($input, $borrowernumber, $input->param('reportid'), 'report');
676
    if ( $result and ($result->{code} eq "200" or $result->{code} eq "201") ) {
677
        print $input->redirect("/cgi-bin/koha/reports/guided_reports.pl?phase=Use%20saved&manamsg=success");
678
    }else{
679
        print $input->redirect("/cgi-bin/koha/reports/guided_reports.pl?phase=Use%20saved&manamsg=fail");
680
    }
681
}
671
elsif ($phase eq 'Run this report'){
682
elsif ($phase eq 'Run this report'){
672
    # execute a saved report
683
    # execute a saved report
673
    my $limit      = $input->param('limit') || 20;
684
    my $limit      = $input->param('limit') || 20;
(-)a/serials/subscription-add.pl (-3 / +6 lines)
Lines 376-382 sub redirect_add_subscription { Link Here
376
    my $mana_id;
376
    my $mana_id;
377
    if ( $query->param('mana_id') ne "" ) {
377
    if ( $query->param('mana_id') ne "" ) {
378
        $mana_id = $query->param('mana_id');
378
        $mana_id = $query->param('mana_id');
379
        Koha::SharedContent::manaNewUserPatchRequest("subscription",$mana_id);
379
        Koha::SharedContent::manaIncrementRequest("subscription",$mana_id, "nbofusers");
380
    }
380
    }
381
    else {
381
    else {
382
        $mana_id = undef;
382
        $mana_id = undef;
Lines 403-409 sub redirect_add_subscription { Link Here
403
        $staffdisplaycount, $opacdisplaycount, $graceperiod, $location, $enddate,
403
        $staffdisplaycount, $opacdisplaycount, $graceperiod, $location, $enddate,
404
        $skip_serialseq, $itemtype, $previousitemtype, $mana_id
404
        $skip_serialseq, $itemtype, $previousitemtype, $mana_id
405
    );
405
    );
406
406
    if ( grep { $_ eq "subscription" } split(/,/, C4::Context->preference('AutoShareWithMana')) ){
407
        my $result = Koha::SharedContent::manaShareInfos( $query, $loggedinuser, $subscriptionid, 'subscription');
408
        $template->param( mana_code => $result->{code} );
409
    }
407
    my $additional_fields = Koha::AdditionalField->all( { tablename => 'subscription' } );
410
    my $additional_fields = Koha::AdditionalField->all( { tablename => 'subscription' } );
408
    insert_additional_fields( $additional_fields, $biblionumber, $subscriptionid );
411
    insert_additional_fields( $additional_fields, $biblionumber, $subscriptionid );
409
412
Lines 463-469 sub redirect_mod_subscription { Link Here
463
    my $mana_id;
466
    my $mana_id;
464
    if ( defined( $query->param('mana_id') ) ) {
467
    if ( defined( $query->param('mana_id') ) ) {
465
        $mana_id = $query->param('mana_id');
468
        $mana_id = $query->param('mana_id');
466
        Koha::SharedContent::manaNewUserPatchRequest("subscription",$mana_id);
469
        Koha::SharedContent::manaIncrementRequest("subscription",$mana_id, "nbofusers");
467
    }
470
    }
468
    else {
471
    else {
469
        $mana_id = undef;
472
        $mana_id = undef;
(-)a/serials/subscription-detail.pl (-37 / +2 lines)
Lines 100-143 if ($op eq 'del') { Link Here
100
    }
100
    }
101
}
101
}
102
elsif ( $op and $op eq "share" ) {
102
elsif ( $op and $op eq "share" ) {
103
    my $mana_language;
103
    my $result = Koha::SharedContent::manaShareInfos($query, $loggedinuser, $subscriptionid, 'subscription');
104
    if ( $query->param('mana_language') ) {
105
        $mana_language = $query->param('mana_language');
106
    }
107
    else {
108
        $mana_language = C4::Context->preference('language');
109
    }
110
111
    my $mana_email;
112
    if ( $loggedinuser ne 0 ) {
113
        my $borrower = Koha::Patrons->find($loggedinuser);
114
        $mana_email = $borrower->email
115
          if ( ( not defined($mana_email) ) or ( $mana_email eq '' ) );
116
        $mana_email = $borrower->emailpro
117
          if ( ( not defined($mana_email) ) or ( $mana_email eq '' ) );
118
        $mana_email =
119
          Koha::Libraries->find( C4::Context->userenv->{'branch'} )->branchemail
120
          if ( ( not defined($mana_email) ) or ( $mana_email eq '' ) );
121
    }
122
    $mana_email = C4::Context->preference('KohaAdminEmailAddress')
123
      if ( ( not defined($mana_email) ) or ( $mana_email eq '' ) );
124
    my %versions = C4::Context::get_versions();
125
126
    my $mana_info = {
127
        language    => $mana_language,
128
        kohaversion => $versions{'kohaVersion'},
129
        exportemail => $mana_email
130
    };
131
    my $sub_mana_info = Koha::Subscription::get_sharable_info($subscriptionid);
132
    $sub_mana_info = { %$sub_mana_info, %$mana_info };
133
    my $result = Koha::SharedContent::manaPostRequest( "subscription",
134
        $sub_mana_info );
135
    if ( $result->{code} eq "200" and $result->{code} eq "201" ) {
136
        my $subscription = Koha::Subscriptions->find($subscriptionid);
137
        $subscription->set( { mana_id => $result->{id} } )->store;
138
        $subs->{mana_id} = $result->{id};
139
    }
140
    $template->param( mana_code => $result->{code} );
104
    $template->param( mana_code => $result->{code} );
105
    $subs->{mana_id} = $result->{id};
141
}
106
}
142
107
143
my $hasRouting = check_routing($subscriptionid);
108
my $hasRouting = check_routing($subscriptionid);
(-)a/svc/mana/addvaluetofield (+42 lines)
Line 0 Link Here
1
#!/usr/bin/perl
2
3
# Copyright 2017 BibLibre Baptiste Wojtkowski
4
#
5
# This file is part of Koha.
6
#
7
# Koha is free software; you can redistribute it and/or modify it
8
# under the terms of the GNU General Public License as published by
9
# the Free Software Foundation; either version 3 of the License, or
10
# (at your option) any later version.
11
#
12
# Koha is distributed in the hope that it will be useful, but
13
# WITHOUT ANY WARRANTY; without even the implied warranty of
14
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15
# GNU General Public License for more details.
16
#
17
# You should have received a copy of the GNU General Public License
18
# along with Koha; if not, see <http://www.gnu.org/licenses>.
19
#
20
21
use Modern::Perl;
22
23
use Koha::SharedContent;
24
use C4::Auth qw(check_cookie_auth);
25
26
use CGI;
27
use JSON;
28
29
30
my $input = new CGI;
31
binmode STDOUT, ":encoding(UTF-8)";
32
print $input->header( -type => 'text/plain', -charset => 'UTF-8' );
33
34
my ( $auth_status, $sessionID ) =
35
  check_cookie_auth( $input->cookie('CGISESSID'),
36
    { serials => 'create_subscription' } );
37
38
if ( $auth_status ne "ok" ) {
39
    exit 0;
40
}
41
my $result = Koha::SharedContent::manaIncrementRequest($input->param('resource'), $input->param('id'), $input->param('field'), $input->param('step') );
42
return $result;
(-)a/svc/mana/search (-8 / +23 lines)
Lines 18-25 Link Here
18
# along with Koha; if not, see <http://www.gnu.org/licenses>.
18
# along with Koha; if not, see <http://www.gnu.org/licenses>.
19
#
19
#
20
20
21
use strict;
21
use Modern::Perl;
22
use warnings;
23
22
24
use Koha::SharedContent;
23
use Koha::SharedContent;
25
use Koha::Subscription;
24
use Koha::Subscription;
Lines 39-47 if ( $auth_status ne "ok" ) { Link Here
39
    exit 0;
38
    exit 0;
40
}
39
}
41
40
41
my $templatename;
42
$templatename = "mana/mana-".$input->param( "resource" )."-search-result.tt";
43
42
my ( $template, $loggedinuser, $cookie ) = get_template_and_user(
44
my ( $template, $loggedinuser, $cookie ) = get_template_and_user(
43
    {
45
    {
44
        template_name   => "serials/mana-subscription-search-result.tt",
46
        template_name   => $templatename,
45
        query           => $input,
47
        query           => $input,
46
        type            => "intranet",
48
        type            => "intranet",
47
        authnotrequired => 0,
49
        authnotrequired => 0,
Lines 52-62 my ( $template, $loggedinuser, $cookie ) = get_template_and_user( Link Here
52
    }
54
    }
53
);
55
);
54
56
55
my $biblionumber = $input->param('biblionumber');
57
my ($identifier, $sub_mana_info);
58
$identifier = $input->param('id');
59
$template->param( lowWarned => 5, warned => 10, highWarned => 20);
60
my $package = "Koha::".ucfirst($input->param( 'resource' ));
61
$sub_mana_info = $package->get_search_info($identifier);
62
63
$sub_mana_info->{ usecomments } = $input->param('usecomments');
64
my $resourcename = $input->param('resource');
65
my $result = Koha::SharedContent::manaGetRequest( $resourcename, $sub_mana_info);
66
my $nbofcomment;
67
foreach my $resource (@{ $result->{data} }){
68
    $nbofcomment = 0;
69
    foreach my $comment (@{ $resource->{comments} }){
70
        $nbofcomment += $comment->{nb};
71
    }
72
    $resource->{nbofcomment} = $nbofcomment;
73
}
56
74
57
my $sub_mana_info = Koha::Subscription::get_search_info($biblionumber);
75
$template->param( $input->param('resource')."s" => $result->{data} );
58
my $result =
59
  Koha::SharedContent::manaGetRequest( "subscription", $sub_mana_info );
60
$template->param( subscriptions => $result->{data} );
61
76
62
output_with_http_headers $input, $cookie, $template->output, 'json';
77
output_with_http_headers $input, $cookie, $template->output, 'json';
(-)a/svc/mana/share (+47 lines)
Line 0 Link Here
1
#!/usr/bin/perl
2
3
# Copyright 2017 BibLibre Baptiste Wojtkowski
4
#
5
# This file is part of Koha.
6
#
7
# Koha is free software; you can redistribute it and/or modify it
8
# under the terms of the GNU General Public License as published by
9
# the Free Software Foundation; either version 3 of the License, or
10
# (at your option) any later version.
11
#
12
# Koha is distributed in the hope that it will be useful, but
13
# WITHOUT ANY WARRANTY; without even the implied warranty of
14
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15
# GNU General Public License for more details.
16
#
17
# You should have received a copy of the GNU General Public License
18
# along with Koha; if not, see <http://www.gnu.org/licenses>.
19
#
20
21
use Modern::Perl;
22
23
use Koha::SharedContent;
24
use C4::Auth qw(check_cookie_auth);
25
26
use CGI;
27
use JSON;
28
29
30
my $input = new CGI;
31
binmode STDOUT, ":encoding(UTF-8)";
32
print $input->header( -type => 'text/plain', -charset => 'UTF-8' );
33
34
my ( $auth_status, $sessionID ) =
35
  check_cookie_auth( $input->cookie('CGISESSID'),
36
    { serials => 'create_subscription' } );
37
38
if ( $auth_status ne "ok" ) {
39
    exit 0;
40
}
41
42
43
my $content;
44
$content->{resource_id} = $input->param("resource_id");
45
$content->{resource_type} = $input->param("resource");
46
$content->{message} = $input->param("message");
47
Koha::SharedContent::manaPostRequest('resource_comment', $content);
(-)a/svc/mana/use (-8 / +12 lines)
Lines 18-28 Link Here
18
# along with Koha; if not, see <http://www.gnu.org/licenses>.
18
# along with Koha; if not, see <http://www.gnu.org/licenses>.
19
#
19
#
20
20
21
use strict;
21
use Modern::Perl;
22
use warnings;
23
22
24
use Koha::SharedContent;
23
use Koha::SharedContent;
25
use C4::Auth qw(check_cookie_auth);
24
use C4::Auth qw(check_cookie_auth);
25
use Koha::Report;
26
26
27
use CGI;
27
use CGI;
28
use JSON;
28
use JSON;
Lines 40-48 if ( $auth_status ne "ok" ) { Link Here
40
    exit 0;
40
    exit 0;
41
}
41
}
42
42
43
my $result = Koha::SharedContent::manaGetRequestWithId("subscription", $input->param('id') );
43
my $result = Koha::SharedContent::manaGetRequestWithId($input->param('resource'), $input->param('id') );
44
my $package = "Koha::".ucfirst($input->param('resource'));
45
my $resource;
44
46
45
my $subscription;
47
if ( $input->param( 'saveinbase' )) {
46
$subscription = $result->{data};
48
    $resource = { id => $package->new_from_mana($result->{data})->id };
47
49
}
48
print(to_json($subscription));
50
else{
51
    $resource = $result->{data};
52
}
53
print(to_json($resource));
49
- 

Return to bug 17047