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..a825211 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,14 @@ function PopupZ3950() {
     } 
 }
 
+function PopupFieldDoc(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";);
+    }
+}
+
 /**
  * check if mandatory subfields are written
  */
@@ -741,7 +749,7 @@ 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" -->" onClick="PopupFieldDoc(<!-- TMPL_VAR NAME="tag" -->);return 
false;"><!-- TMPL_VAR NAME="tag" --></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" -->" />
_______________________________________________
Koha-patches mailing list
Koha-patches@lists.koha.org
http://lists.koha.org/mailman/listinfo/koha-patches

Reply via email to