koha xslt and framework
With current version(s), if I add/customize display through modifying xslt, can I make xslts that would only be applicable to a particular framework. For example, in a certain framework, I want general notes to not show in title notes(opac)/description(intranet) but instead shown below say Publisher details area. Is that possible? Thanks in advance & cheers! -- View this message in context: http://koha.1045719.n5.nabble.com/koha-xslt-and-framework-tp5783402.html Sent from the Koha-general mailing list archive at Nabble.com.
Hi, On Fri, Jan 10, 2014 at 6:06 AM, schnydszch <eugenegf@yahoo.com> wrote:
With current version(s), if I add/customize display through modifying xslt, can I make xslts that would only be applicable to a particular framework. For example, in a certain framework, I want general notes to not show in title notes(opac)/description(intranet) but instead shown below say Publisher details area. Is that possible? Thanks in advance & cheers!
Not directly at present, although it would be possible to write logic that inspects leader and fixed field values to make such distinctions -- which may or may not be sufficient for your needs. However, it would be simple to adjust C4::XSLT::XSLTParse4Display() so that it could make the framework code available to the stylesheet, which it turn would allow one to write conditional logic. Another option would be making it possible to specify different stylesheets for each framework, but I'm not in favor of that approach at present because it increases the potential number of files that a user who customizes them would have to deal with during upgrades. If you would like to pursue this further, I suggest opening a bug report. Regards, Galen -- Galen Charlton Manager of Implementation Equinox Software, Inc. / The Open Source Experts email: gmc@esilibrary.com direct: +1 770-709-5581 cell: +1 404-984-4366 skype: gmcharlt web: http://www.esilibrary.com/ Supporting Koha and Evergreen: http://koha-community.org & http://evergreen-ils.org
Thanks! I'll try to post a bug then. I don't want to edit codes in my Koha ILS, as I might have difficulties during upgrade, and get stucked as opposed to database-edited modifications and css/xslt customizations. Regarding your last statement "to specify different stylesheets for each framework", is it possible to have in System Preference "Optional(s)/More advance tab, where advance and more library-specific options are placed and customized? That's just on top of my head. Cheers! -- View this message in context: http://koha.1045719.n5.nabble.com/koha-xslt-and-framework-tp5783402p5783566.... Sent from the Koha-general mailing list archive at Nabble.com.
participants (2)
-
Galen Charlton -
schnydszch