--- /dev/null
+<?xml version='1.0' encoding="UTF-8"?>
+
+<!--
+This file is to aid in editing of the asset_call_number_class.
+-->
+
+<!DOCTYPE html PUBLIC
+ "-//W3C//DTD XHTML 1.0 Transitional//EN"
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd" [
+ <!--#include virtual="/opac/locale/${locale}/lang.dtd"-->
+]>
+
+<html xmlns="http://www.w3.org/1999/xhtml" xmlns:xi="http://www.w3.org/2001/XInclude">
+
+ <head>
+ <title>&staff.server.admin.asset_call_number.title;</title>
+ <script type='text/javascript' src='/opac/common/js/utils.js'> </script>
+ <script type='text/javascript' src='/opac/common/js/config.js'> </script>
+ <script type='text/javascript' src='/opac/common/js/CGI.js'> </script>
+ <script type='text/javascript' src='/opac/common/js/JSON_v1.js'> </script>
+ <script type='text/javascript' src='/opac/common/js/fmall.js'> </script>
+ <script type='text/javascript' src='/opac/common/js/fmgen.js'> </script>
+ <script type='text/javascript' src='/opac/common/js/opac_utils.js'> </script>
+ <script type='text/javascript' src='/opac/common/js/<!--#echo var="locale"-->/OrgTree.js'> </script>
+ <script type='text/javascript' src='/opac/common/js/org_utils.js'> </script>
+ <script type='text/javascript' src='/opac/common/js/init.js'> </script>
+ <script type='text/javascript' src='/opac/common/js/RemoteRequest.js'> </script>
+ <script type='text/javascript' src='/opac/common/js/Date.W3CDTF.js'> </script>
+ <script type='text/javascript' src='adminlib.js'> </script>
+ <script type='text/javascript' src='asset_call_number.js'> </script>
+
+ <link rel="stylesheet" type="text/css" media="all"
+ href="/opac/common/js/jscalendar/calendar-brown.css" title="win2k-cold-1" />
+ <script type="text/javascript" src="/opac/common/js/jscalendar/calendar.js"></script>
+ <script type="text/javascript" src="/opac/common/js/jscalendar/lang/calendar-en.js"></script>
+ <script type="text/javascript" src="/opac/common/js/jscalendar/calendar-setup.js"></script>
+
+ <link type='text/css' rel='stylesheet' href='admin.css'/>
+ </head>
+
+ <body onLoad="init_asset_call();">
+ <h1 align="center">Classification System Editor</h1>
+ <hr>
+ <table>
+ <tr>
+ <td>
+ <!-- TODO Dynamic Load -->
+ <select name="call_class" size="20" onchange="select_asset_call_class(this.selectedIndex, this.options[this.selectedIndex].value);">
+ <option selected>Generic</option>
+ <option>Library of Congress (LC)</option>
+ <option>Dewey (DDC)</option>
+ </select>
+ </td>
+ <td valign="top">
+ <table valign="top">
+ <tr>
+ <td colspan="3">
+ <input id="class_name" type="text" size="22" value="Generic" style="font-weight:thick; font-size:20pt;" />
+ </td>
+ </tr>
+ <tr>
+ <td align="right"><b>Normalizer:</b> </td>
+ <td><select size="0"><option>asset.label_normalizer_generic</option></select><br></td>
+ <td></td>
+ </tr>
+ <tr>
+ <td align="right" valign="top"><b>Tag/Subfields:</b></td>
+ <td>
+ <input type="text" value="050ab" /><br />
+ <input type="text" value="055ab" /><br />
+ <input type="text" value="060ab" /><br />
+ <input type="text" value="070ab" /><br />
+ <input type="text" value="080ab" /><br />
+ <input type="text" value="082ab" /><br />
+ <input type="text" value="086ab" /><br />
+ <input type="text" value="088ab" /><br />
+ <input type="submit" value="Add" />
+ </td>
+ <td><p style="display:block; background-color:#999;"><b>Context help (probably a bubble):</b><br>To delete an entry remove all text from the box and press enter.</p></td>
+ </tr>
+ <tr>
+ <td></td>
+ <td align="right"><input type="submit" value="Save" /></td>
+ </tr>
+ </table>
+
+ <br>
+
+ </td>
+ </tr>
+ </table>
+ </body>
+</html>
\ No newline at end of file
--- /dev/null
+/**
+ <class id="call_num_class" controller="open-ils.cstore" oils_obj:fieldmapper="asset::call_number_class" oils_persist:readonly="true">
+ <oils_persist:source_definition>
+ SELECT * FROM asset.call_number_class;
+ </oils_persist:source_definition>
+ <fields>
+ <field reporter:label="Asset ID" name="id" reporter:datatype="int"/>
+ <field reporter:label="Name" name="name" reporter:datatype="text"/>
+ <field reporter:label="Normalizer" name="normalizer" reporter:datatype="text"/>
+ <field reporter:label="Field" name="field" reporter:datatype="text"/>
+ </fields>
+ <links />
+ </class>
+**/
+
+
+var numItems = 0;
+
+var normalizers = ['asset.label_normalizer']
+
+function init_asset_call() {
+ //TODO fetch lists.
+
+ //TODO fetch normalizers.
+
+ //Populate listbox.
+
+ //Populate namefield.
+
+ //Populate
+ nameField = document.getElementById('class_name');
+}
+
+function select_asset_call_class(selection_index, selection_name) {
+ alert(selection_index);
+ nameField.value = selection_name;
+}
+
+function update_normalizer_list() {
+ //TODO fetch lists, and update with current
+}
\ No newline at end of file