From 82744c0ca90a2c7ad203f4f3e6e5656d12dcb11e Mon Sep 17 00:00:00 2001 From: tipaul Date: Tue, 10 Jun 2003 15:46:34 +0000 Subject: [PATCH] small fix & improvement. * fix : the marc subfield was called "tag" in the template. was working nice, but tricky. * improvment : on each MARC value is now a little finder. If you click on the finder, it will auto-search all biblios with the corresponding value. Very useful to find everything written by an author, or every books from a collection. --- MARCdetail.pl | 8 +-- .../default/en/catalogue/MARCdetail.tmpl | 50 +++++++++++-------- .../default/fr/catalogue/MARCdetail.tmpl | 30 +++++++---- 3 files changed, 55 insertions(+), 33 deletions(-) diff --git a/MARCdetail.pl b/MARCdetail.pl index d82dce9684..01984bbc37 100755 --- a/MARCdetail.pl +++ b/MARCdetail.pl @@ -95,7 +95,8 @@ for (my $tabloop = 0; $tabloop<=10;$tabloop++) { my %subfield_data; $subfield_data{marc_lib}=$tagslib->{$field->tag()}->{'@'}->{lib}; $subfield_data{marc_value}=$field->data(); - $subfield_data{marc_tag}='@'; + $subfield_data{marc_subfield}='@'; + $subfield_data{marc_tag}=$field->tag(); push(@subfields_data, \%subfield_data); } else { my @subf=$field->subfields; @@ -105,8 +106,9 @@ for (my $tabloop = 0; $tabloop<=10;$tabloop++) { next if ($tagslib->{$field->tag()}->{$subf[$i][0]}->{tab} ne $tabloop); my %subfield_data; $subfield_data{marc_lib}=$tagslib->{$field->tag()}->{$subf[$i][0]}->{lib}; - $subfield_data{marc_value}=$subf[$i][1]; - $subfield_data{marc_tag}=$subf[$i][0]; + $subfield_data{marc_value}=$subf[$i][1]; + $subfield_data{marc_subfield}=$subf[$i][0]; + $subfield_data{marc_tag}=$field->tag(); push(@subfields_data, \%subfield_data); } } diff --git a/koha-tmpl/intranet-tmpl/default/en/catalogue/MARCdetail.tmpl b/koha-tmpl/intranet-tmpl/default/en/catalogue/MARCdetail.tmpl index 0455bf756c..32ef952f6c 100644 --- a/koha-tmpl/intranet-tmpl/default/en/catalogue/MARCdetail.tmpl +++ b/koha-tmpl/intranet-tmpl/default/en/catalogue/MARCdetail.tmpl @@ -55,13 +55,14 @@
- /images/background-mem.gif"> + /images/background-mem.gif"> - + + @@ -71,13 +72,14 @@
  &operator==&type=intranet&value=">//images/filefind.png" height=15>
- /images/background-mem.gif"> + /images/background-mem.gif"> - + + @@ -87,13 +89,14 @@
  &operator==&type=intranet&value=">//images/filefind.png" height=15>
- /images/background-mem.gif"> + /images/background-mem.gif"> - + + @@ -103,13 +106,14 @@
  &operator==&type=intranet&value=">//images/filefind.png" height=15>
- /images/background-mem.gif"> + /images/background-mem.gif"> - + + @@ -119,13 +123,14 @@
  &operator==&type=intranet&value=">//images/filefind.png" height=15>
- /images/background-mem.gif"> + /images/background-mem.gif"> - + + @@ -135,13 +140,14 @@
  &operator==&type=intranet&value=">//images/filefind.png" height=15>
- /images/background-mem.gif"> + /images/background-mem.gif"> - + + @@ -151,13 +157,14 @@
  &operator==&type=intranet&value=">//images/filefind.png" height=15>
- /images/background-mem.gif"> + /images/background-mem.gif"> - + + @@ -167,13 +174,14 @@
  &operator==&type=intranet&value=">//images/filefind.png" height=15>
- /images/background-mem.gif"> + /images/background-mem.gif"> - + + @@ -183,13 +191,14 @@
  &operator==&type=intranet&value=">//images/filefind.png" height=15>
- /images/background-mem.gif"> + /images/background-mem.gif"> - + + @@ -199,13 +208,14 @@
  &operator==&type=intranet&value=">//images/filefind.png" height=15>
- /images/background-mem.gif"> + /images/background-mem.gif"> - + + diff --git a/koha-tmpl/intranet-tmpl/default/fr/catalogue/MARCdetail.tmpl b/koha-tmpl/intranet-tmpl/default/fr/catalogue/MARCdetail.tmpl index fea153c53d..bd3171cd08 100644 --- a/koha-tmpl/intranet-tmpl/default/fr/catalogue/MARCdetail.tmpl +++ b/koha-tmpl/intranet-tmpl/default/fr/catalogue/MARCdetail.tmpl @@ -49,13 +49,14 @@
  &operator==&type=intranet&value=">//images/filefind.png" height=15>
- /images/background-mem.gif"> + /images/background-mem.gif"> + @@ -65,13 +66,14 @@
  &operator==&type=intranet&value=">//images/filefind.png" height=15>
- /images/background-mem.gif"> + /images/background-mem.gif"> + @@ -81,13 +83,14 @@
  &operator==&type=intranet&value=">//images/filefind.png" height=15>
- /images/background-mem.gif"> + /images/background-mem.gif"> + @@ -97,13 +100,14 @@
  &operator==&type=intranet&value=">//images/filefind.png" height=15>
- /images/background-mem.gif"> + /images/background-mem.gif"> + @@ -113,13 +117,14 @@
  &operator==&type=intranet&value=">//images/filefind.png" height=15>
- /images/background-mem.gif"> + /images/background-mem.gif"> + @@ -129,12 +134,13 @@
  &operator==&type=intranet&value=">//images/filefind.png" height=15>
- /images/background-mem.gif"> + /images/background-mem.gif"> + @@ -145,13 +151,14 @@
  &operator==&type=intranet&value=">//images/filefind.png" height=15>
- /images/background-mem.gif"> + /images/background-mem.gif"> + @@ -161,13 +168,14 @@
  &operator==&type=intranet&value=">//images/filefind.png" height=15>
- /images/background-mem.gif"> + /images/background-mem.gif"> + @@ -177,13 +185,14 @@
  &operator==&type=intranet&value=">//images/filefind.png" height=15>
- /images/background-mem.gif"> + /images/background-mem.gif"> + @@ -193,13 +202,14 @@
  &operator==&type=intranet&value=">//images/filefind.png" height=15>
- /images/background-mem.gif"> + /images/background-mem.gif"> + -- 2.39.5
  &operator==&type=intranet&value=">//images/filefind.png" height=15>