Replace them with:
[%- INCLUDE "opac/parts/record/jackets.tt2" %]
=== jackets.tt2 ===
Create a ///openils/var/templates/opac/parts/record/**jackets.tt2**// file with the following contents:
[%- IF obalkyknih_cz.enabled == 'true' %]
[%-
isbnissn = '';
IF attrs.isbns.0;
isbnissn = attrs.isbns.0;
IF (matches = isbnissn.match('^(.+?)(\s.+)$'));
isbnissn = matches.0;
END;
END;
IF attrs.issns.0;
isbnissn=attrs.issns.0;
END;
%]
[% ELSE %]
[%- 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 ///openils/conf/**opensrf.xml**//:
false
true
false
true
At the same time you have to disable added content from Open Library (Evergreen's default added content provider) and enable added content from Obalkyknih.cz instead:
OpenILS::WWW::AddedContent::ObalkyKnih
=== 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 "false" option,
* switched on again using "true" option.
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:
false
===== Getting source file(s) =====
Project's [[http://git.evergreen-ils.org/?p=working/Evergreen.git;a=shortlog;h=refs/heads/user/jkotrla/lp1624366-added_content_obalkyknih | current code]] is available via Git.
===== Česky (Czech) =====
[[doplnky:obalky_knih|Dokumentace v češtině / Documentaion in Czech language]]
^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. ^