diff --git a/collections/reports/labelmanager.php b/collections/reports/labelmanager.php index 4e79c73d28..e670a842ce 100644 --- a/collections/reports/labelmanager.php +++ b/collections/reports/labelmanager.php @@ -106,9 +106,19 @@ function openPopup(urlStr){ return false; } - function changeFormExport(action,target){ - var f = document.selectform; - if(action == "labelsword.php" && document.getElementById('packetradio').checked == true){ + function changeFormExport(buttonElem, action, target){ + var f = buttonElem.form; + if(action == "labeldynamic.php" && buttonElem.value == "Print in Browser"){ + labelFormatSelected = false; + if(f["labelformatindex-g"] && f["labelformatindex-g"].value != "") labelFormatSelected = true; + if(f["labelformatindex-c"] && f["labelformatindex-c"].value != "") labelFormatSelected = true; + if(f["labelformatindex-u"] && f["labelformatindex-u"].value != "") labelFormatSelected = true; + if(!labelFormatSelected){ + alert("Please select a Label Format Profile"); + return false; + } + } + else if(action == "labelsword.php" && f.packetradio.checked == true){ alert("Packet labels are not yet available as a Word document"); return false; } @@ -343,37 +353,31 @@ function labelFormatChanged(selObj,catStr){
Label Printing - -
-
Predefined Label Format:
-
- $catArr){ - $catStr = 'Portal defined profiles'; - if($cat == 'c') $catStr = 'Collection defined profiles'; - if($cat == 'u') $catStr = 'User defined profiles'; - ?> -
- -
- +
Label Format Profiles:
+
+ $catArr){ + $catStr = 'Portal defined profiles'; + if($cat == 'c') $catStr = 'Collection defined profiles'; + if($cat == 'u') $catStr = 'User defined profiles'; ?> -
+
+ +
+
- +
Heading Prefix:
@@ -387,7 +391,7 @@ function labelFormatChanged(selObj,catStr){ State County Family - Blank + Blank
@@ -432,27 +436,41 @@ function labelFormatChanged(selObj,catStr){ ?>
- Label Format + Column Count 1 columns per page
- 2 columns per page
+ 2 columns per page
3 columns per page
packet labels
- -

- +
+ /> +
+
+ +
-

- +
+ +
+ +
+ Note: Output of variable Label Formats as a Word document is not yet supported
A possible work around is to print labels as PDF and + then convert to a Word doc using Adobe tools.
Another alternatively, is to output the data as CSV and then setup a Mail Merge Word document. +
+