V
3  
Tags
Attachments
Koha Croatian user group
Prikaz podataka u intranetu - Keywords to MARC mapping
  • dodano u verziji 3.2


Č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 --> 

 

Upload Files

Click "Browse" to find the file you want to upload. When you click "Upload file" your file will be uploaded and added to the list of attachments for this page.

Maximum file size: 50MB

 
 
 
File Name Author Date Uploaded Size

Save Page As

Enter a meaningful and distinctive title for your page.

Page Title:

Tip: You'll be able to find this page later by using the title you choose.

Page Already Exists

There is already a page named XXX. Would you like to:

Save with a different name:

Save the page with the name "XXX"

Append your text to the bottom of the existing page named: "XXX"

Upload Files

Click "Browse" to find the file you want to upload. When you click "Add file" this file will be added to the list of attachments for this page, and uploaded when you save the page.

 
 
 
Add Tags

Enter a tag and click "Add tag". The tag will be saved when you save the page.

Tag: 

Suggestions: