Bugzilla – Attachment 2713 Details for
Bug 5190
MARC and UNIMARC bibliographic fields documentation accesible when cataloging
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
follow-up patch with improvements
0001-bug-5190-link-to-MARC21-UNIMARC-online-doc-in-the-bi.patch (text/plain), 3.52 KB, created by
Galen Charlton
on 2010-10-30 02:39:01 UTC
(
hide
)
Description:
follow-up patch with improvements
Filename:
MIME Type:
Creator:
Galen Charlton
Created:
2010-10-30 02:39:01 UTC
Size:
3.52 KB
patch
obsolete
>From 79f8c7fa8c409da97e8c0fe771013f86aecdec0f Mon Sep 17 00:00:00 2001 >From: Galen Charlton <gmcharlt@gmail.com> >Date: Wed, 27 Oct 2010 09:49:04 -0400 >Subject: [PATCH 1/2] [SIGNED-OF] bug 5190: link to MARC21/UNIMARC online doc in the bib editor >MIME-Version: 1.0 >Content-Type: text/plain; charset=UTF-8 >Content-Transfer-Encoding: 8bit > >Patch from Tomás Cohen Arazi <tomascohen@gmail.com> > >Signed-off-by: Galen Charlton <gmcharlt@gmail.com> >--- > cataloguing/addbiblio.pl | 3 ++ > .../prog/en/modules/cataloguing/addbiblio.tmpl | 25 +++++++++++++++++++- > 2 files changed, 27 insertions(+), 1 deletions(-) > >diff --git a/cataloguing/addbiblio.pl b/cataloguing/addbiblio.pl >index fc56047..2cd6e73 100755 >--- a/cataloguing/addbiblio.pl >+++ b/cataloguing/addbiblio.pl >@@ -1018,6 +1018,9 @@ elsif ( $op eq "delete" ) { > } > > $template->param( title => $record->title() ) if ( $record ne "-1" ); >+if (C4::Context->preference("marcflavour") eq "MARC21"){ >+ $template->param(MARC21 => 1); >+} > $template->param( > popup => $mode, > frameworkcode => $frameworkcode, >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/addbiblio.tmpl b/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/addbiblio.tmpl >index 3e510c5..4608820 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/addbiblio.tmpl >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/addbiblio.tmpl >@@ -67,6 +67,26 @@ function PopupZ3950() { > } > } > >+function PopupMARCFieldDoc(field) { >+ if(field == 0) { >+ window.open("http://www.loc.gov/marc/bibliographic/bdleader.html"); >+ } else if (field < 900) { >+ window.open("http://www.loc.gov/marc/bibliographic/bd"+field+".html"); >+ } else { >+ window.open("http://www.loc.gov/marc/bibliographic/bd9xx.html"); >+ } >+} >+ >+function PopupUNIMARCFieldDoc(field,fieldnumber) { >+ if(field == 0) { >+ window.open("http://archive.ifla.org/VI/3/p1996-1/uni.htm"); >+ } else if (field < 900) { >+ window.open("http://archive.ifla.org/VI/3/p1996-1/uni"+fieldnumber+".htm#b"+field); >+ } else { >+ window.open("http://archive.ifla.org/VI/3/p1996-1/uni9.htm"); >+ } >+} >+ > /** > * check if mandatory subfields are written > */ >@@ -749,7 +769,10 @@ function unHideSubfield(index,labelindex) { // FIXME :: is it used ? > <!-- TMPL_IF NAME="advancedMARCEditor" --> > <a href="#" tabindex="1" class="tagnum" title="<!-- TMPL_VAR NAME="tag_lib"--> - Click to Expand this Tag" onclick="ExpandField('tag_<!-- TMPL_VAR NAME="tag"-->_<!-- TMPL_VAR NAME='index' --><!-- TMPL_VAR NAME="random" -->'); return false;"><!-- TMPL_VAR NAME="tag" --></a> > <!-- TMPL_ELSE --> >- <span class="tagnum" title="<!-- TMPL_VAR NAME="tag_lib" -->"><!-- TMPL_VAR NAME="tag" --></span> >+ <span class="tagnum" title="<!-- TMPL_VAR NAME="tag_lib" -->"><!-- TMPL_VAR NAME="tag" --><a >+ onClick="<!-- TMPL_IF NAME="MARC21" -->PopupMARCFieldDoc(<!-- TMPL_VAR NAME="tag" -->) >+ <!-- TMPL_ELSE -->PopupUNIMARCFieldDoc(<!-- TMPL_VAR NAME="tag" -->,<!-- TMPL_VAR NAME="number" -->) >+ <!-- /TMPL_IF -->;return false;"> ?</a></span> > <!-- /TMPL_IF --> > <!-- TMPL_IF NAME="fixedfield" --> > <input tabindex="1" class="indicator flat" type="text" style="display:none;" name="tag_<!-- TMPL_VAR NAME="tag" -->_indicator1_<!-- TMPL_VAR NAME='index'--><!-- TMPL_VAR name="random" -->" size="1" maxlength="1" value="<!-- TMPL_VAR NAME="indicator1" -->" /> >-- >1.7.0 >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 5190
:
2697
| 2713