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

(-)a/installer/data/mysql/atomicupdate/bug_16243-add_mendeley_reference_manager.sql (+1 lines)
Line 0 Link Here
1
INSERT IGNORE INTO systempreferences (variable,value,explanation,options,type) VALUES ('MendeleyReferenceManager',NULL,'Add Mendeley reference manager to search results and bibliographic detail pages on the OPAC.',NULL,'free');
(-)a/installer/data/mysql/sysprefs.sql (-1 / +2 lines)
Lines 532-536 INSERT INTO systempreferences ( `variable`, `value`, `options`, `explanation`, ` Link Here
532
('XSLTDetailsDisplay','default','','Enable XSL stylesheet control over details page display on intranet','Free'),
532
('XSLTDetailsDisplay','default','','Enable XSL stylesheet control over details page display on intranet','Free'),
533
('XSLTResultsDisplay','default','','Enable XSL stylesheet control over results page display on intranet','Free'),
533
('XSLTResultsDisplay','default','','Enable XSL stylesheet control over results page display on intranet','Free'),
534
('z3950AuthorAuthFields','701,702,700',NULL,'Define the MARC biblio fields for Personal Name Authorities to fill biblio.author','free'),
534
('z3950AuthorAuthFields','701,702,700',NULL,'Define the MARC biblio fields for Personal Name Authorities to fill biblio.author','free'),
535
('z3950NormalizeAuthor','0','','If ON, Personal Name Authorities will replace authors in biblio.author','YesNo')
535
('z3950NormalizeAuthor','0','','If ON, Personal Name Authorities will replace authors in biblio.author','YesNo'),
536
('MendeleyReferenceManager',NULL,NULL,'Add Mendeley reference manager to search results and bibliographic detail pages on the OPAC.','free')
536
;
537
;
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/enhanced_content.pref (+8 lines)
Lines 367-369 Enhanced Content: Link Here
367
                aws: Amazon Web Services
367
                aws: Amazon Web Services
368
                gb: Google Books
368
                gb: Google Books
369
                ol: Open Library
369
                ol: Open Library
370
    Mendeley reference manager:
371
        -
372
            - pref: MendeleyReferenceManager
373
              choices:
374
                  yes: Add
375
                  no: "Don't add"
376
            - Mendeley reference manager to search results and bibliographic detail pages on the OPAC.
377
(-)a/koha-tmpl/opac-tmpl/bootstrap/en/includes/opac-detail-sidebar.inc (+5 lines)
Lines 58-63 Link Here
58
                                </li>
58
                                </li>
59
                                [% END %]
59
                                [% END %]
60
                            [% END %]
60
                            [% END %]
61
                            [% IF Koha.Preference( 'MendeleyReferenceManager' ) %]
62
                                <li>
63
                                    <a role="menuitem" href="javascript:document.getElementsByTagName('body')[0].appendChild(document.createElement('script')).setAttribute('src','https://www.mendeley.com/minified/bookmarklet.js');">Save to Mendeley <img src="http://www.mendeley.com/graphics/mendeley.png"/></a>
64
                                </li>
65
                            [% END %]
61
                        </ul>
66
                        </ul>
62
                </div>
67
                </div>
63
            </div>
68
            </div>
(-)a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-basket.tt (+4 lines)
Lines 29-34 Link Here
29
                                <a class="print-large" href="opac-basket.pl" onclick="printBasket(); return false;">Print</a>
29
                                <a class="print-large" href="opac-basket.pl" onclick="printBasket(); return false;">Print</a>
30
                                <a class="empty" href="opac-basket.pl" onclick="delBasket(); return false;">Empty and close</a>
30
                                <a class="empty" href="opac-basket.pl" onclick="delBasket(); return false;">Empty and close</a>
31
                                <a class="hide close" href="opac-basket.pl">Hide window</a>
31
                                <a class="hide close" href="opac-basket.pl">Hide window</a>
32
                                [% IF Koha.Preference( 'MendeleyReferenceManager' ) %]
33
                                <span class="sep">|</span>
34
                                <a href="javascript:document.getElementsByTagName('body')[0].appendChild(document.createElement('script')).setAttribute('src','https://www.mendeley.com/minified/bookmarklet.js');"><img src="http://www.mendeley.com/graphics/mendeley.png"/> Save to Mendeley</a>
35
                                [% END %]
32
                            </div>
36
                            </div>
33
37
34
                            <div id="selections-toolbar" class="toolbar">
38
                            <div id="selections-toolbar" class="toolbar">
(-)a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-results.tt (+4 lines)
Lines 160-165 Link Here
160
                                                <span class="addto"></span>
160
                                                <span class="addto"></span>
161
                                            [% END %]
161
                                            [% END %]
162
                                            <span id="placehold"><!-- input class="submit" type="submit" value="Place Hold"/ --></span>
162
                                            <span id="placehold"><!-- input class="submit" type="submit" value="Place Hold"/ --></span>
163
                                            <span class="sep">|</span>
163
164
164
                                            [% IF ( TagsInputEnabled && loggedinusername ) %]
165
                                            [% IF ( TagsInputEnabled && loggedinusername ) %]
165
                                                <span id="tagsel_span">
166
                                                <span id="tagsel_span">
Lines 176-181 Link Here
176
                                                </div>
177
                                                </div>
177
                                            [% END %]
178
                                            [% END %]
178
                                        </span> <!-- / .links -->
179
                                        </span> <!-- / .links -->
180
                                        [% IF Koha.Preference( 'MendeleyReferenceManager' ) %]
181
                                        <span id="export_mendeley"><a href="javascript:document.getElementsByTagName('body')[0].appendChild(document.createElement('script')).setAttribute('src','https://www.mendeley.com/minified/bookmarklet.js');">Save to Mendeley <img src="http://www.mendeley.com/graphics/mendeley.png"/></a></span>
182
                                        [% END %]
179
                                </div> <!-- / #selections-toolbar -->
183
                                </div> <!-- / #selections-toolbar -->
180
184
181
                                <!-- TABLE RESULTS START -->
185
                                <!-- TABLE RESULTS START -->
(-)a/koha-tmpl/opac-tmpl/bootstrap/js/mendeley.js (-1 / +13 lines)
Line 0 Link Here
0
- 
1
//Call for Mendeley Reference Manager
2
3
function getMendeleyModal(){
4
    document.getElementsByTagName('body')[0].appendChild(document.createElement('script')).setAttribute('src','https://www.mendeley.com/minified/bookmarklet.js');
5
}
6
7
$(document).ready(function(){
8
    $( "#mendeley_modal" ).click(function( event ){
9
        event.preventDefault();
10
        getMendeleyModal();
11
        return false;
12
    });
13
});

Return to bug 16243