Koha/koha-tmpl/intranet-tmpl/prog/en/modules/tools/csv-profiles.tmpl
2009-10-02 17:00:59 +02:00

100 lines
4.3 KiB
Cheetah

<!-- TMPL_INCLUDE NAME="doc-head-open.inc" -->
<title>Koha &rsaquo; Catalog &rsaquo; Profile for CSV export</title>
<!-- TMPL_INCLUDE NAME="doc-head-close.inc" -->
<script language="Javascript" type="text/javascript">
function reloadPage(p) {
var id = p.value;
if (id != 0) { document.location = "/cgi-bin/koha/tools/csv-profiles.pl?id=" + id; }
}
</script>
</head>
<body>
<!-- TMPL_INCLUDE NAME="header.inc" -->
<!-- TMPL_INCLUDE NAME="cat-search.inc" -->
<div id="breadcrumbs">
<a href="/cgi-bin/koha/mainpage.pl">Home</a>
&rsaquo; <a href="/cgi-bin/koha/tools/tools-home.pl">Tools</a>
&rsaquo; New profile for CSV export
</div>
<div id="doc3" class="yui-t2">
<div id="bd">
<div id="yui-main">
<div class="yui-b">
<!-- TMPL_IF EXPR="success || error" -->
<!-- TMPL_IF NAME="success" -->
<!-- TMPL_IF EXPR="action eq 'create'" --><p>The new CSV profile "<!-- TMPL_VAR NAME="profile_name" -->" has been successfully created.</p><!-- /TMPL_IF -->
<!-- TMPL_IF EXPR="action eq 'edit'" --><p>The CSV profile has been successfully modified.</p><!-- /TMPL_IF -->
<!-- TMPL_IF EXPR="action eq 'delete'" --><p>The CSV profile has been successfully deleted.</p><!-- /TMPL_IF -->
<!-- TMPL_ELSE -->
<!-- TMPL_IF EXPR="action eq 'create'" --><p class="error">The new CSV profile "<!-- TMPL_VAR NAME="profile_name" -->" has not been created.</p><!-- /TMPL_IF -->
<!-- TMPL_IF EXPR="action eq 'edit'" --><p class="error">The CSV profile has not been modified.</p><!-- /TMPL_IF -->
<!-- TMPL_IF EXPR="action eq 'delete'" --><p class="error">The CSV profile has not been deleted.</p><!-- /TMPL_IF -->
<!-- /TMPL_IF -->
<!-- /TMPL_IF -->
<h1>New profile for CSV export</h1>
<form action="/cgi-bin/koha/tools/csv-profiles.pl" method="post">
<fieldset class="brief">
<label for="profile_name">Profile name :</label>
<input type="text" id="profile_name" name="profile_name" /><br /><br />
<label for="profile_description">Profile description :</label>
<textarea cols="50" rows="2" name="profile_description" id="profile_description"></textarea><br /><br />
<label for="profile_content">Profile marcfields :</label>
<textarea cols="50" rows="2" name="profile_content" id="profile_content"></textarea>
<p>You have to define which fields or subfields you want to export, separated by pipes.<br />
Example&nbsp;: 200|210$a|301
</p>
</fieldset>
<input type="hidden" name="action" value="create" />
<input type="submit" />
</form>
<!-- TMPL_IF NAME="existing_profiles" -->
<br /><br />
<h1>Modify or delete an existing profile</h1>
<form action="/cgi-bin/koha/tools/csv-profiles.pl" method="post">
<fieldset class="brief">
<label for="modify_profile_name">Profile name :</label>
<select id="modify_profile_name" name="profile_name" onchange="javascript:reloadPage(this)">
<option value="0">-- Choose One --</option>
<!-- TMPL_LOOP NAME="existing_profiles" -->
<option value="<!-- TMPL_VAR NAME="export_format_id" -->"<!-- TMPL_IF EXPR="export_format_id eq selected_profile_id" --> selected="selected"<!-- /TMPL_IF-->><!-- TMPL_VAR NAME="profile" --></option>
<!-- /TMPL_LOOP -->
</select><br /><br />
<label for="modify_profile_description">Profile description :</label>
<textarea cols="50" rows="2" name="profile_description" id="modify_profile_description"><!-- TMPL_VAR NAME="selected_profile_description" --></textarea><br /><br />
<label for="modify_profile_content">Profile marcfields :</label>
<textarea cols="50" rows="2" name="profile_content" id="modify_profile_content"><!-- TMPL_VAR NAME="selected_profile_marcfields" --></textarea><br /><br />
<label for="delete">Delete selected profile ?</label>
<input type="checkbox" name="delete" id="delete" />
</fieldset>
<input type="hidden" name="modify_profile_id" value="<!-- TMPL_VAR NAME="selected_profile_id" -->" />
<input type="hidden" name="action" value="edit" />
<input type="submit" />
</form>
<!-- /TMPL_IF -->
</div>
</div>
<div class="yui-b">
</div>
</div>
<!-- TMPL_INCLUDE NAME="intranet-bottom.inc" -->