Bug 18984: Remove NORMARC support
Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl> Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io> Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
This commit is contained in:
parent
3dbce2e79a
commit
08c03af2ae
55 changed files with 56 additions and 13277 deletions
18
C4/Biblio.pm
18
C4/Biblio.pm
|
@ -1265,7 +1265,7 @@ sub GetMarcPrice {
|
|||
my @listtags;
|
||||
my $subfield;
|
||||
|
||||
if ( $marcflavour eq "MARC21" || $marcflavour eq "NORMARC" ) {
|
||||
if ( $marcflavour eq "MARC21" ) {
|
||||
@listtags = ('345', '020');
|
||||
$subfield="c";
|
||||
} elsif ( $marcflavour eq "UNIMARC" ) {
|
||||
|
@ -1461,9 +1461,9 @@ sub GetMarcControlnumber {
|
|||
return;
|
||||
}
|
||||
my $controlnumber = "";
|
||||
# Control number or Record identifier are the same field in MARC21, UNIMARC and NORMARC
|
||||
# Control number or Record identifier are the same field in MARC21 and UNIMARC
|
||||
# Keep $marcflavour for possible later use
|
||||
if ($marcflavour eq "MARC21" || $marcflavour eq "UNIMARC" || $marcflavour eq "NORMARC") {
|
||||
if ($marcflavour eq "MARC21" || $marcflavour eq "UNIMARC" ) {
|
||||
my $controlnumberField = $record->field('001');
|
||||
if ($controlnumberField) {
|
||||
$controlnumber = $controlnumberField->data();
|
||||
|
@ -1525,7 +1525,7 @@ sub GetMarcISSN {
|
|||
if ( $marcflavour eq "UNIMARC" ) {
|
||||
$scope = '011';
|
||||
}
|
||||
else { # assume MARC21 or NORMARC
|
||||
else { # assume MARC21
|
||||
$scope = '022';
|
||||
}
|
||||
my @marcissns;
|
||||
|
@ -1556,7 +1556,7 @@ sub GetMarcSubjects {
|
|||
$mintag = "600";
|
||||
$maxtag = "611";
|
||||
$fields_filter = '6..';
|
||||
} else { # marc21/normarc
|
||||
} else { # marc21
|
||||
$mintag = "600";
|
||||
$maxtag = "699";
|
||||
$fields_filter = '6..';
|
||||
|
@ -1650,7 +1650,7 @@ sub GetMarcAuthors {
|
|||
$mintag = "700";
|
||||
$maxtag = "712";
|
||||
$fields_filter = '7..';
|
||||
} else { # marc21/normarc
|
||||
} else { # marc21
|
||||
$mintag = "700";
|
||||
$maxtag = "720";
|
||||
$fields_filter = '7..';
|
||||
|
@ -1805,7 +1805,7 @@ sub GetMarcSeries {
|
|||
$mintag = "225";
|
||||
$maxtag = "225";
|
||||
$fields_filter = '2..';
|
||||
} else { # marc21/normarc
|
||||
} else { # marc21
|
||||
$mintag = "440";
|
||||
$maxtag = "490";
|
||||
$fields_filter = '4..';
|
||||
|
@ -2001,7 +2001,7 @@ sub PrepHostMarcField {
|
|||
my $item = Koha::Items->find($hostitemnumber);
|
||||
|
||||
my $hostmarcfield;
|
||||
if ( $marcflavour eq "MARC21" || $marcflavour eq "NORMARC" ) {
|
||||
if ( $marcflavour eq "MARC21" ) {
|
||||
|
||||
#main entry
|
||||
my $mainentry;
|
||||
|
@ -3019,7 +3019,7 @@ sub prepare_host_field {
|
|||
my %sfd;
|
||||
my $field;
|
||||
my $host_field;
|
||||
if ( $marcflavour eq 'MARC21' || $marcflavour eq 'NORMARC' ) {
|
||||
if ( $marcflavour eq 'MARC21' ) {
|
||||
if ( $field = $host->field('100') || $host->field('110') || $host->field('11') ) {
|
||||
my $s = $field->as_string('ab');
|
||||
if ($s) {
|
||||
|
|
|
@ -256,20 +256,20 @@ sub MarcToUTF8Record {
|
|||
# If we do not know the source encoding, try some guesses
|
||||
# as follows:
|
||||
# 1. Record is UTF-8 already.
|
||||
# 2. If MARC flavor is MARC21 or NORMARC, then
|
||||
# 2. If MARC flavor is MARC21, then
|
||||
# a. record is MARC-8
|
||||
# b. record is ISO-8859-1
|
||||
# 3. If MARC flavor is UNIMARC, then
|
||||
if (not defined $source_encoding) {
|
||||
if ($marc_blob_is_utf8) {
|
||||
# note that for MARC21/NORMARC we are not bothering to check
|
||||
# note that for MARC21 we are not bothering to check
|
||||
# if the Leader/09 is set to 'a' or not -- because
|
||||
# of problems with various ILSs (including Koha in the
|
||||
# past, alas), this just is not trustworthy.
|
||||
SetMarcUnicodeFlag($marc_record, $marc_flavour);
|
||||
return $marc_record, 'UTF-8', [];
|
||||
} else {
|
||||
if ($marc_flavour eq 'MARC21' || $marc_flavour eq 'NORMARC') {
|
||||
if ($marc_flavour eq 'MARC21') {
|
||||
return _default_marc21_charconv_to_utf8($marc_record, $marc_flavour);
|
||||
} elsif ($marc_flavour =~/UNIMARC/) {
|
||||
return _default_unimarc_charconv_to_utf8($marc_record, $marc_flavour);
|
||||
|
@ -324,7 +324,7 @@ sub SetMarcUnicodeFlag {
|
|||
my $marc_flavour = shift; # || C4::Context->preference("marcflavour");
|
||||
|
||||
$marc_record->encoding('UTF-8');
|
||||
if ($marc_flavour eq 'MARC21' || $marc_flavour eq 'NORMARC') {
|
||||
if ($marc_flavour eq 'MARC21') {
|
||||
my $leader = $marc_record->leader();
|
||||
substr($leader, 9, 1) = 'a';
|
||||
$marc_record->leader($leader);
|
||||
|
|
|
@ -61,7 +61,7 @@ sub gethtml5media {
|
|||
$HTML5Media{protocol} = 'http';
|
||||
}
|
||||
elsif ( $HTML5Media_field->indicator(1) eq '7' ) {
|
||||
if ($marcflavour eq 'MARC21' || $marcflavour eq 'NORMARC') {
|
||||
if ($marcflavour eq 'MARC21') {
|
||||
$HTML5Media{protocol} = $HTML5Media_field->subfield('2');
|
||||
}
|
||||
elsif ($marcflavour eq 'UNIMARC') {
|
||||
|
|
|
@ -245,7 +245,6 @@ depending on the selected MARC flavour.
|
|||
|
||||
sub _marc_format_handler {
|
||||
my $marcflavour = uc shift;
|
||||
$marcflavour = 'MARC21' if ( $marcflavour eq 'NORMARC' );
|
||||
my $pname = "C4::Heading::$marcflavour";
|
||||
load $pname;
|
||||
return $pname->new();
|
||||
|
|
|
@ -424,10 +424,10 @@ sub load_sql_in_order {
|
|||
Set the 'marcflavour' system preference. The incoming
|
||||
C<$marcflavour> references to a subdirectory of
|
||||
installer/data/$dbms/$lang/marcflavour, and is
|
||||
normalized to MARC21, UNIMARC or NORMARC.
|
||||
normalized to MARC21 or UNIMARC.
|
||||
|
||||
FIXME: this method assumes that the MARC flavour will be either
|
||||
MARC21, UNIMARC or NORMARC.
|
||||
MARC21 or UNIMARC.
|
||||
|
||||
=cut
|
||||
|
||||
|
@ -439,10 +439,9 @@ sub set_marcflavour_syspref {
|
|||
# marc_cleaned finds the marcflavour, without the variant.
|
||||
my $marc_cleaned = 'MARC21';
|
||||
$marc_cleaned = 'UNIMARC' if $marcflavour =~ /unimarc/i;
|
||||
$marc_cleaned = 'NORMARC' if $marcflavour =~ /normarc/i;
|
||||
my $request =
|
||||
$self->{'dbh'}->prepare(
|
||||
"INSERT IGNORE INTO `systempreferences` (variable,value,explanation,options,type) VALUES('marcflavour','$marc_cleaned','Define global MARC flavor (MARC21, UNIMARC or NORMARC) used for character encoding','MARC21|UNIMARC|NORMARC','Choice');"
|
||||
"INSERT IGNORE INTO `systempreferences` (variable,value,explanation,options,type) VALUES('marcflavour','$marc_cleaned','Define global MARC flavor (MARC21 or UNIMARC) used for character encoding','MARC21|UNIMARC','Choice');"
|
||||
);
|
||||
$request->execute;
|
||||
}
|
||||
|
|
|
@ -894,8 +894,7 @@ sub GetHostItemsInfo {
|
|||
}
|
||||
|
||||
my @fields;
|
||||
if( C4::Context->preference('marcflavour') eq 'MARC21' ||
|
||||
C4::Context->preference('marcflavour') eq 'NORMARC') {
|
||||
if( C4::Context->preference('marcflavour') eq 'MARC21' ) {
|
||||
@fields = $record->field('773');
|
||||
} elsif( C4::Context->preference('marcflavour') eq 'UNIMARC') {
|
||||
@fields = $record->field('461');
|
||||
|
@ -940,7 +939,7 @@ sub get_hostitemnumbers_of {
|
|||
my ( @returnhostitemnumbers, $tag, $biblio_s, $item_s );
|
||||
|
||||
my $marcflavor = C4::Context->preference('marcflavour');
|
||||
if ( $marcflavor eq 'MARC21' || $marcflavor eq 'NORMARC' ) {
|
||||
if ( $marcflavor eq 'MARC21' ) {
|
||||
$tag = '773';
|
||||
$biblio_s = '0';
|
||||
$item_s = '9';
|
||||
|
|
25
C4/Record.pm
25
C4/Record.pm
|
@ -231,7 +231,7 @@ EXAMPLE
|
|||
Convert MARC or MARCXML to Dublin Core metadata (XSLT Transformation),
|
||||
optionally can get an XML directly from biblio_metadata
|
||||
without item information. This method take into consideration the syspref
|
||||
'marcflavour' (UNIMARC, MARC21 and NORMARC).
|
||||
'marcflavour' (UNIMARC or MARC21).
|
||||
Return an XML file with the format defined in C<$format>
|
||||
|
||||
C<$marc> - an ISO-2709 scalar or MARC::Record object
|
||||
|
@ -265,23 +265,12 @@ sub marc2dcxml {
|
|||
$marcxml = $xml;
|
||||
}
|
||||
|
||||
# only proceed if MARC21 or UNIMARC; else clause is executed if marcflavour set it to NORMARC
|
||||
# generate MARC::Record object to see if not a marcxml record
|
||||
unless ( C4::Context->preference('marcflavour') eq 'NORMARC' ) {
|
||||
eval { $record = MARC::Record->new_from_xml(
|
||||
$marcxml,
|
||||
'UTF-8',
|
||||
C4::Context->preference('marcflavour')
|
||||
);
|
||||
};
|
||||
} else {
|
||||
eval { $record = MARC::Record->new_from_xml(
|
||||
$marcxml,
|
||||
'UTF-8',
|
||||
'MARC21'
|
||||
);
|
||||
};
|
||||
}
|
||||
eval { $record = MARC::Record->new_from_xml(
|
||||
$marcxml,
|
||||
'UTF-8',
|
||||
C4::Context->preference('marcflavour')
|
||||
);
|
||||
};
|
||||
|
||||
# conversion to MARC::Record object failed
|
||||
if ( $@ ) {
|
||||
|
|
|
@ -1741,7 +1741,7 @@ sub searchResults {
|
|||
# adding linked items that belong to host records
|
||||
if ( C4::Context->preference('EasyAnalyticalRecords') ) {
|
||||
my $analyticsfield = '773';
|
||||
if ($marcflavor eq 'MARC21' || $marcflavor eq 'NORMARC') {
|
||||
if ($marcflavor eq 'MARC21') {
|
||||
$analyticsfield = '773';
|
||||
} elsif ($marcflavor eq 'UNIMARC') {
|
||||
$analyticsfield = '461';
|
||||
|
|
|
@ -79,7 +79,7 @@ sub transformMARCXML4XSLT {
|
|||
my @new_subfields = ();
|
||||
for my $subfield ( $field->subfields() ) {
|
||||
my ( $letter, $value ) = @$subfield;
|
||||
# Replace the field value with the authorised value *except* for MARC21/NORMARC field 942$n (suppression in opac)
|
||||
# Replace the field value with the authorised value *except* for MARC21 field 942$n (suppression in opac)
|
||||
if ( !( $tag eq '942' && $subfield->[0] eq 'n' ) || $marcflavour eq 'UNIMARC' ) {
|
||||
$value = GetAuthorisedValueDesc( $tag, $letter, $value, '', $tagslib, undef, $opac )
|
||||
if $av->{ $tag }->{ $letter };
|
||||
|
|
|
@ -385,7 +385,7 @@ sub host_items {
|
|||
|
||||
my $marcflavour = C4::Context->preference("marcflavour");
|
||||
my $analyticfield = '773';
|
||||
if ( $marcflavour eq 'MARC21' || $marcflavour eq 'NORMARC' ) {
|
||||
if ( $marcflavour eq 'MARC21' ) {
|
||||
$analyticfield = '773';
|
||||
}
|
||||
elsif ( $marcflavour eq 'UNIMARC' ) {
|
||||
|
|
|
@ -241,7 +241,7 @@ sub get_elasticsearch_mappings {
|
|||
=head2 raw_elasticsearch_mappings
|
||||
|
||||
Return elasticsearch mapping as it is in database.
|
||||
marc_type: marc21|unimarc|normarc
|
||||
marc_type: marc21|unimarc
|
||||
|
||||
$raw_mappings = raw_elasticsearch_mappings( $marc_type )
|
||||
|
||||
|
@ -1145,7 +1145,7 @@ to be included in that sort.
|
|||
=item C<$marc_type>
|
||||
|
||||
A string that indicates the MARC type that this mapping is for, e.g. 'marc21',
|
||||
'unimarc', 'normarc'.
|
||||
'unimarc'.
|
||||
|
||||
=item C<$marc_field>
|
||||
|
||||
|
|
|
@ -80,7 +80,7 @@ sub printorders {
|
|||
( $line->{publishercode} ? ' published by '. $line->{publishercode} : '') .
|
||||
( $line->{publicationyear} ? ', '. $line->{publicationyear} : '');
|
||||
}
|
||||
else { # MARC21, NORMARC
|
||||
else { # MARC21
|
||||
$titleinfo = $line->{title} . " " . $line->{author} .
|
||||
( $line->{isbn} ? " ISBN: " . $line->{isbn} : '' ) .
|
||||
( $line->{en} ? " EN: " . $line->{en} : '' ) .
|
||||
|
|
|
@ -79,7 +79,7 @@ sub printorders {
|
|||
( $line->{publishercode} ? ' Verlag: '. $line->{publishercode} : '') .
|
||||
( $line->{publicationyear} ? ', '. $line->{publicationyear} : '');
|
||||
}
|
||||
else { # MARC21, NORMARC
|
||||
else { # MARC21
|
||||
$titleinfo = $line->{title} . " " . $line->{author} .
|
||||
( $line->{isbn} ? " ISBN: " . $line->{isbn} : '' ) .
|
||||
( $line->{en} ? " EN: " . $line->{en} : '' ) .
|
||||
|
|
|
@ -103,7 +103,7 @@ sub printorders {
|
|||
( $line->{publishercode} ? ' published by '. $line->{publishercode} : '') .
|
||||
( $line->{publicationyear} ? ', '. $line->{publicationyear} : '');
|
||||
}
|
||||
else { # MARC21, NORMARC
|
||||
else { # MARC21
|
||||
$titleinfo = $line->{title} . " " . $line->{author} .
|
||||
( $line->{isbn} ? " ISBN: " . $line->{isbn} : '' ) .
|
||||
( $line->{en} ? " EN: " . $line->{en} : '' ) .
|
||||
|
|
|
@ -104,7 +104,7 @@ sub printorders {
|
|||
( $line->{publishercode} ? ' publié par '. $line->{publishercode} : '') .
|
||||
( $line->{publicationyear} ? ', '. $line->{publicationyear} : '');
|
||||
}
|
||||
else { # MARC21, NORMARC
|
||||
else { # MARC21
|
||||
$titleinfo = $line->{title} . " " . $line->{author} .
|
||||
( $line->{isbn} ? " ISBN : " . $line->{isbn} : '' ) .
|
||||
( $line->{en} ? " EN : " . $line->{en} : '' ) .
|
||||
|
|
|
@ -83,7 +83,7 @@ Makefile.PL - Koha packager and installer
|
|||
--db_name Database name (e.g. koha)
|
||||
--db_user Database user (e.g. kohaadmin)
|
||||
--db_pass Database password (e.g. katikoan)
|
||||
--zebra_marc_format Zebra MARC format (marc21, normarc, unimarc)
|
||||
--zebra_marc_format Zebra MARC format (marc21, unimarc)
|
||||
--zebra_language Zebra language (e.g. en)
|
||||
--zebra_tokenizer Zebra tokenizer (chr, icu)
|
||||
--zebra_user Zebra user (e.g. kohauser)
|
||||
|
@ -565,7 +565,7 @@ my %valid_config_values = (
|
|||
'DB_TYPE' => { 'mysql' => 1, 'Pg' => 1 },
|
||||
'DB_USE_TLS' => {'yes', 'no'},
|
||||
'INSTALL_SRU' => { 'yes' => 1, 'no' => 1 },
|
||||
'ZEBRA_MARC_FORMAT' => { 'marc21' => 1, 'normarc' => 1, 'unimarc' => 1 }, # FIXME should generate from contents of distributation
|
||||
'ZEBRA_MARC_FORMAT' => { 'marc21' => 1, 'unimarc' => 1 }, # FIXME should generate from contents of distributation
|
||||
'ZEBRA_LANGUAGE' => { 'cs' => 1, 'el' => 1, 'en' => 1, 'es' => 1, 'fr' => 1, 'nb' => 1, 'ru' => 1, 'uk' => 1 }, # FIXME should generate from contents of distribution
|
||||
'ZEBRA_TOKENIZER' => { chr => 1, icu => 1 },
|
||||
'RUN_DATABASE_TESTS' => { 'yes' => 1, 'no' => 1 },
|
||||
|
@ -1151,7 +1151,7 @@ You must specify the primary MARC format of the
|
|||
records to be indexed by Zebra.
|
||||
|
||||
Koha provides Zebra configuration files for MARC21,
|
||||
NORMARC and UNIMARC.
|
||||
and UNIMARC.
|
||||
|
||||
MARC format for Zebra indexing);
|
||||
$msg .= _add_valid_values_disp('ZEBRA_MARC_FORMAT', $valid_values);
|
||||
|
|
|
@ -742,7 +742,7 @@ if ($op eq "additem") {
|
|||
} elsif ($op eq "delinkitem"){
|
||||
|
||||
my $analyticfield = '773';
|
||||
if ($marcflavour eq 'MARC21' || $marcflavour eq 'NORMARC'){
|
||||
if ($marcflavour eq 'MARC21'){
|
||||
$analyticfield = '773';
|
||||
} elsif ($marcflavour eq 'UNIMARC') {
|
||||
$analyticfield = '461';
|
||||
|
|
|
@ -45,7 +45,7 @@ my ($template, $loggedinuser, $cookie) = get_template_and_user(
|
|||
my $biblio = GetMarcBiblio({ biblionumber => $biblionumber });
|
||||
my $marcflavour = C4::Context->preference("marcflavour");
|
||||
$marcflavour ||="MARC21";
|
||||
if ($marcflavour eq 'MARC21' || $marcflavour eq 'NORMARC') {
|
||||
if ($marcflavour eq 'MARC21') {
|
||||
$template->param(bibliotitle => $biblio->subfield('245','a'));
|
||||
} elsif ($marcflavour eq 'UNIMARC') {
|
||||
$template->param(bibliotitle => $biblio->subfield('200','a'));
|
||||
|
|
|
@ -1,137 +0,0 @@
|
|||
#!/usr/bin/perl
|
||||
|
||||
# Copyright 2009 Magnus Enger Libriotech
|
||||
#
|
||||
# This file is part of Koha.
|
||||
#
|
||||
# Koha is free software; you can redistribute it and/or modify it
|
||||
# under the terms of the GNU General Public License as published by
|
||||
# the Free Software Foundation; either version 3 of the License, or
|
||||
# (at your option) any later version.
|
||||
#
|
||||
# Koha is distributed in the hope that it will be useful, but
|
||||
# WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
# GNU General Public License for more details.
|
||||
#
|
||||
# You should have received a copy of the GNU General Public License
|
||||
# along with Koha; if not, see <http://www.gnu.org/licenses>.
|
||||
|
||||
use Modern::Perl;
|
||||
use C4::Auth qw( get_template_and_user );
|
||||
use CGI qw ( -utf8 );
|
||||
use C4::Context;
|
||||
|
||||
use C4::Search;
|
||||
use C4::Output qw( output_html_with_http_headers );
|
||||
|
||||
sub plugin_javascript {
|
||||
my ($dbh,$record,$tagslib,$field_number,$tabloop) = @_;
|
||||
my $function_name= $field_number;
|
||||
my $res="
|
||||
<script>
|
||||
|
||||
function Clic$function_name(i) {
|
||||
defaultvalue=document.getElementById(\"$field_number\").value;
|
||||
newin=window.open(\"../cataloguing/plugin_launcher.pl?plugin_name=normarc_field_007.pl&index=$field_number&result=\"+defaultvalue,\"unimarc field 100\",'width=1000,height=600,toolbar=false,scrollbars=yes');
|
||||
|
||||
}
|
||||
</script>
|
||||
";
|
||||
|
||||
return ($function_name,$res);
|
||||
}
|
||||
sub plugin {
|
||||
my ($input) = @_;
|
||||
my $index= $input->param('index');
|
||||
my $result= $input->param('result');
|
||||
|
||||
|
||||
my $dbh = C4::Context->dbh;
|
||||
|
||||
my ($template, $loggedinuser, $cookie)
|
||||
= get_template_and_user({template_name => "cataloguing/value_builder/normarc_field_007.tt",
|
||||
query => $input,
|
||||
type => "intranet",
|
||||
flagsrequired => {editcatalogue => 1},
|
||||
});
|
||||
$result = "ta" unless $result;
|
||||
my $f0 = substr($result,0,1);
|
||||
my $f1 = substr($result,1,4);
|
||||
#added new parameters to allow for all material types
|
||||
my $f2 = substr($result,2,1);
|
||||
my $f3 = substr($result,3,1);
|
||||
my $f4 = substr($result,4,1);
|
||||
my $f5 = substr($result,5,1);
|
||||
my $f6 = substr($result,6,1);
|
||||
my $f7 = substr($result,7,1);
|
||||
my $f8 = substr($result,8,1);
|
||||
my $f9 = substr($result,9,1);
|
||||
my $f10 = substr($result,10,1);
|
||||
my $f11 = substr($result,11,1);
|
||||
my $f12 = substr($result,12,1);
|
||||
my $f13 = substr($result,13,1);
|
||||
my $f14 = substr($result,14,1);
|
||||
my $f15 = substr($result,15,1);
|
||||
my $f16 = substr($result,16,1);
|
||||
my $f17 = substr($result,17,1);
|
||||
my $f18 = substr($result,18,1);
|
||||
my $f19 = substr($result,19,1);
|
||||
my $f20 = substr($result,20,1);
|
||||
my $f21 = substr($result,21,1);
|
||||
my $f22 = substr($result,22,1);
|
||||
#FIXME: There is probably a more-elegant way to do this!
|
||||
#FIXME: Two of the material types treat position 06, 07, and 08 as a single
|
||||
#three-char field. This script works fine for creating values and sending them
|
||||
#back to the MARC, but if there is already a value in the 007, it won't send
|
||||
#it properly to the value builder for those two instances. Not sure how to solve.
|
||||
$template->param( index => $index,
|
||||
f0 => $f0,
|
||||
"f0$f0" => $f0,
|
||||
f1 => $f1,
|
||||
"f1$f1" => $f1,
|
||||
f2 => $f2,
|
||||
"f2$f2" => $f2,
|
||||
f3 => $f3,
|
||||
"f3$f3" => $f3,
|
||||
f4 => $f4,
|
||||
"f4$f4" => $f4,
|
||||
f5 => $f5,
|
||||
"f5$f5" => $f5,
|
||||
f6 => $f6,
|
||||
"f6$f6" => $f6,
|
||||
f7 => $f7,
|
||||
"f7$f7" => $f7,
|
||||
f8 => $f8,
|
||||
"f8$f8" => $f8,
|
||||
f9 => $f9,
|
||||
"f9$f9" => $f9,
|
||||
f10 => $f10,
|
||||
"f10$f10" => $f10,
|
||||
f11 => $f11,
|
||||
"f11$f11" => $f11,
|
||||
f12 => $f12,
|
||||
"f12$f12" => $f12,
|
||||
f13 => $f13,
|
||||
"f13$f13" => $f13,
|
||||
f14 => $f14,
|
||||
"f14$f14" => $f14,
|
||||
f15 => $f15,
|
||||
"f15$f15" => $f15,
|
||||
f16 => $f16,
|
||||
"f16$f16" => $f16,
|
||||
f17 => $f17,
|
||||
"f17$f17" => $f17,
|
||||
f18 => $f18,
|
||||
"f18$f18" => $f18,
|
||||
f19 => $f19,
|
||||
"f19$f19" => $f19,
|
||||
f20 => $f20,
|
||||
"f20$f20" => $f20,
|
||||
f21 => $f21,
|
||||
"f21$f21" => $f21,
|
||||
f22 => $f22,
|
||||
"f22$f22" => $f22,
|
||||
);
|
||||
output_html_with_http_headers $input, $cookie, $template->output;
|
||||
}
|
|
@ -1,169 +0,0 @@
|
|||
#!/usr/bin/perl
|
||||
|
||||
# Copyright 2009 Magnus Enger Libriotech
|
||||
#
|
||||
# This file is part of Koha.
|
||||
#
|
||||
# Koha is free software; you can redistribute it and/or modify it
|
||||
# under the terms of the GNU General Public License as published by
|
||||
# the Free Software Foundation; either version 3 of the License, or
|
||||
# (at your option) any later version.
|
||||
#
|
||||
# Koha is distributed in the hope that it will be useful, but
|
||||
# WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
# GNU General Public License for more details.
|
||||
#
|
||||
# You should have received a copy of the GNU General Public License
|
||||
# along with Koha; if not, see <http://www.gnu.org/licenses>.
|
||||
|
||||
use Modern::Perl;
|
||||
use C4::Auth qw( get_template_and_user );
|
||||
use CGI qw ( -utf8 );
|
||||
use C4::Context;
|
||||
|
||||
use C4::Search;
|
||||
use C4::Output qw( output_html_with_http_headers );
|
||||
|
||||
# find today's date
|
||||
my ($sec, $min, $hour, $mday, $mon, $year, $wday, $yday, $isdst) = localtime(time);
|
||||
|
||||
$year += 1900;
|
||||
$mon += 1;
|
||||
my $dateentered = substr($year, 2, 2) . sprintf("%0.2d", $mon) . sprintf("%0.2d", $mday);
|
||||
|
||||
sub plugin_javascript {
|
||||
my $lang = C4::Context->preference('DefaultLanguageField008' );
|
||||
$lang = "eng" unless $lang;
|
||||
$lang = pack("A3", $lang);
|
||||
my ($dbh, $record, $tagslib, $field_number, $tabloop) = @_;
|
||||
my $function_name = $field_number;
|
||||
my $res = "
|
||||
<script>
|
||||
|
||||
function Focus$function_name(subfield_managed) {
|
||||
|
||||
if ( document.getElementById(\"$field_number\").value ) {
|
||||
}
|
||||
else {
|
||||
document.getElementById(\"$field_number\").value='$dateentered' + 't no ||||| |||| 00| 0 $lang d';
|
||||
}
|
||||
return 1;
|
||||
}
|
||||
|
||||
function Clic$function_name(i) {
|
||||
defaultvalue=document.getElementById(\"$field_number\").value;
|
||||
defaultvalue=defaultvalue.replace(/ /g, \"+\");
|
||||
newin=window.open(\"../cataloguing/plugin_launcher.pl?plugin_name=normarc_field_008.pl&index=$field_number&result=\"+defaultvalue,\"unimarc field 100\",'width=1000,height=600,toolbar=false,scrollbars=yes');
|
||||
|
||||
}
|
||||
</script>
|
||||
";
|
||||
|
||||
return ($function_name, $res);
|
||||
}
|
||||
|
||||
sub plugin {
|
||||
my $lang = C4::Context->preference('DefaultLanguageField008' );
|
||||
$lang = "eng" unless $lang;
|
||||
$lang = pack("A3", $lang);
|
||||
my ($input) = @_;
|
||||
my $index = $input->param('index');
|
||||
my $result = $input->param('result');
|
||||
|
||||
my $dbh = C4::Context->dbh;
|
||||
|
||||
my ($template, $loggedinuser, $cookie) = get_template_and_user(
|
||||
{ template_name => "cataloguing/value_builder/normarc_field_008.tt",
|
||||
query => $input,
|
||||
type => "intranet",
|
||||
flagsrequired => { editcatalogue => 1 },
|
||||
}
|
||||
);
|
||||
|
||||
# $result = " t xxu 00 0 eng d" unless $result;
|
||||
$result = "$dateentered" . "t no ||||| |||| 00| 0 $lang d" unless $result;
|
||||
my $f1 = substr($result, 0, 6);
|
||||
my $f6 = substr($result, 6, 1);
|
||||
my $f710 = substr($result, 7, 4);
|
||||
my $f1114 = substr($result, 11, 4);
|
||||
my $f1517 = substr($result, 15, 3);
|
||||
my $f18 = substr($result, 18, 1);
|
||||
my $f19 = substr($result, 19, 1);
|
||||
my $f20 = substr($result, 20, 1);
|
||||
my $f21 = substr($result, 21, 1);
|
||||
my $f22 = substr($result, 22, 1);
|
||||
my $f23 = substr($result, 23, 1);
|
||||
my $f24 = substr($result, 24, 1);
|
||||
my $f25 = substr($result, 25, 1);
|
||||
my $f26 = substr($result, 26, 1);
|
||||
my $f27 = substr($result, 27, 1);
|
||||
my $f28 = substr($result, 28, 1);
|
||||
my $f29 = substr($result, 29, 1);
|
||||
my $f30 = substr($result, 30, 1);
|
||||
my $f31 = substr($result, 31, 1);
|
||||
my $f32 = substr($result, 32, 1);
|
||||
my $f33 = substr($result, 33, 1);
|
||||
my $f34 = substr($result, 34, 1);
|
||||
my $f3537 = substr($result, 35, 3);
|
||||
my $f38 = substr($result, 38, 1);
|
||||
my $f39 = substr($result, 39, 1);
|
||||
|
||||
# bug 2563
|
||||
$f710 = "" if ($f710 =~ /^\s*$/);
|
||||
$f1114 = "" if ($f1114 =~ /^\s*$/);
|
||||
|
||||
if ((!$f1) || ($f1 =~ m/ /)) {
|
||||
$f1 = $dateentered;
|
||||
}
|
||||
|
||||
$template->param(
|
||||
index => $index,
|
||||
f1 => $f1,
|
||||
f6 => $f6,
|
||||
"f6$f6" => $f6,
|
||||
f710 => $f710,
|
||||
f1114 => $f1114,
|
||||
f1517 => $f1517,
|
||||
f18 => $f18,
|
||||
"f18$f18" => $f18,
|
||||
f19 => $f19,
|
||||
"f19$f19" => $f19,
|
||||
f20 => $f20,
|
||||
"f20$f20" => $f20,
|
||||
f21 => $f21,
|
||||
"f21$f21" => $f21,
|
||||
f22 => $f22,
|
||||
"f22$f22" => $f22,
|
||||
f23 => $f23,
|
||||
"f23$f23" => $f23,
|
||||
f24 => $f24,
|
||||
"f24$f24" => $f24,
|
||||
f25 => $f25,
|
||||
"f25$f25" => $f25,
|
||||
f26 => $f26,
|
||||
"f26$f26" => $f26,
|
||||
f27 => $f27,
|
||||
"f27$f27" => $f27,
|
||||
f28 => $f28,
|
||||
"f28$f28" => $f28,
|
||||
f29 => $f29,
|
||||
"f29$f29" => $f29,
|
||||
f30 => $f30,
|
||||
"f30$f30" => $f30,
|
||||
f31 => $f31,
|
||||
"f31$f31" => $f31,
|
||||
f32 => $f32,
|
||||
"f32$f32" => $f32,
|
||||
f33 => $f33,
|
||||
"f33$f33" => $f33,
|
||||
f34 => $f34,
|
||||
"f34$f34" => $f34,
|
||||
f3537 => $f3537,
|
||||
f38 => $f38,
|
||||
"f38$f38" => $f38,
|
||||
f39 => $f39,
|
||||
"f39$f39" => $f39,
|
||||
);
|
||||
output_html_with_http_headers $input, $cookie, $template->output;
|
||||
}
|
|
@ -1,87 +0,0 @@
|
|||
#!/usr/bin/perl
|
||||
|
||||
|
||||
# Copyright 2000-2002 Katipo Communications
|
||||
#
|
||||
# This file is part of Koha.
|
||||
#
|
||||
# Koha is free software; you can redistribute it and/or modify it
|
||||
# under the terms of the GNU General Public License as published by
|
||||
# the Free Software Foundation; either version 3 of the License, or
|
||||
# (at your option) any later version.
|
||||
#
|
||||
# Koha is distributed in the hope that it will be useful, but
|
||||
# WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
# GNU General Public License for more details.
|
||||
#
|
||||
# You should have received a copy of the GNU General Public License
|
||||
# along with Koha; if not, see <http://www.gnu.org/licenses>.
|
||||
|
||||
use Modern::Perl;
|
||||
|
||||
use C4::Auth qw( get_template_and_user );
|
||||
use CGI qw ( -utf8 );
|
||||
use C4::Context;
|
||||
|
||||
use C4::Search;
|
||||
use C4::Output qw( output_html_with_http_headers );
|
||||
|
||||
sub plugin_javascript {
|
||||
my ($dbh,$record,$tagslib,$field_number,$tabloop) = @_;
|
||||
my $function_name= $field_number;
|
||||
my $res="
|
||||
<script>
|
||||
|
||||
function Focus$function_name(subfield_managed) {
|
||||
if(!document.getElementById(\"$field_number\").value){
|
||||
document.getElementById(\"$field_number\").value = ' nam a22 1 4500';
|
||||
}
|
||||
return 1;
|
||||
}
|
||||
|
||||
function Clic$function_name(i) {
|
||||
defaultvalue=document.getElementById(\"$field_number\").value;
|
||||
newin=window.open(\"../cataloguing/plugin_launcher.pl?plugin_name=normarc_leader.pl&index=$field_number&result=\"+defaultvalue,\"unimarc field 100\",'width=1000,height=600,toolbar=false,scrollbars=yes');
|
||||
|
||||
}
|
||||
</script>
|
||||
";
|
||||
|
||||
return ($function_name,$res);
|
||||
}
|
||||
sub plugin {
|
||||
my ($input) = @_;
|
||||
my $index= $input->param('index');
|
||||
my $result= $input->param('result');
|
||||
|
||||
|
||||
my $dbh = C4::Context->dbh;
|
||||
|
||||
my ($template, $loggedinuser, $cookie)
|
||||
= get_template_and_user({template_name => "cataloguing/value_builder/normarc_leader.tt",
|
||||
query => $input,
|
||||
type => "intranet",
|
||||
flagsrequired => {editcatalogue => 1},
|
||||
});
|
||||
$result = " nam a22 1 4500" unless $result;
|
||||
my $f5 = substr($result,5,1);
|
||||
my $f6 = substr($result,6,1);
|
||||
my $f7 = substr($result,7,1);
|
||||
my $f8 = substr($result,8,1);
|
||||
my $f17 = substr($result,17,1);
|
||||
my $f18 = substr($result,18,1);
|
||||
my $f19 = substr($result,19,1);
|
||||
my $f2023 = substr($result,20,4);
|
||||
$template->param(index => $index,
|
||||
"f5$f5" => 1,
|
||||
"f6$f6" => 1,
|
||||
"f7$f7" => 1,
|
||||
"f8$f8" => 1,
|
||||
"f17$f17" => 1,
|
||||
"f18$f18" => 1,
|
||||
"f19$f19" => 1,
|
||||
"f2023" => $f2023,
|
||||
);
|
||||
output_html_with_http_headers $input, $cookie, $template->output;
|
||||
}
|
4
debian/docs/koha-create.xml
vendored
4
debian/docs/koha-create.xml
vendored
|
@ -25,7 +25,7 @@
|
|||
<cmdsynopsis>
|
||||
<command>koha-create</command>
|
||||
<arg choice="req"><option>--create-db</option>|<option>--request-db</option>|<option>--populate-db</option>|<option>--use-db</option></arg>
|
||||
<arg><option>--marcflavor</option> marc21|normarc|unimarc</arg>
|
||||
<arg><option>--marcflavor</option> marc21|unimarc</arg>
|
||||
<arg><option>--zebralang</option> el|en|es|fr|nb|ru|uk</arg>
|
||||
<arg><option>--memcached-servers</option> server:port</arg>
|
||||
<arg><option>--memcached-prefix</option> namespace_prefix</arg>
|
||||
|
@ -401,7 +401,7 @@
|
|||
<varlistentry>
|
||||
<term><option>ZEBRA_MARC_FORMAT</option></term>
|
||||
<listitem>
|
||||
<para>Specifies format of MARC records to be indexed by Zebra. Possible values are 'marc21', 'normarc' and 'unimarc'.</para>
|
||||
<para>Specifies format of MARC records to be indexed by Zebra. Possible values are 'marc21' and 'unimarc'.</para>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
|
||||
|
|
2
debian/scripts/koha-create
vendored
2
debian/scripts/koha-create
vendored
|
@ -50,7 +50,7 @@ DB usage mode:
|
|||
|
||||
Options:
|
||||
--marcflavor flavor Set the MARC flavor. Valid values are marc21 (default),
|
||||
normarc and unimarc.
|
||||
and unimarc.
|
||||
--zebralang lang Choose the primary language for Zebra indexing. Valid
|
||||
values are cs, el, en (default), es, fr, nb, ru and uk.
|
||||
--elasticsearch-server s Enforce the use of the specified Elasticsearch server(s)
|
||||
|
|
1
debian/scripts/koha-translate
vendored
1
debian/scripts/koha-translate
vendored
|
@ -172,7 +172,6 @@ check_lang_po_files()
|
|||
lang=$1
|
||||
|
||||
po_files="$PO_DIR/$lang-marc-MARC21.po
|
||||
$PO_DIR/$lang-marc-NORMARC.po
|
||||
$PO_DIR/$lang-marc-UNIMARC.po
|
||||
$PO_DIR/$lang-opac-bootstrap.po
|
||||
$PO_DIR/$lang-pref.po
|
||||
|
|
2
debian/templates/koha-sites.conf
vendored
2
debian/templates/koha-sites.conf
vendored
|
@ -23,7 +23,7 @@ DEFAULTSQL=""
|
|||
|
||||
## Zebra global configuration variables
|
||||
#
|
||||
# ZEBRA_MARC_FORMAT: 'marc21' | 'normarc' | 'unimarc'
|
||||
# ZEBRA_MARC_FORMAT: 'marc21' | 'unimarc'
|
||||
# Specifies the MARC records format for indexing
|
||||
# default: 'marc21'
|
||||
ZEBRA_MARC_FORMAT="marc21"
|
||||
|
|
|
@ -1,22 +0,0 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<retrievalinfo xmlns="http://indexdata.com/yaz">
|
||||
<retrieval syntax="normarc" name="F">
|
||||
<backend syntax="xml" name="marc">
|
||||
<marc inputformat="xml" outputformat="marc"
|
||||
inputcharset="utf-8"
|
||||
outputcharset="utf-8"/>
|
||||
</backend>
|
||||
</retrieval>
|
||||
<retrieval syntax="normarc" name="B">
|
||||
<backend syntax="xml" name="marc">
|
||||
<marc inputformat="xml" outputformat="marc"
|
||||
inputcharset="utf-8"
|
||||
outputcharset="utf-8"/>
|
||||
</backend>
|
||||
</retrieval>
|
||||
<retrieval syntax="xml" name="index"/> <!-- allow viewing index entries -->
|
||||
<retrieval syntax="xml" name="marc"
|
||||
identifier="info:srw/schema/1/marcxml-v1.1"/>
|
||||
<retrieval syntax="xml" name="marcxml"
|
||||
identifier="info:srw/schema/1/marcxml-v1.1"/>
|
||||
</retrievalinfo>
|
|
@ -1,23 +0,0 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<retrievalinfo xmlns="http://indexdata.com/yaz">
|
||||
<retrieval syntax="normarc" name="F">
|
||||
<backend syntax="xml" name="marc">
|
||||
<marc inputformat="xml" outputformat="marc"
|
||||
inputcharset="utf-8"
|
||||
outputcharset="utf-8"/>
|
||||
</backend>
|
||||
</retrieval>
|
||||
<retrieval syntax="normarc" name="B">
|
||||
<backend syntax="xml" name="marc">
|
||||
<marc inputformat="xml" outputformat="marc"
|
||||
inputcharset="utf-8"
|
||||
outputcharset="utf-8"/>
|
||||
</backend>
|
||||
</retrieval>
|
||||
<retrieval syntax="xml"/>
|
||||
<retrieval syntax="xml" name="index"/> <!-- allow viewing index entries -->
|
||||
<retrieval syntax="xml" name="marc"
|
||||
identifier="info:srw/schema/1/marcxml-v1.1"/>
|
||||
<retrieval syntax="xml" name="marcxml"
|
||||
identifier="info:srw/schema/1/marcxml-v1.1"/>
|
||||
</retrievalinfo>
|
|
@ -1,2 +0,0 @@
|
|||
name normarc
|
||||
reference normarc
|
12
gulpfile.js
12
gulpfile.js
|
@ -91,11 +91,6 @@ const poTasks = {
|
|||
create: po_create_marc_marc21,
|
||||
update: po_update_marc_marc21,
|
||||
},
|
||||
'marc-NORMARC': {
|
||||
extract: po_extract_marc_normarc,
|
||||
create: po_create_marc_normarc,
|
||||
update: po_update_marc_normarc,
|
||||
},
|
||||
'marc-UNIMARC': {
|
||||
extract: po_extract_marc_unimarc,
|
||||
create: po_create_marc_unimarc,
|
||||
|
@ -147,7 +142,6 @@ function po_extract_marc (type) {
|
|||
}
|
||||
|
||||
function po_extract_marc_marc21 () { return po_extract_marc('MARC21') }
|
||||
function po_extract_marc_normarc () { return po_extract_marc('NORMARC') }
|
||||
function po_extract_marc_unimarc () { return po_extract_marc('UNIMARC') }
|
||||
|
||||
function po_extract_staff () {
|
||||
|
@ -157,10 +151,8 @@ function po_extract_staff () {
|
|||
'koha-tmpl/intranet-tmpl/prog/en/xslt/*.xsl',
|
||||
'koha-tmpl/intranet-tmpl/prog/en/columns.def',
|
||||
'!koha-tmpl/intranet-tmpl/prog/en/**/*MARC21*',
|
||||
'!koha-tmpl/intranet-tmpl/prog/en/**/*NORMARC*',
|
||||
'!koha-tmpl/intranet-tmpl/prog/en/**/*UNIMARC*',
|
||||
'!koha-tmpl/intranet-tmpl/prog/en/**/*marc21*',
|
||||
'!koha-tmpl/intranet-tmpl/prog/en/**/*normarc*',
|
||||
'!koha-tmpl/intranet-tmpl/prog/en/**/*unimarc*',
|
||||
];
|
||||
|
||||
|
@ -175,10 +167,8 @@ function po_extract_opac () {
|
|||
'koha-tmpl/opac-tmpl/bootstrap/en/**/*.inc',
|
||||
'koha-tmpl/opac-tmpl/bootstrap/en/xslt/*.xsl',
|
||||
'!koha-tmpl/opac-tmpl/bootstrap/en/**/*MARC21*',
|
||||
'!koha-tmpl/opac-tmpl/bootstrap/en/**/*NORMARC*',
|
||||
'!koha-tmpl/opac-tmpl/bootstrap/en/**/*UNIMARC*',
|
||||
'!koha-tmpl/opac-tmpl/bootstrap/en/**/*marc21*',
|
||||
'!koha-tmpl/opac-tmpl/bootstrap/en/**/*normarc*',
|
||||
'!koha-tmpl/opac-tmpl/bootstrap/en/**/*unimarc*',
|
||||
];
|
||||
|
||||
|
@ -272,7 +262,6 @@ function po_create_type (type) {
|
|||
}
|
||||
|
||||
function po_create_marc_marc21 () { return po_create_type('marc-MARC21') }
|
||||
function po_create_marc_normarc () { return po_create_type('marc-NORMARC') }
|
||||
function po_create_marc_unimarc () { return po_create_type('marc-UNIMARC') }
|
||||
function po_create_staff () { return po_create_type('staff-prog') }
|
||||
function po_create_opac () { return po_create_type('opac-bootstrap') }
|
||||
|
@ -294,7 +283,6 @@ function po_update_type (type) {
|
|||
}
|
||||
|
||||
function po_update_marc_marc21 () { return po_update_type('marc-MARC21') }
|
||||
function po_update_marc_normarc () { return po_update_type('marc-NORMARC') }
|
||||
function po_update_marc_unimarc () { return po_update_type('marc-UNIMARC') }
|
||||
function po_update_staff () { return po_update_type('staff-prog') }
|
||||
function po_update_opac () { return po_update_type('opac-bootstrap') }
|
||||
|
|
|
@ -4498,7 +4498,7 @@ DROP TABLE IF EXISTS `search_marc_map`;
|
|||
CREATE TABLE `search_marc_map` (
|
||||
`id` int(11) NOT NULL AUTO_INCREMENT,
|
||||
`index_name` enum('biblios','authorities') COLLATE utf8mb4_unicode_ci NOT NULL COMMENT 'what storage index this map is for',
|
||||
`marc_type` enum('marc21','unimarc','normarc') COLLATE utf8mb4_unicode_ci NOT NULL COMMENT 'what MARC type this map is for',
|
||||
`marc_type` enum('marc21','unimarc') COLLATE utf8mb4_unicode_ci NOT NULL COMMENT 'what MARC type this map is for',
|
||||
`marc_field` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NOT NULL COMMENT 'the MARC specifier for this field',
|
||||
PRIMARY KEY (`id`),
|
||||
UNIQUE KEY `index_name` (`index_name`,`marc_field`(191),`marc_type`),
|
||||
|
|
File diff suppressed because it is too large
Load diff
|
@ -1 +0,0 @@
|
|||
Komplett rammeverk for NORMARC.
|
|
@ -1,127 +0,0 @@
|
|||
-- This file is part of Koha.
|
||||
--
|
||||
-- Copyright 2011 Magnus Enger Libriotech
|
||||
--
|
||||
-- Koha is free software; you can redistribute it and/or modify it
|
||||
-- under the terms of the GNU General Public License as published by
|
||||
-- the Free Software Foundation; either version 3 of the License, or
|
||||
-- (at your option) any later version.
|
||||
--
|
||||
-- Koha is distributed in the hope that it will be useful, but
|
||||
-- WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
-- GNU General Public License for more details.
|
||||
--
|
||||
-- You should have received a copy of the GNU General Public License
|
||||
-- along with Koha; if not, see <http://www.gnu.org/licenses>.
|
||||
|
||||
INSERT IGNORE INTO biblio_framework VALUES ( 'FA','Hurtigkatalogisering' );
|
||||
|
||||
DELETE FROM marc_tag_structure WHERE frameworkcode='FA';
|
||||
INSERT INTO marc_tag_structure (tagfield,liblibrarian,libopac,repeatable,mandatory,authorised_value,frameworkcode) VALUES ('000','Postens hode','Postens hode','0','1','','FA');
|
||||
INSERT INTO marc_tag_structure (tagfield,liblibrarian,libopac,repeatable,mandatory,authorised_value,frameworkcode) VALUES ('001','Identifikasjonsnummer','Identifikasjonsnummer','0','0','','FA');
|
||||
INSERT INTO marc_tag_structure (tagfield,liblibrarian,libopac,repeatable,mandatory,authorised_value,frameworkcode) VALUES ('008','Informasjonskoder','Informasjonskoder','0','0','','FA');
|
||||
INSERT INTO marc_tag_structure (tagfield,liblibrarian,libopac,repeatable,mandatory,authorised_value,frameworkcode) VALUES ('015','Andre bibliografiske kontrollnummer (R)','Andre bibliografiske kontrollnummer (R)','1','0','','FA');
|
||||
INSERT INTO marc_tag_structure (tagfield,liblibrarian,libopac,repeatable,mandatory,authorised_value,frameworkcode) VALUES ('020','Internasjonalt standard boknummer (ISBN)','Internasjonalt standard boknummer (ISBN)','1','0','','FA');
|
||||
INSERT INTO marc_tag_structure (tagfield,liblibrarian,libopac,repeatable,mandatory,authorised_value,frameworkcode) VALUES ('024','Andre standardnumre','Andre standardnumre','0','0','','FA');
|
||||
INSERT INTO marc_tag_structure (tagfield,liblibrarian,libopac,repeatable,mandatory,authorised_value,frameworkcode) VALUES ('025','Europeisk artikkelnummer (EAN)','Europeisk artikkelnummer (EAN)','0','0','','FA');
|
||||
INSERT INTO marc_tag_structure (tagfield,liblibrarian,libopac,repeatable,mandatory,authorised_value,frameworkcode) VALUES ('100','Hovedordningsord personnavn','Hovedordningsord personnavn','0','0','','FA');
|
||||
INSERT INTO marc_tag_structure (tagfield,liblibrarian,libopac,repeatable,mandatory,authorised_value,frameworkcode) VALUES ('245','Tittel og ansvarsopplysninger','Tittel og ansvarsopplysninger','0','0','','FA');
|
||||
INSERT INTO marc_tag_structure (tagfield,liblibrarian,libopac,repeatable,mandatory,authorised_value,frameworkcode) VALUES ('250','Utgave','Utgave','0','0','','FA');
|
||||
INSERT INTO marc_tag_structure (tagfield,liblibrarian,libopac,repeatable,mandatory,authorised_value,frameworkcode) VALUES ('260','Utgivelse, distribusjon osv','Utgivelse, distribusjon osv','0','0','','FA');
|
||||
INSERT INTO marc_tag_structure (tagfield,liblibrarian,libopac,repeatable,mandatory,authorised_value,frameworkcode) VALUES ('300','Fysisk beskrivelse','Fysisk beskrivelse','0','0','','FA');
|
||||
INSERT INTO marc_tag_structure (tagfield,liblibrarian,libopac,repeatable,mandatory,authorised_value,frameworkcode) VALUES ('500','Generell note (R)','Generell note (R)','1','0','','FA');
|
||||
INSERT INTO marc_tag_structure (tagfield,liblibrarian,libopac,repeatable,mandatory,authorised_value,frameworkcode) VALUES ('942','Andre opplysninger (Koha)','Andre opplysninger (Koha)','0','0','','FA');
|
||||
INSERT INTO marc_tag_structure (tagfield,liblibrarian,libopac,repeatable,mandatory,authorised_value,frameworkcode) VALUES ('952','Eksemplarinformasjon (Koha)','Eksemplarinformasjon (Koha)','1','0','','FA');
|
||||
INSERT INTO marc_tag_structure (tagfield,liblibrarian,libopac,repeatable,mandatory,authorised_value,frameworkcode) VALUES ('999','Kontrollnummer (Koha)','Kontrollnummer (Koha)','1','0','','FA');
|
||||
|
||||
|
||||
DELETE FROM marc_subfield_structure WHERE frameworkcode='FA';
|
||||
INSERT INTO marc_subfield_structure (tagfield,tagsubfield,liblibrarian,libopac,repeatable,mandatory,kohafield,tab,authorised_value,authtypecode,value_builder,isurl,hidden,frameworkcode,seealso,link,defaultvalue,maxlength) VALUES ('000','@','Postens hode','Postens hode','0','1','','0','','','normarc_leader.pl','0','-1','FA','','','','24');
|
||||
INSERT INTO marc_subfield_structure (tagfield,tagsubfield,liblibrarian,libopac,repeatable,mandatory,kohafield,tab,authorised_value,authtypecode,value_builder,isurl,hidden,frameworkcode,seealso,link,defaultvalue,maxlength) VALUES ('001','@','Identifikasjonsnummer','Identifikasjonsnummer','0','0','','0','','','','0','-1','FA','','','','9999');
|
||||
INSERT INTO marc_subfield_structure (tagfield,tagsubfield,liblibrarian,libopac,repeatable,mandatory,kohafield,tab,authorised_value,authtypecode,value_builder,isurl,hidden,frameworkcode,seealso,link,defaultvalue,maxlength) VALUES ('008','@','Informasjonskoder','Informasjonskoder','0','0','','0','','','normarc_field_008.pl','0','-1','FA','','','','40');
|
||||
INSERT INTO marc_subfield_structure (tagfield,tagsubfield,liblibrarian,libopac,repeatable,mandatory,kohafield,tab,authorised_value,authtypecode,value_builder,isurl,hidden,frameworkcode,seealso,link,defaultvalue,maxlength) VALUES ('015','a','Nummer','Nummer','0','0','0','0','','','','0','-1','FA','','','','9999');
|
||||
INSERT INTO marc_subfield_structure (tagfield,tagsubfield,liblibrarian,libopac,repeatable,mandatory,kohafield,tab,authorised_value,authtypecode,value_builder,isurl,hidden,frameworkcode,seealso,link,defaultvalue,maxlength) VALUES ('015','b','Kilde','Kilde','0','0','0','0','','','','0','-1','FA','','','','9999');
|
||||
INSERT INTO marc_subfield_structure (tagfield,tagsubfield,liblibrarian,libopac,repeatable,mandatory,kohafield,tab,authorised_value,authtypecode,value_builder,isurl,hidden,frameworkcode,seealso,link,defaultvalue,maxlength) VALUES ('020','a','ISBN','ISBN','0','0','biblioitems.isbn','0','','','','0','-1','FA','','','','9999');
|
||||
INSERT INTO marc_subfield_structure (tagfield,tagsubfield,liblibrarian,libopac,repeatable,mandatory,kohafield,tab,authorised_value,authtypecode,value_builder,isurl,hidden,frameworkcode,seealso,link,defaultvalue,maxlength) VALUES ('020','b','Innbindingsinformasjon','Innbindingsinformasjon','0','0','0','0','','','','0','-1','FA','','','','9999');
|
||||
INSERT INTO marc_subfield_structure (tagfield,tagsubfield,liblibrarian,libopac,repeatable,mandatory,kohafield,tab,authorised_value,authtypecode,value_builder,isurl,hidden,frameworkcode,seealso,link,defaultvalue,maxlength) VALUES ('020','c','Leveringsbetingelser','Leveringsbetingelser','0','0','0','0','','','','0','-1','FA','','','','9999');
|
||||
INSERT INTO marc_subfield_structure (tagfield,tagsubfield,liblibrarian,libopac,repeatable,mandatory,kohafield,tab,authorised_value,authtypecode,value_builder,isurl,hidden,frameworkcode,seealso,link,defaultvalue,maxlength) VALUES ('020','g','Andre tilf','Andre tilf','0','0','0','0','','','','0','-1','FA','','','','9999');
|
||||
INSERT INTO marc_subfield_structure (tagfield,tagsubfield,liblibrarian,libopac,repeatable,mandatory,kohafield,tab,authorised_value,authtypecode,value_builder,isurl,hidden,frameworkcode,seealso,link,defaultvalue,maxlength) VALUES ('020','z','Feil ISBN','Feil ISBN','0','0','0','0','','','','0','-1','FA','','','','9999');
|
||||
INSERT INTO marc_subfield_structure (tagfield,tagsubfield,liblibrarian,libopac,repeatable,mandatory,kohafield,tab,authorised_value,authtypecode,value_builder,isurl,hidden,frameworkcode,seealso,link,defaultvalue,maxlength) VALUES ('024','a','Standardnummer','Standardnummer','0','0','0','0','','','','0','-1','FA','','','','9999');
|
||||
INSERT INTO marc_subfield_structure (tagfield,tagsubfield,liblibrarian,libopac,repeatable,mandatory,kohafield,tab,authorised_value,authtypecode,value_builder,isurl,hidden,frameworkcode,seealso,link,defaultvalue,maxlength) VALUES ('024','c','Leveringsbetingelser','Leveringsbetingelser','0','0','0','0','','','','0','-1','FA','','','','9999');
|
||||
INSERT INTO marc_subfield_structure (tagfield,tagsubfield,liblibrarian,libopac,repeatable,mandatory,kohafield,tab,authorised_value,authtypecode,value_builder,isurl,hidden,frameworkcode,seealso,link,defaultvalue,maxlength) VALUES ('024','g','Andre tilføyelser','Andre tilføyelser','0','0','0','0','','','','0','-1','FA','','','','9999');
|
||||
INSERT INTO marc_subfield_structure (tagfield,tagsubfield,liblibrarian,libopac,repeatable,mandatory,kohafield,tab,authorised_value,authtypecode,value_builder,isurl,hidden,frameworkcode,seealso,link,defaultvalue,maxlength) VALUES ('024','z','Feil standardnummer','Feil standardnummer','0','0','0','0','','','','0','-1','FA','','','','9999');
|
||||
INSERT INTO marc_subfield_structure (tagfield,tagsubfield,liblibrarian,libopac,repeatable,mandatory,kohafield,tab,authorised_value,authtypecode,value_builder,isurl,hidden,frameworkcode,seealso,link,defaultvalue,maxlength) VALUES ('025','a','Nummer','Nummer','0','0','0','0','','','','0','-1','FA','','','','9999');
|
||||
INSERT INTO marc_subfield_structure (tagfield,tagsubfield,liblibrarian,libopac,repeatable,mandatory,kohafield,tab,authorised_value,authtypecode,value_builder,isurl,hidden,frameworkcode,seealso,link,defaultvalue,maxlength) VALUES ('100','8','Andre karakteristika forbundet med navn','Andre karakteristika forbundet med navn','0','0','0','1','','','','0','0','FA','','','','9999');
|
||||
INSERT INTO marc_subfield_structure (tagfield,tagsubfield,liblibrarian,libopac,repeatable,mandatory,kohafield,tab,authorised_value,authtypecode,value_builder,isurl,hidden,frameworkcode,seealso,link,defaultvalue,maxlength) VALUES ('100','a','Navn','Navn','0','0','biblio.author','1','','','','0','0','FA','','','','9999');
|
||||
INSERT INTO marc_subfield_structure (tagfield,tagsubfield,liblibrarian,libopac,repeatable,mandatory,kohafield,tab,authorised_value,authtypecode,value_builder,isurl,hidden,frameworkcode,seealso,link,defaultvalue,maxlength) VALUES ('100','b','Nummer','Nummer','0','0','0','1','','','','0','0','FA','','','','9999');
|
||||
INSERT INTO marc_subfield_structure (tagfield,tagsubfield,liblibrarian,libopac,repeatable,mandatory,kohafield,tab,authorised_value,authtypecode,value_builder,isurl,hidden,frameworkcode,seealso,link,defaultvalue,maxlength) VALUES ('100','c','Andre tilføyelser','Andre tilføyelser','0','0','0','1','','','','0','0','FA','','','','9999');
|
||||
INSERT INTO marc_subfield_structure (tagfield,tagsubfield,liblibrarian,libopac,repeatable,mandatory,kohafield,tab,authorised_value,authtypecode,value_builder,isurl,hidden,frameworkcode,seealso,link,defaultvalue,maxlength) VALUES ('100','d','Årstall forbundet med navn','Årstall forbundet med navn','0','0','0','1','','','','0','0','FA','','','','9999');
|
||||
INSERT INTO marc_subfield_structure (tagfield,tagsubfield,liblibrarian,libopac,repeatable,mandatory,kohafield,tab,authorised_value,authtypecode,value_builder,isurl,hidden,frameworkcode,seealso,link,defaultvalue,maxlength) VALUES ('100','e','Betegnelse for funksjon','Betegnelse for funksjon','0','0','0','1','','','','0','0','FA','','','','9999');
|
||||
INSERT INTO marc_subfield_structure (tagfield,tagsubfield,liblibrarian,libopac,repeatable,mandatory,kohafield,tab,authorised_value,authtypecode,value_builder,isurl,hidden,frameworkcode,seealso,link,defaultvalue,maxlength) VALUES ('100','j','Nasjonalitet','Nasjonalitet','0','0','0','1','','','','0','0','FA','','','','9999');
|
||||
INSERT INTO marc_subfield_structure (tagfield,tagsubfield,liblibrarian,libopac,repeatable,mandatory,kohafield,tab,authorised_value,authtypecode,value_builder,isurl,hidden,frameworkcode,seealso,link,defaultvalue,maxlength) VALUES ('100','q','Mer fullstendig navneform','Mer fullstendig navneform','0','0','0','1','','','','0','0','FA','','','','9999');
|
||||
INSERT INTO marc_subfield_structure (tagfield,tagsubfield,liblibrarian,libopac,repeatable,mandatory,kohafield,tab,authorised_value,authtypecode,value_builder,isurl,hidden,frameworkcode,seealso,link,defaultvalue,maxlength) VALUES ('100','w','Sorteringsdelfelt for delfelt $a','Sorteringsdelfelt for delfelt $a','0','0','0','1','','','','0','0','FA','','','','9999');
|
||||
INSERT INTO marc_subfield_structure (tagfield,tagsubfield,liblibrarian,libopac,repeatable,mandatory,kohafield,tab,authorised_value,authtypecode,value_builder,isurl,hidden,frameworkcode,seealso,link,defaultvalue,maxlength) VALUES ('245','a','Tittel','Tittel','0','0','biblio.title','2','','','','0','0','FA','','','','9999');
|
||||
INSERT INTO marc_subfield_structure (tagfield,tagsubfield,liblibrarian,libopac,repeatable,mandatory,kohafield,tab,authorised_value,authtypecode,value_builder,isurl,hidden,frameworkcode,seealso,link,defaultvalue,maxlength) VALUES ('245','b','Annen tittelinformasjon','Annen tittelinformasjon','0','0','biblio.subtitle','2','','','','0','0','FA','','','','9999');
|
||||
INSERT INTO marc_subfield_structure (tagfield,tagsubfield,liblibrarian,libopac,repeatable,mandatory,kohafield,tab,authorised_value,authtypecode,value_builder,isurl,hidden,frameworkcode,seealso,link,defaultvalue,maxlength) VALUES ('245','c','Ansvarsangivelse','Ansvarsangivelse','0','0','0','2','','','','0','0','FA','','','','9999');
|
||||
INSERT INTO marc_subfield_structure (tagfield,tagsubfield,liblibrarian,libopac,repeatable,mandatory,kohafield,tab,authorised_value,authtypecode,value_builder,isurl,hidden,frameworkcode,seealso,link,defaultvalue,maxlength) VALUES ('245','h','Generell materialbetegnelse','Generell materialbetegnelse','0','0','0','2','','','','0','0','FA','','','','9999');
|
||||
INSERT INTO marc_subfield_structure (tagfield,tagsubfield,liblibrarian,libopac,repeatable,mandatory,kohafield,tab,authorised_value,authtypecode,value_builder,isurl,hidden,frameworkcode,seealso,link,defaultvalue,maxlength) VALUES ('250','a','Utgave, opplag etc','Utgave, opplag etc','0','0','biblioitems.editionstatement','2','','','','0','-1','FA','','','','9999');
|
||||
INSERT INTO marc_subfield_structure (tagfield,tagsubfield,liblibrarian,libopac,repeatable,mandatory,kohafield,tab,authorised_value,authtypecode,value_builder,isurl,hidden,frameworkcode,seealso,link,defaultvalue,maxlength) VALUES ('250','b','Ansvarshavende','Ansvarshavende','0','0','0','2','','','','0','-1','FA','','','','9999');
|
||||
INSERT INTO marc_subfield_structure (tagfield,tagsubfield,liblibrarian,libopac,repeatable,mandatory,kohafield,tab,authorised_value,authtypecode,value_builder,isurl,hidden,frameworkcode,seealso,link,defaultvalue,maxlength) VALUES ('260','a','Sted (R)','Sted (R)','1','0','biblioitems.place','2','','','','0','-1','FA','','','','9999');
|
||||
INSERT INTO marc_subfield_structure (tagfield,tagsubfield,liblibrarian,libopac,repeatable,mandatory,kohafield,tab,authorised_value,authtypecode,value_builder,isurl,hidden,frameworkcode,seealso,link,defaultvalue,maxlength) VALUES ('260','b','Navn p','Navn p','0','0','biblioitems.publishercode','2','','','','0','-1','FA','','','','9999');
|
||||
INSERT INTO marc_subfield_structure (tagfield,tagsubfield,liblibrarian,libopac,repeatable,mandatory,kohafield,tab,authorised_value,authtypecode,value_builder,isurl,hidden,frameworkcode,seealso,link,defaultvalue,maxlength) VALUES ('260','c','År','År','0','0','biblio.copyrightdate','2','','','','0','-1','FA','','','','9999');
|
||||
INSERT INTO marc_subfield_structure (tagfield,tagsubfield,liblibrarian,libopac,repeatable,mandatory,kohafield,tab,authorised_value,authtypecode,value_builder,isurl,hidden,frameworkcode,seealso,link,defaultvalue,maxlength) VALUES ('260','e','Trykkested eller produksjonssted','Trykkested eller produksjonssted','0','0','0','2','','','','0','-1','FA','','','','9999');
|
||||
INSERT INTO marc_subfield_structure (tagfield,tagsubfield,liblibrarian,libopac,repeatable,mandatory,kohafield,tab,authorised_value,authtypecode,value_builder,isurl,hidden,frameworkcode,seealso,link,defaultvalue,maxlength) VALUES ('260','f','Trykkeriets eller produsentens navn','Trykkeriets eller produsentens navn','0','0','0','2','','','','0','-1','FA','','','','9999');
|
||||
INSERT INTO marc_subfield_structure (tagfield,tagsubfield,liblibrarian,libopac,repeatable,mandatory,kohafield,tab,authorised_value,authtypecode,value_builder,isurl,hidden,frameworkcode,seealso,link,defaultvalue,maxlength) VALUES ('260','g','Trykkeår eller produksjonsår','Trykkeår eller produksjonsår','0','0','0','2','','','','0','-1','FA','','','','9999');
|
||||
INSERT INTO marc_subfield_structure (tagfield,tagsubfield,liblibrarian,libopac,repeatable,mandatory,kohafield,tab,authorised_value,authtypecode,value_builder,isurl,hidden,frameworkcode,seealso,link,defaultvalue,maxlength) VALUES ('300','a','Omfang','Omfang','0','0','biblioitems.pages','3','','','','0','0','FA','','','','9999');
|
||||
INSERT INTO marc_subfield_structure (tagfield,tagsubfield,liblibrarian,libopac,repeatable,mandatory,kohafield,tab,authorised_value,authtypecode,value_builder,isurl,hidden,frameworkcode,seealso,link,defaultvalue,maxlength) VALUES ('300','b','Illustrasjonsmateriale og andre fysiske detaljer','Illustrasjonsmateriale og andre fysiske detaljer','0','0','biblioitems.illus','3','','','','0','0','FA','','','','9999');
|
||||
INSERT INTO marc_subfield_structure (tagfield,tagsubfield,liblibrarian,libopac,repeatable,mandatory,kohafield,tab,authorised_value,authtypecode,value_builder,isurl,hidden,frameworkcode,seealso,link,defaultvalue,maxlength) VALUES ('300','c','Format','Format','0','0','biblioitems.size','3','','','','0','0','FA','','','','9999');
|
||||
INSERT INTO marc_subfield_structure (tagfield,tagsubfield,liblibrarian,libopac,repeatable,mandatory,kohafield,tab,authorised_value,authtypecode,value_builder,isurl,hidden,frameworkcode,seealso,link,defaultvalue,maxlength) VALUES ('300','e','Bilag','Bilag','0','0','0','3','','','','0','0','FA','','','','9999');
|
||||
INSERT INTO marc_subfield_structure (tagfield,tagsubfield,liblibrarian,libopac,repeatable,mandatory,kohafield,tab,authorised_value,authtypecode,value_builder,isurl,hidden,frameworkcode,seealso,link,defaultvalue,maxlength) VALUES ('500','a','Notens tekst','Notens tekst','0','0','biblio.notes','5','','','','0','0','FA','','','','9999');
|
||||
INSERT INTO marc_subfield_structure (tagfield,tagsubfield,liblibrarian,libopac,repeatable,mandatory,kohafield,tab,authorised_value,authtypecode,value_builder,isurl,hidden,frameworkcode,seealso,link,defaultvalue,maxlength) VALUES ('942','0','Antall utlån','Antall utlån','0','0','biblioitems.totalissues','9','','','','0','-5','FA','','','','9999');
|
||||
INSERT INTO marc_subfield_structure (tagfield,tagsubfield,liblibrarian,libopac,repeatable,mandatory,kohafield,tab,authorised_value,authtypecode,value_builder,isurl,hidden,frameworkcode,seealso,link,defaultvalue,maxlength) VALUES ('942','2','Kilde for klassifikasjon','Kilde for klassifikasjon','0','0','biblioitems.cn_source','9','','','','0','-1','FA','','','','9999');
|
||||
INSERT INTO marc_subfield_structure (tagfield,tagsubfield,liblibrarian,libopac,repeatable,mandatory,kohafield,tab,authorised_value,authtypecode,value_builder,isurl,hidden,frameworkcode,seealso,link,defaultvalue,maxlength) VALUES ('942','6','Koha normalisert klassifikasjon for sortering','Koha normalisert klassifikasjon for sortering','0','0','biblioitems.cn_sort','-1','','','','0','7','FA','','','','9999');
|
||||
INSERT INTO marc_subfield_structure (tagfield,tagsubfield,liblibrarian,libopac,repeatable,mandatory,kohafield,tab,authorised_value,authtypecode,value_builder,isurl,hidden,frameworkcode,seealso,link,defaultvalue,maxlength) VALUES ('942','c','Koha [standard] dokumenttype','Koha dokumenttype','0','1','biblioitems.itemtype','9','itemtypes','','','0','-1','FA','','','','9999');
|
||||
INSERT INTO marc_subfield_structure (tagfield,tagsubfield,liblibrarian,libopac,repeatable,mandatory,kohafield,tab,authorised_value,authtypecode,value_builder,isurl,hidden,frameworkcode,seealso,link,defaultvalue,maxlength) VALUES ('942','e','Utgave','Utgave','0','0','','9','','','','0','-1','FA','','','','9999');
|
||||
INSERT INTO marc_subfield_structure (tagfield,tagsubfield,liblibrarian,libopac,repeatable,mandatory,kohafield,tab,authorised_value,authtypecode,value_builder,isurl,hidden,frameworkcode,seealso,link,defaultvalue,maxlength) VALUES ('942','h','Klassifikasjon del','Klassifikasjon del','0','0','biblioitems.cn_class','9','','','','0','-1','FA','','','','9999');
|
||||
INSERT INTO marc_subfield_structure (tagfield,tagsubfield,liblibrarian,libopac,repeatable,mandatory,kohafield,tab,authorised_value,authtypecode,value_builder,isurl,hidden,frameworkcode,seealso,link,defaultvalue,maxlength) VALUES ('942','i','Eksemplar del','Eksemplar del','1','0','biblioitems.cn_item','9','','','','0','-1','FA','','','','9999');
|
||||
INSERT INTO marc_subfield_structure (tagfield,tagsubfield,liblibrarian,libopac,repeatable,mandatory,kohafield,tab,authorised_value,authtypecode,value_builder,isurl,hidden,frameworkcode,seealso,link,defaultvalue,maxlength) VALUES ('942','k','Hyllesignatur prefiks','Hyllesignatur prefiks','0','0','','9','','','','0','-1','FA','','','','9999');
|
||||
INSERT INTO marc_subfield_structure (tagfield,tagsubfield,liblibrarian,libopac,repeatable,mandatory,kohafield,tab,authorised_value,authtypecode,value_builder,isurl,hidden,frameworkcode,seealso,link,defaultvalue,maxlength) VALUES ('942','m','Hyllesignatur postfiks','Hyllesignatur postfiks','0','0','biblioitems.cn_suffix','9','','','','0','-1','FA','','','','9999');
|
||||
INSERT INTO marc_subfield_structure (tagfield,tagsubfield,liblibrarian,libopac,repeatable,mandatory,kohafield,tab,authorised_value,authtypecode,value_builder,isurl,hidden,frameworkcode,seealso,link,defaultvalue,maxlength) VALUES ('942','n','Skjul i OPAC','Skjul i OPAC','0','0','','9','','','','0','-1','FA','','','','9999');
|
||||
INSERT INTO marc_subfield_structure (tagfield,tagsubfield,liblibrarian,libopac,repeatable,mandatory,kohafield,tab,authorised_value,authtypecode,value_builder,isurl,hidden,frameworkcode,seealso,link,defaultvalue,maxlength) VALUES ('942','s','Periodikamark','Periodikamark','0','0','biblio.serial','9','','','','0','-5','FA','','','','9999');
|
||||
INSERT INTO marc_subfield_structure (tagfield,tagsubfield,liblibrarian,libopac,repeatable,mandatory,kohafield,tab,authorised_value,authtypecode,value_builder,isurl,hidden,frameworkcode,seealso,link,defaultvalue,maxlength) VALUES ('952','0','Trukket tilbake','Trukket tilbake','0','0','items.withdrawn','10','WITHDRAWN','','','0','0','FA','','','','9999');
|
||||
INSERT INTO marc_subfield_structure (tagfield,tagsubfield,liblibrarian,libopac,repeatable,mandatory,kohafield,tab,authorised_value,authtypecode,value_builder,isurl,hidden,frameworkcode,seealso,link,defaultvalue,maxlength) VALUES ('952','1','Tapt','Tapt','0','0','items.itemlost','10','LOST','','','0','0','FA','','','','9999');
|
||||
INSERT INTO marc_subfield_structure (tagfield,tagsubfield,liblibrarian,libopac,repeatable,mandatory,kohafield,tab,authorised_value,authtypecode,value_builder,isurl,hidden,frameworkcode,seealso,link,defaultvalue,maxlength) VALUES ('952','2','Kilde for klassifikasjon','Kilde for klassifikasjon','0','0','items.cn_source','10','cn_source','','','0','0','FA','','','','9999');
|
||||
INSERT INTO marc_subfield_structure (tagfield,tagsubfield,liblibrarian,libopac,repeatable,mandatory,kohafield,tab,authorised_value,authtypecode,value_builder,isurl,hidden,frameworkcode,seealso,link,defaultvalue,maxlength) VALUES ('952','3','Materialespesifikasjon (innbundet ','Materialespesifikasjon (innbundet ','0','0','items.materials','10','','','','0','0','FA','','','','9999');
|
||||
INSERT INTO marc_subfield_structure (tagfield,tagsubfield,liblibrarian,libopac,repeatable,mandatory,kohafield,tab,authorised_value,authtypecode,value_builder,isurl,hidden,frameworkcode,seealso,link,defaultvalue,maxlength) VALUES ('952','4','Skadet','Skadet','0','0','items.damaged','10','DAMAGED','','','0','0','FA','','','','9999');
|
||||
INSERT INTO marc_subfield_structure (tagfield,tagsubfield,liblibrarian,libopac,repeatable,mandatory,kohafield,tab,authorised_value,authtypecode,value_builder,isurl,hidden,frameworkcode,seealso,link,defaultvalue,maxlength) VALUES ('952','5','Begrensninger p','Begrensninger p','0','0','items.restricted','10','RESTRICTED','','','0','0','FA','','','','9999');
|
||||
INSERT INTO marc_subfield_structure (tagfield,tagsubfield,liblibrarian,libopac,repeatable,mandatory,kohafield,tab,authorised_value,authtypecode,value_builder,isurl,hidden,frameworkcode,seealso,link,defaultvalue,maxlength) VALUES ('952','6','Koha normalisert klassifikasjon for sortering','Koha normalisert klassifikasjon for sortering','0','0','items.cn_sort','-1','','','','0','7','FA','','','','9999');
|
||||
INSERT INTO marc_subfield_structure (tagfield,tagsubfield,liblibrarian,libopac,repeatable,mandatory,kohafield,tab,authorised_value,authtypecode,value_builder,isurl,hidden,frameworkcode,seealso,link,defaultvalue,maxlength) VALUES ('952','7','Ikke til utlån','Ikke til utlån','0','0','items.notforloan','10','NOT_LOAN','','','0','0','FA','','','','9999');
|
||||
INSERT INTO marc_subfield_structure (tagfield,tagsubfield,liblibrarian,libopac,repeatable,mandatory,kohafield,tab,authorised_value,authtypecode,value_builder,isurl,hidden,frameworkcode,seealso,link,defaultvalue,maxlength) VALUES ('952','8','Koha samling','Koha samling','0','0','items.ccode','10','CCODE','','','0','0','FA','','','','9999');
|
||||
INSERT INTO marc_subfield_structure (tagfield,tagsubfield,liblibrarian,libopac,repeatable,mandatory,kohafield,tab,authorised_value,authtypecode,value_builder,isurl,hidden,frameworkcode,seealso,link,defaultvalue,maxlength) VALUES ('952','9','Koha eksemplarnummer (autogenerert)','Koha eksemplarnummer','0','0','items.itemnumber','-1','','','','0','7','FA','','','','9999');
|
||||
INSERT INTO marc_subfield_structure (tagfield,tagsubfield,liblibrarian,libopac,repeatable,mandatory,kohafield,tab,authorised_value,authtypecode,value_builder,isurl,hidden,frameworkcode,seealso,link,defaultvalue,maxlength) VALUES ('952','a','Plassering (eiende filial)','Plassering (eiende filial)','0','0','items.homebranch','10','branches','','','0','0','FA','','','','9999');
|
||||
INSERT INTO marc_subfield_structure (tagfield,tagsubfield,liblibrarian,libopac,repeatable,mandatory,kohafield,tab,authorised_value,authtypecode,value_builder,isurl,hidden,frameworkcode,seealso,link,defaultvalue,maxlength) VALUES ('952','b','Annen plassering (midlertidig filial)','Annen plassering (midlertidig filial)','0','0','items.holdingbranch','10','branches','','','0','0','FA','','','','9999');
|
||||
INSERT INTO marc_subfield_structure (tagfield,tagsubfield,liblibrarian,libopac,repeatable,mandatory,kohafield,tab,authorised_value,authtypecode,value_builder,isurl,hidden,frameworkcode,seealso,link,defaultvalue,maxlength) VALUES ('952','c','Hylleplassering','Hylleplassering','0','0','items.location','10','LOC','','','0','0','FA','','','','9999');
|
||||
INSERT INTO marc_subfield_structure (tagfield,tagsubfield,liblibrarian,libopac,repeatable,mandatory,kohafield,tab,authorised_value,authtypecode,value_builder,isurl,hidden,frameworkcode,seealso,link,defaultvalue,maxlength) VALUES ('952','d','Anskaffelsesdato','Anskaffelsesdato','0','0','items.dateaccessioned','10','','','dateaccessioned.pl','0','0','FA','','','','9999');
|
||||
INSERT INTO marc_subfield_structure (tagfield,tagsubfield,liblibrarian,libopac,repeatable,mandatory,kohafield,tab,authorised_value,authtypecode,value_builder,isurl,hidden,frameworkcode,seealso,link,defaultvalue,maxlength) VALUES ('952','e','Kilde for anskaffelse','Kilde for anskaffelse','0','0','items.booksellerid','10','','','','0','0','FA','','','','9999');
|
||||
INSERT INTO marc_subfield_structure (tagfield,tagsubfield,liblibrarian,libopac,repeatable,mandatory,kohafield,tab,authorised_value,authtypecode,value_builder,isurl,hidden,frameworkcode,seealso,link,defaultvalue,maxlength) VALUES ('952','f','Kodet plasseringskvalifikator','Kodet plasseringskvalifikator','0','0','items.coded_location_qualifier','10','','','','0','0','FA','','','','9999');
|
||||
INSERT INTO marc_subfield_structure (tagfield,tagsubfield,liblibrarian,libopac,repeatable,mandatory,kohafield,tab,authorised_value,authtypecode,value_builder,isurl,hidden,frameworkcode,seealso,link,defaultvalue,maxlength) VALUES ('952','g','Pris (normal innkjøpspris)','Pris (normal innkjøpspris)','0','0','items.price','10','','','','0','0','FA','','','','9999');
|
||||
INSERT INTO marc_subfield_structure (tagfield,tagsubfield,liblibrarian,libopac,repeatable,mandatory,kohafield,tab,authorised_value,authtypecode,value_builder,isurl,hidden,frameworkcode,seealso,link,defaultvalue,maxlength) VALUES ('952','h','Serienummerering / kronologi','Serienummerering / kronologi','0','0','items.enumchron','10','','','','0','0','FA','','','','9999');
|
||||
INSERT INTO marc_subfield_structure (tagfield,tagsubfield,liblibrarian,libopac,repeatable,mandatory,kohafield,tab,authorised_value,authtypecode,value_builder,isurl,hidden,frameworkcode,seealso,link,defaultvalue,maxlength) VALUES ('952','j','Samling','Samling','0','0','items.stack','10','STACK','','','0','0','FA','','','','9999');
|
||||
INSERT INTO marc_subfield_structure (tagfield,tagsubfield,liblibrarian,libopac,repeatable,mandatory,kohafield,tab,authorised_value,authtypecode,value_builder,isurl,hidden,frameworkcode,seealso,link,defaultvalue,maxlength) VALUES ('952','l','Koha utlån','Koha utlån','0','0','items.issues','10','','','','0','-5','FA','','','','9999');
|
||||
INSERT INTO marc_subfield_structure (tagfield,tagsubfield,liblibrarian,libopac,repeatable,mandatory,kohafield,tab,authorised_value,authtypecode,value_builder,isurl,hidden,frameworkcode,seealso,link,defaultvalue,maxlength) VALUES ('952','m','Koha fornyinger','Koha fornyinger','0','0','items.renewals','10','','','','0','-5','FA','','','','9999');
|
||||
INSERT INTO marc_subfield_structure (tagfield,tagsubfield,liblibrarian,libopac,repeatable,mandatory,kohafield,tab,authorised_value,authtypecode,value_builder,isurl,hidden,frameworkcode,seealso,link,defaultvalue,maxlength) VALUES ('952','n','Koha reserveringer','Koha reserveringer','0','0','items.reserves','10','','','','0','-5','FA','','','','9999');
|
||||
INSERT INTO marc_subfield_structure (tagfield,tagsubfield,liblibrarian,libopac,repeatable,mandatory,kohafield,tab,authorised_value,authtypecode,value_builder,isurl,hidden,frameworkcode,seealso,link,defaultvalue,maxlength) VALUES ('952','o','Koha hyllesignatur','Koha hyllesignatur','0','0','items.itemcallnumber','10','','','','0','0','FA','','','','9999');
|
||||
INSERT INTO marc_subfield_structure (tagfield,tagsubfield,liblibrarian,libopac,repeatable,mandatory,kohafield,tab,authorised_value,authtypecode,value_builder,isurl,hidden,frameworkcode,seealso,link,defaultvalue,maxlength) VALUES ('952','p','Strekkode','Strekkode','0','0','items.barcode','10','','','barcode.pl','0','0','FA','','','','9999');
|
||||
INSERT INTO marc_subfield_structure (tagfield,tagsubfield,liblibrarian,libopac,repeatable,mandatory,kohafield,tab,authorised_value,authtypecode,value_builder,isurl,hidden,frameworkcode,seealso,link,defaultvalue,maxlength) VALUES ('952','q','Koha utlånt','Koha utlånt','0','0','items.onloan','10','','','','0','-5','FA','','','','9999');
|
||||
INSERT INTO marc_subfield_structure (tagfield,tagsubfield,liblibrarian,libopac,repeatable,mandatory,kohafield,tab,authorised_value,authtypecode,value_builder,isurl,hidden,frameworkcode,seealso,link,defaultvalue,maxlength) VALUES ('952','r','Koha dato sist sett','Koha dato sist sett','0','0','items.datelastseen','10','','','','0','-5','FA','','','','9999');
|
||||
INSERT INTO marc_subfield_structure (tagfield,tagsubfield,liblibrarian,libopac,repeatable,mandatory,kohafield,tab,authorised_value,authtypecode,value_builder,isurl,hidden,frameworkcode,seealso,link,defaultvalue,maxlength) VALUES ('952','s','Koha dato sist utlånt','Koha dato sist utlånt','0','0','items.datelastborrowed','10','','','','0','-5','FA','','','','9999');
|
||||
INSERT INTO marc_subfield_structure (tagfield,tagsubfield,liblibrarian,libopac,repeatable,mandatory,kohafield,tab,authorised_value,authtypecode,value_builder,isurl,hidden,frameworkcode,seealso,link,defaultvalue,maxlength) VALUES ('952','t','Eksemplarnummer','Eksemplarnummer','0','0','items.copynumber','10','','','','0','0','FA','','','','9999');
|
||||
INSERT INTO marc_subfield_structure (tagfield,tagsubfield,liblibrarian,libopac,repeatable,mandatory,kohafield,tab,authorised_value,authtypecode,value_builder,isurl,hidden,frameworkcode,seealso,link,defaultvalue,maxlength) VALUES ('952','u','Uniform Resource Identifier (URI)','Uniform Resource Identifier (URI)','0','0','items.uri','10','','','','1','0','FA','','','','9999');
|
||||
INSERT INTO marc_subfield_structure (tagfield,tagsubfield,liblibrarian,libopac,repeatable,mandatory,kohafield,tab,authorised_value,authtypecode,value_builder,isurl,hidden,frameworkcode,seealso,link,defaultvalue,maxlength) VALUES ('952','v','Pris (erstatningspris)','Pris (erstatningspris)','0','0','items.replacementprice','10','','','','0','0','FA','','','','9999');
|
||||
INSERT INTO marc_subfield_structure (tagfield,tagsubfield,liblibrarian,libopac,repeatable,mandatory,kohafield,tab,authorised_value,authtypecode,value_builder,isurl,hidden,frameworkcode,seealso,link,defaultvalue,maxlength) VALUES ('952','w','Pris gjelder fra','Pris gjelder fra','0','0','items.replacementpricedate','10','','','','0','0','FA','','','','9999');
|
||||
INSERT INTO marc_subfield_structure (tagfield,tagsubfield,liblibrarian,libopac,repeatable,mandatory,kohafield,tab,authorised_value,authtypecode,value_builder,isurl,hidden,frameworkcode,seealso,link,defaultvalue,maxlength) VALUES ('952','x','Intern note','Intern note','1','0','items.itemnotes_nonpublic','10','','','','0','7','FA','','','','9999');
|
||||
INSERT INTO marc_subfield_structure (tagfield,tagsubfield,liblibrarian,libopac,repeatable,mandatory,kohafield,tab,authorised_value,authtypecode,value_builder,isurl,hidden,frameworkcode,seealso,link,defaultvalue,maxlength) VALUES ('952','y','Koha dokumenttype','Koha dokumenttype','0','0','items.itype','10','itemtypes','','','0','0','FA','','','','9999');
|
||||
INSERT INTO marc_subfield_structure (tagfield,tagsubfield,liblibrarian,libopac,repeatable,mandatory,kohafield,tab,authorised_value,authtypecode,value_builder,isurl,hidden,frameworkcode,seealso,link,defaultvalue,maxlength) VALUES ('952','z','Synlig note','Synlig note','0','0','items.itemnotes','10','','','','0','0','FA','','','','9999');
|
||||
INSERT INTO marc_subfield_structure (tagfield,tagsubfield,liblibrarian,libopac,repeatable,mandatory,kohafield,tab,authorised_value,authtypecode,value_builder,isurl,hidden,frameworkcode,seealso,link,defaultvalue,maxlength) VALUES ('999','c','Koha biblionummer','Koha biblionummer','0','0','biblio.biblionumber','-1','','','','0','-5','FA','','','','9999');
|
||||
INSERT INTO marc_subfield_structure (tagfield,tagsubfield,liblibrarian,libopac,repeatable,mandatory,kohafield,tab,authorised_value,authtypecode,value_builder,isurl,hidden,frameworkcode,seealso,link,defaultvalue,maxlength) VALUES ('999','d','Koha biblioitemnummer','Koha biblioitemnummer','0','0','biblioitems.biblioitemnumber','-1','','','','0','-5','FA','','','','9999');
|
|
@ -1 +0,0 @@
|
|||
Rammeverk for hurtigkatalogisering i NORMARC. Inneholder et begrenset utvalg felter.
|
|
@ -26,7 +26,7 @@ Cataloging:
|
|||
0: "Don't enable"
|
||||
- the advanced cataloging editor.
|
||||
- "<br/> <strong>NOTE:</strong>"
|
||||
- Currently does not include support for UNIMARC or NORMARC fixed fields.
|
||||
- Currently does not include support for UNIMARC fixed fields.
|
||||
-
|
||||
- "When saving in a MARC/MARCXML file in the advanced cataloging editor or exporting from the detail page in the staff interface, use the"
|
||||
- pref: DefaultSaveRecordFileID
|
||||
|
@ -78,7 +78,6 @@ Cataloging:
|
|||
choices:
|
||||
MARC21: MARC21
|
||||
UNIMARC: UNIMARC
|
||||
NORMARC: NORMARC
|
||||
- format.
|
||||
-
|
||||
- Use the item type of the
|
||||
|
|
|
@ -829,7 +829,7 @@ function PopupMARCFieldDoc(field) {
|
|||
[% IF Koha.Preference( 'EnableAdvancedCatalogingEditor' ) == 1 && CAN_user_editcatalogue_advanced_editor %]
|
||||
<li><a href="#" id="switcheditor">Switch to advanced editor</a></li>
|
||||
[% END %]
|
||||
[% IF marcflavour != 'NORMARC' AND NOT advancedMARCEditor %]
|
||||
[% UNLESS advancedMARCEditor %]
|
||||
<li>
|
||||
<a href="#" id="marcDocsSelect"><i class="fa fa-check-square-o"></i> Show MARC tag documentation links</a>
|
||||
<li>
|
||||
|
@ -966,7 +966,7 @@ function PopupMARCFieldDoc(field) {
|
|||
<a href="#" tabindex="1" class="tagnum" title="[% innerloo.tag_lib | html %] - Click to Expand this Tag" onclick="ExpandField('tag_[% innerloo.tag | html %]_[% innerloo.index | html %][% innerloo.random | html %]'); return false;">[% innerloo.tag | html %]</a>
|
||||
[% ELSE %]
|
||||
<span class="tagnum" title="[% innerloo.tag_lib | html %]">[% innerloo.tag | html %]</span>
|
||||
[% IF marcflavour != 'NORMARC' %]<a href="#" class="marcdocs" onclick="PopupMARCFieldDoc('[% innerloo.tag | html %]'); return false;"> ?</a>[% END %]
|
||||
<a href="#" class="marcdocs" onclick="PopupMARCFieldDoc('[% innerloo.tag | html %]'); return false;"> ?</a>
|
||||
[% END %]
|
||||
|
||||
[% IF ( innerloo.fixedfield ) %]
|
||||
|
|
File diff suppressed because it is too large
Load diff
File diff suppressed because it is too large
Load diff
|
@ -1,223 +0,0 @@
|
|||
[% INCLUDE 'doc-head-open.inc' %]
|
||||
<title>000 - Bygging av postens hode › Cataloging › Koha</title>
|
||||
[% INCLUDE 'doc-head-close.inc' %]
|
||||
</head>
|
||||
<body id="cat_normarc_leader" class="cat" style="padding:1em;">
|
||||
<form name="f_pop" onsubmit="report()">
|
||||
<input type="hidden" name="plugin_name" value="normarc_leader.pl" />
|
||||
<h3>000 - Postens hode</h3>
|
||||
<table>
|
||||
<tr>
|
||||
<td><span class="label">00-04 Systemgenerert informasjon</span></td>
|
||||
<td>(autofylt)</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><label for="f5">05 Postens status</label></td>
|
||||
<td>
|
||||
<select name="f5" id="f5">
|
||||
|
||||
[% IF ( f5c ) %]
|
||||
<option value="c" selected="selected">c Rettet post</option>
|
||||
[% ELSE %]
|
||||
<option value="c">c Rettet post</option>
|
||||
[% END %]
|
||||
|
||||
[% IF ( f5d ) %]
|
||||
<option value="d" selected="selected">d Slettet post</option>
|
||||
[% ELSE %]
|
||||
<option value="d">d Slettet post</option>
|
||||
[% END %]
|
||||
|
||||
[% IF ( f5n ) %]
|
||||
<option value="n" selected="selected">n Ny post</option>
|
||||
[% ELSE %]
|
||||
<option value="n">n Ny post</option>
|
||||
[% END %]
|
||||
|
||||
[% IF ( f5p ) %]
|
||||
<option value="p" selected="selected">p Oppgradert post</option>
|
||||
[% ELSE %]
|
||||
<option value="p">p Oppgradert post</option>
|
||||
[% END %]
|
||||
|
||||
</select>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><label for="f6">06 Materialtype</label></td>
|
||||
<td>
|
||||
<select name="f6" id="f6">
|
||||
|
||||
[% IF ( f6a ) %]
|
||||
<option value="a" selected="selected">a Tekstlig materiale</option>
|
||||
[% ELSE %]
|
||||
<option value="a">a Tekstlig materiale</option>
|
||||
[% END %]
|
||||
[% IF ( f6b ) %]
|
||||
<option value="b" selected="selected">b Manuskripter (kap.4)</option>
|
||||
[% ELSE %]
|
||||
<option value="b">b Manuskripter (kap.4)</option>
|
||||
[% END %]
|
||||
[% IF ( f6c ) %]
|
||||
<option value="c" selected="selected">c Musikktrykk (kap.5)</option>
|
||||
[% ELSE %]
|
||||
<option value="c">c Musikktrykk (kap.5)</option>
|
||||
[% END %]
|
||||
[% IF ( f6d ) %]
|
||||
<option value="d" selected="selected">d Musikkmanuskripter (kap.5)</option>
|
||||
[% ELSE %]
|
||||
<option value="d">d Musikkmanuskripter (kap.5)</option>
|
||||
[% END %]
|
||||
[% IF ( f6e ) %]
|
||||
<option value="e" selected="selected">e Kartografisk materiale (kap.3)</option>
|
||||
[% ELSE %]
|
||||
<option value="e">e Kartografisk materiale (kap.3)</option>
|
||||
[% END %]
|
||||
[% IF ( f6f ) %]
|
||||
<option value="f" selected="selected">f Kartmanuskripter (kap.3)</option>
|
||||
[% ELSE %]
|
||||
<option value="f">f Kartmanuskripter (kap.3)</option>
|
||||
[% END %]
|
||||
[% IF ( f6g ) %]
|
||||
<option value="g" selected="selected">g Filmer og videoopptak (kap.7)</option>
|
||||
[% ELSE %]
|
||||
<option value="g">g Filmer og videoopptak (kap.7)</option>
|
||||
[% END %]
|
||||
[% IF ( f6i ) %]
|
||||
<option value="i" selected="selected">i Lydopptak (ikke musikk) (kap.6)</option>
|
||||
[% ELSE %]
|
||||
<option value="i">i Lydopptak (ikke musikk) (kap.6)</option>
|
||||
[% END %]
|
||||
[% IF ( f6j ) %]
|
||||
<option value="j" selected="selected">j Lydopptak av musikkverk (kap.6)</option>
|
||||
[% ELSE %]
|
||||
<option value="j">j Lydopptak av musikkverk (kap.6)</option>
|
||||
[% END %]
|
||||
[% IF ( f6k ) %]
|
||||
<option value="k" selected="selected">k Grafisk materiale (kap.8)</option>
|
||||
[% ELSE %]
|
||||
<option value="k">k Grafisk materiale (kap.8)</option>
|
||||
[% END %]
|
||||
[% IF ( f6m ) %]
|
||||
<option value="m" selected="selected">m Maskinlesbare filer (kap.9)</option>
|
||||
[% ELSE %]
|
||||
<option value="m">m Maskinlesbare filer (kap.9)</option>
|
||||
[% END %]
|
||||
[% IF ( f6o ) %]
|
||||
<option value="o" selected="selected">o Kombidokumenter</option>
|
||||
[% ELSE %]
|
||||
<option value="o">o Kombidokumenter</option>
|
||||
[% END %]
|
||||
[% IF ( f6r ) %]
|
||||
<option value="r" selected="selected">r Tre-dimensjonale gjenstander (kap.10)</option>
|
||||
[% ELSE %]
|
||||
<option value="r">r Tre-dimensjonale gjenstander (kap.10)</option>
|
||||
[% END %]
|
||||
|
||||
</select>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><label for="f7">07 Bibliografisk kategori</label></td>
|
||||
<td>
|
||||
<select name="f7" id="f7">
|
||||
|
||||
[% IF ( f7a ) %]
|
||||
<option value="a" selected="selected">a Analytt til ikke-periodisk dokument</option>
|
||||
[% ELSE %]
|
||||
<option value="a">a Analytt til ikke-periodisk dokument</option>
|
||||
[% END %]
|
||||
[% IF ( f7b ) %]
|
||||
<option value="b" selected="selected">b Serieanalytt</option>
|
||||
[% ELSE %]
|
||||
<option value="b">b Serieanalytt</option>
|
||||
[% END %]
|
||||
[% IF ( f7c ) %]
|
||||
<option value="c" selected="selected">c Samling</option>
|
||||
[% ELSE %]
|
||||
<option value="c">c Samling</option>
|
||||
[% END %]
|
||||
[% IF ( f7m ) %]
|
||||
<option value="m" selected="selected">m Monografi</option>
|
||||
[% ELSE %]
|
||||
<option value="m">m Monografi</option>
|
||||
[% END %]
|
||||
[% IF ( f7p ) %]
|
||||
<option value="p" selected="selected">p Analytt til periodikum</option>
|
||||
[% ELSE %]
|
||||
<option value="p">p Analytt til periodikum</option>
|
||||
[% END %]
|
||||
[% IF ( f7s ) %]
|
||||
<option value="s" selected="selected">s Periodikum </option>
|
||||
[% ELSE %]
|
||||
<option value="s">s Periodikum </option>
|
||||
[% END %]
|
||||
|
||||
</select>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>08-16 Systemgenerert informasjon</td>
|
||||
<td>(autofylt)</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><label for="f17">17 Beskrivelsesnivå</label></td>
|
||||
<td>
|
||||
<select name="f17" id="f17">
|
||||
[% IF ( f170 ) %]
|
||||
<option value="0" selected="selected">0 Fullstendig beskrivelse</option>
|
||||
[% ELSE %]
|
||||
<option value="0">0 Fullstendig beskrivelse</option>
|
||||
[% END %]
|
||||
[% IF ( f171 ) %]
|
||||
<option value="1" selected="selected">1 Nivå 2, iflg. KAT.</option>
|
||||
[% ELSE %]
|
||||
<option value="1">1 Nivå 2, iflg. KAT.</option>
|
||||
[% END %]
|
||||
[% IF ( f172 ) %]
|
||||
<option value="2" selected="selected">2 Nivå 1, iflg. KAT.</option>
|
||||
[% ELSE %]
|
||||
<option value="2">2 Nivå 1, iflg. KAT.</option>
|
||||
[% END %]
|
||||
[% IF ( f175 ) %]
|
||||
<option value="5" selected="selected">5 Foreløpig katalogisering.</option>
|
||||
[% ELSE %]
|
||||
<option value="5">5 Foreløpig katalogisering.</option>
|
||||
[% END %]
|
||||
|
||||
</select>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>18-23 Systemgenerert informasjon</td>
|
||||
<td>(autofylt)</td>
|
||||
</tr>
|
||||
|
||||
</table>
|
||||
<fieldset class="action"><input type="submit" value="OK" /> <a href="#" class="cancel close">Avbryt</a></fieldset>
|
||||
</form>
|
||||
<script>
|
||||
//<![CDATA[
|
||||
function report() {
|
||||
var doc = opener.document;
|
||||
var field = doc.getElementById("[% index | html %]");
|
||||
|
||||
field.value =
|
||||
' '+
|
||||
document.f_pop.f5.value+
|
||||
document.f_pop.f6.value+
|
||||
document.f_pop.f7.value+
|
||||
' '+ // document.f_pop.f8.value+
|
||||
'a'+ // MARC21 UNICODE flag - must be 'a' for Koha
|
||||
'22 '+
|
||||
document.f_pop.f17.value+
|
||||
' '+ // document.f_pop.f18.value+
|
||||
' '+ // document.f_pop.f19.value+
|
||||
'4500';
|
||||
self.close();
|
||||
return false;
|
||||
}
|
||||
//]]>
|
||||
</script>
|
||||
[% INCLUDE 'popup-bottom.inc' %]
|
|
@ -1,203 +0,0 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
|
||||
<!DOCTYPE stylesheet>
|
||||
|
||||
<xsl:stylesheet version="1.0" xmlns:marc="http://www.loc.gov/MARC21/slim" xmlns:oai_dc="http://www.openarchives.org/OAI/2.0/oai_dc/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" exclude-result-prefixes="marc">
|
||||
<xsl:import href="MARC21slimUtils.xsl"/>
|
||||
<xsl:output method="xml" indent="yes" encoding="UTF-8"/>
|
||||
<!--Added ISBN and deleted attributes 6/04 jer-->
|
||||
<xsl:template match="/">
|
||||
<xsl:if test="marc:collection">
|
||||
<oai_dc:dcCollection xsi:schemaLocation="http://www.openarchives.org/OAI/2.0/oai_dc/ http://www.openarchives.org/OAI/2.0/oai_dc.xsd">
|
||||
<xsl:for-each select="marc:collection">
|
||||
<xsl:for-each select="marc:record">
|
||||
<oai_dc:dc>
|
||||
<xsl:apply-templates select="."/>
|
||||
</oai_dc:dc>
|
||||
</xsl:for-each>
|
||||
</xsl:for-each>
|
||||
</oai_dc:dcCollection>
|
||||
</xsl:if>
|
||||
<xsl:if test="marc:record">
|
||||
<oai_dc:dc
|
||||
xmlns:oai_dc="http://www.openarchives.org/OAI/2.0/oai_dc/"
|
||||
xmlns:dc="http://purl.org/dc/elements/1.1/"
|
||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xsi:schemaLocation="http://www.openarchives.org/OAI/2.0/oai_dc/ http://www.openarchives.org/OAI/2.0/oai_dc.xsd">
|
||||
<xsl:apply-templates/>
|
||||
</oai_dc:dc>
|
||||
</xsl:if>
|
||||
</xsl:template>
|
||||
<xsl:template match="marc:record">
|
||||
<xsl:variable name="leader" select="marc:leader"/>
|
||||
<xsl:variable name="leader6" select="substring($leader,7,1)"/>
|
||||
<xsl:variable name="leader7" select="substring($leader,8,1)"/>
|
||||
<xsl:variable name="controlField008" select="marc:controlfield[@tag=008]"/>
|
||||
<xsl:for-each select="marc:datafield[@tag=245]">
|
||||
<dc:title>
|
||||
<xsl:call-template name="subfieldSelect">
|
||||
<xsl:with-param name="codes">abfghk</xsl:with-param>
|
||||
</xsl:call-template>
|
||||
</dc:title>
|
||||
</xsl:for-each>
|
||||
<xsl:for-each select="marc:datafield[@tag=100]|marc:datafield[@tag=110]|marc:datafield[@tag=111]|marc:datafield[@tag=700]|marc:datafield[@tag=710]|marc:datafield[@tag=711]|marc:datafield[@tag=720]">
|
||||
<dc:creator>
|
||||
<xsl:value-of select="."/>
|
||||
</dc:creator>
|
||||
</xsl:for-each>
|
||||
<dc:type>
|
||||
<xsl:if test="$leader7='c'">
|
||||
<!--Remove attribute 6/04 jer-->
|
||||
<!--<xsl:attribute name="collection">yes</xsl:attribute>-->
|
||||
<xsl:text>collection</xsl:text>
|
||||
</xsl:if>
|
||||
<xsl:if test="$leader6='d' or $leader6='f' or $leader6='p' or $leader6='t'">
|
||||
<!--Remove attribute 6/04 jer-->
|
||||
<!--<xsl:attribute name="manuscript">yes</xsl:attribute>-->
|
||||
<xsl:text>manuscript</xsl:text>
|
||||
</xsl:if>
|
||||
<xsl:choose>
|
||||
<xsl:when test="$leader6='a' or $leader6='t'">text</xsl:when>
|
||||
<xsl:when test="$leader6='e' or $leader6='f'">cartographic</xsl:when>
|
||||
<xsl:when test="$leader6='c' or $leader6='d'">notated music</xsl:when>
|
||||
<xsl:when test="$leader6='i' or $leader6='j'">sound recording</xsl:when>
|
||||
<xsl:when test="$leader6='k'">still image</xsl:when>
|
||||
<xsl:when test="$leader6='g'">moving image</xsl:when>
|
||||
<xsl:when test="$leader6='r'">three dimensional object</xsl:when>
|
||||
<xsl:when test="$leader6='m'">software, multimedia</xsl:when>
|
||||
<xsl:when test="$leader6='p'">mixed material</xsl:when>
|
||||
</xsl:choose>
|
||||
</dc:type>
|
||||
<xsl:for-each select="marc:datafield[@tag=655]">
|
||||
<dc:type>
|
||||
<xsl:value-of select="."/>
|
||||
</dc:type>
|
||||
</xsl:for-each>
|
||||
<xsl:for-each select="marc:datafield[@tag=260]">
|
||||
<dc:publisher>
|
||||
<xsl:call-template name="subfieldSelect">
|
||||
<xsl:with-param name="codes">ab</xsl:with-param>
|
||||
</xsl:call-template>
|
||||
</dc:publisher>
|
||||
</xsl:for-each>
|
||||
<xsl:for-each select="marc:datafield[@tag=260]/marc:subfield[@code='c']">
|
||||
<dc:date>
|
||||
<xsl:value-of select="."/>
|
||||
</dc:date>
|
||||
</xsl:for-each>
|
||||
<dc:language>
|
||||
<xsl:value-of select="substring($controlField008,36,3)"/>
|
||||
</dc:language>
|
||||
<xsl:for-each select="marc:datafield[@tag=856]/marc:subfield[@code='q']">
|
||||
<dc:format>
|
||||
<xsl:value-of select="."/>
|
||||
</dc:format>
|
||||
</xsl:for-each>
|
||||
<xsl:for-each select="marc:datafield[@tag=520]">
|
||||
<dc:description>
|
||||
<xsl:value-of select="marc:subfield[@code='a']"/>
|
||||
</dc:description>
|
||||
</xsl:for-each>
|
||||
<xsl:for-each select="marc:datafield[@tag=521]">
|
||||
<dc:description>
|
||||
<xsl:value-of select="marc:subfield[@code='a']"/>
|
||||
</dc:description>
|
||||
</xsl:for-each>
|
||||
<xsl:for-each select="marc:datafield[500<@tag][@tag<=599][not(@tag=506 or @tag=530 or @tag=540 or @tag=546)]">
|
||||
<dc:description>
|
||||
<xsl:value-of select="marc:subfield[@code='a']"/>
|
||||
</dc:description>
|
||||
</xsl:for-each>
|
||||
<xsl:for-each select="marc:datafield[@tag=600]">
|
||||
<dc:subject>
|
||||
<xsl:call-template name="subfieldSelect">
|
||||
<xsl:with-param name="codes">abcdq</xsl:with-param>
|
||||
</xsl:call-template>
|
||||
</dc:subject>
|
||||
</xsl:for-each>
|
||||
<xsl:for-each select="marc:datafield[@tag=610]">
|
||||
<dc:subject>
|
||||
<xsl:call-template name="subfieldSelect">
|
||||
<xsl:with-param name="codes">abcdq</xsl:with-param>
|
||||
</xsl:call-template>
|
||||
</dc:subject>
|
||||
</xsl:for-each>
|
||||
<xsl:for-each select="marc:datafield[@tag=611]">
|
||||
<dc:subject>
|
||||
<xsl:call-template name="subfieldSelect">
|
||||
<xsl:with-param name="codes">abcdq</xsl:with-param>
|
||||
</xsl:call-template>
|
||||
</dc:subject>
|
||||
</xsl:for-each>
|
||||
<xsl:for-each select="marc:datafield[@tag=630]">
|
||||
<dc:subject>
|
||||
<xsl:call-template name="subfieldSelect">
|
||||
<xsl:with-param name="codes">abcdq</xsl:with-param>
|
||||
</xsl:call-template>
|
||||
</dc:subject>
|
||||
</xsl:for-each>
|
||||
<xsl:for-each select="marc:datafield[@tag=650]">
|
||||
<dc:subject>
|
||||
<xsl:call-template name="subfieldSelect">
|
||||
<xsl:with-param name="codes">abcdq</xsl:with-param>
|
||||
</xsl:call-template>
|
||||
</dc:subject>
|
||||
</xsl:for-each>
|
||||
<xsl:for-each select="marc:datafield[@tag=653]">
|
||||
<dc:subject>
|
||||
<xsl:call-template name="subfieldSelect">
|
||||
<xsl:with-param name="codes">abcdq</xsl:with-param>
|
||||
</xsl:call-template>
|
||||
</dc:subject>
|
||||
</xsl:for-each>
|
||||
<xsl:for-each select="marc:datafield[@tag=752]">
|
||||
<dc:coverage>
|
||||
<xsl:call-template name="subfieldSelect">
|
||||
<xsl:with-param name="codes">abcd</xsl:with-param>
|
||||
</xsl:call-template>
|
||||
</dc:coverage>
|
||||
</xsl:for-each>
|
||||
<xsl:for-each select="marc:datafield[@tag=530]">
|
||||
<dc:relation type="original">
|
||||
<xsl:call-template name="subfieldSelect">
|
||||
<xsl:with-param name="codes">abcdu</xsl:with-param>
|
||||
</xsl:call-template>
|
||||
</dc:relation>
|
||||
</xsl:for-each>
|
||||
<xsl:for-each select="marc:datafield[@tag=760]|marc:datafield[@tag=762]|marc:datafield[@tag=765]|marc:datafield[@tag=767]|marc:datafield[@tag=770]|marc:datafield[@tag=772]|marc:datafield[@tag=773]|marc:datafield[@tag=774]|marc:datafield[@tag=775]|marc:datafield[@tag=776]|marc:datafield[@tag=777]|marc:datafield[@tag=780]|marc:datafield[@tag=785]|marc:datafield[@tag=786]|marc:datafield[@tag=787]">
|
||||
<dc:relation>
|
||||
<xsl:call-template name="subfieldSelect">
|
||||
<xsl:with-param name="codes">ot</xsl:with-param>
|
||||
</xsl:call-template>
|
||||
</dc:relation>
|
||||
</xsl:for-each>
|
||||
<xsl:for-each select="marc:datafield[@tag=856]">
|
||||
<dc:identifier>
|
||||
<xsl:value-of select="marc:subfield[@code='u']"/>
|
||||
</dc:identifier>
|
||||
</xsl:for-each>
|
||||
<xsl:for-each select="marc:datafield[@tag=020]">
|
||||
<dc:identifier>
|
||||
<xsl:text>URN:ISBN:</xsl:text>
|
||||
<xsl:value-of select="marc:subfield[@code='a']"/>
|
||||
</dc:identifier>
|
||||
</xsl:for-each>
|
||||
<xsl:for-each select="marc:datafield[@tag=506]">
|
||||
<dc:rights>
|
||||
<xsl:value-of select="marc:subfield[@code='a']"/>
|
||||
</dc:rights>
|
||||
</xsl:for-each>
|
||||
<xsl:for-each select="marc:datafield[@tag=540]">
|
||||
<dc:rights>
|
||||
<xsl:value-of select="marc:subfield[@code='a']"/>
|
||||
</dc:rights>
|
||||
</xsl:for-each>
|
||||
<!--</oai_dc:dc>-->
|
||||
</xsl:template>
|
||||
</xsl:stylesheet>
|
||||
|
||||
<!-- Stylus Studio meta-information - (c)1998-2003 Copyright Sonic Software Corporation. All rights reserved.
|
||||
<metaInformation>
|
||||
<scenarios/><MapperInfo srcSchemaPath="" srcSchemaRoot="" srcSchemaPathIsRelative="yes" srcSchemaInterpretAsXML="no" destSchemaPath="" destSchemaRoot="" destSchemaPathIsRelative="yes" destSchemaInterpretAsXML="no"/>
|
||||
</metaInformation>
|
||||
-->
|
|
@ -1,656 +0,0 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!-- $Id: MARC21slim2DC.xsl,v 1.1 2003/01/06 08:20:27 adam Exp $ -->
|
||||
|
||||
<!DOCTYPE stylesheet>
|
||||
|
||||
<xsl:stylesheet version="1.0"
|
||||
xmlns:marc="http://www.loc.gov/MARC21/slim"
|
||||
xmlns:items="http://www.koha-community.org/items"
|
||||
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
|
||||
xmlns:str="http://exslt.org/strings"
|
||||
exclude-result-prefixes="marc items str">
|
||||
<xsl:import href="NORMARCslimUtils.xsl"/>
|
||||
<xsl:output method = "html" indent="yes" omit-xml-declaration = "yes" encoding="UTF-8"/>
|
||||
<xsl:template match="/">
|
||||
<xsl:apply-templates/>
|
||||
</xsl:template>
|
||||
|
||||
<xsl:template match="marc:record">
|
||||
|
||||
<!-- Sysprefs -->
|
||||
<xsl:variable name="UseControlNumber" select="marc:sysprefs/marc:syspref[@name='UseControlNumber']"/>
|
||||
<xsl:variable name="OPACBaseURL" select="marc:sysprefs/marc:syspref[@name='OPACBaseURL']"/>
|
||||
<xsl:variable name="SubjectModifier"><xsl:if test="marc:sysprefs/marc:syspref[@name='TraceCompleteSubfields']='1'">,complete-subfield</xsl:if></xsl:variable>
|
||||
<xsl:variable name="TraceSubjectSubdivisions" select="marc:sysprefs/marc:syspref[@name='TraceSubjectSubdivisions']"/>
|
||||
<xsl:variable name="OpacSuppression" select="marc:sysprefs/marc:syspref[@name='OpacSuppression']"/>
|
||||
<xsl:variable name="TracingQuotesLeft">
|
||||
<xsl:choose>
|
||||
<xsl:when test="marc:sysprefs/marc:syspref[@name='UseICUStyleQuotes']='1'">{</xsl:when>
|
||||
<xsl:otherwise>"</xsl:otherwise>
|
||||
</xsl:choose>
|
||||
</xsl:variable>
|
||||
<xsl:variable name="TracingQuotesRight">
|
||||
<xsl:choose>
|
||||
<xsl:when test="marc:sysprefs/marc:syspref[@name='UseICUStyleQuotes']='1'">}</xsl:when>
|
||||
<xsl:otherwise>"</xsl:otherwise>
|
||||
</xsl:choose>
|
||||
</xsl:variable>
|
||||
<xsl:variable name="DisplayOPACiconsXSLT" select="marc:sysprefs/marc:syspref[@name='DisplayOPACiconsXSLT']"/>
|
||||
|
||||
<xsl:variable name="leader" select="marc:leader"/>
|
||||
<xsl:variable name="leader6" select="substring($leader,7,1)"/>
|
||||
<xsl:variable name="leader7" select="substring($leader,8,1)"/>
|
||||
<xsl:variable name="controlField008" select="marc:controlfield[@tag=008]"/>
|
||||
<xsl:variable name="field019b" select="marc:datafield[@tag=019]/marc:subfield[@code='b']"/>
|
||||
<xsl:variable name="biblionumber" select="marc:datafield[@tag=999]/marc:subfield[@code='c']"/>
|
||||
<xsl:variable name="typeOf008">
|
||||
<!-- The logic here should be exactly the same for NORMARCslim2intranetDetail.xsl, NORMARCslim2intranetResults.xsl, NORMARCslim2OPACDetail.xsl and NORMARCslim2OPACResults.xsl -->
|
||||
<xsl:choose>
|
||||
<xsl:when test="$field019b='b' or $field019b='k' or $field019b='l' or $leader6='b'">Mon</xsl:when>
|
||||
<xsl:when test="$field019b='e' or contains($field019b,'ec') or contains($field019b,'ed') or contains($field019b,'ee') or contains($field019b,'ef') or $leader6='g'">FV</xsl:when>
|
||||
<xsl:when test="$field019b='c' or $field019b='d' or contains($field019b,'da') or contains($field019b,'db') or contains($field019b,'dc') or contains($field019b,'dd') or contains($field019b,'dg') or contains($field019b,'dh') or contains($field019b,'di') or contains($field019b,'dj') or contains($field019b,'dk') or $leader6='c' or $leader6='d' or $leader6='i' or $leader6='j'">Mus</xsl:when>
|
||||
<xsl:when test="$field019b='a' or contains($field019b,'ab') or contains($field019b,'aj') or $leader6='e' or $leader6='f'">Kar</xsl:when>
|
||||
<xsl:when test="$field019b='f' or $field019b='i' or contains($field019b,'ib') or contains($field019b,'ic') or contains($field019b,'fd') or contains($field019b,'ff') or contains($field019b,'fi') or $leader6='k'">gra</xsl:when>
|
||||
<xsl:when test="$field019b='g' or contains($field019b,'gb') or contains($field019b,'gd') or contains($field019b,'ge') or $leader6='m'">Fil</xsl:when>
|
||||
<xsl:when test="$leader6='o'">kom</xsl:when>
|
||||
<xsl:when test="$field019b='h' or $leader6='r'">trd</xsl:when>
|
||||
<xsl:when test="$field019b='j' or $leader6='a'">
|
||||
<xsl:choose>
|
||||
<xsl:when test="$leader7='a' or $leader7='c' or $leader7='m' or $leader7='p'">Mon</xsl:when>
|
||||
<xsl:when test="$field019b='j' or $leader7='b' or $leader7='s'">Per</xsl:when>
|
||||
</xsl:choose>
|
||||
</xsl:when>
|
||||
</xsl:choose>
|
||||
</xsl:variable>
|
||||
|
||||
<!-- Indicate if record is suppressed in OPAC -->
|
||||
<xsl:if test="$OpacSuppression = 1">
|
||||
<xsl:if test="marc:datafield[@tag=942][marc:subfield[@code='n'] = '1']">
|
||||
<span class="results_summary suppressed_opac">Suppressed in OPAC</span>
|
||||
</xsl:if>
|
||||
</xsl:if>
|
||||
|
||||
<!-- Tittel og ansvarsopplysninger -->
|
||||
<xsl:if test="marc:datafield[@tag=245]">
|
||||
<h1>
|
||||
<xsl:for-each select="marc:datafield[@tag=245]">
|
||||
<xsl:call-template name="subfieldSelect">
|
||||
<xsl:with-param name="codes">a</xsl:with-param>
|
||||
</xsl:call-template>
|
||||
<xsl:if test="marc:subfield[@code='h']">
|
||||
<xsl:text> </xsl:text>
|
||||
(<xsl:call-template name="subfieldSelect">
|
||||
<xsl:with-param name="codes">h</xsl:with-param>
|
||||
</xsl:call-template>)
|
||||
</xsl:if>
|
||||
<xsl:if test="marc:subfield[@code='b']">
|
||||
<xsl:text> : </xsl:text>
|
||||
<xsl:call-template name="subfieldSelect">
|
||||
<xsl:with-param name="codes">b</xsl:with-param>
|
||||
</xsl:call-template>
|
||||
</xsl:if>
|
||||
<xsl:text> </xsl:text>
|
||||
<xsl:call-template name="subfieldSelect">
|
||||
<xsl:with-param name="codes">np</xsl:with-param>
|
||||
</xsl:call-template>
|
||||
</xsl:for-each>
|
||||
</h1>
|
||||
</xsl:if>
|
||||
|
||||
<!-- Author Statement -->
|
||||
<!-- 245$9 is Koha authority number -->
|
||||
<xsl:choose>
|
||||
<xsl:when test="marc:datafield[@tag=100] or marc:datafield[@tag=110] or marc:datafield[@tag=111] or marc:datafield[@tag=700] or marc:datafield[@tag=710] or marc:datafield[@tag=711]">
|
||||
<h5 class="author">av
|
||||
<xsl:for-each select="marc:datafield[@tag=100 or @tag=700]">
|
||||
<a>
|
||||
<xsl:choose>
|
||||
<xsl:when test="marc:subfield[@code=9]">
|
||||
<xsl:attribute name="href">/cgi-bin/koha/catalogue/search.pl?q=an:<xsl:value-of select="str:encode-uri(marc:subfield[@code=9], true())"/></xsl:attribute>
|
||||
</xsl:when>
|
||||
<xsl:otherwise>
|
||||
<xsl:attribute name="href">/cgi-bin/koha/catalogue/search.pl?q=au:<xsl:value-of select="str:encode-uri(marc:subfield[@code='a'], true())"/></xsl:attribute>
|
||||
</xsl:otherwise>
|
||||
</xsl:choose>
|
||||
<xsl:call-template name="nameABCDQ"/></a>
|
||||
<xsl:choose>
|
||||
<xsl:when test="position()=last()"><xsl:text>.</xsl:text></xsl:when><xsl:otherwise><xsl:text>; </xsl:text></xsl:otherwise></xsl:choose>
|
||||
</xsl:for-each>
|
||||
|
||||
<xsl:for-each select="marc:datafield[@tag=110 or @tag=710]">
|
||||
<a>
|
||||
<xsl:choose>
|
||||
<xsl:when test="marc:subfield[@code=9]">
|
||||
<xsl:attribute name="href">/cgi-bin/koha/catalogue/search.pl?q=an:<xsl:value-of select="str:encode-uri(marc:subfield[@code=9], true())"/></xsl:attribute>
|
||||
</xsl:when>
|
||||
<xsl:otherwise>
|
||||
<xsl:attribute name="href">/cgi-bin/koha/catalogue/search.pl?q=au:<xsl:value-of select="str:encode-uri(marc:subfield[@code='a'], true())"/></xsl:attribute>
|
||||
</xsl:otherwise>
|
||||
</xsl:choose>
|
||||
<xsl:call-template name="nameABCDN"/></a>
|
||||
<xsl:choose><xsl:when test="position()=last()"><xsl:text>.</xsl:text></xsl:when><xsl:otherwise><xsl:text>; </xsl:text></xsl:otherwise></xsl:choose>
|
||||
</xsl:for-each>
|
||||
|
||||
<xsl:for-each select="marc:datafield[@tag=111 or @tag=711]">
|
||||
<a>
|
||||
<xsl:choose>
|
||||
<xsl:when test="marc:subfield[@code=9]">
|
||||
<xsl:attribute name="href">/cgi-bin/koha/catalogue/search.pl?q=an:<xsl:value-of select="str:encode-uri(marc:subfield[@code=9], true())"/></xsl:attribute>
|
||||
</xsl:when>
|
||||
<xsl:otherwise>
|
||||
<xsl:attribute name="href">/cgi-bin/koha/catalogue/search.pl?q=au:<xsl:value-of select="str:encode-uri(marc:subfield[@code='a'], true())"/></xsl:attribute>
|
||||
</xsl:otherwise>
|
||||
</xsl:choose>
|
||||
<xsl:call-template name="nameACDEQ"/></a>
|
||||
<xsl:choose><xsl:when test="position()=last()"><xsl:text>.</xsl:text></xsl:when><xsl:otherwise><xsl:text>; </xsl:text></xsl:otherwise></xsl:choose>
|
||||
|
||||
</xsl:for-each>
|
||||
</h5>
|
||||
</xsl:when>
|
||||
</xsl:choose>
|
||||
|
||||
|
||||
<xsl:if test="$typeOf008!=''">
|
||||
<span class="results_summary">
|
||||
<span class="label">Materialtype: </span>
|
||||
<xsl:choose>
|
||||
<xsl:when test="$typeOf008='Mon'"><img src="/intranet-tmpl/prog/img/famfamfam/BK.png" alt="Bok" title="Bok"/> Bok</xsl:when>
|
||||
<xsl:when test="$typeOf008='Per'"><img src="/intranet-tmpl/prog/img/famfamfam/AR.png" alt="Periodika" title="Periodika"/> Periodika</xsl:when>
|
||||
<xsl:when test="$typeOf008='Fil'"><img src="/intranet-tmpl/prog/img/famfamfam/CF.png" alt="Fil" title="Fil"/> Fil</xsl:when>
|
||||
<xsl:when test="$typeOf008='Kar'"><img src="/intranet-tmpl/prog/img/famfamfam/MP.png" alt="Kart" title="Kart"/> Kart</xsl:when>
|
||||
<xsl:when test="$typeOf008='FV'"><img src="/intranet-tmpl/prog/img/famfamfam/VM.png" alt="Film og video" title="Film og video"/> Film og video</xsl:when>
|
||||
<xsl:when test="$typeOf008='Mus'"><img src="/intranet-tmpl/prog/img/famfamfam/PR.png" alt="Musikktrykk og lydopptak" title="Musikktrykk og lydopptak"/> Musikk</xsl:when>
|
||||
<xsl:when test="$typeOf008='gra'"><img src="/intranet-tmpl/prog/img/famfamfam/GR.png" alt="Grafisk materiale" title="Grafisk materiale"/> Grafisk materiale</xsl:when>
|
||||
<xsl:when test="$typeOf008='kom'"><img src="/intranet-tmpl/prog/img/famfamfam/MX.png" alt="Kombidokumenter" title="Kombidokumenter"/> Kombidokumenter</xsl:when>
|
||||
<xsl:when test="$typeOf008='trd'"><img src="/intranet-tmpl/prog/img/famfamfam/TD.png" alt="Tre-dimensjonale gjenstander" title="Tre-dimensjonale gjenstander"/> Tre-dimensjonale gjenstander</xsl:when>
|
||||
</xsl:choose>
|
||||
</span>
|
||||
</xsl:if>
|
||||
|
||||
<!--Series -->
|
||||
<xsl:if test="marc:datafield[@tag=440 or @tag=490]">
|
||||
<span class="results_summary"><span class="label">Series: </span>
|
||||
<xsl:for-each select="marc:datafield[@tag=440]">
|
||||
<a>
|
||||
<xsl:attribute name="href">/cgi-bin/koha/catalogue/search.pl?q=se:<xsl:value-of select="str:encode-uri(marc:subfield[@code='a'], true())"/></xsl:attribute>
|
||||
<xsl:call-template name="chopPunctuation">
|
||||
<xsl:with-param name="chopString">
|
||||
<xsl:call-template name="subfieldSelect">
|
||||
<xsl:with-param name="codes">av</xsl:with-param>
|
||||
</xsl:call-template>
|
||||
</xsl:with-param>
|
||||
</xsl:call-template>
|
||||
</a>
|
||||
<xsl:text> </xsl:text><xsl:call-template name="part"/>
|
||||
<xsl:choose><xsl:when test="position()=last()"><xsl:text>.</xsl:text></xsl:when><xsl:otherwise><xsl:text>; </xsl:text></xsl:otherwise></xsl:choose>
|
||||
</xsl:for-each>
|
||||
|
||||
<xsl:for-each select="marc:datafield[@tag=490][@ind1=0]">
|
||||
<a>
|
||||
<xsl:attribute name="href">/cgi-bin/koha/catalogue/search.pl?q=se:<xsl:value-of select="str:encode-uri(marc:subfield[@code='a'], true())"/></xsl:attribute>
|
||||
<xsl:call-template name="chopPunctuation">
|
||||
<xsl:with-param name="chopString">
|
||||
<xsl:call-template name="subfieldSelect">
|
||||
<xsl:with-param name="codes">av</xsl:with-param>
|
||||
</xsl:call-template>
|
||||
</xsl:with-param>
|
||||
</xsl:call-template>
|
||||
</a>
|
||||
<xsl:call-template name="part"/>
|
||||
<xsl:choose><xsl:when test="position()=last()"><xsl:text>.</xsl:text></xsl:when><xsl:otherwise><xsl:text>; </xsl:text></xsl:otherwise></xsl:choose>
|
||||
</xsl:for-each>
|
||||
</span>
|
||||
</xsl:if>
|
||||
|
||||
<!-- Analytics -->
|
||||
<xsl:if test="$leader7='s' or $leader7='c'">
|
||||
<span class="results_summary analytics"><span class="label">Analytics: </span>
|
||||
<a>
|
||||
<xsl:choose>
|
||||
<xsl:when test="$UseControlNumber = '1' and marc:controlfield[@tag=001]">
|
||||
<xsl:attribute name="href">/cgi-bin/koha/catalogue/search.pl?q=rcn:<xsl:value-of select="str:encode-uri(marc:controlfield[@tag=001], true())"/>+and+(bib-level:a+or+bib-level:b)</xsl:attribute>
|
||||
</xsl:when>
|
||||
<xsl:otherwise>
|
||||
<xsl:attribute name="href">/cgi-bin/koha/catalogue/search.pl?q=Host-item:<xsl:value-of select="str:encode-uri(translate(marc:datafield[@tag=245]/marc:subfield[@code='a'], '/', ''), true())"/></xsl:attribute>
|
||||
</xsl:otherwise>
|
||||
</xsl:choose>
|
||||
<xsl:text>Show analytics</xsl:text>
|
||||
</a>
|
||||
</span>
|
||||
</xsl:if>
|
||||
|
||||
<!-- 773 - Links from child to parent -->
|
||||
<xsl:if test="marc:datafield[@tag=773]">
|
||||
<xsl:for-each select="marc:datafield[@tag=773]">
|
||||
<xsl:if test="@ind1=0">
|
||||
<span class="results_summary in"><span class="label">
|
||||
<xsl:choose>
|
||||
<xsl:when test="@ind2=' '">
|
||||
In:
|
||||
</xsl:when>
|
||||
<xsl:when test="@ind2=8">
|
||||
<xsl:if test="marc:subfield[@code='i']">
|
||||
<xsl:value-of select="marc:subfield[@code='i']"/>
|
||||
</xsl:if>
|
||||
</xsl:when>
|
||||
</xsl:choose>
|
||||
</span>
|
||||
<xsl:variable name="f773">
|
||||
<xsl:call-template name="chopPunctuation"><xsl:with-param name="chopString"><xsl:call-template name="subfieldSelect">
|
||||
<xsl:with-param name="codes">a_t</xsl:with-param>
|
||||
</xsl:call-template></xsl:with-param></xsl:call-template>
|
||||
</xsl:variable>
|
||||
<xsl:choose>
|
||||
<xsl:when test="$UseControlNumber = '1' and marc:subfield[@code='w']">
|
||||
<a><xsl:attribute name="href">/cgi-bin/koha/catalogue/search.pl?q=Control-number:<xsl:call-template name="extractControlNumber"><xsl:with-param name="subfieldW" select="marc:subfield[@code='w']"/></xsl:call-template></xsl:attribute>
|
||||
<xsl:value-of select="translate($f773, '()', '')"/>
|
||||
</a>
|
||||
<xsl:if test="marc:subfield[@code='g']"><xsl:text> </xsl:text><xsl:value-of select="marc:subfield[@code='g']"/></xsl:if>
|
||||
</xsl:when>
|
||||
<xsl:when test="marc:subfield[@code='0']">
|
||||
<a><xsl:attribute name="href">/cgi-bin/koha/catalogue/detail.pl?biblionumber=<xsl:value-of select="str:encode-uri(marc:subfield[@code='0'], true())"/></xsl:attribute>
|
||||
<xsl:value-of select="$f773"/>
|
||||
</a>
|
||||
</xsl:when>
|
||||
<xsl:otherwise>
|
||||
<a><xsl:attribute name="href">/cgi-bin/koha/catalogue/search.pl?q=ti,phr:<xsl:value-of select="str:encode-uri(translate($f773, '()', ''), true())"/></xsl:attribute>
|
||||
<xsl:value-of select="$f773"/>
|
||||
</a>
|
||||
<xsl:if test="marc:subfield[@code='g']"><xsl:text> </xsl:text><xsl:value-of select="marc:subfield[@code='g']"/></xsl:if>
|
||||
</xsl:otherwise>
|
||||
</xsl:choose>
|
||||
</span>
|
||||
<xsl:if test="marc:subfield[@code='n']">
|
||||
<span class="results_summary"><xsl:value-of select="marc:subfield[@code='n']"/></span>
|
||||
</xsl:if>
|
||||
</xsl:if>
|
||||
</xsl:for-each>
|
||||
</xsl:if>
|
||||
|
||||
<!-- Publisher Statement -->
|
||||
|
||||
<xsl:if test="marc:datafield[@tag=260]">
|
||||
<span class="results_summary"><span class="label">Utgiver: </span>
|
||||
<xsl:for-each select="marc:datafield[@tag=260]">
|
||||
<xsl:call-template name="chopPunctuation">
|
||||
<xsl:with-param name="chopString">
|
||||
<xsl:call-template name="subfieldSelect">
|
||||
<xsl:with-param name="codes">bcg</xsl:with-param>
|
||||
</xsl:call-template>
|
||||
</xsl:with-param>
|
||||
</xsl:call-template>
|
||||
<xsl:choose><xsl:when test="position()=last()"><xsl:text>.</xsl:text></xsl:when><xsl:otherwise><xsl:text>; </xsl:text></xsl:otherwise></xsl:choose>
|
||||
</xsl:for-each>
|
||||
</span>
|
||||
</xsl:if>
|
||||
|
||||
<!-- Edition Statement -->
|
||||
|
||||
<xsl:if test="marc:datafield[@tag=250]">
|
||||
<span class="results_summary"><span class="label">Utgave: </span>
|
||||
<xsl:for-each select="marc:datafield[@tag=250]">
|
||||
<xsl:call-template name="chopPunctuation">
|
||||
<xsl:with-param name="chopString">
|
||||
<xsl:call-template name="subfieldSelect">
|
||||
<xsl:with-param name="codes">ab</xsl:with-param>
|
||||
</xsl:call-template>
|
||||
</xsl:with-param>
|
||||
</xsl:call-template>
|
||||
<xsl:choose><xsl:when test="position()=last()"><xsl:text>.</xsl:text></xsl:when><xsl:otherwise><xsl:text>; </xsl:text></xsl:otherwise></xsl:choose>
|
||||
</xsl:for-each>
|
||||
</span>
|
||||
</xsl:if>
|
||||
|
||||
<!-- Description -->
|
||||
|
||||
<xsl:if test="marc:datafield[@tag=300]">
|
||||
<span class="results_summary"><span class="label">Beskrivelse: </span>
|
||||
<xsl:for-each select="marc:datafield[@tag=300]">
|
||||
<xsl:call-template name="chopPunctuation">
|
||||
<xsl:with-param name="chopString">
|
||||
<xsl:call-template name="subfieldSelect">
|
||||
<xsl:with-param name="codes">abceg</xsl:with-param>
|
||||
</xsl:call-template>
|
||||
</xsl:with-param>
|
||||
</xsl:call-template>
|
||||
<xsl:choose><xsl:when test="position()=last()"><xsl:text>.</xsl:text></xsl:when><xsl:otherwise><xsl:text>; </xsl:text></xsl:otherwise></xsl:choose>
|
||||
</xsl:for-each>
|
||||
</span>
|
||||
</xsl:if>
|
||||
|
||||
<abbr class="unapi-id" title="koha:biblionumber:{marc:datafield[@tag=999]/marc:subfield[@code='c']}" ><!-- unAPI --></abbr>
|
||||
|
||||
<!-- Build ISBN -->
|
||||
<xsl:if test="marc:datafield[@tag=020]/marc:subfield[@code='a']">
|
||||
<span class="results_summary isbn"><span class="label">ISBN: </span>
|
||||
<xsl:for-each select="marc:datafield[@tag=020]/marc:subfield[@code='a']">
|
||||
<span property="isbn">
|
||||
<xsl:value-of select="."/>
|
||||
<xsl:choose>
|
||||
<xsl:when test="position()=last()">
|
||||
<xsl:text>.</xsl:text>
|
||||
</xsl:when>
|
||||
<xsl:otherwise>
|
||||
<xsl:text>; </xsl:text>
|
||||
</xsl:otherwise>
|
||||
</xsl:choose>
|
||||
</span>
|
||||
</xsl:for-each>
|
||||
</span>
|
||||
</xsl:if>
|
||||
|
||||
<!-- Build ISSN -->
|
||||
<xsl:if test="marc:datafield[@tag=022]/marc:subfield[@code='a']">
|
||||
<span class="results_summary issn"><span class="label">ISSN: </span>
|
||||
<xsl:for-each select="marc:datafield[@tag=022]/marc:subfield[@code='a']">
|
||||
<span property="issn">
|
||||
<xsl:value-of select="."/>
|
||||
<xsl:choose>
|
||||
<xsl:when test="position()=last()">
|
||||
<xsl:text>.</xsl:text>
|
||||
</xsl:when>
|
||||
<xsl:otherwise>
|
||||
<xsl:text>; </xsl:text>
|
||||
</xsl:otherwise>
|
||||
</xsl:choose>
|
||||
</span>
|
||||
</xsl:for-each>
|
||||
</span>
|
||||
</xsl:if>
|
||||
|
||||
<!-- Other Title Statement -->
|
||||
|
||||
<xsl:if test="marc:datafield[@tag=246]">
|
||||
<span class="results_summary"><span class="label">Parallelltittel: </span>
|
||||
<xsl:for-each select="marc:datafield[@tag=246]">
|
||||
<xsl:call-template name="chopPunctuation">
|
||||
<xsl:with-param name="chopString">
|
||||
<xsl:call-template name="subfieldSelect">
|
||||
<xsl:with-param name="codes">abhfgnp</xsl:with-param>
|
||||
</xsl:call-template>
|
||||
</xsl:with-param>
|
||||
</xsl:call-template>
|
||||
<xsl:choose><xsl:when test="position()=last()"><xsl:text>.</xsl:text></xsl:when><xsl:otherwise><xsl:text>; </xsl:text></xsl:otherwise></xsl:choose>
|
||||
</xsl:for-each>
|
||||
</span>
|
||||
</xsl:if>
|
||||
|
||||
<!-- Uniform Title Statement -->
|
||||
|
||||
<xsl:if test="marc:datafield[@tag=130]|marc:datafield[@tag=240]|marc:datafield[@tag=730][@ind2!=2]">
|
||||
<span class="results_summary"><span class="label">Standardtittel: </span>
|
||||
<xsl:for-each select="marc:datafield[@tag=130]|marc:datafield[@tag=240]|marc:datafield[@tag=730][@ind2!=2]">
|
||||
<xsl:variable name="str">
|
||||
<xsl:for-each select="marc:subfield">
|
||||
<xsl:if test="(contains('adfklmor',@code) and (not(../marc:subfield[@code='n' or @code='p']) or (following-sibling::marc:subfield[@code='n' or @code='p'])))">
|
||||
<xsl:value-of select="text()"/>
|
||||
<xsl:text> </xsl:text>
|
||||
</xsl:if>
|
||||
</xsl:for-each>
|
||||
</xsl:variable>
|
||||
<xsl:call-template name="chopPunctuation">
|
||||
<xsl:with-param name="chopString">
|
||||
<xsl:value-of select="substring($str,1,string-length($str)-1)"/>
|
||||
|
||||
</xsl:with-param>
|
||||
</xsl:call-template>
|
||||
<xsl:choose><xsl:when test="position()=last()"><xsl:text>.</xsl:text></xsl:when><xsl:otherwise><xsl:text>; </xsl:text></xsl:otherwise></xsl:choose>
|
||||
</xsl:for-each>
|
||||
</span>
|
||||
</xsl:if>
|
||||
|
||||
<!-- Subjects -->
|
||||
|
||||
<xsl:if test="marc:datafield[substring(@tag, 1, 1) = '6']">
|
||||
<span class="results_summary subjects"><span class="label">Emne(r): </span>
|
||||
<xsl:for-each select="marc:datafield[substring(@tag, 1, 1) = '6']">
|
||||
<a>
|
||||
<xsl:choose>
|
||||
<!-- Will implement this later
|
||||
<xsl:when test="marc:subfield[@code=9] and $UseAuthoritiesForTracings='1'">
|
||||
<xsl:attribute name="href">/cgi-bin/koha/catalogue/search.pl?q=an:<xsl:value-of select="str:encode-uri(marc:subfield[@code=9], true())"/></xsl:attribute>
|
||||
</xsl:when>
|
||||
-->
|
||||
<xsl:when test="$TraceSubjectSubdivisions='1'">
|
||||
<xsl:attribute name="href">/cgi-bin/koha/catalogue/search.pl?q=<xsl:call-template name="subfieldSelect">
|
||||
<xsl:with-param name="codes">abcdvxyz</xsl:with-param>
|
||||
<xsl:with-param name="delimeter"> AND </xsl:with-param>
|
||||
<xsl:with-param name="prefix">(su<xsl:value-of select="$SubjectModifier"/>:<xsl:value-of select="$TracingQuotesLeft"/></xsl:with-param>
|
||||
<xsl:with-param name="suffix"><xsl:value-of select="$TracingQuotesRight"/>)</xsl:with-param>
|
||||
<xsl:with-param name="urlencode">1</xsl:with-param>
|
||||
</xsl:call-template>
|
||||
</xsl:attribute>
|
||||
</xsl:when>
|
||||
<xsl:otherwise>
|
||||
<xsl:attribute name="href">/cgi-bin/koha/catalogue/search.pl?q=su<xsl:value-of select="$SubjectModifier"/>:<xsl:value-of select="$TracingQuotesLeft"/><xsl:value-of select="str:encode-uri(marc:subfield[@code='a'], true())"/><xsl:value-of select="$TracingQuotesRight"/></xsl:attribute>
|
||||
</xsl:otherwise>
|
||||
</xsl:choose>
|
||||
<xsl:call-template name="chopPunctuation">
|
||||
<xsl:with-param name="chopString">
|
||||
<xsl:call-template name="subfieldSelect">
|
||||
<xsl:with-param name="codes">abcdvxyz</xsl:with-param>
|
||||
<xsl:with-param name="subdivCodes">vxyz</xsl:with-param>
|
||||
<xsl:with-param name="subdivDelimiter">-- </xsl:with-param>
|
||||
</xsl:call-template>
|
||||
</xsl:with-param>
|
||||
</xsl:call-template>
|
||||
</a>
|
||||
<xsl:choose>
|
||||
<xsl:when test="position()=last()"></xsl:when>
|
||||
<xsl:otherwise> | </xsl:otherwise>
|
||||
</xsl:choose>
|
||||
|
||||
</xsl:for-each>
|
||||
</span>
|
||||
</xsl:if>
|
||||
|
||||
<xsl:if test="marc:datafield[@tag=856]">
|
||||
<span class="results_summary"><span class="label">Nettbasert ressurs: </span>
|
||||
<xsl:for-each select="marc:datafield[@tag=856]">
|
||||
<a><xsl:attribute name="href"><xsl:value-of select="marc:subfield[@code='u']"/></xsl:attribute>
|
||||
<xsl:choose>
|
||||
<xsl:when test="marc:subfield[@code='y' or @code='3' or @code='z']">
|
||||
<xsl:call-template name="subfieldSelect">
|
||||
<xsl:with-param name="codes">y3z</xsl:with-param>
|
||||
</xsl:call-template>
|
||||
</xsl:when>
|
||||
<xsl:when test="not(marc:subfield[@code='y']) and not(marc:subfield[@code='3']) and not(marc:subfield[@code='z'])">
|
||||
Klikk her for tilgang
|
||||
</xsl:when>
|
||||
</xsl:choose>
|
||||
</a>
|
||||
<xsl:choose>
|
||||
<xsl:when test="position()=last()"></xsl:when>
|
||||
<xsl:otherwise> | </xsl:otherwise>
|
||||
</xsl:choose>
|
||||
</xsl:for-each>
|
||||
</span>
|
||||
</xsl:if>
|
||||
|
||||
<!-- NORMARC does not define indicators for 505
|
||||
<xsl:if test="marc:datafield[@tag=505]">
|
||||
<xsl:for-each select="marc:datafield[@tag=505]">
|
||||
<span class="results_summary"><span class="label">
|
||||
<xsl:choose>
|
||||
<xsl:when test="@ind1=0">
|
||||
Contents:
|
||||
</xsl:when>
|
||||
<xsl:when test="@ind1=1">
|
||||
Incomplete contents:
|
||||
</xsl:when>
|
||||
<xsl:when test="@ind1=1">
|
||||
Partial contents:
|
||||
</xsl:when>
|
||||
</xsl:choose>
|
||||
</span>
|
||||
<xsl:choose>
|
||||
<xsl:when test="@ind2=0">
|
||||
<xsl:for-each select="marc:subfield[@code='t']">
|
||||
<xsl:value-of select="marc:subfield[@code=t]"/> <xsl:value-of select="marc:subfield[@code=r]"/>
|
||||
</xsl:for-each>
|
||||
</xsl:when>
|
||||
<xsl:otherwise>
|
||||
<xsl:call-template name="subfieldSelect">
|
||||
<xsl:with-param name="codes">au</xsl:with-param>
|
||||
</xsl:call-template>
|
||||
</xsl:otherwise>
|
||||
</xsl:choose>
|
||||
</span>
|
||||
</xsl:for-each>
|
||||
</xsl:if>
|
||||
-->
|
||||
<xsl:if test="marc:datafield[@tag=505]">
|
||||
<xsl:call-template name="subfieldSelect">
|
||||
<xsl:with-param name="codes">a</xsl:with-param>
|
||||
</xsl:call-template>
|
||||
</xsl:if>
|
||||
|
||||
<!-- 780 -->
|
||||
<xsl:if test="marc:datafield[@tag=780]">
|
||||
<xsl:for-each select="marc:datafield[@tag=780]">
|
||||
<span class="results_summary"><span class="label">
|
||||
<xsl:choose>
|
||||
<xsl:when test="@ind2=0">
|
||||
Fortsettelse av:
|
||||
</xsl:when>
|
||||
<xsl:when test="@ind2=1">
|
||||
Delvis fortsettelse av:
|
||||
</xsl:when>
|
||||
<xsl:when test="@ind2=2">
|
||||
Avløser:
|
||||
</xsl:when>
|
||||
<xsl:when test="@ind2=3">
|
||||
Avløser delvis:
|
||||
</xsl:when>
|
||||
<xsl:when test="@ind2=4">
|
||||
Sammenslåing av: ... ; og ...
|
||||
</xsl:when>
|
||||
<xsl:when test="@ind2=5">
|
||||
Har tatt opp:
|
||||
</xsl:when>
|
||||
<xsl:when test="@ind2=6">
|
||||
Har delvis tatt opp:
|
||||
</xsl:when>
|
||||
<xsl:when test="@ind2=7">
|
||||
Utskilt fra:
|
||||
</xsl:when>
|
||||
</xsl:choose>
|
||||
</span>
|
||||
<xsl:variable name="f780">
|
||||
<xsl:call-template name="subfieldSelect">
|
||||
<xsl:with-param name="codes">a_t</xsl:with-param>
|
||||
</xsl:call-template>
|
||||
</xsl:variable>
|
||||
<a><xsl:attribute name="href">/cgi-bin/koha/catalogue/search.pl?q=<xsl:value-of select="str:encode-uri(translate($f780, '()', ''), true())"/></xsl:attribute>
|
||||
<xsl:value-of select="translate($f780, '()', '')"/>
|
||||
</a>
|
||||
</span>
|
||||
|
||||
<xsl:choose>
|
||||
<xsl:when test="@ind1=0">
|
||||
<span class="results_summary"><xsl:value-of select="marc:subfield[@code='n']"/></span>
|
||||
</xsl:when>
|
||||
</xsl:choose>
|
||||
|
||||
</xsl:for-each>
|
||||
</xsl:if>
|
||||
|
||||
<!-- 785 -->
|
||||
<xsl:if test="marc:datafield[@tag=785]">
|
||||
<xsl:for-each select="marc:datafield[@tag=785]">
|
||||
<span class="results_summary"><span class="label">
|
||||
<xsl:choose>
|
||||
<xsl:when test="@ind2=0">
|
||||
Fortsettelse i:
|
||||
</xsl:when>
|
||||
<xsl:when test="@ind2=1">
|
||||
Fortsettes delvis i:
|
||||
</xsl:when>
|
||||
<xsl:when test="@ind2=2">
|
||||
Avløst av:
|
||||
</xsl:when>
|
||||
<xsl:when test="@ind2=3">
|
||||
Delvis avløst av:
|
||||
</xsl:when>
|
||||
<xsl:when test="@ind2=4">
|
||||
Gått inn i:
|
||||
</xsl:when>
|
||||
<xsl:when test="@ind2=5">
|
||||
Delvis gått inn i:
|
||||
</xsl:when>
|
||||
<xsl:when test="@ind2=6">
|
||||
Fortsettes av: ...; og ...
|
||||
</xsl:when>
|
||||
<xsl:when test="@ind2=7">
|
||||
Slått sammen med: .., til: ...
|
||||
</xsl:when>
|
||||
</xsl:choose>
|
||||
</span>
|
||||
<xsl:variable name="f785">
|
||||
<xsl:call-template name="subfieldSelect">
|
||||
<xsl:with-param name="codes">a_t</xsl:with-param>
|
||||
</xsl:call-template>
|
||||
</xsl:variable>
|
||||
|
||||
<a><xsl:attribute name="href">/cgi-bin/koha/catalogue/search.pl?q=<xsl:value-of select="str:encode-uri(translate($f785, '()', ''), true())"/></xsl:attribute>
|
||||
<xsl:value-of select="translate($f785, '()', '')"/>
|
||||
</a>
|
||||
|
||||
</span>
|
||||
</xsl:for-each>
|
||||
</xsl:if>
|
||||
|
||||
<!-- This will only work if the OPACBaseURL syspref is set. -->
|
||||
<xsl:if test="string-length($OPACBaseURL) > 0">
|
||||
<p>OPAC View: <a>
|
||||
<xsl:attribute name="href"><xsl:value-of select="$OPACBaseURL"/>/cgi-bin/koha/opac-detail.pl?biblionumber=<xsl:value-of select="str:encode-uri($biblionumber, true())"/></xsl:attribute>
|
||||
<xsl:attribute name="target">_blank</xsl:attribute>
|
||||
Open in new window
|
||||
</a></p>
|
||||
</xsl:if>
|
||||
|
||||
</xsl:template>
|
||||
|
||||
<xsl:template name="part">
|
||||
<xsl:variable name="partNumber">
|
||||
<xsl:call-template name="specialSubfieldSelect">
|
||||
<xsl:with-param name="axis">n</xsl:with-param>
|
||||
<xsl:with-param name="anyCodes">n</xsl:with-param>
|
||||
<xsl:with-param name="afterCodes">fghkdlmor</xsl:with-param>
|
||||
</xsl:call-template>
|
||||
</xsl:variable>
|
||||
<xsl:variable name="partName">
|
||||
<xsl:call-template name="specialSubfieldSelect">
|
||||
<xsl:with-param name="axis">p</xsl:with-param>
|
||||
<xsl:with-param name="anyCodes">p</xsl:with-param>
|
||||
<xsl:with-param name="afterCodes">fghkdlmor</xsl:with-param>
|
||||
</xsl:call-template>
|
||||
</xsl:variable>
|
||||
<xsl:if test="string-length(normalize-space($partNumber))">
|
||||
<xsl:call-template name="chopPunctuation">
|
||||
<xsl:with-param name="chopString" select="$partNumber"/>
|
||||
</xsl:call-template>
|
||||
</xsl:if>
|
||||
<xsl:if test="string-length(normalize-space($partName))">
|
||||
<xsl:call-template name="chopPunctuation">
|
||||
<xsl:with-param name="chopString" select="$partName"/>
|
||||
</xsl:call-template>
|
||||
</xsl:if>
|
||||
</xsl:template>
|
||||
|
||||
<xsl:template name="specialSubfieldSelect">
|
||||
<xsl:param name="anyCodes"/>
|
||||
<xsl:param name="axis"/>
|
||||
<xsl:param name="beforeCodes"/>
|
||||
<xsl:param name="afterCodes"/>
|
||||
<xsl:variable name="str">
|
||||
<xsl:for-each select="marc:subfield">
|
||||
<xsl:if test="contains($anyCodes, @code) or (contains($beforeCodes,@code) and following-sibling::marc:subfield[@code=$axis]) or (contains($afterCodes,@code) and preceding-sibling::marc:subfield[@code=$axis])">
|
||||
<xsl:value-of select="text()"/>
|
||||
<xsl:text> </xsl:text>
|
||||
</xsl:if>
|
||||
</xsl:for-each>
|
||||
</xsl:variable>
|
||||
<xsl:value-of select="substring($str,1,string-length($str)-1)"/>
|
||||
</xsl:template>
|
||||
</xsl:stylesheet>
|
|
@ -1,852 +0,0 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!-- $Id: MARC21slim2DC.xsl,v 1.1 2003/01/06 08:20:27 adam Exp $ -->
|
||||
<!DOCTYPE stylesheet>
|
||||
<xsl:stylesheet version="1.0"
|
||||
xmlns:marc="http://www.loc.gov/MARC21/slim"
|
||||
xmlns:items="http://www.koha-community.org/items"
|
||||
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
|
||||
xmlns:str="http://exslt.org/strings"
|
||||
exclude-result-prefixes="marc items str">
|
||||
<xsl:import href="NORMARCslimUtils.xsl"/>
|
||||
<xsl:output method = "html" indent="yes" omit-xml-declaration = "yes" encoding="UTF-8"/>
|
||||
<xsl:key name="item-by-status" match="items:item" use="items:status"/>
|
||||
<xsl:key name="item-by-status-and-branch" match="items:item" use="concat(items:status, ' ', items:homebranch)"/>
|
||||
|
||||
<xsl:template match="/">
|
||||
<xsl:apply-templates/>
|
||||
</xsl:template>
|
||||
<xsl:template match="marc:record">
|
||||
|
||||
<xsl:variable name="UseControlNumber" select="marc:sysprefs/marc:syspref[@name='UseControlNumber']"/>
|
||||
<xsl:variable name="hidelostitems" select="marc:sysprefs/marc:syspref[@name='hidelostitems']"/>
|
||||
<xsl:variable name="URLLinkText" select="marc:sysprefs/marc:syspref[@name='URLLinkText']"/>
|
||||
<xsl:variable name="Show856uAsImage" select="marc:sysprefs/marc:syspref[@name='Display856uAsImage']"/>
|
||||
<xsl:variable name="AlternateHoldingsField" select="substring(marc:sysprefs/marc:syspref[@name='AlternateHoldingsField'], 1, 3)"/>
|
||||
<xsl:variable name="AlternateHoldingsSubfields" select="substring(marc:sysprefs/marc:syspref[@name='AlternateHoldingsField'], 4)"/>
|
||||
<xsl:variable name="AlternateHoldingsSeparator" select="marc:sysprefs/marc:syspref[@name='AlternateHoldingsSeparator']"/>
|
||||
<xsl:variable name="OpacSuppression" select="marc:sysprefs/marc:syspref[@name='OpacSuppression']"/>
|
||||
<xsl:variable name="IntranetBiblioDefaultView" select="marc:sysprefs/marc:syspref[@name='IntranetBiblioDefaultView']"/>
|
||||
<xsl:variable name="UseAuthoritiesForTracings" select="marc:sysprefs/marc:syspref[@name='UseAuthoritiesForTracings']"/>
|
||||
<xsl:variable name="leader" select="marc:leader"/>
|
||||
<xsl:variable name="leader6" select="substring($leader,7,1)"/>
|
||||
<xsl:variable name="leader7" select="substring($leader,8,1)"/>
|
||||
<xsl:variable name="leader19" select="substring($leader,20,1)"/>
|
||||
<xsl:variable name="biblionumber" select="marc:datafield[@tag=999]/marc:subfield[@code='c']"/>
|
||||
<xsl:variable name="controlField007" select="marc:controlfield[@tag=007]"/>
|
||||
<xsl:variable name="controlField007-00" select="substring($controlField007,1,1)"/>
|
||||
<xsl:variable name="controlField007-01" select="substring($controlField007,2,1)"/>
|
||||
<xsl:variable name="controlField008" select="marc:controlfield[@tag=008]"/>
|
||||
<xsl:variable name="field019b" select="marc:datafield[@tag=019]/marc:subfield[@code='b']"/>
|
||||
<xsl:variable name="typeOf008">
|
||||
<!-- The logic here should be exactly the same for NORMARCslim2intranetDetail.xsl, NORMARCslim2intranetResults.xsl, NORMARCslim2OPACDetail.xsl and NORMARCslim2OPACResults.xsl -->
|
||||
<xsl:choose>
|
||||
<xsl:when test="$field019b='b' or $field019b='k' or $field019b='l' or $leader6='b'">Mon</xsl:when>
|
||||
<xsl:when test="$field019b='e' or contains($field019b,'ec') or contains($field019b,'ed') or contains($field019b,'ee') or contains($field019b,'ef') or $leader6='g'">FV</xsl:when>
|
||||
<xsl:when test="$field019b='c' or $field019b='d' or contains($field019b,'da') or contains($field019b,'db') or contains($field019b,'dc') or contains($field019b,'dd') or contains($field019b,'dg') or contains($field019b,'dh') or contains($field019b,'di') or contains($field019b,'dj') or contains($field019b,'dk') or $leader6='c' or $leader6='d' or $leader6='i' or $leader6='j'">Mus</xsl:when>
|
||||
<xsl:when test="$field019b='a' or contains($field019b,'ab') or contains($field019b,'aj') or $leader6='e' or $leader6='f'">Kar</xsl:when>
|
||||
<xsl:when test="$field019b='f' or $field019b='i' or contains($field019b,'ib') or contains($field019b,'ic') or contains($field019b,'fd') or contains($field019b,'ff') or contains($field019b,'fi') or $leader6='k'">gra</xsl:when>
|
||||
<xsl:when test="$field019b='g' or contains($field019b,'gb') or contains($field019b,'gd') or contains($field019b,'ge') or $leader6='m'">Fil</xsl:when>
|
||||
<xsl:when test="$leader6='o'">kom</xsl:when>
|
||||
<xsl:when test="$field019b='h' or $leader6='r'">trd</xsl:when>
|
||||
<xsl:when test="$field019b='j' or $leader6='a'">
|
||||
<xsl:choose>
|
||||
<xsl:when test="$leader7='a' or $leader7='c' or $leader7='m' or $leader7='p'">Mon</xsl:when>
|
||||
<xsl:when test="$field019b='j' or $leader7='b' or $leader7='s'">Per</xsl:when>
|
||||
</xsl:choose>
|
||||
</xsl:when>
|
||||
</xsl:choose>
|
||||
</xsl:variable>
|
||||
<xsl:variable name="controlField008-23" select="substring($controlField008,24,1)"/>
|
||||
<xsl:variable name="controlField008-21" select="substring($controlField008,22,1)"/>
|
||||
<xsl:variable name="controlField008-22" select="substring($controlField008,23,1)"/>
|
||||
<xsl:variable name="controlField008-24" select="substring($controlField008,25,4)"/>
|
||||
<xsl:variable name="controlField008-26" select="substring($controlField008,27,1)"/>
|
||||
<xsl:variable name="controlField008-29" select="substring($controlField008,30,1)"/>
|
||||
<xsl:variable name="controlField008-34" select="substring($controlField008,35,1)"/>
|
||||
<xsl:variable name="controlField008-33" select="substring($controlField008,34,1)"/>
|
||||
<xsl:variable name="controlField008-30-31" select="substring($controlField008,31,2)"/>
|
||||
|
||||
<xsl:variable name="physicalDescription">
|
||||
|
||||
<!-- 019$b from BSMARC -->
|
||||
|
||||
<xsl:if test="$field019b">
|
||||
<xsl:if test="$field019b='a'"> Kartografisk materiale</xsl:if>
|
||||
<xsl:if test="contains($field019b,'ab')"> Atlas</xsl:if>
|
||||
<xsl:if test="contains($field019b,'aj')"> Kart</xsl:if>
|
||||
<xsl:if test="$field019b='b'"> Manuskripter</xsl:if>
|
||||
<xsl:if test="$field019b='c'"> Musikktrykk</xsl:if>
|
||||
<xsl:if test="$field019b='d'"> Lydopptak</xsl:if>
|
||||
<xsl:if test="contains($field019b,'da')"> Grammofonplate</xsl:if>
|
||||
<xsl:if test="contains($field019b,'db')"> Kassett</xsl:if>
|
||||
<xsl:if test="contains($field019b,'dc')"> Kompaktplate</xsl:if>
|
||||
<xsl:if test="contains($field019b,'dd')"> Avspiller med lydfil (eks. Digibøker)</xsl:if>
|
||||
<xsl:if test="contains($field019b,'dg')"> Musikk</xsl:if>
|
||||
<xsl:if test="contains($field019b,'dh')"> Språkkurs</xsl:if>
|
||||
<xsl:if test="contains($field019b,'di')"> Lydbok</xsl:if>
|
||||
<xsl:if test="contains($field019b,'dj')"> Annen tale/annet</xsl:if>
|
||||
<xsl:if test="contains($field019b,'dk')"> Kombidokument</xsl:if>
|
||||
<xsl:if test="$field019b='e'"> Film og video</xsl:if>
|
||||
<xsl:if test="contains($field019b,'ec')"> Filmspole</xsl:if>
|
||||
<xsl:if test="contains($field019b,'ed')"> Videokassett (VHS)</xsl:if>
|
||||
<xsl:if test="contains($field019b,'ee')"> Videoplate (DVD)</xsl:if>
|
||||
<xsl:if test="contains($field019b,'ef')"> Blu-ray-plate</xsl:if>
|
||||
<xsl:if test="$field019b='f'"> Grafisk materiale</xsl:if>
|
||||
<xsl:if test="contains($field019b,'fd')"> Dias</xsl:if>
|
||||
<xsl:if test="contains($field019b,'ff')"> Fotografi</xsl:if>
|
||||
<xsl:if test="contains($field019b,'fi')"> Kunstreproduksjon</xsl:if>
|
||||
<xsl:if test="$field019b='g'"> Elektroniske ressurser</xsl:if>
|
||||
<xsl:if test="contains($field019b,'gb')"> Diskett</xsl:if>
|
||||
<xsl:if test="contains($field019b,'gd')"> Optiske lagringsmedia (CD-ROM)</xsl:if>
|
||||
<xsl:if test="contains($field019b,'ge')"> Nettressurser</xsl:if>
|
||||
<xsl:if test="$field019b='h'"> Tredimensjonale gjenstander</xsl:if>
|
||||
<xsl:if test="$field019b='i'"> Mikroformer</xsl:if>
|
||||
<xsl:if test="contains($field019b,'ib')"> Mikrofilmspole</xsl:if>
|
||||
<xsl:if test="contains($field019b,'ic')"> Mikrofilmkort</xsl:if>
|
||||
<xsl:if test="$field019b='j'"> Periodika</xsl:if>
|
||||
<xsl:if test="$field019b='k'"> Artikler (i bøker eller periodika)</xsl:if>
|
||||
<xsl:if test="$field019b='l'"> Fysiske bøker</xsl:if>
|
||||
</xsl:if>
|
||||
|
||||
<!-- Check positions 00 and 01 of controlfield 007 -->
|
||||
|
||||
<xsl:if test="$controlField007-00='a'">
|
||||
<!-- Kartografisk materiale (unntatt globus) -->
|
||||
<xsl:if test="$controlField007-01='a'">Anamorfisk kart</xsl:if>
|
||||
<xsl:if test="$controlField007-01='b'">Atlas</xsl:if>
|
||||
<xsl:if test="$controlField007-01='c'">Fantasikart</xsl:if>
|
||||
<xsl:if test="$controlField007-01='d'">Flykart</xsl:if>
|
||||
<xsl:if test="$controlField007-01='e'">Sjøkart</xsl:if>
|
||||
<xsl:if test="$controlField007-01='f'">Navigasjonskart</xsl:if>
|
||||
<xsl:if test="$controlField007-01='g'">Blokkdiagram</xsl:if>
|
||||
<xsl:if test="$controlField007-01='h'">Stjernekart</xsl:if>
|
||||
<xsl:if test="$controlField007-01='j'">Kart</xsl:if>
|
||||
<xsl:if test="$controlField007-01='k'">Kartprofil</xsl:if>
|
||||
<xsl:if test="$controlField007-01='l'">Fotokart</xsl:if>
|
||||
<xsl:if test="$controlField007-01='m'">Fotomosaikk</xsl:if>
|
||||
<xsl:if test="$controlField007-01='n'">Ortofoto</xsl:if>
|
||||
<xsl:if test="$controlField007-01='o'">Tegnet kart</xsl:if>
|
||||
<xsl:if test="$controlField007-01='p'">Trykt kart</xsl:if>
|
||||
<xsl:if test="$controlField007-01='q'">Terrengmodell</xsl:if>
|
||||
<xsl:if test="$controlField007-01='r'">Fjernanalysebilde</xsl:if>
|
||||
<xsl:if test="$controlField007-01='s'">Kartseksjon</xsl:if>
|
||||
<xsl:if test="$controlField007-01='t'">Plan</xsl:if>
|
||||
<xsl:if test="$controlField007-01='y'">Perspektivkart</xsl:if>
|
||||
<xsl:if test="$controlField007-01='z'">Annen karttype</xsl:if>
|
||||
</xsl:if>
|
||||
|
||||
<xsl:if test="$controlField007-00='c'">
|
||||
<!-- Maskinlesbar fil -->
|
||||
<xsl:if test="$controlField007-01='a'">Magnetisk-optisk plate</xsl:if>
|
||||
<xsl:if test="$controlField007-01='b'">Lagringsbrikke</xsl:if>
|
||||
<xsl:if test="$controlField007-01='c'">Optisk kassett</xsl:if>
|
||||
<xsl:if test="$controlField007-01='d'">Diskett</xsl:if>
|
||||
<xsl:if test="$controlField007-01='h'">Platelager (harddisk)</xsl:if>
|
||||
<xsl:if test="$controlField007-01='k'">Magnetbåndkassett</xsl:if>
|
||||
<xsl:if test="$controlField007-01='m'">Magnetbåndspole</xsl:if>
|
||||
<xsl:if test="$controlField007-01='n'">Fjerntilgang (online)</xsl:if>
|
||||
<xsl:if test="$controlField007-01='o'">Optisk plate</xsl:if>
|
||||
<xsl:if test="$controlField007-01='z'">Annet lagringsmedium</xsl:if>
|
||||
</xsl:if>
|
||||
|
||||
<xsl:if test="$controlField007-00='d'">
|
||||
<!-- Globus -->
|
||||
<xsl:if test="$controlField007-01='a'">Stjerneglobus</xsl:if>
|
||||
<xsl:if test="$controlField007-01='b'">Planet- eller måneglobus</xsl:if>
|
||||
<xsl:if test="$controlField007-01='c'">Jordglobus</xsl:if>
|
||||
<xsl:if test="$controlField007-01='z'">Annen globustype</xsl:if>
|
||||
</xsl:if>
|
||||
|
||||
<xsl:if test="$controlField007-00='g'">
|
||||
<!-- Grafisk materiale som er tenkt projisert eller gjennomlyst -->
|
||||
<xsl:if test="$controlField007-01='h'">Hologram</xsl:if>
|
||||
<xsl:if test="$controlField007-01='o'">Billedbånd</xsl:if>
|
||||
<xsl:if test="$controlField007-01='p'">Stereobilde</xsl:if>
|
||||
<xsl:if test="$controlField007-01='r'">Røntgenbilde</xsl:if>
|
||||
<xsl:if test="$controlField007-01='s'">Dia</xsl:if>
|
||||
<xsl:if test="$controlField007-01='t'">Transparent</xsl:if>
|
||||
<xsl:if test="$controlField007-01='z'">Annen materialtype</xsl:if>
|
||||
</xsl:if>
|
||||
|
||||
<xsl:if test="$controlField007-00='h'">
|
||||
<!-- Mikroform -->
|
||||
<xsl:if test="$controlField007-01='a'">Vinduskort</xsl:if>
|
||||
<xsl:if test="$controlField007-01='c'">Mikrofilmkassett</xsl:if>
|
||||
<xsl:if test="$controlField007-01='d'">Mikrofilmspole</xsl:if>
|
||||
<xsl:if test="$controlField007-01='e'">Mikrofilmkort</xsl:if>
|
||||
<xsl:if test="$controlField007-01='g'">Mikro-opak</xsl:if>
|
||||
<xsl:if test="$controlField007-01='z'">Annen mikroformtype</xsl:if>
|
||||
</xsl:if>
|
||||
|
||||
<xsl:if test="$controlField007-00='k'">
|
||||
<!-- Grafisk materiale som er ugjennomtrengelig for lys -->
|
||||
<xsl:if test="$controlField007-01='c'">Collage</xsl:if> <!-- Originalt kunstverk -->
|
||||
<xsl:if test="$controlField007-01='d'">Tegning</xsl:if> <!-- Originalt kunstverk -->
|
||||
<xsl:if test="$controlField007-01='e'">Maleri</xsl:if> <!-- Originalt kunstverk -->
|
||||
<xsl:if test="$controlField007-01='g'">Fotografi - negativ</xsl:if>
|
||||
<xsl:if test="$controlField007-01='h'">Fotografi</xsl:if> <!-- Brukes også om ugjennomsiktige stereobilder. -->
|
||||
<xsl:if test="$controlField007-01='i'">Bilde</xsl:if> <!-- Brukes når en mer spesifikk betegnelse er ukjent eller uønsket. -->
|
||||
<xsl:if test="$controlField007-01='j'">Grafisk blad</xsl:if>
|
||||
<xsl:if test="$controlField007-01='k'">Flipover</xsl:if>
|
||||
<xsl:if test="$controlField007-01='l'">Teknisk tegning</xsl:if>
|
||||
<xsl:if test="$controlField007-01='m'">Studieplansje</xsl:if>
|
||||
<xsl:if test="$controlField007-01='n'">Plansje</xsl:if>
|
||||
<xsl:if test="$controlField007-01='o'">Billedkort</xsl:if>
|
||||
<xsl:if test="$controlField007-01='p'">Ordkort</xsl:if>
|
||||
<xsl:if test="$controlField007-01='q'">Symbolkort</xsl:if>
|
||||
<xsl:if test="$controlField007-01='r'">Kunstreproduksjon</xsl:if>
|
||||
<xsl:if test="$controlField007-01='s'">Postkort</xsl:if>
|
||||
<xsl:if test="$controlField007-01='t'">Plakat</xsl:if>
|
||||
<xsl:if test="$controlField007-01='z'">Annen materialtype</xsl:if>
|
||||
</xsl:if>
|
||||
|
||||
<xsl:if test="$controlField007-00='m'">
|
||||
<!-- Film -->
|
||||
<xsl:if test="$controlField007-01='c'">Filmsløyfe</xsl:if>
|
||||
<xsl:if test="$controlField007-01='f'">Filmkassett</xsl:if>
|
||||
<xsl:if test="$controlField007-01='r'">Filmspole</xsl:if>
|
||||
<xsl:if test="$controlField007-01='z'">Annen filmtype</xsl:if>
|
||||
</xsl:if>
|
||||
|
||||
<xsl:if test="$controlField007-00='s'">
|
||||
<!-- Lydopptak -->
|
||||
<xsl:if test="$controlField007-01='c'">Kompaktplate</xsl:if>
|
||||
<xsl:if test="$controlField007-01='d'">Grammofonplate</xsl:if>
|
||||
<xsl:if test="$controlField007-01='e'">Sylinder</xsl:if> <!-- Lydrull, voksrull, fonografsylinder -->
|
||||
<xsl:if test="$controlField007-01='g'">Sløyfekassett</xsl:if>
|
||||
<xsl:if test="$controlField007-01='i'">Filmlydspor</xsl:if>
|
||||
<xsl:if test="$controlField007-01='q'">Rull (pianorull/orgelrull)</xsl:if>
|
||||
<xsl:if test="$controlField007-01='s'">Lydkassett</xsl:if>
|
||||
<xsl:if test="$controlField007-01='t'">Lydbånd</xsl:if>
|
||||
<xsl:if test="$controlField007-01='w'">Wire</xsl:if>
|
||||
<xsl:if test="$controlField007-01='z'">Annet lydmateriale</xsl:if>
|
||||
</xsl:if>
|
||||
|
||||
<xsl:if test="$controlField007-00='u'">
|
||||
<!-- Tre-dimensjonal gjenstand -->
|
||||
<xsl:if test="$controlField007-01='a'">Originalt kunstverk</xsl:if> <!-- F.eks. en skulptur. -->
|
||||
<xsl:if test="$controlField007-01='c'">Kunstreproduksjon</xsl:if>
|
||||
<xsl:if test="$controlField007-01='d'">Diorama</xsl:if>
|
||||
<xsl:if test="$controlField007-01='e'">Øvelsesmodell</xsl:if>
|
||||
<xsl:if test="$controlField007-01='g'">Spill</xsl:if>
|
||||
<xsl:if test="$controlField007-01='p'">Mikroskopdia</xsl:if>
|
||||
<xsl:if test="$controlField007-01='q'">Modell</xsl:if>
|
||||
<xsl:if test="$controlField007-01='r'">Realia</xsl:if>
|
||||
<xsl:if test="$controlField007-01='u'">Utstilling</xsl:if>
|
||||
<xsl:if test="$controlField007-01='z'">Annen type gjenstand</xsl:if>
|
||||
</xsl:if>
|
||||
|
||||
<xsl:if test="$controlField007-00='v'">
|
||||
<!-- Videoopptak -->
|
||||
<xsl:if test="$controlField007-01='d'">Videoplate</xsl:if>
|
||||
<xsl:if test="$controlField007-01='f'">Videokassett</xsl:if>
|
||||
<xsl:if test="$controlField007-01='r'">Videospole</xsl:if>
|
||||
<xsl:if test="$controlField007-01='z'">Annen type videoopptak</xsl:if>
|
||||
</xsl:if>
|
||||
|
||||
</xsl:variable>
|
||||
|
||||
<!-- Indicate if record is suppressed in OPAC -->
|
||||
<xsl:if test="$OpacSuppression = 1">
|
||||
<xsl:if test="marc:datafield[@tag=942][marc:subfield[@code='n'] = '1']">
|
||||
<span class="results_summary suppressed_opac">Suppressed in OPAC</span>
|
||||
</xsl:if>
|
||||
</xsl:if>
|
||||
|
||||
<a>
|
||||
<xsl:attribute name="href">
|
||||
<xsl:call-template name="buildBiblioDefaultViewURL">
|
||||
<xsl:with-param name="IntranetBiblioDefaultView">
|
||||
<xsl:value-of select="$IntranetBiblioDefaultView"/>
|
||||
</xsl:with-param>
|
||||
</xsl:call-template>
|
||||
<xsl:value-of select="str:encode-uri($biblionumber, true())"/>
|
||||
</xsl:attribute>
|
||||
<xsl:attribute name="class">title</xsl:attribute>
|
||||
|
||||
<xsl:if test="marc:datafield[@tag=245]">
|
||||
<xsl:for-each select="marc:datafield[@tag=245]">
|
||||
<xsl:variable name="title">
|
||||
<xsl:call-template name="subfieldSelect">
|
||||
<xsl:with-param name="codes">a</xsl:with-param>
|
||||
</xsl:call-template>
|
||||
<xsl:if test="marc:subfield[@code='h']">
|
||||
<xsl:text> </xsl:text>
|
||||
<xsl:call-template name="subfieldSelect">
|
||||
<xsl:with-param name="codes">h</xsl:with-param>
|
||||
</xsl:call-template>
|
||||
</xsl:if>
|
||||
<xsl:if test="marc:subfield[@code='b']">
|
||||
<xsl:text> </xsl:text>
|
||||
<xsl:call-template name="subfieldSelect">
|
||||
<xsl:with-param name="codes">b</xsl:with-param>
|
||||
</xsl:call-template>
|
||||
</xsl:if>
|
||||
<xsl:text> </xsl:text>
|
||||
<xsl:call-template name="subfieldSelect">
|
||||
<xsl:with-param name="codes">np</xsl:with-param>
|
||||
</xsl:call-template>
|
||||
</xsl:variable>
|
||||
<xsl:variable name="titleChop">
|
||||
<xsl:call-template name="chopPunctuation">
|
||||
<xsl:with-param name="chopString">
|
||||
<xsl:value-of select="$title"/>
|
||||
</xsl:with-param>
|
||||
</xsl:call-template>
|
||||
</xsl:variable>
|
||||
<xsl:value-of select="$titleChop"/>
|
||||
</xsl:for-each>
|
||||
</xsl:if>
|
||||
</a>
|
||||
|
||||
<xsl:choose>
|
||||
<xsl:when test="marc:datafield[@tag=100] or marc:datafield[@tag=110] or marc:datafield[@tag=111] or marc:datafield[@tag=700] or marc:datafield[@tag=710] or marc:datafield[@tag=711]">
|
||||
<p class="author">av
|
||||
<xsl:for-each select="marc:datafield[(@tag=100 or @tag=700) and @ind1!='z']">
|
||||
<a>
|
||||
<xsl:choose>
|
||||
<xsl:when test="marc:subfield[@code=9] and $UseAuthoritiesForTracings='1'">
|
||||
<xsl:attribute name="href">/cgi-bin/koha/catalogue/search.pl?q=an:<xsl:value-of select="str:encode-uri(marc:subfield[@code=9], true())"/></xsl:attribute>
|
||||
</xsl:when>
|
||||
<xsl:otherwise>
|
||||
<xsl:attribute name="href">/cgi-bin/koha/catalogue/search.pl?q=au:"<xsl:value-of select="str:encode-uri(marc:subfield[@code='a'], true())"/>"</xsl:attribute>
|
||||
</xsl:otherwise>
|
||||
</xsl:choose>
|
||||
<xsl:call-template name="nameABCDQ"/></a>
|
||||
<xsl:choose>
|
||||
<xsl:when test="position()=last()"><xsl:text>. </xsl:text></xsl:when><xsl:otherwise><xsl:text>; </xsl:text></xsl:otherwise></xsl:choose>
|
||||
</xsl:for-each>
|
||||
|
||||
<xsl:for-each select="marc:datafield[(@tag=110 or @tag=710) and @ind1!='z']">
|
||||
<a>
|
||||
<xsl:choose>
|
||||
<xsl:when test="marc:subfield[@code=9] and $UseAuthoritiesForTracings='1'">
|
||||
<xsl:attribute name="href">/cgi-bin/koha/catalogue/search.pl?q=an:<xsl:value-of select="str:encode-uri(marc:subfield[@code=9], true())"/></xsl:attribute>
|
||||
</xsl:when>
|
||||
<xsl:otherwise>
|
||||
<xsl:attribute name="href">/cgi-bin/koha/catalogue/search.pl?q=au:"<xsl:value-of select="str:encode-uri(marc:subfield[@code='a'], true())"/>"</xsl:attribute>
|
||||
</xsl:otherwise>
|
||||
</xsl:choose>
|
||||
<xsl:call-template name="nameABCDN"/></a>
|
||||
<xsl:choose><xsl:when test="position()=last()"><xsl:text> </xsl:text></xsl:when><xsl:otherwise><xsl:text>; </xsl:text></xsl:otherwise></xsl:choose>
|
||||
</xsl:for-each>
|
||||
|
||||
<xsl:for-each select="marc:datafield[(@tag=111 or @tag=711) and @ind1!='z']">
|
||||
<xsl:choose>
|
||||
<xsl:when test="marc:subfield[@code='n']">
|
||||
<xsl:text> </xsl:text>
|
||||
<xsl:call-template name="subfieldSelect">
|
||||
<xsl:with-param name="codes">n</xsl:with-param> </xsl:call-template>
|
||||
<xsl:text> </xsl:text>
|
||||
</xsl:when>
|
||||
</xsl:choose>
|
||||
<a>
|
||||
<xsl:choose>
|
||||
<xsl:when test="marc:subfield[@code=9] and $UseAuthoritiesForTracings='1'">
|
||||
<xsl:attribute name="href">/cgi-bin/koha/catalogue/search.pl?q=an:<xsl:value-of select="str:encode-uri(marc:subfield[@code=9], true())"/></xsl:attribute>
|
||||
</xsl:when>
|
||||
<xsl:otherwise>
|
||||
<xsl:attribute name="href">/cgi-bin/koha/catalogue/search.pl?q=au:"<xsl:value-of select="str:encode-uri(marc:subfield[@code='a'], true())"/>"</xsl:attribute>
|
||||
</xsl:otherwise>
|
||||
</xsl:choose>
|
||||
<xsl:call-template name="nameACDEQ"/></a>
|
||||
<xsl:choose><xsl:when test="position()=last()"><xsl:text>. </xsl:text></xsl:when><xsl:otherwise><xsl:text>; </xsl:text></xsl:otherwise></xsl:choose>
|
||||
|
||||
</xsl:for-each>
|
||||
</p>
|
||||
</xsl:when>
|
||||
</xsl:choose>
|
||||
|
||||
<xsl:if test="marc:datafield[@tag=300]">
|
||||
<span class="results_summary description"><span class="label">Beskrivelse: </span>
|
||||
<xsl:for-each select="marc:datafield[@tag=300]">
|
||||
<xsl:call-template name="chopPunctuation">
|
||||
<xsl:with-param name="chopString">
|
||||
<xsl:call-template name="subfieldSelect">
|
||||
<xsl:with-param name="codes">abce</xsl:with-param>
|
||||
</xsl:call-template>
|
||||
</xsl:with-param>
|
||||
</xsl:call-template>
|
||||
<xsl:choose><xsl:when test="position()=last()"><xsl:text>.</xsl:text></xsl:when><xsl:otherwise><xsl:text>; </xsl:text></xsl:otherwise></xsl:choose>
|
||||
</xsl:for-each>
|
||||
</span>
|
||||
</xsl:if>
|
||||
|
||||
<xsl:if test="marc:datafield[@tag=020]">
|
||||
<span class="results_summary isbn"><span class="label">ISBN: </span>
|
||||
<xsl:for-each select="marc:datafield[@tag=020]">
|
||||
<xsl:variable name="isbn" select="marc:subfield[@code='a']"/>
|
||||
<xsl:value-of select="marc:subfield[@code='a']"/>
|
||||
<xsl:choose><xsl:when test="position()=last()"><xsl:text>.</xsl:text></xsl:when><xsl:otherwise><xsl:text>; </xsl:text></xsl:otherwise></xsl:choose>
|
||||
</xsl:for-each>
|
||||
</span>
|
||||
</xsl:if>
|
||||
|
||||
<xsl:if test="marc:datafield[@tag=022]">
|
||||
<span class="results_summary issn"><span class="label">ISSN: </span>
|
||||
<xsl:for-each select="marc:datafield[@tag=022]">
|
||||
<xsl:value-of select="marc:subfield[@code='a']"/>
|
||||
<xsl:choose><xsl:when test="position()=last()"><xsl:text>.</xsl:text></xsl:when><xsl:otherwise><xsl:text>; </xsl:text></xsl:otherwise></xsl:choose>
|
||||
</xsl:for-each>
|
||||
</span>
|
||||
</xsl:if>
|
||||
|
||||
<xsl:if test="marc:datafield[@tag=250]">
|
||||
<span class="results_summary">
|
||||
<span class="label">Utgave: </span>
|
||||
<xsl:for-each select="marc:datafield[@tag=250]">
|
||||
<xsl:call-template name="subfieldSelect">
|
||||
<xsl:with-param name="codes">ab</xsl:with-param>
|
||||
</xsl:call-template>
|
||||
</xsl:for-each>
|
||||
</span>
|
||||
</xsl:if>
|
||||
|
||||
<!-- Analytics -->
|
||||
<xsl:if test="$leader7='s' or $leader7='c'">
|
||||
<span class="results_summary analytics"><span class="label">Analytics: </span>
|
||||
<a>
|
||||
<xsl:choose>
|
||||
<xsl:when test="$UseControlNumber = '1' and marc:controlfield[@tag=001]">
|
||||
<xsl:attribute name="href">/cgi-bin/koha/opac-search.pl?q=rcn:<xsl:value-of select="str:encode-uri(marc:controlfield[@tag=001], true())"/>+and+(bib-level:a+or+bib-level:b)</xsl:attribute>
|
||||
</xsl:when>
|
||||
<xsl:otherwise>
|
||||
<xsl:attribute name="href">/cgi-bin/koha/opac-search.pl?q=Host-item:<xsl:value-of select="str:encode-uri(translate(marc:datafield[@tag=245]/marc:subfield[@code='a'], '/', ''), true())"/></xsl:attribute>
|
||||
</xsl:otherwise>
|
||||
</xsl:choose>
|
||||
<xsl:text>Show analytics</xsl:text>
|
||||
</a>
|
||||
</span>
|
||||
</xsl:if>
|
||||
|
||||
<!-- 773 - Links from child to parent -->
|
||||
<xsl:if test="marc:datafield[@tag=773]">
|
||||
<xsl:for-each select="marc:datafield[@tag=773]">
|
||||
<xsl:if test="@ind1=0">
|
||||
<span class="results_summary in"><span class="label">
|
||||
<xsl:choose>
|
||||
<xsl:when test="@ind2=' '">
|
||||
In:
|
||||
</xsl:when>
|
||||
<xsl:when test="@ind2=8">
|
||||
<xsl:if test="marc:subfield[@code='i']">
|
||||
<xsl:value-of select="marc:subfield[@code='i']"/>
|
||||
</xsl:if>
|
||||
</xsl:when>
|
||||
</xsl:choose>
|
||||
</span>
|
||||
<xsl:variable name="f773">
|
||||
<xsl:call-template name="chopPunctuation"><xsl:with-param name="chopString"><xsl:call-template name="subfieldSelect">
|
||||
<xsl:with-param name="codes">a_t</xsl:with-param>
|
||||
</xsl:call-template></xsl:with-param></xsl:call-template>
|
||||
</xsl:variable>
|
||||
<xsl:choose>
|
||||
<xsl:when test="$UseControlNumber = '1' and marc:subfield[@code='w']">
|
||||
<a><xsl:attribute name="href">/cgi-bin/koha/catalogue/search.pl?q=Control-number:<xsl:call-template name="extractControlNumber"><xsl:with-param name="subfieldW" select="marc:subfield[@code='w']"/></xsl:call-template></xsl:attribute>
|
||||
<xsl:value-of select="translate($f773, '()', '')"/>
|
||||
</a>
|
||||
<xsl:if test="marc:subfield[@code='g']"><xsl:text> </xsl:text><xsl:value-of select="marc:subfield[@code='g']"/></xsl:if>
|
||||
</xsl:when>
|
||||
<xsl:when test="marc:subfield[@code='0']">
|
||||
<a><xsl:attribute name="href">/cgi-bin/koha/catalogue/detail.pl?biblionumber=<xsl:value-of select="str:encode-uri(marc:subfield[@code='0'], true())"/></xsl:attribute>
|
||||
<xsl:value-of select="$f773"/>
|
||||
</a>
|
||||
</xsl:when>
|
||||
<xsl:otherwise>
|
||||
<a><xsl:attribute name="href">/cgi-bin/koha/catalogue/search.pl?q=ti,phr:<xsl:value-of select="str:encode-uri(translate($f773, '()', ''), true())"/></xsl:attribute>
|
||||
<xsl:value-of select="$f773"/>
|
||||
</a>
|
||||
<xsl:if test="marc:subfield[@code='g']"><xsl:text> </xsl:text><xsl:value-of select="str:encode-uri(marc:subfield[@code='g'], true())"/></xsl:if>
|
||||
</xsl:otherwise>
|
||||
</xsl:choose>
|
||||
</span>
|
||||
<xsl:if test="marc:subfield[@code='n']">
|
||||
<span class="results_summary"><xsl:value-of select="marc:subfield[@code='n']"/></span>
|
||||
</xsl:if>
|
||||
</xsl:if>
|
||||
</xsl:for-each>
|
||||
</xsl:if>
|
||||
|
||||
<span class="results_summary">
|
||||
<xsl:if test="$typeOf008!=''">
|
||||
<span class="label">Materialtype: </span>
|
||||
<xsl:choose>
|
||||
<xsl:when test="$typeOf008='Mon'"><img src="/intranet-tmpl/prog/img/famfamfam/BK.png" alt="Bok" title="Bok"/> Bok</xsl:when>
|
||||
<xsl:when test="$typeOf008='Per'"><img src="/intranet-tmpl/prog/img/famfamfam/AR.png" alt="Periodika" title="Periodika"/> Periodika</xsl:when>
|
||||
<xsl:when test="$typeOf008='Fil'"><img src="/intranet-tmpl/prog/img/famfamfam/CF.png" alt="Fil" title="Fil"/> Fil</xsl:when>
|
||||
<xsl:when test="$typeOf008='Kar'"><img src="/intranet-tmpl/prog/img/famfamfam/MP.png" alt="Kart" title="Kart"/> Kart</xsl:when>
|
||||
<xsl:when test="$typeOf008='FV'"><img src="/intranet-tmpl/prog/img/famfamfam/VM.png" alt="Film og video" title="Film og video"/> Film og video</xsl:when>
|
||||
<xsl:when test="$typeOf008='Mus'"><img src="/intranet-tmpl/prog/img/famfamfam/PR.png" alt="Musikktrykk og lydopptak" title="Musikktrykk og lydopptak"/> Musikk</xsl:when>
|
||||
<xsl:when test="$typeOf008='gra'"><img src="/intranet-tmpl/prog/img/famfamfam/GR.png" alt="Grafisk materiale" title="Grafisk materiale"/> Grafisk materiale</xsl:when>
|
||||
<xsl:when test="$typeOf008='kom'"><img src="/intranet-tmpl/prog/img/famfamfam/MX.png" alt="Kombidokumenter" title="Kombidokumenter"/> Kombidokumenter</xsl:when>
|
||||
<xsl:when test="$typeOf008='trd'"><img src="/intranet-tmpl/prog/img/famfamfam/TD.png" alt="Tre-dimensjonale gjenstander" title="Tre-dimensjonale gjenstander"/> Tre-dimensjonale gjenstander</xsl:when>
|
||||
</xsl:choose>
|
||||
</xsl:if>
|
||||
<xsl:if test="string-length(normalize-space($physicalDescription))">
|
||||
<span class="label">; Format: </span><xsl:copy-of select="$physicalDescription"></xsl:copy-of>
|
||||
</xsl:if>
|
||||
|
||||
<xsl:if test="$controlField008-21 or $controlField008-22 or $controlField008-24 or $controlField008-26 or $controlField008-29 or $controlField008-34 or $controlField008-33 or $controlField008-30-31 or $controlField008-33">
|
||||
|
||||
<xsl:if test="$typeOf008='Per'">
|
||||
<xsl:if test="$controlField008-21 and contains($controlField008-21,'amnpz')">
|
||||
<span class="label">; Type periodikum: </span>
|
||||
</xsl:if>
|
||||
<xsl:choose>
|
||||
<xsl:when test="$controlField008-21='a'">Årbok</xsl:when>
|
||||
<xsl:when test="$controlField008-21='m'">Monografiserie</xsl:when>
|
||||
<xsl:when test="$controlField008-21='n'">Avis</xsl:when>
|
||||
<xsl:when test="$controlField008-21='p'">Tidsskrift</xsl:when>
|
||||
<xsl:when test="$controlField008-21='z'">Andre typer periodika</xsl:when>
|
||||
</xsl:choose>
|
||||
</xsl:if>
|
||||
|
||||
<xsl:if test="$typeOf008='Mon' or $typeOf008='Per'">
|
||||
<span class="label">; Innhold: </span>
|
||||
<xsl:choose>
|
||||
<xsl:when test="contains($controlField008-24,'a')"> Sammendrag(abstracts)/Referatorganer</xsl:when>
|
||||
<xsl:when test="contains($controlField008-24,'b')"> Bibliografier</xsl:when>
|
||||
<xsl:when test="contains($controlField008-24,'c')"> Kataloger</xsl:when>
|
||||
<xsl:when test="contains($controlField008-24,'d')"> Ordbøker</xsl:when>
|
||||
<xsl:when test="contains($controlField008-24,'e')"> Konversasjonsleksika</xsl:when>
|
||||
<xsl:when test="contains($controlField008-24,'f')"> Håndbøker</xsl:when>
|
||||
<xsl:when test="contains($controlField008-24,'h')"> Referanseverk</xsl:when>
|
||||
<xsl:when test="contains($controlField008-24,'i')"> Registre</xsl:when>
|
||||
<xsl:when test="contains($controlField008-24,'k')"> Diskografier</xsl:when>
|
||||
<xsl:when test="contains($controlField008-24,'l')"> Lover og forskrifter</xsl:when>
|
||||
<xsl:when test="contains($controlField008-24,'m')"> Hovedoppgaver/diplomoppgaver</xsl:when>
|
||||
<xsl:when test="contains($controlField008-24,'n')"> Oversiktsverker innenfor et emne</xsl:when>
|
||||
<xsl:when test="contains($controlField008-24,'o')"> Anmeldelser</xsl:when>
|
||||
<xsl:when test="contains($controlField008-24,'q')"> Filmografier</xsl:when>
|
||||
<xsl:when test="contains($controlField008-24,'r')"> Adressebøker</xsl:when>
|
||||
<xsl:when test="contains($controlField008-24,'s')"> Statistikker</xsl:when>
|
||||
<xsl:when test="contains($controlField008-24,'t')"> Tekniske rapporter</xsl:when>
|
||||
<xsl:when test="contains($controlField008-24,'x')"> Doktoravhandlinger/lisensiat-avhandlinger</xsl:when>
|
||||
</xsl:choose>
|
||||
<xsl:choose>
|
||||
<xsl:when test="$controlField008-29='1'">
|
||||
Konferansepublikasjon
|
||||
</xsl:when>
|
||||
</xsl:choose>
|
||||
</xsl:if>
|
||||
<xsl:if test="$typeOf008='CF'">
|
||||
<xsl:if test="$controlField008-26='a' or $controlField008-26='b' or $controlField008-26='c' or $controlField008-26='d' or $controlField008-26='e' or $controlField008-26='f' or $controlField008-26='g' or $controlField008-26='h' or $controlField008-26='i' or $controlField008-26='j'">
|
||||
<span class="label">; Type maskinlesbar fil: </span>
|
||||
</xsl:if>
|
||||
<xsl:choose>
|
||||
<xsl:when test="$controlField008-26='a'">Numeriske data</xsl:when>
|
||||
<xsl:when test="$controlField008-26='b'">Programvare</xsl:when>
|
||||
<xsl:when test="$controlField008-26='c'">Grafiske data</xsl:when>
|
||||
<xsl:when test="$controlField008-26='d'">Tekst</xsl:when>
|
||||
<xsl:when test="$controlField008-26='e'">Bibliografiske data</xsl:when>
|
||||
<xsl:when test="$controlField008-26='f'">Font</xsl:when>
|
||||
<xsl:when test="$controlField008-26='g'">Spill</xsl:when>
|
||||
<xsl:when test="$controlField008-26='h'">Lyd</xsl:when>
|
||||
<xsl:when test="$controlField008-26='i'">Interaktivt multimedium</xsl:when>
|
||||
<xsl:when test="$controlField008-26='j'">Online tjeneste</xsl:when>
|
||||
</xsl:choose>
|
||||
</xsl:if>
|
||||
<xsl:if test="$typeOf008='Mon'">
|
||||
<xsl:if test="(substring($controlField008,25,1)='j') or (substring($controlField008,25,1)='1') or ($controlField008-34='a' or $controlField008-34='b' or $controlField008-34='c' or $controlField008-34='d')">
|
||||
<span class="label">; Innhold: </span>
|
||||
</xsl:if>
|
||||
<xsl:if test="substring($controlField008,31,1)='1' or substring($controlField008,31,1)='a' or substring($controlField008,31,1)='b'">
|
||||
Festskrift
|
||||
</xsl:if>
|
||||
<xsl:if test="$controlField008-34='a' or $controlField008-34='a' or $controlField008-34='b' or $controlField008-34='c' or $controlField008-34='d'">
|
||||
Biografi
|
||||
</xsl:if>
|
||||
|
||||
<xsl:if test="$controlField008-33 and $controlField008-33!='^' and $controlField008-33!=' '">
|
||||
<span class="label">; Litterær form: </span>
|
||||
</xsl:if>
|
||||
<xsl:choose>
|
||||
<xsl:when test="$controlField008-33='0'">Ikke skjønnlitteratur</xsl:when>
|
||||
<xsl:when test="$controlField008-33='l'">Lærebok, brevkurs</xsl:when>
|
||||
<xsl:when test="$controlField008-33='1'">Skjønnlitteratur</xsl:when>
|
||||
<xsl:when test="$controlField008-33='r'">Roman</xsl:when>
|
||||
<xsl:when test="$controlField008-33='n'">Novelle / fortelling</xsl:when>
|
||||
<xsl:when test="$controlField008-33='d'">Dikt</xsl:when>
|
||||
<xsl:when test="$controlField008-33='s'">Skuespill</xsl:when>
|
||||
<xsl:when test="$controlField008-33='t'">Tegneserie</xsl:when>
|
||||
<xsl:when test="$controlField008-33='a'">Antologi</xsl:when>
|
||||
<xsl:when test="$controlField008-33='p'">Pekebok</xsl:when>
|
||||
</xsl:choose>
|
||||
</xsl:if>
|
||||
<xsl:if test="$typeOf008='Mus' and $controlField008-30-31 and $controlField008-30-31!='^^' and $controlField008-30-31!=' '">
|
||||
<span class="label">; Litterær form: </span> <!-- Literary text for sound recordings -->
|
||||
<xsl:if test="contains($controlField008-30-31,'a')">Selvbiografier</xsl:if>
|
||||
<xsl:if test="contains($controlField008-30-31,'b')">Biografier</xsl:if>
|
||||
<xsl:if test="contains($controlField008-30-31,'c')">Samtaler og diskusjoner</xsl:if>
|
||||
<xsl:if test="contains($controlField008-30-31,'d')">Drama</xsl:if>
|
||||
<xsl:if test="contains($controlField008-30-31,'e')">Essays</xsl:if>
|
||||
<xsl:if test="contains($controlField008-30-31,'f')">Romaner</xsl:if>
|
||||
<xsl:if test="contains($controlField008-30-31,'g')">Rapporter, referater</xsl:if>
|
||||
<xsl:if test="contains($controlField008-30-31,'h')">Fortellinger, noveller</xsl:if>
|
||||
<xsl:if test="contains($controlField008-30-31,'i')">Undervisning</xsl:if>
|
||||
<xsl:if test="contains($controlField008-30-31,'j')">Språkundervisning</xsl:if>
|
||||
<xsl:if test="contains($controlField008-30-31,'k')">Komedier</xsl:if>
|
||||
<xsl:if test="contains($controlField008-30-31,'l')">Foredrag, taler</xsl:if>
|
||||
<xsl:if test="contains($controlField008-30-31,'m')">Memoarer</xsl:if>
|
||||
<xsl:if test="contains($controlField008-30-31,'o')">Eventyr</xsl:if>
|
||||
<xsl:if test="contains($controlField008-30-31,'p')">Dikt</xsl:if>
|
||||
<xsl:if test="contains($controlField008-30-31,'r')">Fremføring av alle typer ikke-musikalske produksjoner</xsl:if>
|
||||
<xsl:if test="contains($controlField008-30-31,'s')">Lyder (f.eks. fuglelyder)</xsl:if>
|
||||
<xsl:if test="contains($controlField008-30-31,'t')">Intervjuer</xsl:if>
|
||||
<xsl:if test="contains($controlField008-30-31,'z')">Andre typer innhold</xsl:if>
|
||||
</xsl:if>
|
||||
|
||||
</xsl:if>
|
||||
|
||||
<xsl:if test="$typeOf008='Mon'">
|
||||
<span class="label">; Målgruppe: </span>
|
||||
<xsl:choose>
|
||||
<xsl:when test="$controlField008-22='a'">Voksne;</xsl:when>
|
||||
<xsl:when test="$controlField008-22='b'">Billedbøker for voksne;</xsl:when>
|
||||
<xsl:when test="$controlField008-22='j'">Barn og ungdom;</xsl:when>
|
||||
<xsl:when test="$controlField008-22='k'">Billedbøker;</xsl:when>
|
||||
<xsl:when test="$controlField008-22='l'">Barn i alderen til og med 5 år;</xsl:when>
|
||||
<xsl:when test="$controlField008-22='m'">Elever på 1. til 3. klassetrinn;</xsl:when>
|
||||
<xsl:when test="$controlField008-22='n'">Elever på 4. og 5. klassetrinn;</xsl:when>
|
||||
<xsl:when test="$controlField008-22='o'">Elever på 6. og 7. klassetrinn;</xsl:when>
|
||||
<xsl:when test="$controlField008-22='p'">Elever på ungdomstrinnet;</xsl:when>
|
||||
<xsl:when test="$controlField008-22='v'">Billedbøker for barn i alderen til og med 5 år;</xsl:when>
|
||||
<xsl:when test="$controlField008-22='w'">Billedbøker for elever på 1. til 3. klassetrinn;</xsl:when>
|
||||
<xsl:when test="$controlField008-22='x'">Billedbøker for elever på 4. og 5. klassetrinn;</xsl:when>
|
||||
<xsl:when test="$controlField008-22='y'">Billedbøker for elever på 6. og 7. klassetrinn;</xsl:when>
|
||||
<xsl:when test="$controlField008-22='z'">Billedbøker for elever på ungdomstrinnet;</xsl:when>
|
||||
<xsl:when test="$controlField008-22='f'">Spesialisert;</xsl:when>
|
||||
<xsl:when test="$controlField008-22='q'">Lettlest;</xsl:when>
|
||||
<xsl:when test="$controlField008-22='r'">For psykisk utviklingshemmede;</xsl:when>
|
||||
<xsl:when test="$controlField008-22='s'">Storskrift;</xsl:when>
|
||||
<xsl:when test="$controlField008-22='g'">Generell;</xsl:when>
|
||||
<xsl:when test="$controlField008-22='u'">Ukjent;</xsl:when>
|
||||
</xsl:choose>
|
||||
</xsl:if>
|
||||
<xsl:if test="$typeOf008='Per'">
|
||||
<span class="label">; Målgruppe: </span>
|
||||
<xsl:choose>
|
||||
<xsl:when test="$controlField008-22='a'">Voksne;</xsl:when>
|
||||
<xsl:when test="$controlField008-22='b'">Tegneserier for voksne;</xsl:when>
|
||||
<xsl:when test="$controlField008-22='j'">Barn og ungdom;</xsl:when>
|
||||
<xsl:when test="$controlField008-22='k'">Tegneserier;</xsl:when>
|
||||
<xsl:when test="$controlField008-22='l'">Barn i alderen til og med 5 år;</xsl:when>
|
||||
<xsl:when test="$controlField008-22='m'">Elever på 1. til 3. klassetrinn;</xsl:when>
|
||||
<xsl:when test="$controlField008-22='n'">Elever på 4. og 5. klassetrinn;</xsl:when>
|
||||
<xsl:when test="$controlField008-22='o'">Elever på 6. og 7. klassetrinn;</xsl:when>
|
||||
<xsl:when test="$controlField008-22='p'">Elever på ungdomstrinnet;</xsl:when>
|
||||
<xsl:when test="$controlField008-22='v'">Tegneserier for barn i alderen til og med 5 år;</xsl:when>
|
||||
<xsl:when test="$controlField008-22='w'">Tegneserier for elever på 1. til 3. klassetrinn;</xsl:when>
|
||||
<xsl:when test="$controlField008-22='x'">Tegneserier for elever på 4. og 5. klassetrinn;</xsl:when>
|
||||
<xsl:when test="$controlField008-22='y'">Tegneserier for elever på 6. og 7. klassetrinn;</xsl:when>
|
||||
<xsl:when test="$controlField008-22='z'">Tegneserier for elever på ungdomstrinnet;</xsl:when>
|
||||
<xsl:when test="$controlField008-22='f'">Spesialisert;</xsl:when>
|
||||
<xsl:when test="$controlField008-22='q'">Lettlest;</xsl:when>
|
||||
<xsl:when test="$controlField008-22='r'">For psykisk utviklingshemmede;</xsl:when>
|
||||
<xsl:when test="$controlField008-22='s'">Storskrift;</xsl:when>
|
||||
<xsl:when test="$controlField008-22='g'">Generell;</xsl:when>
|
||||
<xsl:when test="$controlField008-22='u'">Ukjent;</xsl:when>
|
||||
</xsl:choose>
|
||||
</xsl:if>
|
||||
<xsl:if test="$typeOf008='Fil' or $typeOf008='Mus'">
|
||||
<span class="label">; Målgruppe: </span>
|
||||
<xsl:choose>
|
||||
<xsl:when test="$controlField008-22='a'">Voksne;</xsl:when>
|
||||
<xsl:when test="$controlField008-22='j'">Barn og ungdom;</xsl:when>
|
||||
<xsl:when test="$controlField008-22='1'">Barn i alderen til og med 5 år;</xsl:when>
|
||||
<xsl:when test="$controlField008-22='m'">Elever på 1. til 3. klassetrinn;</xsl:when>
|
||||
<xsl:when test="$controlField008-22='n'">Elever på 4. og 5. klassetrinn;</xsl:when>
|
||||
<xsl:when test="$controlField008-22='o'">Elever på 6. og 7. klassetrinn;</xsl:when>
|
||||
<xsl:when test="$controlField008-22='p'">Elever på ungdomstrinnet;</xsl:when>
|
||||
<xsl:when test="$controlField008-22='f'">Spesialisert;</xsl:when>
|
||||
<xsl:when test="$controlField008-22='q'">Lettlest;</xsl:when>
|
||||
<xsl:when test="$controlField008-22='r'">For psykisk utviklingshemmede;</xsl:when>
|
||||
<xsl:when test="$controlField008-22='s'">Storskrift;</xsl:when>
|
||||
<xsl:when test="$controlField008-22='g'">Generell;</xsl:when>
|
||||
<xsl:when test="$controlField008-22='u'">Ukjent;</xsl:when>
|
||||
</xsl:choose>
|
||||
</xsl:if>
|
||||
<xsl:if test="$typeOf008='FV'">
|
||||
<span class="label">; Målgruppe: </span>
|
||||
<xsl:choose>
|
||||
<xsl:when test="$controlField008-22='a'">Voksne;</xsl:when>
|
||||
<xsl:when test="$controlField008-22='1'">Voksne over 18 år;</xsl:when>
|
||||
<xsl:when test="$controlField008-22='2'">Voksne over 15 år;</xsl:when>
|
||||
<xsl:when test="$controlField008-22='j'">Barn og ungdom;</xsl:when>
|
||||
<xsl:when test="$controlField008-22='4'">Ungdom over 12 år;</xsl:when>
|
||||
<xsl:when test="$controlField008-22='5'">Barn over 7 år;</xsl:when>
|
||||
<xsl:when test="$controlField008-22='6'">Småbarn;</xsl:when>
|
||||
<xsl:when test="$controlField008-22='f'">Spesialisert;</xsl:when>
|
||||
<xsl:when test="$controlField008-22='g'">Generell;</xsl:when>
|
||||
<xsl:when test="$controlField008-22='u'">Ukjent;</xsl:when>
|
||||
</xsl:choose>
|
||||
</xsl:if>
|
||||
</span>
|
||||
|
||||
<!-- Utgivelse, distribusjon osv -->
|
||||
<xsl:if test="marc:datafield[@tag=260]">
|
||||
<span class="results_summary">
|
||||
<span class="label">Utgiver: </span>
|
||||
<xsl:for-each select="marc:datafield[@tag=260]">
|
||||
<xsl:call-template name="subfieldSelect">
|
||||
<xsl:with-param name="codes">abcefg</xsl:with-param>
|
||||
</xsl:call-template>
|
||||
</xsl:for-each>
|
||||
</span>
|
||||
</xsl:if>
|
||||
|
||||
<!-- Parallelltittel (R) -->
|
||||
<xsl:if test="marc:datafield[@tag=246]">
|
||||
<span class="results_summary">
|
||||
<span class="label">Parallelltittel: </span>
|
||||
<xsl:for-each select="marc:datafield[@tag=246]">
|
||||
<xsl:call-template name="subfieldSelect">
|
||||
<xsl:with-param name="codes">ab</xsl:with-param>
|
||||
</xsl:call-template>
|
||||
</xsl:for-each>
|
||||
</span>
|
||||
</xsl:if>
|
||||
|
||||
<xsl:if test="marc:datafield[@tag=856]">
|
||||
<span class="results_summary">
|
||||
<span class="label">Online tilgang: </span>
|
||||
<xsl:for-each select="marc:datafield[@tag=856]">
|
||||
<xsl:variable name="SubqText"><xsl:value-of select="marc:subfield[@code='q']"/></xsl:variable>
|
||||
<a><xsl:attribute name="href"><xsl:value-of select="marc:subfield[@code='u']"/></xsl:attribute>
|
||||
<xsl:choose>
|
||||
<xsl:when test="($Show856uAsImage='Results' or $Show856uAsImage='Both') and (substring($SubqText,1,6)='image/' or $SubqText='img' or $SubqText='bmp' or $SubqText='cod' or $SubqText='gif' or $SubqText='ief' or $SubqText='jpe' or $SubqText='jpeg' or $SubqText='jpg' or $SubqText='jfif' or $SubqText='png' or $SubqText='svg' or $SubqText='tif' or $SubqText='tiff' or $SubqText='ras' or $SubqText='cmx' or $SubqText='ico' or $SubqText='pnm' or $SubqText='pbm' or $SubqText='pgm' or $SubqText='ppm' or $SubqText='rgb' or $SubqText='xbm' or $SubqText='xpm' or $SubqText='xwd')">
|
||||
<xsl:element name="img"><xsl:attribute name="src"><xsl:value-of select="marc:subfield[@code='u']"/></xsl:attribute><xsl:attribute name="alt"><xsl:value-of select="marc:subfield[@code='y']"/></xsl:attribute><xsl:attribute name="height">100</xsl:attribute></xsl:element><xsl:text></xsl:text>
|
||||
</xsl:when>
|
||||
<xsl:when test="marc:subfield[@code='y' or @code='3' or @code='z']">
|
||||
<xsl:call-template name="subfieldSelect">
|
||||
<xsl:with-param name="codes">y3z</xsl:with-param>
|
||||
</xsl:call-template>
|
||||
</xsl:when>
|
||||
<xsl:when test="not(marc:subfield[@code='y']) and not(marc:subfield[@code='3']) and not(marc:subfield[@code='z'])">
|
||||
<xsl:choose>
|
||||
<xsl:when test="$URLLinkText!=''">
|
||||
<xsl:value-of select="$URLLinkText"/>
|
||||
</xsl:when>
|
||||
<xsl:otherwise>
|
||||
<xsl:text>Klikk her for online tilgang</xsl:text>
|
||||
</xsl:otherwise>
|
||||
</xsl:choose>
|
||||
</xsl:when>
|
||||
</xsl:choose>
|
||||
</a>
|
||||
<xsl:choose>
|
||||
<xsl:when test="position()=last()"><xsl:text> </xsl:text></xsl:when>
|
||||
<xsl:otherwise> | </xsl:otherwise>
|
||||
</xsl:choose>
|
||||
</xsl:for-each>
|
||||
</span>
|
||||
</xsl:if>
|
||||
</xsl:template>
|
||||
|
||||
<xsl:template name="nameABCDQ">
|
||||
<xsl:call-template name="chopPunctuation">
|
||||
<xsl:with-param name="chopString">
|
||||
<xsl:call-template name="subfieldSelect">
|
||||
<xsl:with-param name="codes">aq</xsl:with-param>
|
||||
</xsl:call-template>
|
||||
</xsl:with-param>
|
||||
<xsl:with-param name="punctuation">
|
||||
<xsl:text>:,;/ </xsl:text>
|
||||
</xsl:with-param>
|
||||
</xsl:call-template>
|
||||
<xsl:call-template name="termsOfAddress"/>
|
||||
</xsl:template>
|
||||
|
||||
<xsl:template name="nameABCDN">
|
||||
<xsl:for-each select="marc:subfield[@code='a']">
|
||||
<xsl:call-template name="chopPunctuation">
|
||||
<xsl:with-param name="chopString" select="."/>
|
||||
</xsl:call-template>
|
||||
</xsl:for-each>
|
||||
<xsl:for-each select="marc:subfield[@code='b']">
|
||||
<xsl:value-of select="."/>
|
||||
</xsl:for-each>
|
||||
<xsl:if test="marc:subfield[@code='c'] or marc:subfield[@code='d'] or marc:subfield[@code='n']">
|
||||
<xsl:call-template name="subfieldSelect">
|
||||
<xsl:with-param name="codes">cdn</xsl:with-param>
|
||||
</xsl:call-template>
|
||||
</xsl:if>
|
||||
</xsl:template>
|
||||
|
||||
<xsl:template name="nameACDEQ">
|
||||
<xsl:call-template name="subfieldSelect">
|
||||
<xsl:with-param name="codes">acdeq</xsl:with-param>
|
||||
</xsl:call-template>
|
||||
</xsl:template>
|
||||
|
||||
<xsl:template name="termsOfAddress">
|
||||
<xsl:if test="marc:subfield[@code='b' or @code='c']">
|
||||
<xsl:call-template name="chopPunctuation">
|
||||
<xsl:with-param name="chopString">
|
||||
<xsl:call-template name="subfieldSelect">
|
||||
<xsl:with-param name="codes">bc</xsl:with-param>
|
||||
</xsl:call-template>
|
||||
</xsl:with-param>
|
||||
</xsl:call-template>
|
||||
</xsl:if>
|
||||
</xsl:template>
|
||||
|
||||
<xsl:template name="nameDate">
|
||||
<xsl:for-each select="marc:subfield[@code='d']">
|
||||
<xsl:call-template name="chopPunctuation">
|
||||
<xsl:with-param name="chopString" select="."/>
|
||||
</xsl:call-template>
|
||||
</xsl:for-each>
|
||||
</xsl:template>
|
||||
|
||||
<xsl:template name="role">
|
||||
<xsl:for-each select="marc:subfield[@code='e']">
|
||||
<xsl:value-of select="."/>
|
||||
</xsl:for-each>
|
||||
<xsl:for-each select="marc:subfield[@code='4']">
|
||||
<xsl:value-of select="."/>
|
||||
</xsl:for-each>
|
||||
</xsl:template>
|
||||
|
||||
<xsl:template name="specialSubfieldSelect">
|
||||
<xsl:param name="anyCodes"/>
|
||||
<xsl:param name="axis"/>
|
||||
<xsl:param name="beforeCodes"/>
|
||||
<xsl:param name="afterCodes"/>
|
||||
<xsl:variable name="str">
|
||||
<xsl:for-each select="marc:subfield">
|
||||
<xsl:if test="contains($anyCodes, @code) or (contains($beforeCodes,@code) and following-sibling::marc:subfield[@code=$axis]) or (contains($afterCodes,@code) and preceding-sibling::marc:subfield[@code=$axis])">
|
||||
<xsl:value-of select="text()"/>
|
||||
<xsl:text> </xsl:text>
|
||||
</xsl:if>
|
||||
</xsl:for-each>
|
||||
</xsl:variable>
|
||||
<xsl:value-of select="substring($str,1,string-length($str)-1)"/>
|
||||
</xsl:template>
|
||||
|
||||
<xsl:template name="subtitle">
|
||||
<xsl:if test="marc:subfield[@code='b']">
|
||||
<xsl:call-template name="chopPunctuation">
|
||||
<xsl:with-param name="chopString">
|
||||
<xsl:value-of select="marc:subfield[@code='b']"/>
|
||||
</xsl:with-param>
|
||||
</xsl:call-template>
|
||||
</xsl:if>
|
||||
</xsl:template>
|
||||
|
||||
<xsl:template name="chopBrackets">
|
||||
<xsl:param name="chopString"></xsl:param>
|
||||
<xsl:variable name="string">
|
||||
<xsl:call-template name="chopPunctuation">
|
||||
<xsl:with-param name="chopString" select="$chopString"></xsl:with-param>
|
||||
</xsl:call-template>
|
||||
</xsl:variable>
|
||||
<xsl:if test="substring($string, 1,1)='['">
|
||||
<xsl:value-of select="substring($string,2, string-length($string)-2)"></xsl:value-of>
|
||||
</xsl:if>
|
||||
<xsl:if test="substring($string, 1,1)!='['">
|
||||
<xsl:value-of select="$string"></xsl:value-of>
|
||||
</xsl:if>
|
||||
</xsl:template>
|
||||
|
||||
</xsl:stylesheet>
|
|
@ -1,262 +0,0 @@
|
|||
<?xml version='1.0'?>
|
||||
|
||||
<!DOCTYPE stylesheet>
|
||||
|
||||
<xsl:stylesheet version="1.0"
|
||||
xmlns:marc="http://www.loc.gov/MARC21/slim"
|
||||
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
|
||||
xmlns:str="http://exslt.org/strings">
|
||||
<xsl:template name="datafield">
|
||||
<xsl:param name="tag"/>
|
||||
<xsl:param name="ind1"><xsl:text> </xsl:text></xsl:param>
|
||||
<xsl:param name="ind2"><xsl:text> </xsl:text></xsl:param>
|
||||
<xsl:param name="subfields"/>
|
||||
<xsl:element name="datafield">
|
||||
<xsl:attribute name="tag">
|
||||
<xsl:value-of select="$tag"/>
|
||||
</xsl:attribute>
|
||||
<xsl:attribute name="ind1">
|
||||
<xsl:value-of select="$ind1"/>
|
||||
</xsl:attribute>
|
||||
<xsl:attribute name="ind2">
|
||||
<xsl:value-of select="$ind2"/>
|
||||
</xsl:attribute>
|
||||
<xsl:copy-of select="$subfields"/>
|
||||
</xsl:element>
|
||||
</xsl:template>
|
||||
|
||||
<xsl:template name="subfieldSelect">
|
||||
<xsl:param name="codes"/>
|
||||
<xsl:param name="delimeter"><xsl:text> </xsl:text></xsl:param>
|
||||
<xsl:param name="subdivCodes"/>
|
||||
<xsl:param name="subdivDelimiter"/>
|
||||
<xsl:param name="prefix"/>
|
||||
<xsl:param name="suffix"/>
|
||||
<xsl:param name="urlencode"/>
|
||||
<xsl:variable name="str">
|
||||
<xsl:for-each select="marc:subfield">
|
||||
<xsl:if test="contains($codes, @code)">
|
||||
<xsl:if test="contains($subdivCodes, @code)">
|
||||
<xsl:value-of select="$subdivDelimiter"/>
|
||||
</xsl:if>
|
||||
<xsl:value-of select="$prefix"/><xsl:value-of select="text()"/><xsl:value-of select="$suffix"/><xsl:value-of select="$delimeter"/>
|
||||
</xsl:if>
|
||||
</xsl:for-each>
|
||||
</xsl:variable>
|
||||
<xsl:choose>
|
||||
<xsl:when test="$urlencode=1">
|
||||
<xsl:value-of select="str:encode-uri(substring($str,1,string-length($str)-string-length($delimeter)), true())"/>
|
||||
</xsl:when>
|
||||
<xsl:otherwise>
|
||||
<xsl:value-of select="substring($str,1,string-length($str)-string-length($delimeter))"/>
|
||||
</xsl:otherwise>
|
||||
</xsl:choose>
|
||||
</xsl:template>
|
||||
|
||||
<xsl:template name="buildSpaces">
|
||||
<xsl:param name="spaces"/>
|
||||
<xsl:param name="char"><xsl:text> </xsl:text></xsl:param>
|
||||
<xsl:if test="$spaces>0">
|
||||
<xsl:value-of select="$char"/>
|
||||
<xsl:call-template name="buildSpaces">
|
||||
<xsl:with-param name="spaces" select="$spaces - 1"/>
|
||||
<xsl:with-param name="char" select="$char"/>
|
||||
</xsl:call-template>
|
||||
</xsl:if>
|
||||
</xsl:template>
|
||||
|
||||
<xsl:template name="buildBiblioDefaultViewURL">
|
||||
<xsl:param name="IntranetBiblioDefaultView"/>
|
||||
<xsl:choose>
|
||||
<xsl:when test="$IntranetBiblioDefaultView='normal'">
|
||||
<xsl:text>/cgi-bin/koha/catalogue/detail.pl?biblionumber=</xsl:text>
|
||||
</xsl:when>
|
||||
<xsl:when test="$IntranetBiblioDefaultView='isbd'">
|
||||
<xsl:text>/cgi-bin/koha/catalogue/ISBDdetail.pl?biblionumber=</xsl:text>
|
||||
</xsl:when>
|
||||
<xsl:when test="$IntranetBiblioDefaultView='labeled_marc'">
|
||||
<xsl:text>/cgi-bin/koha/catalogue/labeledMARCdetail.pl?biblionumber=</xsl:text>
|
||||
</xsl:when>
|
||||
<xsl:when test="$IntranetBiblioDefaultView='marc'">
|
||||
<xsl:text>/cgi-bin/koha/catalogue/MARCdetail.pl?biblionumber=</xsl:text>
|
||||
</xsl:when>
|
||||
<xsl:otherwise>
|
||||
<xsl:text>/cgi-bin/koha/catalogue/detail.pl?biblionumber=</xsl:text>
|
||||
</xsl:otherwise>
|
||||
</xsl:choose>
|
||||
</xsl:template>
|
||||
|
||||
<xsl:template name="chopPunctuation">
|
||||
<xsl:param name="chopString"/>
|
||||
<xsl:variable name="length" select="string-length($chopString)"/>
|
||||
<xsl:choose>
|
||||
<xsl:when test="$length=0"/>
|
||||
<xsl:when test="contains('.:,;/ ', substring($chopString,$length,1))">
|
||||
<xsl:call-template name="chopPunctuation">
|
||||
<xsl:with-param name="chopString" select="substring($chopString,1,$length - 1)"/>
|
||||
</xsl:call-template>
|
||||
</xsl:when>
|
||||
<xsl:when test="not($chopString)"/>
|
||||
<xsl:otherwise><xsl:value-of select="$chopString"/></xsl:otherwise>
|
||||
</xsl:choose>
|
||||
<xsl:text> </xsl:text>
|
||||
</xsl:template>
|
||||
|
||||
<!-- Function extractControlNumber is used to extract the control number (record number) from MARC tags 773/80/85 [etc.] subfield $w.
|
||||
Parameter: control number string.
|
||||
Assumes LOC convention: (OrgCode)recordNumber.
|
||||
If OrgCode is not present, return full string.
|
||||
Additionally, handle various brackets/parentheses. Chop leading and trailing spaces.
|
||||
Returns the value URI-encoded.
|
||||
-->
|
||||
<xsl:template name="extractControlNumber">
|
||||
<xsl:param name="subfieldW"/>
|
||||
<xsl:variable name="tranW" select="translate($subfieldW,']})>','))))')"/>
|
||||
<xsl:choose>
|
||||
<xsl:when test="contains($tranW,')')">
|
||||
<xsl:value-of select="str:encode-uri(normalize-space(translate(substring-after($tranW,')'),'[]{}()<>','')), true())"/>
|
||||
</xsl:when>
|
||||
<xsl:otherwise>
|
||||
<xsl:value-of select="str:encode-uri(normalize-space($subfieldW), true())"/>
|
||||
</xsl:otherwise>
|
||||
</xsl:choose>
|
||||
</xsl:template>
|
||||
|
||||
<xsl:template name="nameABCDQ">
|
||||
<xsl:call-template name="chopPunctuation">
|
||||
<xsl:with-param name="chopString">
|
||||
<xsl:call-template name="subfieldSelect">
|
||||
<xsl:with-param name="codes">aq</xsl:with-param>
|
||||
</xsl:call-template>
|
||||
</xsl:with-param>
|
||||
<xsl:with-param name="punctuation">
|
||||
<xsl:text>:,;/ </xsl:text>
|
||||
</xsl:with-param>
|
||||
</xsl:call-template>
|
||||
<xsl:call-template name="termsOfAddress"/>
|
||||
</xsl:template>
|
||||
|
||||
<xsl:template name="nameABCDN">
|
||||
<xsl:for-each select="marc:subfield[@code='a']">
|
||||
<xsl:call-template name="chopPunctuation">
|
||||
<xsl:with-param name="chopString" select="."/>
|
||||
</xsl:call-template>
|
||||
</xsl:for-each>
|
||||
<xsl:for-each select="marc:subfield[@code='b']">
|
||||
<xsl:value-of select="."/>
|
||||
</xsl:for-each>
|
||||
<xsl:if test="marc:subfield[@code='c'] or marc:subfield[@code='d'] or marc:subfield[@code='n']">
|
||||
<xsl:call-template name="subfieldSelect">
|
||||
<xsl:with-param name="codes">cdn</xsl:with-param>
|
||||
</xsl:call-template>
|
||||
</xsl:if>
|
||||
</xsl:template>
|
||||
|
||||
<xsl:template name="nameACDEQ">
|
||||
<xsl:call-template name="subfieldSelect">
|
||||
<xsl:with-param name="codes">acdeq</xsl:with-param>
|
||||
</xsl:call-template>
|
||||
</xsl:template>
|
||||
|
||||
<xsl:template name="termsOfAddress">
|
||||
<xsl:if test="marc:subfield[@code='b' or @code='c']">
|
||||
<xsl:call-template name="chopPunctuation">
|
||||
<xsl:with-param name="chopString">
|
||||
<xsl:call-template name="subfieldSelect">
|
||||
<xsl:with-param name="codes">bc</xsl:with-param>
|
||||
</xsl:call-template>
|
||||
</xsl:with-param>
|
||||
</xsl:call-template>
|
||||
</xsl:if>
|
||||
</xsl:template>
|
||||
|
||||
<!-- Function m880Select: Display Alternate Graphic Representation (MARC 880) for selected latin "base"tags
|
||||
- should be called immediately before the corresonding latin tags are processed
|
||||
- tags in right-to-left languages are displayed floating right
|
||||
* Parameter:
|
||||
+ basetags: display these tags if found in linkage section ( subfield 6) of tag 880
|
||||
+ codes: display these subfields codes
|
||||
* Options:
|
||||
- class: wrap output in <span class="$class">...</span>
|
||||
- label: prefix each(!) tag with label $label
|
||||
- bibno: link to biblionumber $bibno
|
||||
- index: build a search link using index $index with subfield $a as key; if subfield $9 is present use index 'an' with key $9 instead.
|
||||
* Limitations:
|
||||
- displays every field on a separate line (to switch between rtl and ltr)
|
||||
* Pitfalls:
|
||||
(!) output might be empty
|
||||
-->
|
||||
<xsl:template name="m880Select">
|
||||
<xsl:param name="basetags"/> <!-- e.g. 100,700,110,710 -->
|
||||
<xsl:param name="codes"/> <!-- e.g. abc -->
|
||||
<xsl:param name="class"/> <!-- e.g. results_summary -->
|
||||
<xsl:param name="label"/> <!-- e.g. Edition -->
|
||||
<xsl:param name="bibno"/>
|
||||
<xsl:param name="index"/> <!-- e.g. au -->
|
||||
|
||||
<xsl:for-each select="marc:datafield[@tag=880]">
|
||||
<xsl:variable name="code6" select="marc:subfield[@code=6]"/>
|
||||
<xsl:if test="contains(string($basetags), substring($code6,1,3))">
|
||||
<span>
|
||||
<xsl:if test="boolean($class)">
|
||||
<xsl:attribute name="class"><xsl:value-of select="$class"/></xsl:attribute>
|
||||
</xsl:if>
|
||||
<xsl:choose>
|
||||
<!-- display right-to-left tags floating right of their left-to-right counterparts -->
|
||||
<xsl:when test="substring($code6,10,2) ='/r'">
|
||||
<xsl:attribute name="style">display:block; text-align:right; float:right; width:50%; padding-left:20px</xsl:attribute>
|
||||
<xsl:attribute name="dir">rtl</xsl:attribute>
|
||||
</xsl:when>
|
||||
<xsl:otherwise>
|
||||
<xsl:attribute name="style">display:block; </xsl:attribute>
|
||||
</xsl:otherwise>
|
||||
</xsl:choose>
|
||||
<xsl:if test="boolean($label)">
|
||||
<span class="label">
|
||||
<xsl:value-of select="$label"/>
|
||||
</span>
|
||||
</xsl:if>
|
||||
<xsl:variable name="str">
|
||||
<xsl:for-each select="marc:subfield">
|
||||
<xsl:if test="contains($codes, @code)">
|
||||
<xsl:value-of select="text()"/>
|
||||
<xsl:text> </xsl:text>
|
||||
</xsl:if>
|
||||
</xsl:for-each>
|
||||
</xsl:variable>
|
||||
<xsl:choose>
|
||||
<xsl:when test="boolean($bibno)">
|
||||
<a>
|
||||
<xsl:attribute name="href">/cgi-bin/koha/opac-detail.pl?biblionumber=<xsl:value-of select="str:encode-uri($bibno, true())"/></xsl:attribute>
|
||||
<xsl:value-of select="$str"/>
|
||||
</a>
|
||||
</xsl:when>
|
||||
<xsl:when test="boolean($index) and boolean(marc:subfield[@code=9])">
|
||||
<a>
|
||||
<xsl:attribute name="href">/cgi-bin/koha/opac-search.pl?q=an:<xsl:value-of select="str:encode-uri(marc:subfield[@code=9], true())"/></xsl:attribute>
|
||||
<xsl:value-of select="$str"/>
|
||||
</a>
|
||||
</xsl:when>
|
||||
<xsl:when test="boolean($index)">
|
||||
<a>
|
||||
<xsl:attribute name="href">/cgi-bin/koha/opac-search.pl?q=<xsl:value-of select="$index"/>:<xsl:value-of select="str:encode-uri(marc:subfield[@code='a'], true())"/></xsl:attribute>
|
||||
<xsl:value-of select="$str"/>
|
||||
</a>
|
||||
</xsl:when>
|
||||
<xsl:otherwise>
|
||||
<xsl:value-of select="$str"/>
|
||||
</xsl:otherwise>
|
||||
</xsl:choose>
|
||||
</span>
|
||||
</xsl:if>
|
||||
</xsl:for-each>
|
||||
|
||||
</xsl:template>
|
||||
|
||||
</xsl:stylesheet>
|
||||
|
||||
<!-- Stylus Studio meta-information - (c)1998-2002 eXcelon Corp.
|
||||
<metaInformation>
|
||||
<scenarios/><MapperInfo srcSchemaPath="" srcSchemaRoot="" srcSchemaPathIsRelative="yes" srcSchemaInterpretAsXML="no" destSchemaPath="" destSchemaRoot="" destSchemaPathIsRelative="yes" destSchemaInterpretAsXML="no"/>
|
||||
</metaInformation>
|
||||
-->
|
|
@ -1,758 +0,0 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
|
||||
<!DOCTYPE stylesheet>
|
||||
|
||||
<!-- $Id: MARC21slim2DC.xsl,v 1.1 2003/01/06 08:20:27 adam Exp $ -->
|
||||
<xsl:stylesheet version="1.0"
|
||||
xmlns:marc="http://www.loc.gov/MARC21/slim"
|
||||
xmlns:items="http://www.koha-community.org/items"
|
||||
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
|
||||
xmlns:str="http://exslt.org/strings"
|
||||
exclude-result-prefixes="marc items str">
|
||||
<xsl:import href="NORMARCslimUtils.xsl"/>
|
||||
<xsl:output method = "html" indent="yes" omit-xml-declaration = "yes" encoding="UTF-8"/>
|
||||
<xsl:template match="/">
|
||||
<xsl:apply-templates/>
|
||||
</xsl:template>
|
||||
|
||||
<xsl:template match="marc:record">
|
||||
|
||||
<!-- Sysprefs -->
|
||||
<xsl:variable name="UseControlNumber" select="marc:sysprefs/marc:syspref[@name='UseControlNumber']"/>
|
||||
<xsl:variable name="SubjectModifier"><xsl:if test="marc:sysprefs/marc:syspref[@name='TraceCompleteSubfields']='1'">,complete-subfield</xsl:if></xsl:variable>
|
||||
<xsl:variable name="TraceSubjectSubdivisions" select="marc:sysprefs/marc:syspref[@name='TraceSubjectSubdivisions']"/>
|
||||
<xsl:variable name="TracingQuotesLeft">
|
||||
<xsl:choose>
|
||||
<xsl:when test="marc:sysprefs/marc:syspref[@name='UseICUStyleQuotes']='1'">{</xsl:when>
|
||||
<xsl:otherwise>"</xsl:otherwise>
|
||||
</xsl:choose>
|
||||
</xsl:variable>
|
||||
<xsl:variable name="TracingQuotesRight">
|
||||
<xsl:choose>
|
||||
<xsl:when test="marc:sysprefs/marc:syspref[@name='UseICUStyleQuotes']='1'">}</xsl:when>
|
||||
<xsl:otherwise>"</xsl:otherwise>
|
||||
</xsl:choose>
|
||||
</xsl:variable>
|
||||
<xsl:variable name="DisplayOPACiconsXSLT" select="marc:sysprefs/marc:syspref[@name='DisplayOPACiconsXSLT']"/>
|
||||
<xsl:variable name="theme" select="marc:sysprefs/marc:syspref[@name='opacthemes']"/>
|
||||
<xsl:variable name="OPACURLOpenInNewWindow" select="marc:sysprefs/marc:syspref[@name='OPACURLOpenInNewWindow']"/>
|
||||
<xsl:variable name="URLLinkText" select="marc:sysprefs/marc:syspref[@name='URLLinkText']"/>
|
||||
<xsl:variable name="Show856uAsImage" select="marc:sysprefs/marc:syspref[@name='OPACDisplay856uAsImage']"/>
|
||||
<xsl:variable name="OPACTrackClicks" select="marc:sysprefs/marc:syspref[@name='TrackClicks']"/>
|
||||
<xsl:variable name="leader" select="marc:leader"/>
|
||||
<xsl:variable name="leader6" select="substring($leader,7,1)"/>
|
||||
<xsl:variable name="leader7" select="substring($leader,8,1)"/>
|
||||
<xsl:variable name="biblionumber" select="marc:datafield[@tag=999]/marc:subfield[@code='c']"/>
|
||||
<xsl:variable name="controlField008" select="marc:controlfield[@tag=008]"/>
|
||||
<xsl:variable name="field019b" select="marc:datafield[@tag=019]/marc:subfield[@code='b']"/>
|
||||
<xsl:variable name="typeOf008">
|
||||
<!-- The logic here should be exactly the same for NORMARCslim2intranetDetail.xsl, NORMARCslim2intranetResults.xsl, NORMARCslim2OPACDetail.xsl and NORMARCslim2OPACResults.xsl -->
|
||||
<xsl:choose>
|
||||
<xsl:when test="$field019b='b' or $field019b='k' or $field019b='l' or $leader6='b'">Mon</xsl:when>
|
||||
<xsl:when test="$field019b='e' or contains($field019b,'ec') or contains($field019b,'ed') or contains($field019b,'ee') or contains($field019b,'ef') or $leader6='g'">FV</xsl:when>
|
||||
<xsl:when test="$field019b='c' or $field019b='d' or contains($field019b,'da') or contains($field019b,'db') or contains($field019b,'dc') or contains($field019b,'dd') or contains($field019b,'dg') or contains($field019b,'dh') or contains($field019b,'di') or contains($field019b,'dj') or contains($field019b,'dk') or $leader6='c' or $leader6='d' or $leader6='i' or $leader6='j'">Mus</xsl:when>
|
||||
<xsl:when test="$field019b='a' or contains($field019b,'ab') or contains($field019b,'aj') or $leader6='e' or $leader6='f'">Kar</xsl:when>
|
||||
<xsl:when test="$field019b='f' or $field019b='i' or contains($field019b,'ib') or contains($field019b,'ic') or contains($field019b,'fd') or contains($field019b,'ff') or contains($field019b,'fi') or $leader6='k'">gra</xsl:when>
|
||||
<xsl:when test="$field019b='g' or contains($field019b,'gb') or contains($field019b,'gd') or contains($field019b,'ge') or $leader6='m'">Fil</xsl:when>
|
||||
<xsl:when test="$leader6='o'">kom</xsl:when>
|
||||
<xsl:when test="$field019b='h' or $leader6='r'">trd</xsl:when>
|
||||
<xsl:when test="$field019b='j' or $leader6='a'">
|
||||
<xsl:choose>
|
||||
<xsl:when test="$leader7='a' or $leader7='c' or $leader7='m' or $leader7='p'">Mon</xsl:when>
|
||||
<xsl:when test="$field019b='j' or $leader7='b' or $leader7='s'">Per</xsl:when>
|
||||
</xsl:choose>
|
||||
</xsl:when>
|
||||
</xsl:choose>
|
||||
</xsl:variable>
|
||||
|
||||
<!-- Tittel og ansvarsopplysninger -->
|
||||
<xsl:if test="marc:datafield[@tag=245]">
|
||||
<h2 class="title">
|
||||
<xsl:for-each select="marc:datafield[@tag=245]">
|
||||
<xsl:call-template name="subfieldSelect">
|
||||
<xsl:with-param name="codes">a</xsl:with-param>
|
||||
</xsl:call-template>
|
||||
<xsl:if test="marc:subfield[@code='h']">
|
||||
<xsl:text> </xsl:text>
|
||||
(<xsl:call-template name="subfieldSelect">
|
||||
<xsl:with-param name="codes">h</xsl:with-param>
|
||||
</xsl:call-template>)
|
||||
</xsl:if>
|
||||
<xsl:if test="marc:subfield[@code='b']">
|
||||
<xsl:text> : </xsl:text>
|
||||
<xsl:call-template name="subfieldSelect">
|
||||
<xsl:with-param name="codes">b</xsl:with-param>
|
||||
</xsl:call-template>
|
||||
</xsl:if>
|
||||
<xsl:text> </xsl:text>
|
||||
<xsl:call-template name="subfieldSelect">
|
||||
<xsl:with-param name="codes">np</xsl:with-param>
|
||||
</xsl:call-template>
|
||||
</xsl:for-each>
|
||||
</h2>
|
||||
</xsl:if>
|
||||
|
||||
<!-- Author Statement -->
|
||||
<!-- 245$9 is Koha authority number -->
|
||||
<xsl:choose>
|
||||
<xsl:when test="marc:datafield[@tag=100] or marc:datafield[@tag=110] or marc:datafield[@tag=111] or marc:datafield[@tag=700] or marc:datafield[@tag=710] or marc:datafield[@tag=711]">
|
||||
<h5 class="author">av
|
||||
<xsl:for-each select="marc:datafield[@tag=100 or @tag=700]">
|
||||
<a>
|
||||
<xsl:choose>
|
||||
<xsl:when test="marc:subfield[@code=9]">
|
||||
<xsl:attribute name="href">/cgi-bin/koha/opac-search.pl?q=an:<xsl:value-of select="str:encode-uri(marc:subfield[@code=9], true())"/></xsl:attribute>
|
||||
</xsl:when>
|
||||
<xsl:otherwise>
|
||||
<xsl:attribute name="href">/cgi-bin/koha/opac-search.pl?q=au:<xsl:value-of select="str:encode-uri(marc:subfield[@code='a'], true())"/></xsl:attribute>
|
||||
</xsl:otherwise>
|
||||
</xsl:choose>
|
||||
<xsl:call-template name="nameABCDQ"/></a>
|
||||
<xsl:if test="marc:subfield[@code=9]">
|
||||
<a class='authlink'>
|
||||
<xsl:attribute name="href">/cgi-bin/koha/opac-authoritiesdetail.pl?authid=<xsl:value-of select="str:encode-uri(marc:subfield[@code=9], true())"/></xsl:attribute>
|
||||
<xsl:element name="img">
|
||||
<xsl:attribute name="src">/opac-tmpl/<xsl:value-of select="$theme"/>/images/filefind.png</xsl:attribute>
|
||||
<xsl:attribute name="style">vertical-align:middle</xsl:attribute>
|
||||
<xsl:attribute name="height">15</xsl:attribute>
|
||||
<xsl:attribute name="width">15</xsl:attribute>
|
||||
</xsl:element>
|
||||
</a>
|
||||
</xsl:if>
|
||||
<xsl:choose>
|
||||
<xsl:when test="position()=last()"><xsl:text>.</xsl:text></xsl:when><xsl:otherwise><xsl:text>; </xsl:text></xsl:otherwise></xsl:choose>
|
||||
</xsl:for-each>
|
||||
|
||||
<xsl:for-each select="marc:datafield[@tag=110 or @tag=710]">
|
||||
<a>
|
||||
<xsl:choose>
|
||||
<xsl:when test="marc:subfield[@code=9]">
|
||||
<xsl:attribute name="href">/cgi-bin/koha/opac-search.pl?q=an:<xsl:value-of select="str:encode-uri(marc:subfield[@code=9], true())"/></xsl:attribute>
|
||||
</xsl:when>
|
||||
<xsl:otherwise>
|
||||
<xsl:attribute name="href">/cgi-bin/koha/opac-search.pl?q=au:<xsl:value-of select="str:encode-uri(marc:subfield[@code='a'], true())"/></xsl:attribute>
|
||||
</xsl:otherwise>
|
||||
</xsl:choose>
|
||||
<xsl:call-template name="nameABCDN"/></a>
|
||||
<xsl:if test="marc:subfield[@code=9]">
|
||||
<a class='authlink'>
|
||||
<xsl:attribute name="href">/cgi-bin/koha/opac-authoritiesdetail.pl?authid=<xsl:value-of select="str:encode-uri(marc:subfield[@code=9], true())"/></xsl:attribute>
|
||||
<xsl:element name="img">
|
||||
<xsl:attribute name="src">/opac-tmpl/<xsl:value-of select="$theme"/>/images/filefind.png</xsl:attribute>
|
||||
<xsl:attribute name="style">vertical-align:middle</xsl:attribute>
|
||||
<xsl:attribute name="height">15</xsl:attribute>
|
||||
<xsl:attribute name="width">15</xsl:attribute>
|
||||
</xsl:element>
|
||||
</a>
|
||||
</xsl:if>
|
||||
<xsl:choose><xsl:when test="position()=last()"><xsl:text>.</xsl:text></xsl:when><xsl:otherwise><xsl:text>; </xsl:text></xsl:otherwise></xsl:choose>
|
||||
</xsl:for-each>
|
||||
|
||||
<xsl:for-each select="marc:datafield[@tag=111 or @tag=711]">
|
||||
<a>
|
||||
<xsl:choose>
|
||||
<xsl:when test="marc:subfield[@code=9]">
|
||||
<xsl:attribute name="href">/cgi-bin/koha/opac-search.pl?q=an:<xsl:value-of select="str:encode-uri(marc:subfield[@code=9], true())"/></xsl:attribute>
|
||||
</xsl:when>
|
||||
<xsl:otherwise>
|
||||
<xsl:attribute name="href">/cgi-bin/koha/opac-search.pl?q=au:<xsl:value-of select="str:encode-uri(marc:subfield[@code='a'], true())"/></xsl:attribute>
|
||||
</xsl:otherwise>
|
||||
</xsl:choose>
|
||||
<xsl:call-template name="nameACDEQ"/></a>
|
||||
<xsl:if test="marc:subfield[@code=9]">
|
||||
<a class='authlink'>
|
||||
<xsl:attribute name="href">/cgi-bin/koha/opac-authoritiesdetail.pl?authid=<xsl:value-of select="str:encode-uri(marc:subfield[@code=9], true())"/></xsl:attribute>
|
||||
<xsl:element name="img">
|
||||
<xsl:attribute name="src">/opac-tmpl/<xsl:value-of select="$theme"/>/images/filefind.png</xsl:attribute>
|
||||
<xsl:attribute name="style">vertical-align:middle</xsl:attribute>
|
||||
<xsl:attribute name="height">15</xsl:attribute>
|
||||
<xsl:attribute name="width">15</xsl:attribute>
|
||||
</xsl:element>
|
||||
</a>
|
||||
</xsl:if>
|
||||
<xsl:choose><xsl:when test="position()=last()"><xsl:text>.</xsl:text></xsl:when><xsl:otherwise><xsl:text>; </xsl:text></xsl:otherwise></xsl:choose>
|
||||
|
||||
</xsl:for-each>
|
||||
</h5>
|
||||
</xsl:when>
|
||||
</xsl:choose>
|
||||
|
||||
<xsl:if test="$DisplayOPACiconsXSLT!='0'">
|
||||
<xsl:if test="$typeOf008!=''">
|
||||
<span class="results_summary">
|
||||
<span class="label">Materialtype: </span>
|
||||
<xsl:choose>
|
||||
<xsl:when test="$typeOf008='Mon'"><img src="/opac-tmpl/lib/famfamfam/BK.png" alt="Bok" title="Bok"/> Bok</xsl:when>
|
||||
<xsl:when test="$typeOf008='Per'"><img src="/opac-tmpl/lib/famfamfam/AR.png" alt="Periodika" title="Periodika"/> Periodika</xsl:when>
|
||||
<xsl:when test="$typeOf008='Fil'"><img src="/opac-tmpl/lib/famfamfam/CF.png" alt="Fil" title="Fil"/> Fil</xsl:when>
|
||||
<xsl:when test="$typeOf008='Kar'"><img src="/opac-tmpl/lib/famfamfam/MP.png" alt="Kart" title="Kart"/> Kart</xsl:when>
|
||||
<xsl:when test="$typeOf008='FV'"><img src="/opac-tmpl/lib/famfamfam/VM.png" alt="Film og video" title="Film og video"/> Film og video</xsl:when>
|
||||
<xsl:when test="$typeOf008='Mus'"><img src="/opac-tmpl/lib/famfamfam/PR.png" alt="Musikktrykk og lydopptak" title="Musikktrykk og lydopptak"/> Musikk</xsl:when>
|
||||
<xsl:when test="$typeOf008='gra'"><img src="/opac-tmpl/lib/famfamfam/GR.png" alt="Grafisk materiale" title="Grafisk materiale"/> Grafisk materiale</xsl:when>
|
||||
<xsl:when test="$typeOf008='kom'"><img src="/opac-tmpl/lib/famfamfam/MX.png" alt="Kombidokumenter" title="Kombidokumenter"/> Kombidokumenter</xsl:when>
|
||||
<xsl:when test="$typeOf008='trd'"><img src="/opac-tmpl/lib/famfamfam/TD.png" alt="Tre-dimensjonale gjenstander" title="Tre-dimensjonale gjenstander"/> Tre-dimensjonale gjenstander</xsl:when>
|
||||
</xsl:choose>
|
||||
</span>
|
||||
</xsl:if>
|
||||
</xsl:if>
|
||||
|
||||
<!--Series -->
|
||||
<xsl:if test="marc:datafield[@tag=440 or @tag=490]">
|
||||
<span class="results_summary"><span class="label">Series: </span>
|
||||
<xsl:for-each select="marc:datafield[@tag=440]">
|
||||
<a>
|
||||
<xsl:attribute name="href">/cgi-bin/koha/opac-search.pl?q=se:<xsl:value-of select="str:encode-uri(marc:subfield[@code='a'], true())"/></xsl:attribute>
|
||||
<xsl:call-template name="chopPunctuation">
|
||||
<xsl:with-param name="chopString">
|
||||
<xsl:call-template name="subfieldSelect">
|
||||
<xsl:with-param name="codes">av</xsl:with-param>
|
||||
</xsl:call-template>
|
||||
</xsl:with-param>
|
||||
</xsl:call-template>
|
||||
</a>
|
||||
<xsl:text> </xsl:text><xsl:call-template name="part"/>
|
||||
<xsl:choose><xsl:when test="position()=last()"><xsl:text>.</xsl:text></xsl:when><xsl:otherwise><xsl:text>; </xsl:text></xsl:otherwise></xsl:choose>
|
||||
</xsl:for-each>
|
||||
|
||||
<xsl:for-each select="marc:datafield[@tag=490][@ind1=0]">
|
||||
<a>
|
||||
<xsl:attribute name="href">/cgi-bin/koha/opac-search.pl?q=se:<xsl:value-of select="str:encode-uri(marc:subfield[@code='a'], true())"/></xsl:attribute>
|
||||
<xsl:call-template name="chopPunctuation">
|
||||
<xsl:with-param name="chopString">
|
||||
<xsl:call-template name="subfieldSelect">
|
||||
<xsl:with-param name="codes">av</xsl:with-param>
|
||||
</xsl:call-template>
|
||||
</xsl:with-param>
|
||||
</xsl:call-template>
|
||||
</a>
|
||||
<xsl:call-template name="part"/>
|
||||
<xsl:choose><xsl:when test="position()=last()"><xsl:text>.</xsl:text></xsl:when><xsl:otherwise><xsl:text>; </xsl:text></xsl:otherwise></xsl:choose>
|
||||
</xsl:for-each>
|
||||
</span>
|
||||
</xsl:if>
|
||||
|
||||
<!-- Analytics -->
|
||||
<xsl:if test="$leader7='s' or $leader7='c'">
|
||||
<span class="results_summary analytics"><span class="label">Analytics: </span>
|
||||
<a>
|
||||
<xsl:choose>
|
||||
<xsl:when test="$UseControlNumber = '1' and marc:controlfield[@tag=001]">
|
||||
<xsl:attribute name="href">/cgi-bin/koha/opac-search.pl?q=rcn:<xsl:value-of select="str:encode-uri(marc:controlfield[@tag=001], true())"/>+and+(bib-level:a+or+bib-level:b)</xsl:attribute>
|
||||
</xsl:when>
|
||||
<xsl:otherwise>
|
||||
<xsl:attribute name="href">/cgi-bin/koha/opac-search.pl?q=Host-item:<xsl:value-of select="str:encode-uri(translate(marc:datafield[@tag=245]/marc:subfield[@code='a'], '/', ''), true())"/></xsl:attribute>
|
||||
</xsl:otherwise>
|
||||
</xsl:choose>
|
||||
<xsl:text>Show analytics</xsl:text>
|
||||
</a>
|
||||
</span>
|
||||
</xsl:if>
|
||||
|
||||
<!-- 773 - Links from child to parent -->
|
||||
<xsl:if test="marc:datafield[@tag=773]">
|
||||
<xsl:for-each select="marc:datafield[@tag=773]">
|
||||
<xsl:if test="@ind1=0">
|
||||
<span class="results_summary in"><span class="label">
|
||||
<xsl:choose>
|
||||
<xsl:when test="@ind2=' '">
|
||||
In:
|
||||
</xsl:when>
|
||||
<xsl:when test="@ind2=8">
|
||||
<xsl:if test="marc:subfield[@code='i']">
|
||||
<xsl:value-of select="marc:subfield[@code='i']"/>
|
||||
</xsl:if>
|
||||
</xsl:when>
|
||||
</xsl:choose>
|
||||
</span>
|
||||
<xsl:variable name="f773">
|
||||
<xsl:call-template name="chopPunctuation"><xsl:with-param name="chopString"><xsl:call-template name="subfieldSelect">
|
||||
<xsl:with-param name="codes">a_t</xsl:with-param>
|
||||
</xsl:call-template></xsl:with-param></xsl:call-template>
|
||||
</xsl:variable>
|
||||
<xsl:choose>
|
||||
<xsl:when test="$UseControlNumber = '1' and marc:subfield[@code='w']">
|
||||
<a><xsl:attribute name="href">/cgi-bin/koha/opac-search.pl?q=Control-number:<xsl:call-template name="extractControlNumber"><xsl:with-param name="subfieldW" select="marc:subfield[@code='w']"/></xsl:call-template></xsl:attribute>
|
||||
<xsl:value-of select="translate($f773, '()', '')"/>
|
||||
</a>
|
||||
<xsl:if test="marc:subfield[@code='g']"><xsl:text> </xsl:text><xsl:value-of select="marc:subfield[@code='g']"/></xsl:if>
|
||||
</xsl:when>
|
||||
<xsl:when test="marc:subfield[@code='0']">
|
||||
<a><xsl:attribute name="href">/cgi-bin/koha/opac-detail.pl?biblionumber=<xsl:value-of select="str:encode-uri(marc:subfield[@code='0'], true())"/></xsl:attribute>
|
||||
<xsl:value-of select="$f773"/>
|
||||
</a>
|
||||
</xsl:when>
|
||||
<xsl:otherwise>
|
||||
<a><xsl:attribute name="href">/cgi-bin/koha/opac-search.pl?q=ti,phr:<xsl:value-of select="str:encode-uri(translate($f773, '()', ''), true())"/></xsl:attribute>
|
||||
<xsl:value-of select="$f773"/>
|
||||
</a>
|
||||
<xsl:if test="marc:subfield[@code='g']"><xsl:text> </xsl:text><xsl:value-of select="marc:subfield[@code='g']"/></xsl:if>
|
||||
</xsl:otherwise>
|
||||
</xsl:choose>
|
||||
</span>
|
||||
<xsl:if test="marc:subfield[@code='n']">
|
||||
<span class="results_summary"><xsl:value-of select="marc:subfield[@code='n']"/></span>
|
||||
</xsl:if>
|
||||
</xsl:if>
|
||||
</xsl:for-each>
|
||||
</xsl:if>
|
||||
|
||||
<!-- Publisher Statement -->
|
||||
|
||||
<xsl:if test="marc:datafield[@tag=260]">
|
||||
<span class="results_summary"><span class="label">Utgiver: </span>
|
||||
<xsl:for-each select="marc:datafield[@tag=260]">
|
||||
<xsl:call-template name="chopPunctuation">
|
||||
<xsl:with-param name="chopString">
|
||||
<xsl:call-template name="subfieldSelect">
|
||||
<xsl:with-param name="codes">bcg</xsl:with-param>
|
||||
</xsl:call-template>
|
||||
</xsl:with-param>
|
||||
</xsl:call-template>
|
||||
<xsl:choose><xsl:when test="position()=last()"><xsl:text>.</xsl:text></xsl:when><xsl:otherwise><xsl:text>; </xsl:text></xsl:otherwise></xsl:choose>
|
||||
</xsl:for-each>
|
||||
</span>
|
||||
</xsl:if>
|
||||
|
||||
<!-- Edition Statement -->
|
||||
|
||||
<xsl:if test="marc:datafield[@tag=250]">
|
||||
<span class="results_summary"><span class="label">Utgave: </span>
|
||||
<xsl:for-each select="marc:datafield[@tag=250]">
|
||||
<xsl:call-template name="chopPunctuation">
|
||||
<xsl:with-param name="chopString">
|
||||
<xsl:call-template name="subfieldSelect">
|
||||
<xsl:with-param name="codes">ab</xsl:with-param>
|
||||
</xsl:call-template>
|
||||
</xsl:with-param>
|
||||
</xsl:call-template>
|
||||
<xsl:choose><xsl:when test="position()=last()"><xsl:text>.</xsl:text></xsl:when><xsl:otherwise><xsl:text>; </xsl:text></xsl:otherwise></xsl:choose>
|
||||
</xsl:for-each>
|
||||
</span>
|
||||
</xsl:if>
|
||||
|
||||
<!-- Description -->
|
||||
|
||||
<xsl:if test="marc:datafield[@tag=300]">
|
||||
<span class="results_summary"><span class="label">Beskrivelse: </span>
|
||||
<xsl:for-each select="marc:datafield[@tag=300]">
|
||||
<xsl:call-template name="chopPunctuation">
|
||||
<xsl:with-param name="chopString">
|
||||
<xsl:call-template name="subfieldSelect">
|
||||
<xsl:with-param name="codes">abceg</xsl:with-param>
|
||||
</xsl:call-template>
|
||||
</xsl:with-param>
|
||||
</xsl:call-template>
|
||||
<xsl:choose><xsl:when test="position()=last()"><xsl:text>.</xsl:text></xsl:when><xsl:otherwise><xsl:text>; </xsl:text></xsl:otherwise></xsl:choose>
|
||||
</xsl:for-each>
|
||||
</span>
|
||||
</xsl:if>
|
||||
|
||||
<abbr class="unapi-id" title="koha:biblionumber:{marc:datafield[@tag=999]/marc:subfield[@code='c']}" ><!-- unAPI --></abbr>
|
||||
|
||||
<!-- Build ISBN -->
|
||||
<xsl:if test="marc:datafield[@tag=020]/marc:subfield[@code='a']">
|
||||
<span class="results_summary isbn"><span class="label">ISBN: </span>
|
||||
<xsl:for-each select="marc:datafield[@tag=020]/marc:subfield[@code='a']">
|
||||
<span property="isbn">
|
||||
<xsl:value-of select="."/>
|
||||
<xsl:choose>
|
||||
<xsl:when test="position()=last()">
|
||||
<xsl:text>.</xsl:text>
|
||||
</xsl:when>
|
||||
<xsl:otherwise>
|
||||
<xsl:text>; </xsl:text>
|
||||
</xsl:otherwise>
|
||||
</xsl:choose>
|
||||
</span>
|
||||
</xsl:for-each>
|
||||
</span>
|
||||
</xsl:if>
|
||||
|
||||
<!-- Build ISSN -->
|
||||
<xsl:if test="marc:datafield[@tag=022]/marc:subfield[@code='a']">
|
||||
<span class="results_summary issn"><span class="label">ISSN: </span>
|
||||
<xsl:for-each select="marc:datafield[@tag=022]/marc:subfield[@code='a']">
|
||||
<span property="issn">
|
||||
<xsl:value-of select="."/>
|
||||
<xsl:choose>
|
||||
<xsl:when test="position()=last()">
|
||||
<xsl:text>.</xsl:text>
|
||||
</xsl:when>
|
||||
<xsl:otherwise>
|
||||
<xsl:text>; </xsl:text>
|
||||
</xsl:otherwise>
|
||||
</xsl:choose>
|
||||
</span>
|
||||
</xsl:for-each>
|
||||
</span>
|
||||
</xsl:if>
|
||||
|
||||
<!-- Other Title Statement -->
|
||||
|
||||
<xsl:if test="marc:datafield[@tag=246]">
|
||||
<span class="results_summary"><span class="label">Parallelltittel: </span>
|
||||
<xsl:for-each select="marc:datafield[@tag=246]">
|
||||
<xsl:call-template name="chopPunctuation">
|
||||
<xsl:with-param name="chopString">
|
||||
<xsl:call-template name="subfieldSelect">
|
||||
<xsl:with-param name="codes">abhfgnp</xsl:with-param>
|
||||
</xsl:call-template>
|
||||
</xsl:with-param>
|
||||
</xsl:call-template>
|
||||
<xsl:choose><xsl:when test="position()=last()"><xsl:text>.</xsl:text></xsl:when><xsl:otherwise><xsl:text>; </xsl:text></xsl:otherwise></xsl:choose>
|
||||
</xsl:for-each>
|
||||
</span>
|
||||
</xsl:if>
|
||||
|
||||
<!-- Uniform Title Statement -->
|
||||
|
||||
<xsl:if test="marc:datafield[@tag=130]|marc:datafield[@tag=240]|marc:datafield[@tag=730][@ind2!=2]">
|
||||
<span class="results_summary"><span class="label">Standardtittel: </span>
|
||||
<xsl:for-each select="marc:datafield[@tag=130]|marc:datafield[@tag=240]|marc:datafield[@tag=730][@ind2!=2]">
|
||||
<xsl:variable name="str">
|
||||
<xsl:for-each select="marc:subfield">
|
||||
<xsl:if test="(contains('adfklmor',@code) and (not(../marc:subfield[@code='n' or @code='p']) or (following-sibling::marc:subfield[@code='n' or @code='p'])))">
|
||||
<xsl:value-of select="text()"/>
|
||||
<xsl:text> </xsl:text>
|
||||
</xsl:if>
|
||||
</xsl:for-each>
|
||||
</xsl:variable>
|
||||
<xsl:call-template name="chopPunctuation">
|
||||
<xsl:with-param name="chopString">
|
||||
<xsl:value-of select="substring($str,1,string-length($str)-1)"/>
|
||||
|
||||
</xsl:with-param>
|
||||
</xsl:call-template>
|
||||
<xsl:choose><xsl:when test="position()=last()"><xsl:text>.</xsl:text></xsl:when><xsl:otherwise><xsl:text>; </xsl:text></xsl:otherwise></xsl:choose>
|
||||
</xsl:for-each>
|
||||
</span>
|
||||
</xsl:if>
|
||||
|
||||
<!-- Subjects -->
|
||||
|
||||
<xsl:if test="marc:datafield[substring(@tag, 1, 1) = '6']">
|
||||
<span class="results_summary subjects"><span class="label">Emne(r): </span>
|
||||
<xsl:for-each select="marc:datafield[substring(@tag, 1, 1) = '6']">
|
||||
<a>
|
||||
<xsl:choose>
|
||||
<!-- Will implement this later
|
||||
<xsl:when test="marc:subfield[@code=9] and $UseAuthoritiesForTracings='1'">
|
||||
<xsl:attribute name="href">/cgi-bin/koha/opac-search.pl?q=an:<xsl:value-of select="str:encode-uri(marc:subfield[@code=9], true())"/></xsl:attribute>
|
||||
</xsl:when>
|
||||
-->
|
||||
<xsl:when test="$TraceSubjectSubdivisions='1'">
|
||||
<xsl:attribute name="href">/cgi-bin/koha/opac-search.pl?q=<xsl:call-template name="subfieldSelect">
|
||||
<xsl:with-param name="codes">abcdvxyz</xsl:with-param>
|
||||
<xsl:with-param name="delimeter"> AND </xsl:with-param>
|
||||
<xsl:with-param name="prefix">(su<xsl:value-of select="$SubjectModifier"/>:<xsl:value-of select="$TracingQuotesLeft"/></xsl:with-param>
|
||||
<xsl:with-param name="suffix"><xsl:value-of select="$TracingQuotesRight"/>)</xsl:with-param>
|
||||
</xsl:call-template>
|
||||
</xsl:attribute>
|
||||
</xsl:when>
|
||||
<xsl:otherwise>
|
||||
<xsl:attribute name="href">/cgi-bin/koha/opac-search.pl?q=su<xsl:value-of select="$SubjectModifier"/>:<xsl:value-of select="$TracingQuotesLeft"/><xsl:value-of select="str:encode-uri(marc:subfield[@code='a'], true())"/><xsl:value-of select="$TracingQuotesRight"/></xsl:attribute>
|
||||
</xsl:otherwise>
|
||||
</xsl:choose>
|
||||
<xsl:call-template name="chopPunctuation">
|
||||
<xsl:with-param name="chopString">
|
||||
<xsl:call-template name="subfieldSelect">
|
||||
<xsl:with-param name="codes">abcdvxyz</xsl:with-param>
|
||||
<xsl:with-param name="subdivCodes">vxyz</xsl:with-param>
|
||||
<xsl:with-param name="subdivDelimiter">-- </xsl:with-param>
|
||||
</xsl:call-template>
|
||||
</xsl:with-param>
|
||||
</xsl:call-template>
|
||||
</a>
|
||||
<xsl:if test="marc:subfield[@code=9]">
|
||||
<a class='authlink'>
|
||||
<xsl:attribute name="href">/cgi-bin/koha/opac-authoritiesdetail.pl?authid=<xsl:value-of select="str:encode-uri(marc:subfield[@code=9], true())"/></xsl:attribute>
|
||||
<xsl:element name="img">
|
||||
<xsl:attribute name="src">/opac-tmpl/<xsl:value-of select="$theme"/>/images/filefind.png</xsl:attribute>
|
||||
<xsl:attribute name="style">vertical-align:middle</xsl:attribute>
|
||||
<xsl:attribute name="height">15</xsl:attribute>
|
||||
<xsl:attribute name="width">15</xsl:attribute>
|
||||
</xsl:element>
|
||||
</a>
|
||||
</xsl:if>
|
||||
<xsl:choose>
|
||||
<xsl:when test="position()=last()"></xsl:when>
|
||||
<xsl:otherwise> | </xsl:otherwise>
|
||||
</xsl:choose>
|
||||
|
||||
</xsl:for-each>
|
||||
</span>
|
||||
</xsl:if>
|
||||
|
||||
<!-- Image processing code added here, takes precedence over text links including y3z text -->
|
||||
<xsl:if test="marc:datafield[@tag=856]">
|
||||
<span class="results_summary online_resources"><span class="label">Online resources: </span>
|
||||
<xsl:for-each select="marc:datafield[@tag=856]">
|
||||
<xsl:variable name="SubqText"><xsl:value-of select="marc:subfield[@code='q']"/></xsl:variable>
|
||||
<a property="url">
|
||||
<xsl:choose>
|
||||
<xsl:when test="$OPACTrackClicks='track'">
|
||||
<xsl:attribute name="href">/cgi-bin/koha/tracklinks.pl?uri=<xsl:value-of select="str:encode-uri(marc:subfield[@code='u'], true())"/>&biblionumber=<xsl:value-of select="$biblionumber"/></xsl:attribute>
|
||||
</xsl:when>
|
||||
<xsl:when test="$OPACTrackClicks='anonymous'">
|
||||
<xsl:attribute name="href">/cgi-bin/koha/tracklinks.pl?uri=<xsl:value-of select="str:encode-uri(marc:subfield[@code='u'], true())"/>&biblionumber=<xsl:value-of select="$biblionumber"/></xsl:attribute>
|
||||
</xsl:when>
|
||||
<xsl:otherwise>
|
||||
<xsl:attribute name="href"><xsl:value-of select="marc:subfield[@code='u']"/></xsl:attribute>
|
||||
</xsl:otherwise>
|
||||
</xsl:choose>
|
||||
<xsl:if test="$OPACURLOpenInNewWindow='1'">
|
||||
<xsl:attribute name="target">_blank</xsl:attribute>
|
||||
</xsl:if>
|
||||
<xsl:choose>
|
||||
<xsl:when test="($Show856uAsImage='Details' or $Show856uAsImage='Both') and (substring($SubqText,1,6)='image/' or $SubqText='img' or $SubqText='bmp' or $SubqText='cod' or $SubqText='gif' or $SubqText='ief' or $SubqText='jpe' or $SubqText='jpeg' or $SubqText='jpg' or $SubqText='jfif' or $SubqText='png' or $SubqText='svg' or $SubqText='tif' or $SubqText='tiff' or $SubqText='ras' or $SubqText='cmx' or $SubqText='ico' or $SubqText='pnm' or $SubqText='pbm' or $SubqText='pgm' or $SubqText='ppm' or $SubqText='rgb' or $SubqText='xbm' or $SubqText='xpm' or $SubqText='xwd')">
|
||||
<xsl:element name="img"><xsl:attribute name="src"><xsl:value-of select="marc:subfield[@code='u']"/></xsl:attribute><xsl:attribute name="alt"><xsl:value-of select="marc:subfield[@code='y']"/></xsl:attribute><xsl:attribute name="style">height:100px</xsl:attribute></xsl:element><xsl:text></xsl:text>
|
||||
</xsl:when>
|
||||
<xsl:when test="marc:subfield[@code='y' or @code='3' or @code='z']">
|
||||
<xsl:call-template name="subfieldSelect">
|
||||
<xsl:with-param name="codes">y3z</xsl:with-param>
|
||||
</xsl:call-template>
|
||||
</xsl:when>
|
||||
<xsl:when test="$URLLinkText!=''">
|
||||
<xsl:value-of select="$URLLinkText"/>
|
||||
</xsl:when>
|
||||
<xsl:otherwise>
|
||||
<xsl:text>Click here to access online</xsl:text>
|
||||
</xsl:otherwise>
|
||||
</xsl:choose>
|
||||
</a>
|
||||
<xsl:choose>
|
||||
<xsl:when test="position()=last()"><xsl:text> </xsl:text></xsl:when>
|
||||
<xsl:otherwise> | </xsl:otherwise>
|
||||
</xsl:choose>
|
||||
</xsl:for-each>
|
||||
</span>
|
||||
</xsl:if>
|
||||
|
||||
<!-- NORMARC does not define indicators for 505
|
||||
<xsl:if test="marc:datafield[@tag=505]">
|
||||
<xsl:for-each select="marc:datafield[@tag=505]">
|
||||
<span class="results_summary"><span class="label">
|
||||
<xsl:choose>
|
||||
<xsl:when test="@ind1=0">
|
||||
Contents:
|
||||
</xsl:when>
|
||||
<xsl:when test="@ind1=1">
|
||||
Incomplete contents:
|
||||
</xsl:when>
|
||||
<xsl:when test="@ind1=1">
|
||||
Partial contents:
|
||||
</xsl:when>
|
||||
</xsl:choose>
|
||||
</span>
|
||||
<xsl:choose>
|
||||
<xsl:when test="@ind2=0">
|
||||
<xsl:for-each select="marc:subfield[@code='t']">
|
||||
<xsl:value-of select="marc:subfield[@code=t]"/> <xsl:value-of select="marc:subfield[@code=r]"/>
|
||||
</xsl:for-each>
|
||||
</xsl:when>
|
||||
<xsl:otherwise>
|
||||
<xsl:call-template name="subfieldSelect">
|
||||
<xsl:with-param name="codes">au</xsl:with-param>
|
||||
</xsl:call-template>
|
||||
</xsl:otherwise>
|
||||
</xsl:choose>
|
||||
</span>
|
||||
</xsl:for-each>
|
||||
</xsl:if>
|
||||
-->
|
||||
<xsl:if test="marc:datafield[@tag=505]">
|
||||
<xsl:call-template name="subfieldSelect">
|
||||
<xsl:with-param name="codes">a</xsl:with-param>
|
||||
</xsl:call-template>
|
||||
</xsl:if>
|
||||
|
||||
<!-- 780 -->
|
||||
<xsl:if test="marc:datafield[@tag=780]">
|
||||
<xsl:for-each select="marc:datafield[@tag=780]">
|
||||
<span class="results_summary"><span class="label">
|
||||
<xsl:choose>
|
||||
<xsl:when test="@ind2=0">
|
||||
Fortsettelse av:
|
||||
</xsl:when>
|
||||
<xsl:when test="@ind2=1">
|
||||
Delvis fortsettelse av:
|
||||
</xsl:when>
|
||||
<xsl:when test="@ind2=2">
|
||||
Avløser:
|
||||
</xsl:when>
|
||||
<xsl:when test="@ind2=3">
|
||||
Avløser delvis:
|
||||
</xsl:when>
|
||||
<xsl:when test="@ind2=4">
|
||||
Sammenslåing av: ... ; og ...
|
||||
</xsl:when>
|
||||
<xsl:when test="@ind2=5">
|
||||
Har tatt opp:
|
||||
</xsl:when>
|
||||
<xsl:when test="@ind2=6">
|
||||
Har delvis tatt opp:
|
||||
</xsl:when>
|
||||
<xsl:when test="@ind2=7">
|
||||
Utskilt fra:
|
||||
</xsl:when>
|
||||
</xsl:choose>
|
||||
</span>
|
||||
<xsl:variable name="f780">
|
||||
<xsl:call-template name="subfieldSelect">
|
||||
<xsl:with-param name="codes">a_t</xsl:with-param>
|
||||
</xsl:call-template>
|
||||
</xsl:variable>
|
||||
<a><xsl:attribute name="href">/cgi-bin/koha/opac-search.pl?q=<xsl:value-of select="str:encode-uri(translate($f780, '()', ''), true())"/></xsl:attribute>
|
||||
<xsl:value-of select="translate($f780, '()', '')"/>
|
||||
</a>
|
||||
</span>
|
||||
|
||||
<xsl:choose>
|
||||
<xsl:when test="@ind1=0">
|
||||
<span class="results_summary"><xsl:value-of select="marc:subfield[@code='n']"/></span>
|
||||
</xsl:when>
|
||||
</xsl:choose>
|
||||
|
||||
</xsl:for-each>
|
||||
</xsl:if>
|
||||
|
||||
<!-- 785 -->
|
||||
<xsl:if test="marc:datafield[@tag=785]">
|
||||
<xsl:for-each select="marc:datafield[@tag=785]">
|
||||
<span class="results_summary"><span class="label">
|
||||
<xsl:choose>
|
||||
<xsl:when test="@ind2=0">
|
||||
Fortsettelse i:
|
||||
</xsl:when>
|
||||
<xsl:when test="@ind2=1">
|
||||
Fortsettes delvis i:
|
||||
</xsl:when>
|
||||
<xsl:when test="@ind2=2">
|
||||
Avløst av:
|
||||
</xsl:when>
|
||||
<xsl:when test="@ind2=3">
|
||||
Delvsi avløst av:
|
||||
</xsl:when>
|
||||
<xsl:when test="@ind2=4">
|
||||
Gått inn i:
|
||||
</xsl:when>
|
||||
<xsl:when test="@ind2=5">
|
||||
Delvis gått inn i:
|
||||
</xsl:when>
|
||||
<xsl:when test="@ind2=6">
|
||||
Fortsettes av: ...; og ...
|
||||
</xsl:when>
|
||||
<xsl:when test="@ind2=7">
|
||||
Slått sammen med: .., til: ...
|
||||
</xsl:when>
|
||||
</xsl:choose>
|
||||
</span>
|
||||
<xsl:variable name="f785">
|
||||
<xsl:call-template name="subfieldSelect">
|
||||
<xsl:with-param name="codes">a_t</xsl:with-param>
|
||||
</xsl:call-template>
|
||||
</xsl:variable>
|
||||
|
||||
<a><xsl:attribute name="href">/cgi-bin/koha/opac-search.pl?q=<xsl:value-of select="str:encode-uri(translate($f785, '()', ''), true())"/></xsl:attribute>
|
||||
<xsl:value-of select="translate($f785, '()', '')"/>
|
||||
</a>
|
||||
|
||||
</span>
|
||||
</xsl:for-each>
|
||||
</xsl:if>
|
||||
|
||||
<xsl:variable name="OPACShowMusicalInscripts" select="marc:sysprefs/marc:syspref[@name='OPACShowMusicalInscripts']" />
|
||||
<xsl:variable name="OPACPlayMusicalInscripts" select="marc:sysprefs/marc:syspref[@name='OPACPlayMusicalInscripts']" />
|
||||
|
||||
<xsl:if test="$OPACShowMusicalInscripts and marc:datafield[@tag=031]">
|
||||
<xsl:for-each select="marc:datafield[@tag=031]">
|
||||
|
||||
<span class="results_summary musical_inscripts">
|
||||
<xsl:if test="marc:subfield[@code='u']">
|
||||
<span class="uri">
|
||||
<a>
|
||||
<xsl:attribute name="href">
|
||||
<xsl:value-of select="marc:subfield[@code='u']"/>
|
||||
</xsl:attribute>
|
||||
<xsl:text>Audio file</xsl:text>
|
||||
</a>
|
||||
</span>
|
||||
</xsl:if>
|
||||
<xsl:if test="marc:subfield[@code='2'] and marc:subfield[@code='2']/text() = 'pe' and marc:subfield[@code='g'] and marc:subfield[@code='n'] and marc:subfield[@code='o'] and marc:subfield[@code='p']">
|
||||
<div class="inscript" data-system="pae">
|
||||
<xsl:attribute name="data-clef">
|
||||
<xsl:value-of select="marc:subfield[@code='g']"/>
|
||||
</xsl:attribute>
|
||||
<xsl:attribute name="data-keysig">
|
||||
<xsl:value-of select="marc:subfield[@code='n']"/>
|
||||
</xsl:attribute>
|
||||
<xsl:attribute name="data-timesig">
|
||||
<xsl:value-of select="marc:subfield[@code='o']"/>
|
||||
</xsl:attribute>
|
||||
<xsl:attribute name="data-notation">
|
||||
<xsl:value-of select="marc:subfield[@code='p']"/>
|
||||
</xsl:attribute>
|
||||
</div>
|
||||
<xsl:if test="$OPACPlayMusicalInscripts = 1">
|
||||
<div class="audio_controls">
|
||||
<button class="btn play_btn">
|
||||
<i id="carticon" class="fa fa-play"></i>
|
||||
<xsl:text> Play this sample</xsl:text>
|
||||
</button>
|
||||
</div>
|
||||
</xsl:if>
|
||||
</xsl:if>
|
||||
</span>
|
||||
</xsl:for-each>
|
||||
<xsl:if test="$OPACPlayMusicalInscripts = 1">
|
||||
<div class="results_summary">
|
||||
<span class="inscript_audio hide"></span>
|
||||
</div>
|
||||
</xsl:if>
|
||||
</xsl:if>
|
||||
|
||||
</xsl:template>
|
||||
|
||||
<xsl:template name="part">
|
||||
<xsl:variable name="partNumber">
|
||||
<xsl:call-template name="specialSubfieldSelect">
|
||||
<xsl:with-param name="axis">n</xsl:with-param>
|
||||
<xsl:with-param name="anyCodes">n</xsl:with-param>
|
||||
<xsl:with-param name="afterCodes">fghkdlmor</xsl:with-param>
|
||||
</xsl:call-template>
|
||||
</xsl:variable>
|
||||
<xsl:variable name="partName">
|
||||
<xsl:call-template name="specialSubfieldSelect">
|
||||
<xsl:with-param name="axis">p</xsl:with-param>
|
||||
<xsl:with-param name="anyCodes">p</xsl:with-param>
|
||||
<xsl:with-param name="afterCodes">fghkdlmor</xsl:with-param>
|
||||
</xsl:call-template>
|
||||
</xsl:variable>
|
||||
<xsl:if test="string-length(normalize-space($partNumber))">
|
||||
<xsl:call-template name="chopPunctuation">
|
||||
<xsl:with-param name="chopString" select="$partNumber"/>
|
||||
</xsl:call-template>
|
||||
</xsl:if>
|
||||
<xsl:if test="string-length(normalize-space($partName))">
|
||||
<xsl:call-template name="chopPunctuation">
|
||||
<xsl:with-param name="chopString" select="$partName"/>
|
||||
</xsl:call-template>
|
||||
</xsl:if>
|
||||
</xsl:template>
|
||||
|
||||
<xsl:template name="specialSubfieldSelect">
|
||||
<xsl:param name="anyCodes"/>
|
||||
<xsl:param name="axis"/>
|
||||
<xsl:param name="beforeCodes"/>
|
||||
<xsl:param name="afterCodes"/>
|
||||
<xsl:variable name="str">
|
||||
<xsl:for-each select="marc:subfield">
|
||||
<xsl:if test="contains($anyCodes, @code) or (contains($beforeCodes,@code) and following-sibling::marc:subfield[@code=$axis]) or (contains($afterCodes,@code) and preceding-sibling::marc:subfield[@code=$axis])">
|
||||
<xsl:value-of select="text()"/>
|
||||
<xsl:text> </xsl:text>
|
||||
</xsl:if>
|
||||
</xsl:for-each>
|
||||
</xsl:variable>
|
||||
<xsl:value-of select="substring($str,1,string-length($str)-1)"/>
|
||||
</xsl:template>
|
||||
</xsl:stylesheet>
|
File diff suppressed because it is too large
Load diff
|
@ -1,260 +0,0 @@
|
|||
<?xml version='1.0'?>
|
||||
<!DOCTYPE stylesheet>
|
||||
<xsl:stylesheet version="1.0"
|
||||
xmlns:marc="http://www.loc.gov/MARC21/slim"
|
||||
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
|
||||
xmlns:str="http://exslt.org/strings"
|
||||
exclude-result-prefixes="str">
|
||||
<xsl:template name="datafield">
|
||||
<xsl:param name="tag"/>
|
||||
<xsl:param name="ind1"><xsl:text> </xsl:text></xsl:param>
|
||||
<xsl:param name="ind2"><xsl:text> </xsl:text></xsl:param>
|
||||
<xsl:param name="subfields"/>
|
||||
<xsl:element name="datafield">
|
||||
<xsl:attribute name="tag">
|
||||
<xsl:value-of select="$tag"/>
|
||||
</xsl:attribute>
|
||||
<xsl:attribute name="ind1">
|
||||
<xsl:value-of select="$ind1"/>
|
||||
</xsl:attribute>
|
||||
<xsl:attribute name="ind2">
|
||||
<xsl:value-of select="$ind2"/>
|
||||
</xsl:attribute>
|
||||
<xsl:copy-of select="$subfields"/>
|
||||
</xsl:element>
|
||||
</xsl:template>
|
||||
|
||||
<xsl:template name="subfieldSelect">
|
||||
<xsl:param name="codes"/>
|
||||
<xsl:param name="delimeter"><xsl:text> </xsl:text></xsl:param>
|
||||
<xsl:param name="subdivCodes"/>
|
||||
<xsl:param name="subdivDelimiter"/>
|
||||
<xsl:param name="prefix"/>
|
||||
<xsl:param name="suffix"/>
|
||||
<xsl:param name="urlencode"/>
|
||||
<xsl:variable name="str">
|
||||
<xsl:for-each select="marc:subfield">
|
||||
<xsl:if test="contains($codes, @code)">
|
||||
<xsl:if test="contains($subdivCodes, @code)">
|
||||
<xsl:value-of select="$subdivDelimiter"/>
|
||||
</xsl:if>
|
||||
<xsl:value-of select="$prefix"/><xsl:value-of select="text()"/><xsl:value-of select="$suffix"/><xsl:value-of select="$delimeter"/>
|
||||
</xsl:if>
|
||||
</xsl:for-each>
|
||||
</xsl:variable>
|
||||
<xsl:choose>
|
||||
<xsl:when test="$urlencode=1">
|
||||
<xsl:value-of select="str:encode-uri(substring($str,1,string-length($str)-string-length($delimeter)), true())"/>
|
||||
</xsl:when>
|
||||
<xsl:otherwise>
|
||||
<xsl:value-of select="substring($str,1,string-length($str)-string-length($delimeter))"/>
|
||||
</xsl:otherwise>
|
||||
</xsl:choose>
|
||||
</xsl:template>
|
||||
|
||||
<xsl:template name="buildSpaces">
|
||||
<xsl:param name="spaces"/>
|
||||
<xsl:param name="char"><xsl:text> </xsl:text></xsl:param>
|
||||
<xsl:if test="$spaces>0">
|
||||
<xsl:value-of select="$char"/>
|
||||
<xsl:call-template name="buildSpaces">
|
||||
<xsl:with-param name="spaces" select="$spaces - 1"/>
|
||||
<xsl:with-param name="char" select="$char"/>
|
||||
</xsl:call-template>
|
||||
</xsl:if>
|
||||
</xsl:template>
|
||||
|
||||
<xsl:template name="buildBiblioDefaultViewURL">
|
||||
<xsl:param name="BiblioDefaultView"/>
|
||||
<xsl:choose>
|
||||
<xsl:when test="$BiblioDefaultView='normal'">
|
||||
<xsl:text>/cgi-bin/koha/opac-detail.pl?biblionumber=</xsl:text>
|
||||
</xsl:when>
|
||||
<xsl:when test="$BiblioDefaultView='isbd'">
|
||||
<xsl:text>/cgi-bin/koha/opac-ISBDdetail.pl?biblionumber=</xsl:text>
|
||||
</xsl:when>
|
||||
<xsl:when test="$BiblioDefaultView='marc'">
|
||||
<xsl:text>/cgi-bin/koha/opac-MARCdetail.pl?biblionumber=</xsl:text>
|
||||
</xsl:when>
|
||||
<xsl:otherwise>
|
||||
<xsl:text>/cgi-bin/koha/opac-detail.pl?biblionumber=</xsl:text>
|
||||
</xsl:otherwise>
|
||||
</xsl:choose>
|
||||
</xsl:template>
|
||||
|
||||
<xsl:template name="chopPunctuation">
|
||||
<xsl:param name="chopString"/>
|
||||
<xsl:variable name="length" select="string-length($chopString)"/>
|
||||
<xsl:choose>
|
||||
<xsl:when test="$length=0"/>
|
||||
<xsl:when test="contains('.:,;/ ', substring($chopString,$length,1))">
|
||||
<xsl:call-template name="chopPunctuation">
|
||||
<xsl:with-param name="chopString" select="substring($chopString,1,$length - 1)"/>
|
||||
</xsl:call-template>
|
||||
</xsl:when>
|
||||
<xsl:when test="not($chopString)"/>
|
||||
<xsl:otherwise><xsl:value-of select="$chopString"/></xsl:otherwise>
|
||||
</xsl:choose>
|
||||
<xsl:text> </xsl:text>
|
||||
</xsl:template>
|
||||
|
||||
<!-- Function extractControlNumber is used to extract the control number (record number) from MARC tags 773/80/85 [etc.] subfield $w.
|
||||
Parameter: control number string.
|
||||
Assumes LOC convention: (OrgCode)recordNumber.
|
||||
If OrgCode is not present, return full string.
|
||||
Additionally, handle various brackets/parentheses. Chop leading and trailing spaces.
|
||||
Returns the value URI-encoded.
|
||||
-->
|
||||
<xsl:template name="extractControlNumber">
|
||||
<xsl:param name="subfieldW"/>
|
||||
<xsl:variable name="tranW" select="translate($subfieldW,']})>','))))')"/>
|
||||
<xsl:choose>
|
||||
<xsl:when test="contains($tranW,')')">
|
||||
<xsl:value-of select="str:encode-uri(normalize-space(translate(substring-after($tranW,')'),'[]{}()<>','')), true())"/>
|
||||
</xsl:when>
|
||||
<xsl:otherwise>
|
||||
<xsl:value-of select="str:encode-uri(normalize-space($subfieldW), true())"/>
|
||||
</xsl:otherwise>
|
||||
</xsl:choose>
|
||||
</xsl:template>
|
||||
|
||||
<xsl:template name="nameABCDQ">
|
||||
<xsl:call-template name="chopPunctuation">
|
||||
<xsl:with-param name="chopString">
|
||||
<xsl:call-template name="subfieldSelect">
|
||||
<xsl:with-param name="codes">aq</xsl:with-param>
|
||||
</xsl:call-template>
|
||||
</xsl:with-param>
|
||||
<xsl:with-param name="punctuation">
|
||||
<xsl:text>:,;/ </xsl:text>
|
||||
</xsl:with-param>
|
||||
</xsl:call-template>
|
||||
<xsl:call-template name="termsOfAddress"/>
|
||||
</xsl:template>
|
||||
|
||||
<xsl:template name="nameABCDN">
|
||||
<xsl:for-each select="marc:subfield[@code='a']">
|
||||
<xsl:call-template name="chopPunctuation">
|
||||
<xsl:with-param name="chopString" select="."/>
|
||||
</xsl:call-template>
|
||||
</xsl:for-each>
|
||||
<xsl:for-each select="marc:subfield[@code='b']">
|
||||
<xsl:value-of select="."/>
|
||||
</xsl:for-each>
|
||||
<xsl:if test="marc:subfield[@code='c'] or marc:subfield[@code='d'] or marc:subfield[@code='n']">
|
||||
<xsl:call-template name="subfieldSelect">
|
||||
<xsl:with-param name="codes">cdn</xsl:with-param>
|
||||
</xsl:call-template>
|
||||
</xsl:if>
|
||||
</xsl:template>
|
||||
|
||||
<xsl:template name="nameACDEQ">
|
||||
<xsl:call-template name="subfieldSelect">
|
||||
<xsl:with-param name="codes">acdeq</xsl:with-param>
|
||||
</xsl:call-template>
|
||||
</xsl:template>
|
||||
|
||||
<xsl:template name="termsOfAddress">
|
||||
<xsl:if test="marc:subfield[@code='b' or @code='c']">
|
||||
<xsl:call-template name="chopPunctuation">
|
||||
<xsl:with-param name="chopString">
|
||||
<xsl:call-template name="subfieldSelect">
|
||||
<xsl:with-param name="codes">bc</xsl:with-param>
|
||||
</xsl:call-template>
|
||||
</xsl:with-param>
|
||||
</xsl:call-template>
|
||||
</xsl:if>
|
||||
</xsl:template>
|
||||
|
||||
<!-- Function m880Select: Display Alternate Graphic Representation (MARC 880) for selected latin "base"tags
|
||||
- should be called immediately before the corresonding latin tags are processed
|
||||
- tags in right-to-left languages are displayed floating right
|
||||
* Parameter:
|
||||
+ basetags: display these tags if found in linkage section ( subfield 6) of tag 880
|
||||
+ codes: display these subfields codes
|
||||
* Options:
|
||||
- class: wrap output in <span class="$class">...</span>
|
||||
- label: prefix each(!) tag with label $label
|
||||
- bibno: link to biblionumber $bibno
|
||||
- index: build a search link using index $index with subfield $a as key; if subfield $9 is present use index 'an' with key $9 instead.
|
||||
* Limitations:
|
||||
- displays every field on a separate line (to switch between rtl and ltr)
|
||||
* Pitfalls:
|
||||
(!) output might be empty
|
||||
-->
|
||||
<xsl:template name="m880Select">
|
||||
<xsl:param name="basetags"/> <!-- e.g. 100,700,110,710 -->
|
||||
<xsl:param name="codes"/> <!-- e.g. abc -->
|
||||
<xsl:param name="class"/> <!-- e.g. results_summary -->
|
||||
<xsl:param name="label"/> <!-- e.g. Edition -->
|
||||
<xsl:param name="bibno"/>
|
||||
<xsl:param name="index"/> <!-- e.g. au -->
|
||||
|
||||
<xsl:for-each select="marc:datafield[@tag=880]">
|
||||
<xsl:variable name="code6" select="marc:subfield[@code=6]"/>
|
||||
<xsl:if test="contains(string($basetags), substring($code6,1,3))">
|
||||
<span>
|
||||
<xsl:if test="boolean($class)">
|
||||
<xsl:attribute name="class"><xsl:value-of select="$class"/></xsl:attribute>
|
||||
</xsl:if>
|
||||
<xsl:choose>
|
||||
<!-- display right-to-left tags floating right of their left-to-right counterparts -->
|
||||
<xsl:when test="substring($code6,10,2) ='/r'">
|
||||
<xsl:attribute name="style">display:block; text-align:right; float:right; width:50%; padding-left:20px</xsl:attribute>
|
||||
<xsl:attribute name="dir">rtl</xsl:attribute>
|
||||
</xsl:when>
|
||||
<xsl:otherwise>
|
||||
<xsl:attribute name="style">display:block; </xsl:attribute>
|
||||
</xsl:otherwise>
|
||||
</xsl:choose>
|
||||
<xsl:if test="boolean($label)">
|
||||
<span class="label">
|
||||
<xsl:value-of select="$label"/>
|
||||
</span>
|
||||
</xsl:if>
|
||||
<xsl:variable name="str">
|
||||
<xsl:for-each select="marc:subfield">
|
||||
<xsl:if test="contains($codes, @code)">
|
||||
<xsl:value-of select="text()"/>
|
||||
<xsl:text> </xsl:text>
|
||||
</xsl:if>
|
||||
</xsl:for-each>
|
||||
</xsl:variable>
|
||||
<xsl:if test="string-length($str) > 0">
|
||||
<xsl:choose>
|
||||
<xsl:when test="boolean($bibno)">
|
||||
<a>
|
||||
<xsl:attribute name="href">/cgi-bin/koha/opac-detail.pl?biblionumber=<xsl:value-of select="str:encode-uri($bibno, true())"/></xsl:attribute>
|
||||
<xsl:value-of select="$str"/>
|
||||
</a>
|
||||
</xsl:when>
|
||||
<xsl:when test="boolean($index) and boolean(marc:subfield[@code=9])">
|
||||
<a>
|
||||
<xsl:attribute name="href">/cgi-bin/koha/opac-search.pl?q=an:<xsl:value-of select="str:encode-uri(marc:subfield[@code=9], true())"/></xsl:attribute>
|
||||
<xsl:value-of select="$str"/>
|
||||
</a>
|
||||
</xsl:when>
|
||||
<xsl:when test="boolean($index)">
|
||||
<a>
|
||||
<xsl:attribute name="href">/cgi-bin/koha/opac-search.pl?q=<xsl:value-of select="$index"/>:<xsl:value-of select="str:encode-uri(marc:subfield[@code='a'], true())"/></xsl:attribute>
|
||||
<xsl:value-of select="$str"/>
|
||||
</a>
|
||||
</xsl:when>
|
||||
<xsl:otherwise>
|
||||
<xsl:value-of select="$str"/>
|
||||
</xsl:otherwise>
|
||||
</xsl:choose>
|
||||
</xsl:if>
|
||||
</span>
|
||||
</xsl:if>
|
||||
</xsl:for-each>
|
||||
|
||||
</xsl:template>
|
||||
|
||||
</xsl:stylesheet>
|
||||
|
||||
<!-- Stylus Studio meta-information - (c)1998-2002 eXcelon Corp.
|
||||
<metaInformation>
|
||||
<scenarios/><MapperInfo srcSchemaPath="" srcSchemaRoot="" srcSchemaPathIsRelative="yes" srcSchemaInterpretAsXML="no" destSchemaPath="" destSchemaRoot="" destSchemaPathIsRelative="yes" destSchemaInterpretAsXML="no"/>
|
||||
</metaInformation>
|
||||
-->
|
|
@ -37,7 +37,7 @@ Export search_marc_map, search_marc_to_field and search_field tables to YAML.
|
|||
|
||||
=over
|
||||
|
||||
=item B<-t|--type>=C<marc21|unimarc|normarc>
|
||||
=item B<-t|--type>=C<marc21|unimarc>
|
||||
|
||||
Only export a specific marc type. All if empty.
|
||||
|
||||
|
@ -74,7 +74,7 @@ GetOptions(
|
|||
|
||||
pod2usage( -exitstatus => 0, -verbose => 2 ) if $man;
|
||||
|
||||
if ( $type && $type !~ /^(marc21|unimarc|normarc)$/ ) {
|
||||
if ( $type && $type !~ /^(marc21|unimarc)$/ ) {
|
||||
print "Bad marc type provided.\n";
|
||||
pod2usage(1);
|
||||
}
|
||||
|
|
|
@ -93,7 +93,7 @@ sub new {
|
|||
}
|
||||
|
||||
# MARC flavours (hardcoded list)
|
||||
for ( "MARC21", "UNIMARC", "NORMARC" ) {
|
||||
for ( "MARC21", "UNIMARC" ) {
|
||||
# search for strings on staff & opac marc files
|
||||
my $dirs = C4::Context->config('intrahtdocs') . '/prog';
|
||||
opendir $fh, C4::Context->config('opachtdocs');
|
||||
|
@ -280,7 +280,7 @@ sub install_tmpl {
|
|||
# if installing MARC po file, only touch corresponding files
|
||||
my $marc = ( $trans->{name} =~ /MARC/ )?"-m \"$trans->{name}\"":""; # for MARC translations
|
||||
# if not installing MARC po file, ignore all MARC files
|
||||
@nomarc = ( 'marc21', 'unimarc', 'normarc' ) if ( $trans->{name} !~ /MARC/ ); # hardcoded MARC variants
|
||||
@nomarc = ( 'marc21', 'unimarc' ) if ( $trans->{name} !~ /MARC/ ); # hardcoded MARC variants
|
||||
|
||||
system
|
||||
"$self->{process} install " .
|
||||
|
|
|
@ -549,7 +549,7 @@ $template->param(
|
|||
if ( C4::Context->preference('EasyAnalyticalRecords') ) {
|
||||
# adding items linked via host biblios
|
||||
my $analyticfield = '773';
|
||||
if ($marcflavour eq 'MARC21' || $marcflavour eq 'NORMARC'){
|
||||
if ($marcflavour eq 'MARC21'){
|
||||
$analyticfield = '773';
|
||||
} elsif ($marcflavour eq 'UNIMARC') {
|
||||
$analyticfield = '461';
|
||||
|
|
13
opac/unapi
13
opac/unapi
|
@ -73,19 +73,6 @@ my $format_to_stylesheet_map = {
|
|||
'rss2-full' => 'MARC21slim2RSS2.xsl',
|
||||
'srw_dc' => 'MARC21slim2SRWDC.xsl',
|
||||
},
|
||||
'NORMARC' => {
|
||||
'marcxml' => 'identity.xsl',
|
||||
'marcxml-full' => 'identity.xsl',
|
||||
'mods' => 'MARC21slim2MODS.xsl',
|
||||
'mods-full' => 'MARC21slim2MODS.xsl',
|
||||
'mods3' => 'MARC21slim2MODS3-1.xsl',
|
||||
'mods3-full' => 'MARC21slim2MODS3-1.xsl',
|
||||
'oai_dc' => 'MARC21slim2OAIDC.xsl',
|
||||
'rdfdc', => 'MARC21slim2RDFDC.xsl',
|
||||
'rss2' => 'MARC21slim2RSS2.xsl',
|
||||
'rss2-full' => 'MARC21slim2RSS2.xsl',
|
||||
'srw_dc' => 'MARC21slim2SRWDC.xsl',
|
||||
},
|
||||
'UNIMARC' => {
|
||||
'marcxml' => 'identity.xsl',
|
||||
'marcxml-full' => 'identity.xsl',
|
||||
|
|
|
@ -17,7 +17,7 @@
|
|||
|
||||
use Modern::Perl;
|
||||
|
||||
use Test::More tests => 3;
|
||||
use Test::More tests => 2;
|
||||
use t::lib::Mocks;
|
||||
|
||||
use XML::Simple;
|
||||
|
@ -71,9 +71,3 @@ subtest "->TransformHtmlToXml (UNIMARC) tests" => sub {
|
|||
plan tests => 4;
|
||||
run_tests('UNIMARC');
|
||||
};
|
||||
|
||||
subtest "->TransformHtmlToXml (NORMARC) tests" => sub {
|
||||
plan tests => 4;
|
||||
run_tests('NORMARC');
|
||||
};
|
||||
|
||||
|
|
|
@ -19,7 +19,7 @@ use Modern::Perl;
|
|||
|
||||
use POSIX qw(strftime);
|
||||
|
||||
use Test::More tests => 67;
|
||||
use Test::More tests => 66;
|
||||
use t::lib::Mocks;
|
||||
use Koha::Database;
|
||||
use Koha::DateUtils qw(dt_from_string output_pref);
|
||||
|
@ -620,11 +620,6 @@ subtest 'UNIMARC' => sub {
|
|||
run_flavoured_tests('UNIMARC');
|
||||
};
|
||||
|
||||
subtest 'NORMARC' => sub {
|
||||
plan tests => 2;
|
||||
run_flavoured_tests('NORMARC');
|
||||
};
|
||||
|
||||
### Functions required for "flavoured" tests
|
||||
sub get_title_field {
|
||||
my $marc_flavour = C4::Context->preference('marcflavour');
|
||||
|
|
|
@ -17,7 +17,7 @@
|
|||
|
||||
use Modern::Perl;
|
||||
|
||||
use Test::More tests => 15;
|
||||
use Test::More tests => 14;
|
||||
use Test::MockModule;
|
||||
use Test::Warn;
|
||||
use List::MoreUtils qw( uniq );
|
||||
|
@ -614,13 +614,6 @@ subtest 'UNIMARC' => sub {
|
|||
$schema->storage->txn_begin;
|
||||
};
|
||||
|
||||
subtest 'NORMARC' => sub {
|
||||
plan tests => 47;
|
||||
run_tests('NORMARC');
|
||||
$schema->storage->txn_rollback;
|
||||
$schema->storage->txn_begin;
|
||||
};
|
||||
|
||||
subtest 'IsMarcStructureInternal' => sub {
|
||||
plan tests => 9;
|
||||
my $tagslib = GetMarcStructure();
|
||||
|
|
|
@ -35,7 +35,6 @@ my $xml = XMLin($koha_conf);
|
|||
use C4::Context;
|
||||
my $marcflavour = C4::Context->preference('marcflavour') || 'MARC21';
|
||||
|
||||
# For the purpose of this test, we can reasonably take MARC21 and NORMARC to be the same
|
||||
my $file =
|
||||
$marcflavour eq 'UNIMARC'
|
||||
? "$testdir/data/unimarcrecord.mrc"
|
||||
|
|
|
@ -44,7 +44,6 @@ my $xml = XMLin($koha_conf);
|
|||
|
||||
my $marcflavour = C4::Context->preference('marcflavour') || 'MARC21';
|
||||
|
||||
# For the purpose of this test, we can reasonably take MARC21 and NORMARC to be the same
|
||||
my $file1 =
|
||||
$marcflavour eq 'UNIMARC'
|
||||
? "$testdir/data/unimarcutf8record.mrc"
|
||||
|
|
Loading…
Reference in a new issue