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

(-)a/installer/data/mysql/atomicupdate/Bug_11606_Add_NovelistSelect_Staff_Prefs.sql (+2 lines)
Line 0 Link Here
1
INSERT IGNORE INTO systempreferences (variable,value,options,explanation,type) VALUES ('NovelistSelectStaffEnabled','0',NULL,'Enable  Novelist Select content to the Staff Interface (requires that you have entered in a user profile and password, which can be seen in image links)','YesNo'),
2
('NovelistSelectStaffView','tab','tab|above|below','Where to display Novelist Select content','Choice');
(-)a/installer/data/mysql/sysprefs.sql (+2 lines)
Lines 262-267 INSERT INTO systempreferences ( `variable`, `value`, `options`, `explanation`, ` Link Here
262
('NovelistSelectEnabled','0',NULL,'Enable Novelist Select content.  Requires Novelist Profile and Password','YesNo'),
262
('NovelistSelectEnabled','0',NULL,'Enable Novelist Select content.  Requires Novelist Profile and Password','YesNo'),
263
('NovelistSelectPassword','',NULL,'Enable Novelist user Profile','free'),
263
('NovelistSelectPassword','',NULL,'Enable Novelist user Profile','free'),
264
('NovelistSelectProfile','',NULL,'Novelist Select user Password','free'),
264
('NovelistSelectProfile','',NULL,'Novelist Select user Password','free'),
265
('NovelistSelectStaffEnabled','0',NULL,'Enable Novelist Select content in the staff client.  Requires Novelist Profile and Password','YesNo'),
266
('NovelistSelectStaffView','tab','tab|above|below','Where to display Novelist Select content in the staff client','Choice'),
265
('NovelistSelectView','tab','tab|above|below|right','Where to display Novelist Select content','Choice'),
267
('NovelistSelectView','tab','tab|above|below|right','Where to display Novelist Select content','Choice'),
266
('numReturnedItemsToShow','20',NULL,'Number of returned items to show on the check-in page','Integer'),
268
('numReturnedItemsToShow','20',NULL,'Number of returned items to show on the check-in page','Integer'),
267
('numSearchResults','20',NULL,'Specify the maximum number of results to display on a page of results','Integer'),
269
('numSearchResults','20',NULL,'Specify the maximum number of results to display on a page of results','Integer'),
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/enhanced_content.pref (+14 lines)
Lines 102-107 Enhanced Content: Link Here
102
            - pref: NovelistSelectPassword
102
            - pref: NovelistSelectPassword
103
              class: password
103
              class: password
104
            - .
104
            - .
105
        -
106
            - pref: NovelistSelectStaffEnabled
107
              choices:
108
                  yes: Add
109
                  no: "Don't add"
110
            - Novelist Select content to the Staff client (requires that you have entered in a user profile and password, which can be seen in image links).
111
        -
112
            - Display Novelist Select staff content
113
            - pref: NovelistSelectStaffView
114
              choices:
115
                  tab: in an OPAC tab
116
                  above: above the holdings table
117
                  below: below the holdings table
118
            - .
105
    Google:
119
    Google:
106
        -
120
        -
107
            - pref: GoogleJackets
121
            - pref: GoogleJackets
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt (-1 / +45 lines)
Lines 25-30 Link Here
25
    Details for [% title |html %] [% FOREACH subtitl IN subtitle %] [% subtitl.subfield %][% END %]
25
    Details for [% title |html %] [% FOREACH subtitl IN subtitle %] [% subtitl.subfield %][% END %]
26
  [% END %]
26
  [% END %]
27
</title>
27
</title>
28
29
[% IF ( Koha.Preference('NovelistSelectStaffEnabled') && Koha.Preference('NovelistSelectStaffProfile') && ( normalized_isbn || normalized_upc ) ) %]
30
    <script type="text/javascript" src="https://imageserver.ebscohost.com/novelistselect/ns2init.js"></script>
31
[% END %]
32
28
[% INCLUDE 'doc-head-close.inc' %]<script type="text/JavaScript">
33
[% INCLUDE 'doc-head-close.inc' %]<script type="text/JavaScript">
29
//<![CDATA[
34
//<![CDATA[
30
// http://www.oreillynet.com/pub/a/javascript/2003/10/21/amazonhacks.html
35
// http://www.oreillynet.com/pub/a/javascript/2003/10/21/amazonhacks.html
Lines 196-201 function verify_images() { Link Here
196
        $("#marcPreview").on("hidden", function(){
201
        $("#marcPreview").on("hidden", function(){
197
            $("#marcPreview .modal-body").html("<div id=\"loading\"><img src=\"[% interface %]/[% theme %]/img/loading-small.gif\" alt=\"\" /> "+_("Loading")+"</div>");
202
            $("#marcPreview .modal-body").html("<div id=\"loading\"><img src=\"[% interface %]/[% theme %]/img/loading-small.gif\" alt=\"\" /> "+_("Loading")+"</div>");
198
        });
203
        });
204
     [% IF ( Koha.Preference('NovelistSelectStaffEnabled') && Koha.Preference('NovelistSelectProfile') && ( normalized_isbn || normalized_upc ) ) %]
205
         novSelect.loadContentForQuery(
206
             {
207
                 ClientIdentifier : '[% IF normalized_isbn %][% normalized_isbn %][% ELSE %][% normalized_upc %][% END %]',
208
                 ISBN : '[% IF normalized_isbn %][% normalized_isbn %][% ELSE %][% normalized_upc %][% END %]',
209
                 version : '2.1'
210
             },
211
             '[% Koha.Preference('NovelistSelectProfile') %]',
212
             '[% Koha.Preference('NovelistSelectPassword') %]',
213
             function(d){
214
                 if ( d.length > 0 ){ //If no content
215
                     $(".NovelistSelect").show();
216
                 }
217
             });
218
     [% END %]
219
199
    });
220
    });
200
221
201
     [% IF ( AmazonCoverImages || LocalCoverImages ) %]$(window).load(function() {
222
     [% IF ( AmazonCoverImages || LocalCoverImages ) %]$(window).load(function() {
Lines 561-566 function verify_images() { Link Here
561
[% IF ( FRBRizeEditions ) %][% IF ( XISBNS ) %]<li><a href="#editions">Editions</a></li>[% END %][% END %]
582
[% IF ( FRBRizeEditions ) %][% IF ( XISBNS ) %]<li><a href="#editions">Editions</a></li>[% END %][% END %]
562
[% IF ( LocalCoverImages ) %][% IF ( localimages || CAN_user_tools_upload_local_cover_images ) %]<li><a href="#images">Images</a></li>[% END %][% END %]
583
[% IF ( LocalCoverImages ) %][% IF ( localimages || CAN_user_tools_upload_local_cover_images ) %]<li><a href="#images">Images</a></li>[% END %][% END %]
563
[% IF ( HTML5MediaEnabled ) %][% IF ( HTML5MediaSets ) %]<li><a href="#html5media">Play media</a></li>[% END %][% END %]
584
[% IF ( HTML5MediaEnabled ) %][% IF ( HTML5MediaSets ) %]<li><a href="#html5media">Play media</a></li>[% END %][% END %]
585
[% IF ( Koha.Preference('NovelistSelectStaffEnabled') && Koha.Preference('NovelistSelectProfile') && Koha.Preference('NovelistSelectStaffView') == 'tab' ) %]
586
    <li class="NovelistSelect" style="display:none;"><a href="#NovelistSelect">NoveList Select</a></li>
587
[% END %]
564
</ul>
588
</ul>
565
589
566
[% items_table_block_iter = 0 %]
590
[% items_table_block_iter = 0 %]
Lines 823-828 function verify_images() { Link Here
823
[% END %][%# end of block items_table %]
847
[% END %][%# end of block items_table %]
824
848
825
<div id="holdings">
849
<div id="holdings">
850
851
[% IF ( Koha.Preference('NovelistSelectStaffEnabled') && Koha.Preference('NovelistSelectProfile') && Koha.Preference('NovelistSelectStaffView') == 'above' ) %]
852
    <span class="results_summary NovelistSelect" style="display:none;">
853
        <span class="label">Novelist Select: </span>
854
        <div data-novelist-novelistselect=[% normalized_isbn %]></div>
855
    </span>
856
[% END %]
857
826
[% IF ( count ) %]
858
[% IF ( count ) %]
827
    [% IF ( showncount ) %]
859
    [% IF ( showncount ) %]
828
        [% PROCESS items_table tab="holdings" items=itemloop %]
860
        [% PROCESS items_table tab="holdings" items=itemloop %]
Lines 847-852 function verify_images() { Link Here
847
    <div id="noitems">No physical items for this record</div>
879
    <div id="noitems">No physical items for this record</div>
848
    [% END %]
880
    [% END %]
849
[% END %]
881
[% END %]
882
883
[% IF ( Koha.Preference('NovelistSelectStaffEnabled') && Koha.Preference('NovelistSelectProfile') && Koha.Preference('NovelistSelectStaffView') == 'below' ) %]
884
    <span class="results_summary NovelistSelect" style="display:none;">
885
        <span class="label">Novelist Select: </span>
886
        <div data-novelist-novelistselect=[% normalized_isbn %]></div>
887
    </span>
888
[% END %]
850
    </div>
889
    </div>
851
890
852
[% IF (SeparateHoldings) %]
891
[% IF (SeparateHoldings) %]
Lines 1054-1059 function verify_images() { Link Here
1054
[% END %]
1093
[% END %]
1055
1094
1056
1095
1096
[% IF ( Koha.Preference('NovelistSelectStaffEnabled') && Koha.Preference('NovelistSelectProfile') && Koha.Preference('NovelistSelectStaffView') == 'tab' ) %]
1097
    <div id="NovelistSelect" class="novelistSelect">
1098
        <div data-novelist-novelistselect=[% normalized_isbn %]></div>
1099
    </div>
1100
[% END %]
1101
1057
</div><!-- /bibliodetails -->
1102
</div><!-- /bibliodetails -->
1058
1103
1059
<div class="yui-g" id="export" style="margin-top: 1em;">
1104
<div class="yui-g" id="export" style="margin-top: 1em;">
1060
- 

Return to bug 11606