Prikaz podataka u intranetu - Keywords to MARC mapping
Contents: [Koha Croatian user group]
|
Čemu služi Keywords to MARC mapping?
Ovo je veliko poboljšanje u načinu prikaza podataka u intranetu (testirati OPAC) u slučaju kad display nije definiran uz pomoć XSLT.
Omogućuje prikazivanje bilo kojeg polja iz MARC formata, a ne samo onih polja koja su mapirana u Koha bazu.
Kako se koristi?
U admin sučelju intraneta, za svaki framework se odrede ključne riječi uparene s pojedinim MARC poljima.
Nakon toga se dodaju potrebna polja u ove dvije datoteke:
/usr/share/koha/intranet/cgi-bin/catalogue/detail.pl
/usr/share/koha/intranet/htdocs/intranet-tmpl/prog/en/modules/catalogue/detail.tmpl
Primjer za dodavanje podataka o odgovornosti (MARC 245c)
dodati varijablu responsibility:
mglavica@koha-upgrade:/usr/share/koha/intranet/cgi-bin/catalogue$ diff -u detail.pl-before detail.pl
--- detail.pl-before 2009-12-08 22:45:28.740439368 +0100
+++ detail.pl 2009-12-08 21:26:47.280689653 +0100
@@ -90,6 +90,7 @@
my $marcseriesarray = GetMarcSeries($record,$marcflavour);
my $marcurlsarray = GetMarcUrls ($record,$marcflavour);
my $subtitle = GetRecordValue('subtitle', $record, $fw);
+my $responsibility = GetRecordValue('responsibility', $record, $fw);
# Get Branches, Itemtypes and Locations
my $branches = GetBranches();
@@ -206,6 +207,7 @@
MARCSERIES => $marcseriesarray,
MARCURLS => $marcurlsarray,
subtitle => $subtitle,
+ responsibility => $responsibility,
itemdata_ccode => $itemfields{ccode},
itemdata_enumchron => $itemfields{enumchron},
itemdata_uri => $itemfields{uri},
u template dodati:
<!-- TMPL_LOOP NAME="responsibility" -->
<!-- TMPL_VAR NAME="subfield" -->
<!-- /TMPL_LOOP -->
Updated by Marijana Glavica on Dec 15 9:42am
Posted by Marijana Glavica on Dec 10 4:54pm
|
Weblog Navigation
Loading...
|