Bugzilla – Attachment 2697 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]
Enable MARC documentation
0001-addbiblio.patch (text/plain), 2.88 KB, created by
Tomás Cohen Arazi
on 2010-10-21 12:52:48 UTC
(
hide
)
Description:
Enable MARC documentation
Filename:
MIME Type:
Creator:
Tomás Cohen Arazi
Created:
2010-10-21 12:52:48 UTC
Size:
2.88 KB
patch
obsolete
>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 6c4a2c4..5a5a4ce 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 > */ >@@ -741,7 +761,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" -->" />
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