| 1 |
<{* xnpphoto register block *}> |
| 2 |
<{* $Revision: $ *}> |
| 3 |
|
| 4 |
<table class="outer"> |
| 5 |
<!-- Basic Information --> |
| 6 |
<tr> |
| 7 |
<td class="head"><{$basic.doi.name}></td> |
| 8 |
<td class="<{cycle name="oddeven" values="odd,even"}>"><{$basic.doi.value}></td> |
| 9 |
</tr> |
| 10 |
<tr> |
| 11 |
<td class="head"><{$smarty.const._MD_XNPPHOTO_TITLE_LABEL}><{$smarty.const._MD_XOONIPS_ITEM_REQUIRED_MARK}></td> |
| 12 |
<td class="<{cycle name="oddeven" values="odd,even"}>" > |
| 13 |
<table> |
| 14 |
<tr> |
| 15 |
<td width="70"><{$basic.title.name}></td> |
| 16 |
<td><input size=50 type='text' name='title' value='<{$detail.title|escape|replace:"&#":"&#"}>' STYLE='ime-mode:inactive;'></td> |
| 17 |
</tr> |
| 18 |
<tr> |
| 19 |
<td width="70"><{$smarty.const._MD_XNPPHOTO_TRANSLATION_LABEL}></td> |
| 20 |
<td><input size=50 type='text' name='title_translation' value='<{$detail.title_translation|escape|replace:"&#":"&#"}>' STYLE='ime-mode:inactive;'></td> |
| 21 |
</tr> |
| 22 |
<tr> |
| 23 |
<td width="70"><{$smarty.const._MD_XNPPHOTO_KANA_LABEL}></td> |
| 24 |
<td> |
| 25 |
<input size=50 type='text' name='title_kana' value='<{$detail.title_kana|escape|replace:"&#":"&#"}>' STYLE='ime-mode:active;'> |
| 26 |
<input type='hidden' name='xnpphotoTitleRomajiFlag' value=''> |
| 27 |
<button type='button' onclick='xnpphotoTitleRomaji(this);'><{$smarty.const._MD_XNPPHOTO_ROMAJI_LABEL}></button> |
| 28 |
</td> |
| 29 |
</tr> |
| 30 |
<tr> |
| 31 |
<td width="70"><{$smarty.const._MD_XNPPHOTO_ROMAJI_LABEL}></td> |
| 32 |
<td><input size=50 type='text' name='title_romaji' value='<{$detail.title_romaji|escape|replace:"&#":"&#"}>' STYLE='ime-mode:disabled;'></td> |
| 33 |
</tr> |
| 34 |
</table> |
| 35 |
</td> |
| 36 |
</tr> |
| 37 |
<tr> |
| 38 |
<td class="head"><{$smarty.const._MD_XNPPHOTO_AUTHOR_LABEL}></td> |
| 39 |
<td class="<{cycle name="oddeven"}>" > |
| 40 |
<table> |
| 41 |
<tr> |
| 42 |
<td width="70"><{$smarty.const._MD_XNPPHOTO_AUTHOR_NAME_LABEL}></td> |
| 43 |
<td><input size=40 type='text' name='author_name_add' value='<{$detail.author_name_add|escape|replace:"&#":"&#"}>'></td> |
| 44 |
</tr> |
| 45 |
<tr> |
| 46 |
<td width="70"><{$smarty.const._MD_XNPPHOTO_ROMAJI_LABEL}></td> |
| 47 |
<td><input size=40 type='text' name='author_romaji_add' value='<{$detail.author_romaji_add|escape|replace:"&#":"&#"}>' STYLE='ime-mode:disabled;'></td> |
| 48 |
</tr> |
| 49 |
<tr> |
| 50 |
<td width="70"><{$smarty.const._MD_XNPPHOTO_AUTHOR_AFFILIATION_LABEL}></td> |
| 51 |
<td> |
| 52 |
<input size=50 type='text' name='author_affiliation_add' |
| 53 |
value='<{$detail.author_affiliation_add|escape|replace:"&#":"&#"}>'></td> |
| 54 |
</tr> |
| 55 |
<tr> |
| 56 |
<td width="70"><{$smarty.const._MD_XNPPHOTO_AUTHOR_AFFILIATION_TRANSLATION_LABEL}></td> |
| 57 |
<td> |
| 58 |
<input size=50 type='text' name='author_affiliation_translation_add' |
| 59 |
value='<{$detail.author_affiliation_translation_add|escape|replace:"&#":"&#"}>'> |
| 60 |
<input type='hidden' name='xnpphotoAddAuthorFlag' value=''> |
| 61 |
<button type='button' onclick='xnpphotoAddAuthor(this);'><{$smarty.const._MD_XNPPHOTO_ADD_LABEL}></button> |
| 62 |
<input type='hidden' name='author_name' value='<{$detail.author_name|escape|replace:"&#":"&#"}>'> |
| 63 |
<input type='hidden' name='author_romaji' value='<{$detail.author_romaji|escape|replace:"&#":"&#"}>'> |
| 64 |
<input type='hidden' name='author_affiliation' value='<{$detail.author_affiliation|escape|replace:"&#":"&#"}>'> |
| 65 |
<input type='hidden' name='author_affiliation_translation' value='<{$detail.author_affiliation_translation|escape|replace:"&#":"&#"}>'> |
| 66 |
</td> |
| 67 |
</tr> |
| 68 |
<{if !empty( $detail.author_str.value ) }> |
| 69 |
<tr> |
| 70 |
<td></td> |
| 71 |
<td class="<{cycle name="oddeven"}>"><{$detail.author_str|replace:"&#":"&#"}> |
| 72 |
<input type='hidden' name='xnpphotoUpdateAuthorFlag' value=''> |
| 73 |
<button type='button' onclick='xnpphotoUpdateAuthor(this);'><{$smarty.const._MD_XNPPHOTO_UPDATE_LABEL}></button> |
| 74 |
</td> |
| 75 |
</tr> |
| 76 |
<{/if}> |
| 77 |
</table> |
| 78 |
</td> |
| 79 |
</tr> |
| 80 |
<tr> |
| 81 |
<td class="head"><{$smarty.const._MD_XNPPHOTO_JOURNAL_LABEL}></td> |
| 82 |
<td class="<{cycle name="oddeven"}>" > |
| 83 |
<table> |
| 84 |
<tr> |
| 85 |
<tr> |
| 86 |
<td width="70"></td> |
| 87 |
<td><input size=50 type='text' name='journal' value='<{$detail.journal|escape|replace:"&#":"&#"}>'></td> |
| 88 |
</tr> |
| 89 |
<tr> |
| 90 |
<td width="70"><{$smarty.const._MD_XNPPHOTO_TRANSLATION_LABEL}></td> |
| 91 |
<td><input size=50 type='text' name='journal_translation' value='<{$detail.journal_translation|escape|replace:"&#":"&#"}>'></td> |
| 92 |
</tr> |
| 93 |
</table> |
| 94 |
</td> |
| 95 |
</tr> |
| 96 |
<tr> |
| 97 |
<td class="head"><{$smarty.const._MD_XNPPHOTO_VOLUME_LABEL}></td> |
| 98 |
<td class="<{cycle name="oddeven"}>" ><input type='text' name='volume' value='<{$detail.volume|escape|replace:"&#":"&#"}>' STYLE='ime-mode:inactive;'></td> |
| 99 |
</tr> |
| 100 |
<tr> |
| 101 |
<td class="head"><{$smarty.const._MD_XNPPHOTO_NUMBER_LABEL}></td> |
| 102 |
<td class="<{cycle name="oddeven"}>" ><input type='text' name='number' value='<{$detail.number|escape|replace:"&#":"&#"}>' STYLE='ime-mode:inactive;'></td> |
| 103 |
</tr> |
| 104 |
<tr> |
| 105 |
<td class="head"><{$smarty.const._MD_XNPPHOTO_PAGE_LABEL}></td> |
| 106 |
<td class="<{cycle name="oddeven"}>" ><input type='text' name='page' value='<{$detail.page|escape|replace:"&#":"&#"}>' STYLE='ime-mode:inactive;'></td> |
| 107 |
</tr> |
| 108 |
<tr> |
| 109 |
<td class="head"><{$smarty.const._MD_XNPPHOTO_DATE_LABEL}></td> |
| 110 |
<td class="<{cycle name="oddeven"}>"><{$basic.publication_date.value}></td> |
| 111 |
</tr> |
| 112 |
<tr> |
| 113 |
<td class="head"><{$smarty.const._MD_XNPPHOTO_PUBLISHER_LABEL}></td> |
| 114 |
<td class="<{cycle name="oddeven"}>" ><input type='text' name='publisher' value='<{$detail.publisher|escape|replace:"&#":"&#"}>'></td> |
| 115 |
</tr> |
| 116 |
<tr> |
| 117 |
<td class="head"><{$smarty.const._MD_XNPPHOTO_ISSN_LABEL}></td> |
| 118 |
<td class="<{cycle name="oddeven"}>" ><input type='text' maxlength='24' name='issn' value='<{$detail.issn|escape|replace:"&#":"&#"}>'></td> |
| 119 |
</tr> |
| 120 |
<tr> |
| 121 |
<td class="head"><{$smarty.const._MD_XNPPHOTO_ISBN_LABEL}></td> |
| 122 |
<td class="<{cycle name="oddeven"}>" ><input type='text' maxlength='24' name='isbn' value='<{$detail.isbn|escape|replace:"&#":"&#"}>'></td> |
| 123 |
</tr> |
| 124 |
<tr> |
| 125 |
<td class="head"><{$smarty.const._MD_XNPPHOTO_ABSTRACT_LABEL}></td> |
| 126 |
<td class="<{cycle name="oddeven"}>"><textarea name='abstract' rows='4' cols='40'><{$detail.abstract|escape|replace:"&#":"&#"}></textarea></td> |
| 127 |
<tr> |
| 128 |
<td class="head"><{$smarty.const._MD_XNPPHOTO_KEYWORDS_LABEL}></td> |
| 129 |
<td class="<{cycle name="oddeven"}>"> |
| 130 |
<table> |
| 131 |
<tr> |
| 132 |
<td> |
| 133 |
<input size=50 type='text' name='keywords_add' value='<{$detail.keywords_add|escape|replace:"&#":"&#"}>'> |
| 134 |
<input type='hidden' name='xnpphotoAddKeywordFlag' value=''> |
| 135 |
<button type='button' onclick='xnpphotoAddKeyword(this);'><{$smarty.const._MD_XNPPHOTO_ADD_LABEL}></button> |
| 136 |
<input type='hidden' name='keywords' value='<{$detail.keywords|escape|replace:"&#":"&#"}>'> |
| 137 |
<input type='hidden' name='keywords_str' value='<{$detail.keywords_str|escape|replace:"&#":"&#"}>'> |
| 138 |
</td> |
| 139 |
</tr> |
| 140 |
<{if !empty( $detail.keyword_str.value ) }> |
| 141 |
<tr> |
| 142 |
<td class="<{cycle name="oddeven"}>"><{$detail.keyword_str|replace:"&#":"&#"}> |
| 143 |
<input type='hidden' name='xnpphotoUpdateKeywordFlag' value=''> |
| 144 |
<button type='button' onclick='xnpphotoUpdateKeyword(this);'><{$smarty.const._MD_XNPPHOTO_UPDATE_LABEL}></button> |
| 145 |
</td> |
| 146 |
</tr> |
| 147 |
<{/if}> |
| 148 |
</table> |
| 149 |
</td> |
| 150 |
</tr> |
| 151 |
<tr> |
| 152 |
<td class="head"><{$smarty.const._MD_XNPPHOTO_FREE_KEYWORDS_LABEL}></td> |
| 153 |
<td class="<{cycle name="oddeven"}>"> |
| 154 |
<table> |
| 155 |
<tr> |
| 156 |
<td> |
| 157 |
<input size=50 type='text' name='free_keywords_add' value='<{$detail.free_keywords_add|escape|replace:"&#":"&#"}>'> |
| 158 |
<input type='hidden' name='xnpphotoAddFreeKeywordFlag' value=''> |
| 159 |
<button type='button' onclick='xnpphotoAddFreeKeyword(this);'><{$smarty.const._MD_XNPPHOTO_ADD_LABEL}></button> |
| 160 |
<input type='hidden' name='free_keywords' value='<{$detail.free_keywords|escape|replace:"&#":"&#"}>'> |
| 161 |
</td> |
| 162 |
</tr> |
| 163 |
<{if !empty( $detail.free_keyword_str.value ) }> |
| 164 |
<tr> |
| 165 |
<td class="<{cycle name="oddeven"}>"><{$detail.free_keyword_str|replace:"&#":"&#"}> |
| 166 |
<input type='hidden' name='xnpphotoUpdateFreeKeywordFlag' value=''> |
| 167 |
<button type='button' onclick='xnpphotoUpdateFreeKeyword(this);'><{$smarty.const._MD_XNPPHOTO_UPDATE_LABEL}></button> |
| 168 |
</td> |
| 169 |
</tr> |
| 170 |
<{/if}> |
| 171 |
</table> |
| 172 |
</td> |
| 173 |
</tr> |
| 174 |
<tr> |
| 175 |
<td class="head"><{$basic.description.name}></td> |
| 176 |
<td class="<{cycle name="oddeven"}>" ><{$basic.description.value}></td> |
| 177 |
</tr> |
| 178 |
<tr> |
| 179 |
<td class="head"><{$basic.lang.name}></td> |
| 180 |
<td class="<{cycle name="oddeven"}>" ><input maxlength=3 type='text' name='lang' value='<{$detail.lang|escape|replace:"&#":"&#"}>' STYLE='ime-mode:disabled;'></td> |
| 181 |
</tr> |
| 182 |
<tr> |
| 183 |
<td class="head"><{$smarty.const._MD_XNPPHOTO_PHYSICAL_DESCRIPTION_LABEL}></td> |
| 184 |
<td class="<{cycle name="oddeven"}>" ><input size=50 type='text' name='physical_description' value='<{$detail.physical_description|escape|replace:"&#":"&#"}>' STYLE='ime-mode:inactive;'></td> |
| 185 |
</tr> |
| 186 |
<tr> |
| 187 |
<td class="head"><{$smarty.const._MD_XNPPHOTO_TYPE_OF_RESOURCE_LABEL}></td> |
| 188 |
<td class="<{cycle name="oddeven"}>" ><input size=50 type='text' name='type_of_resource' value='<{$detail.type_of_resource|escape|replace:"&#":"&#"}>' STYLE='ime-mode:inactive;'></td> |
| 189 |
</tr> |
| 190 |
<tr> |
| 191 |
<td class="head"><{$smarty.const._MD_XNPPHOTO_GENRE_LABEL}></td> |
| 192 |
<td class="<{cycle name="oddeven"}>" ><input size=50 type='text' name='genre' value='<{$detail.genre|escape|replace:"&#":"&#"}>' STYLE='ime-mode:inactive;'></td> |
| 193 |
</tr> |
| 194 |
<tr> |
| 195 |
<td class="head"><{$smarty.const._MD_XNPPHOTO_IMAGES_LABEL}></td> |
| 196 |
<td class="<{cycle name="oddeven"}>" ><{$photo_images.value}></td> |
| 197 |
</tr> |
| 198 |
<tr> |
| 199 |
<td class="head"><{$smarty.const._MD_XNPPHOTO_ATTACHMENT_LABEL}></td> |
| 200 |
<td class="<{cycle name="oddeven"}>" ><{$photo_attachment.value}></td> |
| 201 |
</tr> |
| 202 |
<tr> |
| 203 |
<td class="head"><{$smarty.const._MD_XNPPHOTO_LINK_LABEL}></td> |
| 204 |
<td class="<{cycle name="oddeven"}>" ><input size=50 type='text' name='link' value='<{$detail.link|escape|replace:"&#":"&#"}>'></td> |
| 205 |
</tr> |
| 206 |
<{if !empty( $basic.last_update_date.value ) }> |
| 207 |
<tr> |
| 208 |
<td class="head"><{$basic.last_update_date.name}></td> |
| 209 |
<td class="<{cycle name="oddeven"}>" ><{$basic.last_update_date.value}></td> |
| 210 |
</tr> |
| 211 |
<{/if}> |
| 212 |
<{if !empty( $basic.creation_date.value ) }> |
| 213 |
<tr> |
| 214 |
<td class="head"><{$basic.creation_date.name}></td> |
| 215 |
<td class="<{cycle name="oddeven"}>"><{$basic.creation_date.value}></td> |
| 216 |
</tr> |
| 217 |
<{/if}> |
| 218 |
<{if !empty( $basic.contributor.value ) }> |
| 219 |
<tr> |
| 220 |
<td class="head"><{$basic.contributor.name}></td> |
| 221 |
<td class="<{cycle name="oddeven"}>" ><{$basic.contributor.value}></td> |
| 222 |
</tr> |
| 223 |
<{/if}> |
| 224 |
<{if !empty( $basic.item_type.value ) }> |
| 225 |
<tr> |
| 226 |
<td class="head"><{$basic.item_type.name}></td> |
| 227 |
<td class="<{cycle name="oddeven"}>"><{$basic.item_type.value}></td> |
| 228 |
</tr> |
| 229 |
<{/if}> |
| 230 |
<{if !empty( $basic.change_logs.value ) }> |
| 231 |
<tr> |
| 232 |
<td class="head"><{$basic.change_logs.name}></td> |
| 233 |
<td class="<{cycle name="oddeven"}>" ><{$basic.change_logs.value}></td> |
| 234 |
</tr> |
| 235 |
<{/if}> |
| 236 |
|
| 237 |
<!-- Photo Item Detail Information --> |
| 238 |
<!-- index --> |
| 239 |
<tr> |
| 240 |
<td class="head"><{$index.name}></td> |
| 241 |
<td class="<{cycle name="oddeven"}>"><{$index.value}></td> |
| 242 |
</tr> |
| 243 |
<!-- related_to --> |
| 244 |
<tr> |
| 245 |
<td class="head"><{$basic.related_to.name}></td> |
| 246 |
<td class="<{cycle name="oddeven"}>"><{$basic.related_to.value}></td> |
| 247 |
</tr> |
| 248 |
</table> |
| 249 |
|
| 250 |
<script type="text/javascript"> |
| 251 |
<!-- |
| 252 |
// |
| 253 |
function onSubmitItemType(form){ |
| 254 |
var result = true; |
| 255 |
if ( form.title.value == '' ){ |
| 256 |
result = false; |
| 257 |
window.alert("<{$smarty.const._MD_XNPPHOTO_TITLE_REQUIRED}>"); |
| 258 |
} |
| 259 |
/* |
| 260 |
if ( form.author_str.value == '' ){ |
| 261 |
result = false; |
| 262 |
window.alert("<{$smarty.const._MD_XNPPHOTO_AUTHOR_REQUIRED}>"); |
| 263 |
} |
| 264 |
if (( form.author_family.value == '' ) || ( form.author_family.value.indexOf("\n\n") != -1 )){ |
| 265 |
result = false; |
| 266 |
window.alert("<{$smarty.const._MD_XNPPHOTO_AUTHOR_FAMILY_REQUIRED}>"); |
| 267 |
} |
| 268 |
if ( form.journal.value == '' ){ |
| 269 |
result = false; |
| 270 |
window.alert("<{$smarty.const._MD_XNPPHOTO_JOURNAL_REQUIRED}>"); |
| 271 |
} |
| 272 |
if ( form.publicationDateYear.value == '' ){ |
| 273 |
result = false; |
| 274 |
window.alert("<{$smarty.const._MD_XNPPHOTO_DATE_REQUIRED}>"); |
| 275 |
} |
| 276 |
var form = form.form; |
| 277 |
getCheckedIndexes(form); |
| 278 |
*/ |
| 279 |
return result; |
| 280 |
} |
| 281 |
|
| 282 |
/* |
| 283 |
// title Japanese request |
| 284 |
function xnpphotoTitleJapanese(button){ |
| 285 |
var form = button.form; |
| 286 |
document.getElementsByName('xnpphotoTitleJapaneseFlag').item(0).value = '1'; |
| 287 |
getCheckedIndexes(form); |
| 288 |
form.action = ''; |
| 289 |
form.submit(); |
| 290 |
} |
| 291 |
*/ |
| 292 |
|
| 293 |
// title romaji request |
| 294 |
function xnpphotoTitleRomaji(button){ |
| 295 |
var form = button.form; |
| 296 |
if ( form.title_kana.value == '' ){ |
| 297 |
window.alert("<{$smarty.const._MD_XNPPHOTO_TITLE_REQUIRED}>"); |
| 298 |
return false; |
| 299 |
} |
| 300 |
else { |
| 301 |
document.getElementsByName('xnpphotoTitleRomajiFlag').item(0).value = '1'; |
| 302 |
getCheckedIndexes(form); |
| 303 |
saveScrollPosition(); |
| 304 |
form.action = ''; |
| 305 |
form.submit(); |
| 306 |
} |
| 307 |
} |
| 308 |
|
| 309 |
// add author request |
| 310 |
function xnpphotoAddAuthor(button){ |
| 311 |
var form = button.form; |
| 312 |
if (( form.author_name_add.value != '' ) || ( form.author_romaji_add.value != '' ) || ( form.author_affiliation_add.value != '' )){ |
| 313 |
document.getElementsByName('xnpphotoAddAuthorFlag').item(0).value = '1'; |
| 314 |
getCheckedIndexes(form); |
| 315 |
saveScrollPosition(); |
| 316 |
form.action = ''; |
| 317 |
form.submit(); |
| 318 |
} |
| 319 |
} |
| 320 |
|
| 321 |
// update author request |
| 322 |
function xnpphotoUpdateAuthor(button){ |
| 323 |
var form = button.form; |
| 324 |
/* |
| 325 |
var count = ""; |
| 326 |
var err = 0; |
| 327 |
for (var i in form) { |
| 328 |
if (( form[i].name.substring(0,21) == "author_family_update_" ) && ( form[i].value == '' )){ |
| 329 |
count = form[i].name.substring(21); |
| 330 |
} |
| 331 |
if (( form[i].name.substring(0,21) == "author_delete_update_" ) && ( form[i].name.substring(21) == count ) && ( form[i].checked == false )){ |
| 332 |
err = 1; |
| 333 |
} |
| 334 |
} |
| 335 |
if (err == 1) { |
| 336 |
window.alert("<{$smarty.const._MD_XNPPHOTO_AUTHOR_FAMILY_REQUIRED}>"); |
| 337 |
return false; |
| 338 |
} |
| 339 |
*/ |
| 340 |
document.getElementsByName('xnpphotoUpdateAuthorFlag').item(0).value = '1'; |
| 341 |
getCheckedIndexes(form); |
| 342 |
saveScrollPosition(); |
| 343 |
form.action = ''; |
| 344 |
form.submit(); |
| 345 |
} |
| 346 |
|
| 347 |
// add keyword request |
| 348 |
function xnpphotoAddKeyword(button){ |
| 349 |
var form = button.form; |
| 350 |
if ( form.keywords_add.value != '' ){ |
| 351 |
document.getElementsByName('xnpphotoAddKeywordFlag').item(0).value = '1'; |
| 352 |
getCheckedIndexes(form); |
| 353 |
saveScrollPosition(); |
| 354 |
form.action = ''; |
| 355 |
form.submit(); |
| 356 |
} |
| 357 |
} |
| 358 |
|
| 359 |
// update keyword request |
| 360 |
function xnpphotoUpdateKeyword(button){ |
| 361 |
var form = button.form; |
| 362 |
document.getElementsByName('xnpphotoUpdateKeywordFlag').item(0).value = '1'; |
| 363 |
getCheckedIndexes(form); |
| 364 |
saveScrollPosition(); |
| 365 |
form.action = ''; |
| 366 |
form.submit(); |
| 367 |
} |
| 368 |
|
| 369 |
// add free keyword request |
| 370 |
function xnpphotoAddFreeKeyword(button){ |
| 371 |
var form = button.form; |
| 372 |
if ( form.free_keywords_add.value != '' ){ |
| 373 |
document.getElementsByName('xnpphotoAddFreeKeywordFlag').item(0).value = '1'; |
| 374 |
getCheckedIndexes(form); |
| 375 |
saveScrollPosition(); |
| 376 |
form.action = ''; |
| 377 |
form.submit(); |
| 378 |
} |
| 379 |
} |
| 380 |
|
| 381 |
// update keyword request |
| 382 |
function xnpphotoUpdateFreeKeyword(button){ |
| 383 |
var form = button.form; |
| 384 |
document.getElementsByName('xnpphotoUpdateFreeKeywordFlag').item(0).value = '1'; |
| 385 |
getCheckedIndexes(form); |
| 386 |
saveScrollPosition(); |
| 387 |
form.action = ''; |
| 388 |
form.submit(); |
| 389 |
} |
| 390 |
|
| 391 |
//--> |
| 392 |
</script> |