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

(-)a/installer/data/mysql/atomicupdate/bug_19882_Add_novelist_staff_client_profile.perl (+7 lines)
Line 0 Link Here
1
$DBversion = 'XXX';  # will be replaced by the RM
2
if( CheckVersion( $DBversion ) ) {
3
    $dbh->do("INSERT INTO systempreferences (variable,value,explanation,options,type) VALUES ('NovelistSelectStaffProfile',NULL,'Novelist staff client user Profile',NULL,'free')");
4
5
    SetVersion( $DBversion );
6
    print "Upgrade to $DBversion done (Bug 19882 - Add Novelist Staff Client Profile)\n";
7
}
(-)a/installer/data/mysql/sysprefs.sql (-2 / +3 lines)
Lines 292-300 INSERT INTO systempreferences ( `variable`, `value`, `options`, `explanation`, ` Link Here
292
('NoticeCSS','',NULL,'Notices CSS url.','free'),
292
('NoticeCSS','',NULL,'Notices CSS url.','free'),
293
('NotifyBorrowerDeparture','30',NULL,'Define number of days before expiry where circulation is warned about patron account expiry','Integer'),
293
('NotifyBorrowerDeparture','30',NULL,'Define number of days before expiry where circulation is warned about patron account expiry','Integer'),
294
('NovelistSelectEnabled','0',NULL,'Enable Novelist Select content.  Requires Novelist Profile and Password','YesNo'),
294
('NovelistSelectEnabled','0',NULL,'Enable Novelist Select content.  Requires Novelist Profile and Password','YesNo'),
295
('NovelistSelectPassword','',NULL,'Enable Novelist user Profile','free'),
295
('NovelistSelectPassword','',NULL,'Novelist select user Password','free'),
296
('NovelistSelectProfile','',NULL,'Novelist Select user Password','free'),
296
('NovelistSelectProfile','',NULL,'Novelist Select user Profile','free'),
297
('NovelistSelectStaffEnabled','0',NULL,'Enable Novelist Select content in the staff client.  Requires Novelist Profile and Password','YesNo'),
297
('NovelistSelectStaffEnabled','0',NULL,'Enable Novelist Select content in the staff client.  Requires Novelist Profile and Password','YesNo'),
298
('NovelistSelectStaffProfile','',NULL,'Novelist Select user Profile for staff client','free'),
298
('NovelistSelectStaffView','tab','tab|above|below','Where to display Novelist Select content in the staff client','Choice'),
299
('NovelistSelectStaffView','tab','tab|above|below','Where to display Novelist Select content in the staff client','Choice'),
299
('NovelistSelectView','tab','tab|above|below|right','Where to display Novelist Select content','Choice'),
300
('NovelistSelectView','tab','tab|above|below|right','Where to display Novelist Select content','Choice'),
300
('numReturnedItemsToShow','20',NULL,'Number of returned items to show on the check-in page','Integer'),
301
('numReturnedItemsToShow','20',NULL,'Number of returned items to show on the check-in page','Integer'),
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/enhanced_content.pref (-1 / +7 lines)
Lines 98-104 Enhanced Content: Link Here
98
        -
98
        -
99
            - Access Novelist Select using user profile
99
            - Access Novelist Select using user profile
100
            - pref: NovelistSelectProfile
100
            - pref: NovelistSelectProfile
101
            - and password
101
            - on the opac
102
        -
103
            - Access Novelist Select using user profile
104
            - pref: NovelistSelectStaffProfile
105
            - on the staff client
106
        -
107
            - Access Novelist Select using password:
102
            - pref: NovelistSelectPassword
108
            - pref: NovelistSelectPassword
103
              class: password
109
              class: password
104
            - .
110
            - .
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt (-8 / +7 lines)
Lines 302-308 Link Here
302
[% IF ( FRBRizeEditions ) %][% IF ( XISBNS ) %]<li><a href="#editions">Editions</a></li>[% END %][% END %]
302
[% IF ( FRBRizeEditions ) %][% IF ( XISBNS ) %]<li><a href="#editions">Editions</a></li>[% END %][% END %]
303
[% IF ( LocalCoverImages ) %][% IF ( localimages || CAN_user_tools_upload_local_cover_images ) %]<li><a href="#images">Images</a></li>[% END %][% END %]
303
[% IF ( LocalCoverImages ) %][% IF ( localimages || CAN_user_tools_upload_local_cover_images ) %]<li><a href="#images">Images</a></li>[% END %][% END %]
304
[% IF ( HTML5MediaEnabled ) %][% IF ( HTML5MediaSets ) %]<li><a href="#html5media">Play media</a></li>[% END %][% END %]
304
[% IF ( HTML5MediaEnabled ) %][% IF ( HTML5MediaSets ) %]<li><a href="#html5media">Play media</a></li>[% END %][% END %]
305
[% IF ( Koha.Preference('NovelistSelectStaffEnabled') && Koha.Preference('NovelistSelectProfile') && Koha.Preference('NovelistSelectStaffView') == 'tab' ) %]
305
[% IF ( Koha.Preference('NovelistSelectStaffEnabled') && Koha.Preference('NovelistSelectStaffProfile') && Koha.Preference('NovelistSelectStaffView') == 'tab' ) %]
306
    <li class="NovelistSelect" style="display:none;"><a href="#NovelistSelect">NoveList Select</a></li>
306
    <li class="NovelistSelect" style="display:none;"><a href="#NovelistSelect">NoveList Select</a></li>
307
[% END %]
307
[% END %]
308
</ul>
308
</ul>
Lines 538-544 Link Here
538
538
539
<div id="holdings">
539
<div id="holdings">
540
540
541
[% IF ( Koha.Preference('NovelistSelectStaffEnabled') && Koha.Preference('NovelistSelectProfile') && Koha.Preference('NovelistSelectStaffView') == 'above' ) %]
541
[% IF ( Koha.Preference('NovelistSelectStaffEnabled') && Koha.Preference('NovelistSelectStaffProfile') && Koha.Preference('NovelistSelectStaffView') == 'above' ) %]
542
    <span class="results_summary NovelistSelect" style="display:none;">
542
    <span class="results_summary NovelistSelect" style="display:none;">
543
        <span class="label">Novelist Select: </span>
543
        <span class="label">Novelist Select: </span>
544
        <div data-novelist-novelistselect=[% normalized_isbn %]></div>
544
        <div data-novelist-novelistselect=[% normalized_isbn %]></div>
Lines 570-576 Link Here
570
    [% END %]
570
    [% END %]
571
[% END %]
571
[% END %]
572
572
573
[% IF ( Koha.Preference('NovelistSelectStaffEnabled') && Koha.Preference('NovelistSelectProfile') && Koha.Preference('NovelistSelectStaffView') == 'below' ) %]
573
[% IF ( Koha.Preference('NovelistSelectStaffEnabled') && Koha.Preference('NovelistSelectStaffProfile') && Koha.Preference('NovelistSelectStaffView') == 'below' ) %]
574
    <span class="results_summary NovelistSelect" style="display:none;">
574
    <span class="results_summary NovelistSelect" style="display:none;">
575
        <span class="label">Novelist Select: </span>
575
        <span class="label">Novelist Select: </span>
576
        <div data-novelist-novelistselect=[% normalized_isbn %]></div>
576
        <div data-novelist-novelistselect=[% normalized_isbn %]></div>
Lines 784-790 Link Here
784
[% END %]
784
[% END %]
785
785
786
786
787
[% IF ( Koha.Preference('NovelistSelectStaffEnabled') && Koha.Preference('NovelistSelectProfile') && Koha.Preference('NovelistSelectStaffView') == 'tab' ) %]
787
[% IF ( Koha.Preference('NovelistSelectStaffEnabled') && Koha.Preference('NovelistSelectStaffProfile') && Koha.Preference('NovelistSelectStaffView') == 'tab' ) %]
788
    <div id="NovelistSelect" class="novelistSelect">
788
    <div id="NovelistSelect" class="novelistSelect">
789
        <div data-novelist-novelistselect=[% normalized_isbn %]></div>
789
        <div data-novelist-novelistselect=[% normalized_isbn %]></div>
790
    </div>
790
    </div>
Lines 1004-1016 Link Here
1004
            $("#marcPreview").on("hidden", function(){
1004
            $("#marcPreview").on("hidden", function(){
1005
                $("#marcPreview .modal-body").html("<div id=\"loading\"><img src=\"[% interface %]/[% theme %]/img/spinner-small.gif\" alt=\"\" /> "+_("Loading")+"</div>");
1005
                $("#marcPreview .modal-body").html("<div id=\"loading\"><img src=\"[% interface %]/[% theme %]/img/spinner-small.gif\" alt=\"\" /> "+_("Loading")+"</div>");
1006
            });
1006
            });
1007
            [% IF ( Koha.Preference('NovelistSelectStaffEnabled') && Koha.Preference('NovelistSelectProfile') && ( normalized_isbn || normalized_upc ) ) %]
1007
            [% IF ( Koha.Preference('NovelistSelectStaffEnabled') && Koha.Preference('NovelistSelectStaffProfile') && ( normalized_isbn || normalized_upc ) ) %]
1008
                novSelect.loadContentForQuery({
1008
                novSelect.loadContentForQuery({
1009
                    ClientIdentifier : '[% IF normalized_isbn %][% normalized_isbn %][% ELSE %][% normalized_upc %][% END %]',
1009
                    ClientIdentifier : '[% IF normalized_isbn %][% normalized_isbn %][% ELSE %][% normalized_upc %][% END %]',
1010
                    ISBN : '[% IF normalized_isbn %][% normalized_isbn %][% ELSE %][% normalized_upc %][% END %]',
1010
                    ISBN : '[% IF normalized_isbn %][% normalized_isbn %][% ELSE %][% normalized_upc %][% END %]',
1011
                    version : '2.1'
1011
                    version : '2.1'
1012
                },
1012
                },
1013
                '[% Koha.Preference('NovelistSelectProfile') %]',
1013
                '[% Koha.Preference('NovelistSelectStaffProfile') %]',
1014
                '[% Koha.Preference('NovelistSelectPassword') %]',
1014
                '[% Koha.Preference('NovelistSelectPassword') %]',
1015
                function(d){
1015
                function(d){
1016
                    if ( d.length > 0 ){ //If no content
1016
                    if ( d.length > 0 ){ //If no content
Lines 1025-1031 Link Here
1025
            verify_images();
1025
            verify_images();
1026
        });[% END %]
1026
        });[% END %]
1027
    </script>
1027
    </script>
1028
    [% IF ( Koha.Preference('NovelistSelectStaffEnabled') && Koha.Preference('NovelistSelectProfile') && ( normalized_isbn || normalized_upc ) ) %]
1028
    [% IF ( Koha.Preference('NovelistSelectStaffEnabled') && Koha.Preference('NovelistSelectStaffProfile') && ( normalized_isbn || normalized_upc ) ) %]
1029
        <script type="text/javascript" src="https://imageserver.ebscohost.com/novelistselect/ns2init_[% KOHA_VERSION %].js"></script>
1029
        <script type="text/javascript" src="https://imageserver.ebscohost.com/novelistselect/ns2init_[% KOHA_VERSION %].js"></script>
1030
    [% END %]
1030
    [% END %]
1031
    [% INCLUDE 'datatables.inc' %]
1031
    [% INCLUDE 'datatables.inc' %]
1032
- 

Return to bug 19882