doplnky:obalky_knih_english
Rozdíly
Zde můžete vidět rozdíly mezi vybranou verzí a aktuální verzí dané stránky.
Obě strany předchozí revizePředchozí verzeNásledující verze | Předchozí verze | ||
doplnky:obalky_knih_english [2016/11/27 21:07] – [summary.tt2] ece | doplnky:obalky_knih_english [2016/12/12 11:05] (aktuální) – ece | ||
---|---|---|---|
Řádek 1: | Řádek 1: | ||
+ | ====== Added Content from Obalkyknih.cz ====== | ||
+ | ===== Obalkyknih.cz account ===== | ||
+ | |||
+ | If your library wishes to use added content provided by Obalkyknih.cz, | ||
+ | After logging in your Obalkyknih.cz account, you have to add your IP address and Evergreen server address to your account settings. (In case each library uses an address of its own, all of these addresses have to be added.) | ||
+ | ===== Including added content in Evergreen ===== | ||
+ | Support for displaying added content provided by Obalkyknih.cz is to be included in future releases of Evergreen ILS (from 2017 onwards). At this stage you need to change Evergreen source code to be able to pull the added content from Obalkyknih.cz. | ||
+ | ==== Adding Perl module ObalkyKnih.pm to AddedContent directory ==== | ||
+ | Create a file [[http:// | ||
+ | ==== Customizing online catalog templates ==== | ||
+ | === config.tt2=== | ||
+ | Add the following code to file /// | ||
+ | ############################################################################## | ||
+ | # Obalkyknih.cz support | ||
+ | ############################################################################## | ||
+ | # Obalkyknihy.cz is free Czech service providing added content and book covers | ||
+ | # Set to ' | ||
+ | ############################################################################## | ||
+ | obalkyknih_cz.enabled = ' | ||
+ | === summary.tt2 === | ||
+ | Change parts of code in /// | ||
+ | |||
+ | Delete the following lines: | ||
+ | < | ||
+ | < | ||
+ | <a href=' | ||
+ | alt=" | ||
+ | src=' | ||
+ | <br /> | ||
+ | </ | ||
+ | </ | ||
+ | |||
+ | Replace them with: | ||
+ | < | ||
+ | < | ||
+ | [%- INCLUDE " | ||
+ | </ | ||
+ | </ | ||
+ | === jackets.tt2 === | ||
+ | Create a /// | ||
+ | < | ||
+ | [%- IF obalkyknih_cz.enabled == ' | ||
+ | [%- | ||
+ | isbnissn = ''; | ||
+ | IF attrs.isbns.0; | ||
+ | isbnissn = attrs.isbns.0; | ||
+ | IF (matches = isbnissn.match(' | ||
+ | isbnissn = matches.0; | ||
+ | END; | ||
+ | END; | ||
+ | IF attrs.issns.0; | ||
+ | isbnissn=attrs.issns.0; | ||
+ | END; | ||
+ | %] | ||
+ | <a href=' | ||
+ | <img | ||
+ | alt=" | ||
+ | src=' | ||
+ | </a> | ||
+ | <br /> | ||
+ | [% ELSE %] | ||
+ | <a href=' | ||
+ | alt=" | ||
+ | src=' | ||
+ | </a> | ||
+ | [%- END %] | ||
+ | </ | ||
+ | |||
+ | ==== Adding support for ObalkyKnih.cz to Evergreen configuration ==== | ||
+ | To enable Obalkyknih.cz service add the following code to added_content section of configuration file /// | ||
+ | |||
+ | < | ||
+ | < | ||
+ | <!-- Covers are there always --> | ||
+ | |||
+ | <!-- Annotations provided by obalkyknih.cz is mapped to evergreen summary --> | ||
+ | < | ||
+ | | ||
+ | <!-- Provider obalkyknih.cz provides TOC as text and as PDF plus thumbnail --> | ||
+ | < | ||
+ | < | ||
+ | | ||
+ | <!-- User reviews from obalkyknih.cz --> | ||
+ | < | ||
+ | |||
+ | </ | ||
+ | </ | ||
+ | | ||
+ | At the same time you have to disable added content from Open Library (Evergreen' | ||
+ | |||
+ | < | ||
+ | < | ||
+ | < | ||
+ | </ | ||
+ | === Switching on/off some types of added content === | ||
+ | Using default settings for Obalkyknih.cz means all types of added content from Obalkyknih.cz are visible in your online catalog. | ||
+ | If the module is enabled, book covers are always displayed. | ||
+ | Other types of added content (summaries, ratings or tables of contents) can be: | ||
+ | * switched off using " | ||
+ | * switched on again using " | ||
+ | The following types of added content are used: | ||
+ | * summary (or annotation) | ||
+ | * tocPDF (table of contents available as image) | ||
+ | * tocText (table of contents available as text) | ||
+ | * review (user reviews) | ||
+ | An example of how to switch off summaries: | ||
+ | < | ||
+ | < | ||
+ | </ | ||
+ | ===== Getting source file(s) ===== | ||
+ | Project' | ||
+ | |||
+ | ===== Česky (Czech) ===== | ||
+ | [[doplnky: | ||
+ | |||
+ | ^A module for pulling added content from Obalkyknih.cz to Evergreen online catalog has been developed as part of „Enhancing Ján Langoš Library services with the aide of Evergreen free software“ project supported by Public Library Information Services 3 (VISK 3 in Czech) grant scheme. ^ | ||
+ | |||